How to launch a VM that use dev=vda and bus=virtio using nova??
Hello,
My OpenStack cluster(newton) is based on KVM virtualization. I found that all the instances Iam launching is using dev=sda and bus=scsi. How can I launch an Instance that using dev=vda and bus=virtio?? Or I want to make virtio as default for all VMs.
I tried to set the image-property as below
glance image-update --property hw_disk_bus=virtio 30393b62-c98e-4282-9fcc-0acc307f0c01
Then I tried to launch a new instance with this image but still it is using dev=sda and bus=scsi. I dont know how to change it. Is there any option exists for this?? Any help is really appreciated.
If you enable debug logging, you will see in the nova-compute log how the libvirt xml file is built. I don’t know what debug messages are issued, but perhaps the reason for selecting the SCSI bus becomes clear as well.
I enabled debug option and I found driver.py is responsible for creating the .xml file. But it doesn't give much information. I dont have any idea or any sufficient documents how to change nova libvirt to use virtio by default.