When we install OS in a VM created by an ISO image, it was failed.
Steps to reproduce:
1. create an ISO image, glance image-create --name ubuntu.iso --disk-format iso --container-format bare --file ubuntu-14.04.2-server-amd64.iso --progress
2. create a vm using this ISO image
3. install OS in this vm.
We think the nova generates wrong libvirt config, below are two example:
1. For a vm with local storage, it can't detect disk when install OS. The partial libvirt.xml is as follow:
When we install OS in a VM created by an ISO image, it was failed.
Steps to reproduce: 14.04.2- server- amd64.iso --progress
1. create an ISO image, glance image-create --name ubuntu.iso --disk-format iso --container-format bare --file ubuntu-
2. create a vm using this ISO image
3. install OS in this vm.
We think the nova generates wrong libvirt config, below are two example:
1. For a vm with local storage, it can't detect disk when install OS. The partial libvirt.xml is as follow:
<devices> opt/stack/ data/nova/ instances/ 9b3c730a- 8391-4b11- 8e07-dcd0981fbc 56/disk" /> opt/stack/ data/nova/ instances/ 9b3c730a- 8391-4b11- 8e07-dcd0981fbc 56/disk. config" />
<disk type="file" device="cdrom">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/
<target bus="ide" dev="hda"/>
</disk>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw" cache="none"/>
<source file="/
<target bus="ide" dev="hdd"/>
</disk>
2. For a volume vm, it can't detect CD-ROM when install OS. And the partial libvirt.xml is as follow:
<devices> var/lib/ nova/instances/ 95a38caf- 9f12-4516- 8166-6c5b572b47 34/disk" /> var/lib/ nova/instances/ 95a38caf- 9f12-4516- 8166-6c5b572b47 34/disk. config" />
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/
<target bus="virtio" dev="vda"/>
</disk>
<disk type="file" device="disk">
<driver name="qemu" type="raw" cache="none"/>
<source file="/
<target bus="virtio" dev="vdz"/>
</disk>