Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm migrating some machines from KVM to VirtualBox for a transitional period while we build our new virtualization environment.

The problem now, the disks are located on a LVM partition, and I have to convert them to a format VirtualBox recognizes. I've found a lot of documentation for the transition on the other direction, but not on this one.

qemu-img convert -c /dev/Volume01/Disk -O qcow2 Disk.qcow2

The tool seems to do its job, but the disk won't work. On VirtualBox, I get FATAL: No bootable medium found! System halted.. Are there another options?

share|improve this question
1  
Unless you want even more problems when you switch back I'd suggest setting up another KVM host temporarily instead of trying to shoehorn this with VirtualBox. –  John Gardeniers Jan 15 '13 at 9:24
    
Thanks, but I can't, since it's on a Windows Server host. It's the only place I can host the machines right now, and I can't remove the operating system. –  Jorge Suárez de Lis Jan 15 '13 at 11:10
add comment

2 Answers

up vote 0 down vote accepted

dd the volume first:

dd if=/dev/Volume01/Disk of=/tmp/image.raw
qemu-img convert -O vdi /tmp/image.raw test.vdi
rm /tmp/image.raw

Technically you could give that raw file to VirtualBox, but VDI is its native format.

share|improve this answer
    
Thanks, that worked!. I had a problem removing the Qcow2 disk though, very frustrating: freezes, exceptions... Anyway, it's solved and this disk works ok. –  Jorge Suárez de Lis Jan 16 '13 at 13:10
add comment
  1. It looks like the converted disk does not have a boot loader. You can install one by booting from a LiveCD.

  2. As an alternative. I'm not sure it will work, but you could try the raw partition access, i.e. make VirtualBox access the LVM partition directly. More info

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.