[openstack-dev] [Openstack-operators] Migrating KVM VM to Openstack + No bootable device
Shyam Goud
shyam.todeti at oneconvergence.com
Fri Feb 8 05:33:03 UTC 2013
Hello,
Getting "No bootable device" after launching the VM in openstack.
Note: Copied the KVM VM disk image from different host machine to
openstack-controller machine.
1. Converted the KVM VM image to qcow2
/os-controller at oscontroller-desktop:~$ qemu-img info newdisk.qcow2//
//image: newdisk.qcow2//
//file format: qcow2//
//virtual size: 10G (10737418240 bytes)//
//disk size: 9.5G//
//cluster_size: 65536//
//os-controller at oscontroller-desktop:~$/
2. Added to glance and Launched the VM. VM state shows as active, but
getting "Boot failed: could not read the boot disk"
3. virsh -c qemu:///session dumpxml instance-0000006b, xml file shows as
type=qcow2 (correct type).
/<devices>//
// <emulator>/usr/bin/kvm</emulator>//
// <disk type='file' device='disk'>//
// <driver name='qemu' type='*qcow2*' cache='none'/>//
// <source file='/var/lib/nova/instances/instance-0000006b/disk'/>//
// <*target dev='vda*' bus='virtio'/>//
// <alias name='virtio-disk0'/>//
// <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>//
// </disk>//
/
4. does any other specific conversions required here (adding virtual
driver) ?
/root at oscontroller-desktop:/home/os-controller# df -h//
//Filesystem Size Used Avail Use% Mounted on//
///dev/sda1 411G 144G 246G 37% ///
//udev 63G 4.0K 63G 1% /dev//
//tmpfs 26G 1.1M 26G 1% /run//
//none 5.0M 0 5.0M 0% /run/lock//
//none 63G 144K 63G 1% /run/shm//
//none 100M 40K 100M 1% /run/user//
//cgroup 63G 0 63G 0% /sys/fs/cgroup//
//root at oscontroller-desktop:/home/os-controller# /
Any help is highly appreciated.
Thanks,
Shyam.
On Thursday 07 February 2013 04:31 PM, Pádraig Brady wrote:
> On 02/07/2013 10:51 AM, Shyam Goud wrote:
>> On Thursday 07 February 2013 04:16 PM, Pádraig Brady wrote:
>>> On 02/07/2013 10:38 AM, Shyam Goud wrote:
>>>> On Thursday 07 February 2013 04:04 PM, Pádraig Brady wrote:
>>>>> On 02/07/2013 10:29 AM, Shyam Goud wrote:
>>>>>> How do i get the backing-file ? I am new to all these...
>>>>>>
>>>>>> Appreciate your help.
>>>>>> Shyam.
>>>>>>
>>>>>
>>>>> It's listed above as
>>>>> /var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda
>>>>>
>>>>>
>>>>> Was that on a different machine?
>>>>> Maybe the base image was auto removed because it was no longer in
>>>>> use?
>>>>>
>>>>>
>>>>> cheers,
>>>>> Pádraig.
>>>>
>>>> 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"
>>>>
>>>> So, now how do i copy the disk image to make it work on my openstack.
>>>
>>> qemu-img rebase ...
>>> qemu-img convert ...
>>
>> I did a rebase and convert.. but same issue..
>>
>> /root at oscontroller-desktop:/home/os-controller# qemu-img rebase -f
>> qcow2 -u -b diskbacking -F qcow2 disk//
>> //
>> //root at oscontroller-desktop:/home/os-controller# qemu-img info disk//
>> //image: disk//
>> //file format: qcow2//
>> //virtual size: 10G (10737418240 bytes)//
>> //disk size: 9.8G//
>> //cluster_size: 2097152//
>> //backing file: diskbacking//
>> //
>> //root at oscontroller-desktop:/home/os-controller# qemu-img convert -f
>> qcow2 -O qcow2 disk newdisk //
>> //qemu-img: Could not open 'disk': No such file or directory//
>> //qemu-img: Could not open 'disk'//
>> //root at oscontroller-desktop:/home/os-controller#
>
> You did rebase -u which should have worked,
> but maybe you might want to do without -u
> to avoid any sparse issues for example in the transfer.
>
> If it still doesn't work then I suggest you do
> the convert on the original machine.
>
> cheers,
> Pádraig.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130208/a0eea196/attachment.html>
More information about the OpenStack-dev
mailing list