ARCH=`uname -m`
if [ "$ARCH" = "aarch64" ] ; then
if [ $OSVERSION -le $OSKILO ]; then
crudini --set /etc/nova/nova.conf $VNCSECTION vnc_enabled False
else
# QEMU/Nova on Liberty gives aarch64 a vga adapter/bus.
crudini --set /etc/nova/nova.conf $VNCSECTION vnc_enabled True
fi
else
crudini --set /etc/nova/nova.conf $VNCSECTION vnc_enabled True
fi
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DISTRIB_DESCRIPTION="Ubuntu 15.10"#
# Figure out which OS/OpenStack this is.
#
OSJUNO=10
OSKILO=11
OSLIBERTY=12
. /etc/lsb-release
if [ ${DISTRIB_CODENAME} = "wily" ]; then
OSCODENAME="liberty"
OSVERSION=$OSLIBERTY
REGION="RegionOne"
elif [ ${DISTRIB_CODENAME} = "vivid" ]; then
OSCODENAME="kilo"
OSVERSION=$OSKILO
REGION="RegionOne"
else
OSCODENAME="juno"
OSVERSION=$OSJUNO
REGION="regionOne"
fiwget -c -O ubuntu-16.04-aarch64.qcow2 https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-disk1.img
openstack image create --property hw_video_model='vga' --disk-format=qcow2 --container-format=bare --private --file ubuntu-16.04-aarch64.qcow2 teuthology-ubuntu-16.04-aarch64
openstack server create --image 'teuthology-ubuntu-16.04-aarch64' --flavor 'm1.small' --nic net-id=flat-lan-1-net --key-name teuthology-myself --security-group teuthology --wait teuthology
I'm sorry I was out on vacation when you tried this. I've tried all
these strategies too, and have yet to be able to boot an aarch64 Ubuntu
cloud image in a VM.
You should be able to make progress by mounting the image, pulling out
the kernel and initramfs, and making an AMI/AKI/ARI image set. Not
ideal, but should work.