[SOLVED] import a virtualbox vm on a system with zfs storage

Dieter Toews

New Member
Feb 20, 2017
11
0
1
43
Hi all,

I'm trying to follow these guides:

http://www.binaryheartbeat.net/2016/05/importing-ova-container-into-proxmox.html
http://cheznick.net/main/content/converting-a-virtual-machine-from-virtualbox-to-kvm
http://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE#Converting_to_qcow2

To convert the virtualbox virtual machine the above links say to to
  1. extract the files within the ova format file
  2. convert the resulting disk image using qemu tools
  3. setup a virtual machine in proxmox with settings that mirror those you where using for virtualbox
  4. overwrite the newly created virtual machine disk image with the transformed disk image that you created in step 2

i know that storage of vm images is setup a little different when using zfs . when i do
Code:
 zfs list
i see zfs data sets for the three vms i've setup so far:

Code:
root@proxmox1:/# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
rpool                     35.7G  1.02T    96K  /rpool
rpool/ROOT                20.1G  1.02T    96K  /rpool/ROOT
rpool/ROOT/pve-1          20.1G  1.02T  20.1G  /
rpool/data                7.11G  1.02T    96K  /rpool/data
rpool/data/vm-100-disk-1  1.46G  1.02T  1.24G  -
rpool/data/vm-101-disk-1  5.65G  1.02T  5.65G  -
rpool/data/vm-102-disk-1    64K  1.02T    64K  -
rpool/swap                8.50G  1.03T    64K  -

i notice that the data sets don't have mount points listed. Are they secretly mounted somewhere else? how do the VMs see there disk images if the data sets aren't mounted in proxmox? is is safe to just mount the dataset for the vm i want to mess with (in my case vm-102)?
 
Last edited:
Bill, I followed the steps but I get an error, see attached
 

Attachments

  • Capture.PNG
    Capture.PNG
    238.4 KB · Views: 60
You should boot a live Linux and investigate why the labels have changed. Normally, this should not be the case if the whole virtual disk was correctly converted.
 
"Create your destination VM on ZFS with the exact size" how do I get the exact size of my .img file?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!