[SOLVED] vm hangs after migration from vmware

  • Thread starter Thread starter topi
  • Start date Start date
T

topi

Guest
Hi,

I followed this how to http://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE#VMware_to_Proxmox_VE_.28KVM.29 to migrate my vmware (ESXi 3.5) machines to PVE. The migration works great and this new imported vm boots. :p
However, after a while the virtual machine hangs. That means, everything is freezed, the CPU usage is at 100% and the memory usage is also full. I can only kill the vm.

I tested a migration with all the formats raw, qcow2 and vmdk, but that makes no difference. The vm sill hangs one after a random period. :(

Anyone has had this problem ? Any idea what I can do ? Where I can show what goes wrong (log) ?
 
Last edited by a moderator:
Verify that your swap partition was mounted successfully.

To do that issue "free" in the terminal, the last line should be like:
Swap: 6142972 0 6142972
If it has all zeroes, then you have no swap mounted.
Swap: 0 0 0
 
and details about the VM? how did you migrate?
 
The VM is an OpenSUSE 11 32bit (not 64bit), created with ESXi 3.5 with only one growable file (.vmdk).

I stopped the VM, then copy the .vmdk to my storage.

1. I convert it to a .qcow2 file with qemu-img convert. I created the vm from webadmin with the right config. Then I moved the .qcow2 to the right place.
2. I also created the VM from webadmin to use the .vmdk. Then I moved the .qcow2 to the right place.
3. I also dd my .vmdk to a LVM I had created before and configured as raw vm throut webadmin.

In the tree cases the vm boots, but hangs after a while, even I do nothing on it ...

Hope my description is precise enough. Is there something wrong with my method ? What can I do to fix it ?
 
Last edited by a moderator:
Hi,

I checked my swap with free and it seems it is correctely mounted.
 
Hi,

I noticed that when I turn off the "KVM hardware virtualization" the VM doesn't hang, but the VM is so slow that it's not a solution.
My proc supports KVM hardware virtualization (Intel Xeon x64), it is OK with my other VM installed from scratch.

I tested to configure other "CPU Type" (quemo32, KVM32, KVM64, host). It seems to improve, but the VM still hangs after a while...

Any tip would be appreciate.
 
It seems also that by allocating only one CPU to the VM it works.
But this is also not a solution because I need to allocate more processors to this server.

What can I do now ?
 
post your pveversion -v

also your VMID.conf

and make sure you run a up2date kernel inside if you use virtio.
 
post your pveversion -v

also your VMID.conf

and make sure you run a up2date kernel inside if you use virtio.


Here infos you asked for. And as far I don't use virtIO.

pveversion -v
Code:
pve-manager: 2.1-1 (pve-manager/2.1/f9b0f63a)
running kernel: 2.6.32-11-pve
proxmox-ve-2.6.32: 2.0-66
pve-kernel-2.6.32-11-pve: 2.6.32-66
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.8-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.7-2
pve-cluster: 1.0-26
qemu-server: 2.0-39
pve-firmware: 1.0-16
libpve-common-perl: 1.0-27
libpve-access-control: 1.0-21
libpve-storage-perl: 2.0-18
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.0-9
ksm-control-daemon: 1.1-1

VID.conf
Code:
bootdisk: ide0
cores: 4
ide0: container:105/vm-105-disk-1.qcow2
ide2: none,media=cdrom
keyboard: fr-ch
memory: 4096
name: mynxqcow2
net0: rtl8139=46:90:BB:0B:0A:E1,bridge=vmbr0
ostype: l26
sockets: 1
 
As a test, I upgraded my OpenSUSE from 11.2 to 11.4. My kernel was previously 2.6.31.12-0.1-default and it is now 2.6.37.6-0.11-default. And it seems to work ...
Since three hours my VM is running without any problem. Indeed, I'll let you know if something goes wrong or if I find new information about all of that.

Thank you for your help!