Flexiable 'libvirt.xml.template' to support various VM images?
Hi OpenStack gurus,
Recently I created a RHEL 6 VM with default partition method, by which the installer partitioned the image with LVM volumes. Then I did bundling KERNAL/RAMDISK/OS and uploaded them to Nova objectstore. But the problem is 'euca-run-instance' created instance with the image cannot boot.
I managed to track down the problem being libvirtd on compute node cannot mout root "/" partition. The 'libvirt.
Clearly the root partition of my VM image is not located understand /dev/vda. Since it was parttion to LVM volumes, the correct location should be something like "root=/
In IRC channel, vishy mentioned the in order to boot VM with LVM partition, whole disk should be used instead of external kernel & ramdisk. To me, booting instance with external kernel/ramdisk are much more flexible and hance fits my need (so that I can do things like disable selinux).
But per my understand of Nova, currently 'libvirt.
So I'm thinking if it's possible to add some attribute/metadata to VM image to provide necessary information (e.g. location of root partition) to create and boot instance from differnt VM images. Meantime, Nova should be able to utilize these kind of information to create the right XML configuration for the instance. Sound reasonable?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Huang Zhiteng for more information if necessary.