migrate ESXI 5.5 to Proxmox 5.1

Dimon4ik

New Member
Nov 30, 2017
7
0
1
33
Greetings.
The problem arose when I tried to migrate VM Ubuntu ESXI 5.5. 5.1 on Proxmox.
Describe their actions.
1) using esxi converter, I got the image of the vmdk (the machine did not have installed VMWare Tools)
2) created a machine with a vmdk disk on Proxmox
3) without starting the VM was moved to Proxmox disk image obtained with ESXI
4) while trying to start get error

Code:
Task viewer: VM 102 - Start
Output
Status
Stop
kvm: -drive file=/var/lib/vz/images/102/vm-102-disk-3.raw,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on: file system may not support O_DIRECT
kvm: -drive file=/var/lib/vz/images/102/vm-102-disk-3.raw,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on: Could not open '/var/lib/vz/images/102/vm-102-disk-3.raw': Invalid argument
TASK ERROR: start failed: command '/usr/bin/kvm -id 102 -chardev 'socket,id=qmp,path=/var/run/qemu-server/102.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/102.pid -daemonize -smbios 'type=1,uuid=d53336c8-6e4e-41e5-84ab-e0a8e05b292d' -name vm102 -smp '1,sockets=1,cores=1,maxcpus=1' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/102.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 512 -k en-us -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:917bb8cf98c5' -drive 'if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/var/lib/vz/images/102/vm-102-disk-3.raw,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -drive 'file=/dev/zvol/rpool/data/vm-102-disk-1,if=none,id=drive-scsi1,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi1,id=scsi1'' failed: exit code 1

used information from here https://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE
 
is your filesystem zfs? if yes you cannot use O_DIRECT for vm images
but an alternative would be to use the zfs plugin directly and import the vmdk with
Code:
qm importdisk
[code]
see the man page for details on how to use it
 
Thank you very much.
Indeed, if you have a ZFS file system, you must do the import.
Procedure:
1) To move the vmdk image to proxmox
2) Using
Code:
Using qm importdisk 103 your_imported_image.vmdk local-zfs --format vmdk
where 103 - your VMID, your_imported image.vmdk - name your imported image, local-zfs - name of storage proxmox, --format - format imported image
3) To connect the disk to the virtual machine in the web interface
4) Done!
 
  • Like
Reactions: fireon

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!