Skip to content

Commit fcc3f6e

Browse files
Clark LaughlinAndrew McDermott
authored andcommitted
Add support for arm64 images
This patch enables proper support for arm64 images by disabling VNC support and adding several properties to the image in glance that are necessary to boot correctly: hw_cdrom_bus=virtio hw_machine_type=virt os_command_line='console=ttyAMA0' Change-Id: I68c9a5e0e083af2f92875c3bdf70df750f6e4d8f
1 parent 9860876 commit fcc3f6e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

functions

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ function upload_image {
287287
img_property="--property hw_cdrom_bus=scsi"
288288
fi
289289

290+
if is_arch "aarch64"; then
291+
img_property="--property hw_machine_type=virt --property hw_cdrom_bus=virtio --property os_command_line='console=ttyAMA0'"
292+
fi
293+
290294
if [ "$container_format" = "bare" ]; then
291295
if [ "$unpack" = "zcat" ]; then
292296
openstack --os-token $token --os-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT image create "$image_name" $img_property --public --container-format=$container_format --disk-format $disk_format < <(zcat --force "${image}")

lib/nova_plugins/hypervisor-libvirt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ function configure_nova_hypervisor {
5454
iniset $NOVA_CONF DEFAULT vnc_enabled "false"
5555
fi
5656

57+
# arm64-specific configuration
58+
if is_arch "aarch64"; then
59+
# arm64 architecture currently does not support graphical consoles.
60+
iniset $NOVA_CONF DEFAULT vnc_enabled "false"
61+
fi
62+
5763
ENABLE_FILE_INJECTION=$(trueorfalse False ENABLE_FILE_INJECTION)
5864
if [[ "$ENABLE_FILE_INJECTION" = "True" ]] ; then
5965
# When libguestfs is available for file injection, enable using

0 commit comments

Comments
 (0)