<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
Getting "No bootable device" after launching the VM in openstack.
<br>
<br>
Note: Copied the KVM VM disk image from different host machine to
openstack-controller machine.<br>
<br>
1. Converted the KVM VM image to qcow2 <br>
<small><i>os-controller@oscontroller-desktop:~$ qemu-img info
newdisk.qcow2</i><i><br>
</i><i>image: newdisk.qcow2</i><i><br>
</i><i>file format: qcow2</i><i><br>
</i><i>virtual size: 10G (10737418240 bytes)</i><i><br>
</i><i>disk size: 9.5G</i><i><br>
</i><i>cluster_size: 65536</i><i><br>
</i><i>os-controller@oscontroller-desktop:~$</i></small><br>
<br>
2. Added to glance and Launched the VM. VM state shows as active,
but getting "Boot failed: could not read the boot disk"<br>
<br>
3. virsh -c qemu:///session dumpxml instance-0000006b, xml file
shows as type=qcow2 (correct type).<br>
<br>
<small><i><devices></i><i><br>
</i><i> <emulator>/usr/bin/kvm</emulator></i><i><br>
</i><i> <disk type='file' device='disk'></i><i><br>
</i><i> <driver name='qemu' type='<b>qcow2</b>'
cache='none'/></i><i><br>
</i><i> <source
file='/var/lib/nova/instances/instance-0000006b/disk'/></i><i><br>
</i><i> <<b>target dev='vda</b>' bus='virtio'/></i><i><br>
</i><i> <alias name='virtio-disk0'/></i><i><br>
</i><i> <address type='pci' domain='0x0000' bus='0x00'
slot='0x04' function='0x0'/></i><i><br>
</i><i> </disk></i><i><br>
</i></small><br>
4. does any other specific conversions required here (adding
virtual driver) ? <br>
<br>
<small><i>root@oscontroller-desktop:/home/os-controller# df -h</i><i><br>
</i><i>Filesystem Size Used Avail Use% Mounted on</i><i><br>
</i><i>/dev/sda1 411G 144G 246G 37% /</i><i><br>
</i><i>udev 63G 4.0K 63G 1% /dev</i><i><br>
</i><i>tmpfs 26G 1.1M 26G 1% /run</i><i><br>
</i><i>none 5.0M 0 5.0M 0% /run/lock</i><i><br>
</i><i>none 63G 144K 63G 1% /run/shm</i><i><br>
</i><i>none 100M 40K 100M 1% /run/user</i><i><br>
</i><i>cgroup 63G 0 63G 0% /sys/fs/cgroup</i><i><br>
</i><i>root@oscontroller-desktop:/home/os-controller# </i></small><br>
<br>
<br>
Any help is highly appreciated.<br>
<br>
Thanks,<br>
Shyam.<br>
<br>
On Thursday 07 February 2013 04:31 PM, Pádraig Brady wrote:<br>
</div>
<blockquote cite="mid:5113898C.8020102@draigBrady.com" type="cite">On
02/07/2013 10:51 AM, Shyam Goud wrote:
<br>
<blockquote type="cite">On Thursday 07 February 2013 04:16 PM,
Pádraig Brady wrote:
<br>
<blockquote type="cite">On 02/07/2013 10:38 AM, Shyam Goud
wrote:
<br>
<blockquote type="cite">On Thursday 07 February 2013 04:04 PM,
Pádraig Brady wrote:
<br>
<blockquote type="cite">On 02/07/2013 10:29 AM, Shyam Goud
wrote:
<br>
<blockquote type="cite">How do i get the backing-file ? I
am new to all these...
<br>
<br>
Appreciate your help.
<br>
Shyam.
<br>
<br>
</blockquote>
<br>
It's listed above as
<br>
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda
<br>
<br>
Was that on a different machine?
<br>
Maybe the base image was auto removed because it was no
longer in use?
<br>
<br>
<br>
cheers,
<br>
Pádraig.
<br>
</blockquote>
<br>
Yes it was on a different machine.. "did a 'dd' of the
original disk image on the old openstack server and piped it
through ssh onto my local machine"
<br>
<br>
So, now how do i copy the disk image to make it work on my
openstack.
<br>
</blockquote>
<br>
qemu-img rebase ...
<br>
qemu-img convert ...
<br>
</blockquote>
<br>
I did a rebase and convert.. but same issue..
<br>
<br>
/root@oscontroller-desktop:/home/os-controller# qemu-img rebase
-f qcow2 -u -b diskbacking -F qcow2 disk//
<br>
//
<br>
//root@oscontroller-desktop:/home/os-controller# qemu-img info
disk//
<br>
//image: disk//
<br>
//file format: qcow2//
<br>
//virtual size: 10G (10737418240 bytes)//
<br>
//disk size: 9.8G//
<br>
//cluster_size: 2097152//
<br>
//backing file: diskbacking//
<br>
//
<br>
//root@oscontroller-desktop:/home/os-controller# qemu-img
convert -f qcow2 -O qcow2 disk newdisk //
<br>
//qemu-img: Could not open 'disk': No such file or directory//
<br>
//qemu-img: Could not open 'disk'//
<br>
//root@oscontroller-desktop:/home/os-controller#
<br>
</blockquote>
<br>
You did rebase -u which should have worked,
<br>
but maybe you might want to do without -u
<br>
to avoid any sparse issues for example in the transfer.
<br>
<br>
If it still doesn't work then I suggest you do
<br>
the convert on the original machine.
<br>
<br>
cheers,
<br>
Pádraig.
<br>
</blockquote>
<br>
</body>
</html>