Migration from VBox to KVM

piotr.pawlowski

New Member
Sep 9, 2010
8
0
1
Gdańsk
goyello.com
[SOLVED] Migration from VBox to KVM

Hello,

I am using Proxmox from several months. Unfortunately my previous administrator create some VM on VirtualBox. Now I am going to convert it to use in Proxmox as KVM containers.

I found several ways to convert vdi to raw or qcow2 image. This is what I did:

  • Convert vdi by command VBoxManage clonehd --format RAW [virtual_harddisk].vdi [virtual_harddisk].img
  • Created fresh VM in Proxmox with one hdd in raw format
  • Copied converted image to /var/lin/vz/images/$VMid
  • Removed disk image created in Proxmox and changed name of converted image to same name as deleted image
In Proxmox I can see hdd. Unfortunately during POST on container it informs me that device is non bootable. I attached ISO with PLD-Live distro and checked if /boot partition has boot flag. And everything was OK, partition is bootable.
It is worth to mention that system on converted image is Linux (gentoo). I use Proxmox 1.5 .

Now question: what I did wrong? About what I forget?

Thank you for any information.
 
Last edited:
Ok, problem solved. I do not why, but VM didn't recognize hdd as bootable if it was visible as second or third device. When I put converted disk image as first bootable device server started immediately.
 
Ok, problem solved. I do not why, but VM didn't recognize hdd as bootable if it was visible as second or third device. When I put converted disk image as first bootable device server started immediately.

see 'man qm' - there is a option to specify the boot device (-bootdisk, which is automatically set when you create the VM using the web interface).
 
Hello,

Thanks for reply.
Actually I only added converted hdd to vm and during POST decided from which device VM should boot. Unfortunately without result until I left only converted hdd as primary drive.