[SOLVED] qm import got "parser error : Document labelled UTF-16 but has UTF-8 content"

RibaldCorello

New Member
Apr 19, 2025
3
1
3
Hi,
i try to migrate VMs from Xen Server to proxmox here is my procedure:

1.) Export vorm XenCenteras ova package
2.) Upload to proxmox with winscp
3.) unpack with tar
4.) import with: qm importovf 302 ./vm-name.ovf Storage

i allways get "parser error : Document labelled UTF-16 but has UTF-8 content"

t try to change in the header utf-16 with utf-8 via editor, but the result is that if could not start the vm becaue no bootdisk found

Has Everyone an ideea ?
 
Last edited:
but the result is that if could not start the vm becaue no bootdisk found
Well, but the import was otherwise successful from the sounds of it?

What does the configuration of the imported VM look like? qm config <vmid>.
You may just need to adjust some settings.
 
Hi,
here is the result:

boot:
cores: 1
memory: 2016
name: vm-edv-2-NFS-Huawei
smbios1: uuid=edabfcde-3729-4176-88f8-f95d020220b8
vmgenid: df7f4b0b-0e15-49bf-86d3-1516e58f21f4

i think that a lot of information is lost thru my change
 
Last edited:
So i have solved the Problem:

1.) Convert the disk from vhd to qcow2 with qemu-img convert
2.) create vm with Option "Do not use any media"
3.) remove the disk from the created vm
4.) import the converted disk to the vm with qm importdisk
5.) attach the imported disk to the vm
6.) in Options change the bootorder
7) start the VM

After the vm is runnign well you could start to optimize

8) Install virtio driver
9) change the controller to virtio scsi
 
Last edited:
  • Like
Reactions: smueller
Great!

Can you just mark the thread as SOLVED, by editing your first post? There's a dropdown near the title field for that.
That helps others to find this more easily :)