2015-02-11
Moving Windows Server virtual machines from VirtualBox to kvm seems to have been relatively straightforward. Compatible interfaces helps. Moving the data is a simple matter of converting disk images from VirtualBox to raw and then writing the raw files to a ZVOL.
ide
interfaces for storage and Intel e1000g
interfaces for networking.VBoxManage clonehd <source>.vmdk <destination>.img --format raw
ide
for the hard disk interface and e1000g
for the networking interface, instead of virtio
.-disk0
zvol is the right size for the image you want to write. If not, use zfs set
to fix it.qemu-img
to write your .img
file to the zvol:
```
qemu-img convert \
-f raw \
-O host_device \
-o size=.img \
/dev/zvol/rdsk/zones/
When that’s finished, you should be able to fire up the new vm and pick right up where you left off.
See also: