Cannot launch whole disk image with xen+libvirt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Alvaro Lopez |
Bug Description
Hi.
I am unable to launch an instance with a whole-disk image (that is, a file containing a full disk with partitions).
The generated XML file for libvirt contains the following:
<os>
<boot dev="hd"/>
</os>
So when the machine starts it fails since the above is passed as a cmdline "root=/dev/xvda" being passed to the kernel that pygrub is launching, resulting in the following error during boot:
mount: mounting /dev/xvda on /root failed: Invalid argument
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.
Removing that line from the libivrt XML solves this issue.
Changed in nova: | |
assignee: | nobody → Alvaro Lopez (aloga) |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in nova: | |
status: | Triaged → In Progress |
Changed in nova: | |
milestone: | none → icehouse-3 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-3 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/58999
Review: https:/