Strange problem with vmdk kvm (migration)

pezi

New Member
Aug 2, 2011
28
0
1
Strange problem with vmdk kvm (migration) [solved]

Hi! I am trying to convert a vmdk to kvm.
1.) Step create a KVM VMDK VM. Initial empty KVM is bootable. OK.
2.) Copy the original vmdk file over the new vmdk file.
3.) ls -l shows: -rw-r--r-- 1 root root 5479727104 Nov 27 06:45 vm-112-disk-1.vmdk
4.) Now try to start the vm:
PHP:
qm start 112 kvm: -drive file=/var/lib/vz/images/112/vm-112-disk-1.vmdk,if=scsi,index=0,boot=on: could not open disk image /var/lib/vz/images/112/vm-112-disk-1.vmdk: No such file or directory start failed: command '/usr/bin/kvm -monitor unix:/var/run/qemu-server/112.mon,server,nowait -vnc unix:/var/run/qemu-server/112.vnc,password -pidfile /var/run/qemu-server/112.pid -daemonize -usbdevice tablet -name msc_vmdk.local -smp sockets=1,cores=1 -nodefaults -boot menu=on -vga cirrus -tdf -k de -drive file=/dev/cdrom1,if=ide,index=2,media=cdrom -drive file=/var/lib/vz/images/112/vm-112-disk-1.vmdk,if=scsi,index=0,boot=on -m 1024 -netdev type=tap,id=vlan0d0,ifname=tap112i0d0,script=/var/lib/qemu-server/bridge-vlan,vhost=on -device virtio-net-pci,romfile=,mac=52:41:1B:9E:9A:86,netdev=vlan0d0 -netdev type=tap,id=vlan1d0,ifname=tap112i1d0,script=/var/lib/qemu-server/bridge-vlan,vhost=on -device virtio-net-pci,romfile=,mac=76:6C:72:03:68:14,netdev=vlan1d0' failed with exit code 1

System says: could not open disk image /var/lib/vz/images/112/vm-112-disk-1.vmdk: No such file or directory
Strange - because ls -l /var/lib/vz/images/112/vm-112-disk-1.vmdk works 5.)

OK perhaps a VMDK format problem. Try a conversion.
Little tests before:
file vm-112-disk-1.vmdk vm-112-disk-1.vmdk:
VMware4 disk

image qemu-img info vm-112-disk-1.vmdk
image: vm-112-disk-1.vmdk
file format: vmdk virtual size: 100G (107374182400 bytes)
disk size: 5.1G backing f
ile: Ubuntu.vmdk (actual path: Ubuntu.vmdk)

Upps - same problem:
proxmox:/var/lib/vz/images/112
qemu-img convert -f vmdk vm-112-disk-1.vmdk -O qcow2 vm-112-disk-1.qcow2
qemu-img: Could not open 'vm-112-disk-1.vmdk': No such file or directory qemu-img: Could not open 'vm-112-disk-1.vmdk'
Similar problem http://forum.proxmox.com/threads/5378-VMware-to-Proxmox-problem-(Qemu-img-convert)?p=30624#post30624
Any idea what is going wrong?

Peter PVE-Version:
pveversion -v pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 1.9-53
pve-kernel-2.6.32-4-pve: 2.6.32-33
pve-kernel-2.6.32-6-pve: 2.6.32-53
qemu-server: 1.1-32
pve-firmware: 1.0-14 l
ibpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: 1.2-16
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-2
ksm-control-daemon: 1.0-6
 
Last edited:

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
15,412
853
163
not really related to the issue but if you do a migration from vmware I suggest you use raw images on Proxmox VE. the migration can be done with clonezilla live-cd, see our migration page.
 

pezi

New Member
Aug 2, 2011
28
0
1
Problem fixed - problem was caused by a VMDK snapshoot. But the original error message was not really helpful.
Peter
 
Last edited:

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 your own in 60 seconds.

Buy now!