Converting KVM to VirtualBox
So I remembered VBoxManage and apparently I hade blogged about it myselve already ..
I just hate it when I search for stuff and google points right back to me
So I converted my puppetmaster's disks
VBoxManage convertdd Emtpy-clone.img PuppetMasterroot.vdi VBoxManage convertdd puppet-var.img PuppetMastervar.vdi
Now when booting the VM in Virtualbox , obviously the kernel panicked
.. as my KVM disks are recognised as as /dev/hda and and Virtualbox
defaults to /dev/sda and LVM doesn't really like disks to be on another
names
No commandline fu here to help me, but using the VirtualBox gui to move
the disks to the IDE controller rather than the SATA controller.
Now all I need to do is wait for some smart guy who comments that you probably could use VBoxManage storagectl to achieve the same goal :)
And wait till Vagrant Up start supporting KVM , so I can move back :)
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)






Comments
Mohamed El-beltagy replied on Fri, 2011/12/02 - 6:03am
Hi Kris,
Thanks for the very usefull tip
But for your info, and according to VBoxManage's official documentation, the command line option convertdd is mapped internally to the most recent one: convertfromraw option.
For more info, http://www.virtualbox.org/manual/ch08.html#idp14310432