Hi,
I'm importing some VMs from ESXi using a script, but am having issues with certain characters.
I use the volume ID for importing metadata, which then fail.
When checking the same datastore in the web interface, it's correctly showing as
Similar issue for disks. (I renamed the VM folder and .vmx for this)
The web interface does not seem to help with this.
I'm importing some VMs from ESXi using a script, but am having issues with certain characters.
Code:
# pvesm list k1-nod1
Volid Format Type Size VMID
k1-nod1:ha-datacenter/PVE-MIGRATION/�vning/�vning.vmx vmx import 0
I use the volume ID for importing metadata, which then fail.
Code:
Wide character in die at /usr/share/perl5/PVE/RESTHandler.pm line 1024.
proxy handler failed: can't open '/run/pve/import/esxi/k1-nod1/mnt/ha-datacenter/PVE-MIGRATION/��vning/��vning.vmx' - No such file or directory
When checking the same datastore in the web interface, it's correctly showing as
ha-datacenter/PVE-MIGRATION/Övning/Övning.vmx.Similar issue for disks. (I renamed the VM folder and .vmx for this)
Code:
# pvesh get /nodes/hv1/storage/k1-nod1/import-metadata --volume ha-datacenter/PVE-MIGRATION/Ovning/Ovning.vmx
┌─────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ key │ value
╞═════════════╪════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
│ create-args │ {"bios":"seabios","boot":"order=sata0;scsi0","cores":2,"memory":"4096","name":"Ovning","ostype":"l26","sata0":"none,media=cdrom","scsihw":"
├─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ disks │ {"scsi0":{"volid":"k1-nod1:ha-datacenter/PVE-MIGRATION/Ovning/Ãvning.vmdk"}}
├─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ net │ {"net0":{"macaddr":"00:50:56:9e:8a:c8","model":"e1000e"}}
├─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ source │ esxi
├─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ type │ vm
├─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ warnings │ [{"key":"sata0","type":"cdrom-image-ignored","value":"k1-nod1:ha-datacenter/PVE-MIGRATION/Ovning/emptyBackingString"}]
└─────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
The web interface does not seem to help with this.
Code:
failed to stat '/run/pve/import/esxi/k1-nod1/mnt/ha-datacenter/PVE-MIGRATION/Ovning/Ãvning.vmdk'
TASK ERROR: unable to create VM 137 - cannot import from 'k1-nod1:ha-datacenter/PVE-MIGRATION/Ovning/ÃÂvning.vmdk' - could not get size of k1-nod1:ha-datacenter/PVE-MIGRATION/Ovning/ÃÂvning.v
Last edited: