-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lxd/instance: Add support for armhf vm's on arm64 hosts #14077
lxd/instance: Add support for armhf vm's on arm64 hosts #14077
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but should we rework those else if
to use or
comparison and avoid dup'ing the if's
body? The aim would be to reduce the code duplication.
386da99
to
0df5c94
Compare
@@ -74,6 +74,10 @@ func qemuMachineType(architecture int) string { | |||
switch architecture { | |||
case osarch.ARCH_64BIT_INTEL_X86: | |||
machineType = "q35" | |||
case osarch.ARCH_32BIT_ARMV7_LITTLE_ENDIAN: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case osarch.ARCH_32BIT_ARMV7_LITTLE_ENDIAN: | |
case osarch.ARCH_32BIT_ARMV7_LITTLE_ENDIAN, osarch.ARCH_32BIT_ARMV8_LITTLE_ENDIAN, osarch.ARCH_64BIT_ARMV8_LITTLE_ENDIAN: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As always, my questions/suggestions on anything related with Go are to be taken with a large grain of salt. @tomponline is really the authoritative voice here. I'm still just a Go noob ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this one out! I didn't know you could handle cases with multiple options this way. I'm still learning something new about Go every day 😄
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
0df5c94
to
973c2ef
Compare
@kadinsayani if this is ready for review please can you click the "Ready for review" button, ta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been tested working @kadinsayani ?
Launching armhf vm's on a 64-bit arm rpi host, yes ✅ Running I'll provide an update on this tomorrow 😄 |
Yeah doing multi arch agent is a different feature. So this pr ready to review? |
This improvement will resolve #14001 with the inclusion of an armhf 32-bit lxd-agent binary in the lxd snap.