problem with importing ovf, import hangs

chalex

Active Member
Mar 19, 2018
22
1
43
42
brand-new stock install of PVE. I'm trying to make my first VM following the user guide pdf. Section 10.6.1 Step-by-step example of a Windows OVF import:


root@amd01:~# qm importovf 999 /vm01/admin_stuff/Windev1802Eval.ovf localzfspool
(5.00/100%)
(10.00/100%)
...
hangs indefinitely.

I can see it making a new zvol, and the zvol filling up from 0 to ~20GB

root@amd01:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
vm01 150G 6.58T 17.2G /vm01
vm01/vm-999-disk-1 131G 6.69T 19.3G -

I can also see it creating the config file for the VM, and it shows up in the web interface:
root@amd01:~# cat /etc/pve/qemu-server/999.conf
cores: 1
memory: 2048
name: Windev1802Eval
smbios1: uuid=c727f58d-c4c3-4ee5-8974-e49910074b6e

Watching iostat or zpool iostat shows the system is totally idle after the beginning. But the command is stuck. If I ctrl-c or send it a SIGHUP, it cleans up and deletes the zvol and the vm config

From the process list:

root 30942 0.0 0.0 328176 90708 pts/0 S+ 12:35 0:00 | \_ /usr/bin/perl /usr/sbin/qm importovf 999 /vm01/ad
min_stuff/Windev1802Eval.ovf localzfspool
root 31272 5.3 0.0 612696 18216 pts/0 S+ 12:35 1:23 | \_ qemu-img convert /vm01/admin_stuff/Windev1802Eval-disk1.vmdk -p -n -O raw zeroinit:/dev/zvol/vm01/vm-999-disk-1

What can I do to troubleshoot this? zfs package version 0.7.6-pve1~bpo9 and I have compression and dedup turned on in my zpool.

As an aside, where are the instructions to switch from PVE using ZVOLS to just files in ZFS?
 
Wanted to follow up and say that instead of importing ovf, I created a new VM with id 100, then imported only the disk, and that worked.

root@amd01:~# qm importdisk 100 /vm01/admin_stuff/Windev1802Eval-disk1.vmdk localzfspool
(100.00/100%)

Then I modified the vm config to use this disk.
 
Yes, it is just the latest download that I got from the Windows VM link in the PVE PDF guide:


root@amd01:/vm01/admin_stuff# ls -alh Windev*
-rw-r--r-- 1 root root 18G Feb 12 23:48 Windev1802Eval-disk1.vmdk
-rw-r--r-- 1 root root 193 Feb 12 23:48 Windev1802Eval.mf
-rw-r--r-- 1 root root 5.8K Feb 12 23:48 Windev1802Eval.ovf
 

Attachments