[SOLVED] Live migration VM problem in GUI

gosha

Well-Known Member
Oct 20, 2014
302
24
58
Russia
Hi All!
Just created 3-node cluster.
proxmox-ve: 4.4-87 (running kernel: 4.4.59-1-pve)
pve-manager: 4.4-13 (running version: 4.4-13/7ea56165)
pve-kernel-4.4.59-1-pve: 4.4.59-87
lvm2: 2.02.116-pve3
corosync-pve: 2.4.2-2~pve4+1
libqb0: 1.0.1-1
pve-cluster: 4.0-49
qemu-server: 4.0-110
pve-firmware: 1.1-11
libpve-common-perl: 4.0-94
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-2
pve-docs: 4.4-4
pve-qemu-kvm: 2.7.1-4
pve-container: 1.0-99
pve-firewall: 2.0-33
pve-ha-manager: 1.0-40
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-4
lxcfs: 2.0.6-pve1
criu: 1.6.0-1
novnc-pve: 0.5-9
smartmontools: 6.5+svn4324-1~pve80
ceph: 10.2.7-1~bpo80+1

The VM has two disks: 1-st on LVM-thin, 2-nd on ceph.
cat /etc/pve/qemu-server/201.conf
agent: 1
balloon: 512
bootdisk: scsi0
cores: 2
memory: 2048
name: smbarc
net0: virtio=4E:DE:F4:A1:1B:6D,bridge=vmbr0
net1: virtio=4E:F3:AB:33:3A:C5,bridge=vmbr2
numa: 0
ostype: l26
scsi0: lv-thin:vm-201-disk-1,format=raw,size=5G
scsi1: ceph_stor:vm-201-disk-1,backup=0,cache=writeback,discard=on,size=1950G
scsihw: virtio-scsi-pci
smbios1: uuid=7691a3ba-6c61-4cf8-bcbc-0a252765d6fc
sockets: 1
tablet: 0

I'm trying to live migrate this VM to another node from GUI:

pic_0.png

At the command prompt, this task is performed successfully:

Code:
# qm migrate 201 acn2 -online -with-local-disks -migration_type insecure
May 08 12:39:12 starting migration of VM 201 to node 'acn2' (192.168.110.24)
May 08 12:39:12 found local disk 'lv-thin:vm-201-disk-1' (in current VM config)
May 08 12:39:12 copying disk images
May 08 12:39:12 starting VM 201 on remote node 'acn2'
May 08 12:39:18 starting storage migration
May 08 12:39:18 scsi0: start migration to to nbd:192.168.110.24:60001:exportname=drive-scsi0
drive mirror is starting for drive-scsi0
drive-scsi0: transferred: 0 bytes remaining: 5368709120 bytes total: 5368709120 bytes progression: 0.00 % busy: true ready: false
drive-scsi0: transferred: 134217728 bytes remaining: 5234491392 bytes total: 5368709120 bytes progression: 2.50 % busy: true ready: false
....
drive-scsi0: transferred: 5369167872 bytes remaining: 0 bytes total: 5369167872 bytes progression: 100.00 % busy: false ready: true
all mirroring jobs are ready
May 08 12:39:56 starting online/live migration on tcp:192.168.110.24:60000
May 08 12:39:56 migrate_set_speed: 8589934592
May 08 12:39:56 migrate_set_downtime: 0.1
May 08 12:39:56 set migration_caps
May 08 12:39:56 set cachesize: 214748364
May 08 12:39:56 start migrate command to tcp:192.168.110.24:60000
May 08 12:39:58 migration speed: 51.20 MB/s - downtime 68 ms
May 08 12:39:58 migration status: completed
drive-scsi0: transferred: 5369167872 bytes remaining: 0 bytes total: 5369167872 bytes progression: 100.00 % busy: false ready: true
all mirroring jobs are ready
drive-scsi0: Completing block job...
drive-scsi0: Completed successfully.
drive-scsi0 : finished
  Logical volume "vm-201-disk-1" successfully removed
May 08 12:40:14 migration finished successfully (duration 00:01:03)

But if this VM placed in HA then this task started in command line is completed (in GUI) with the same error. :(

Best regards,
Gosha
 
Last edited:
1. you have a vm with local disks
2. the -with-local-disks option is only enabled at the cli level (at the moment)
3. using ha for a vm with local disks does not make sense (if a host is down, you cannot restart it elsewhere, because the disks are missing), so in ha migrate this option is also not enabled
 
Hi All!
Just created 3-node cluster.

The VM has two disks: 1-st on LVM-thin, 2-nd on ceph.

....

But if this VM placed in HA then this task started in command line is completed (in GUI) with the same error. :(

HA and local disks doesn't make sense. how is PVE supposed to recover this VM if the node where it is currently running fails/is fenced?
 

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!