Machine type q35 online migration problem

dale

Renowned Member
Mar 19, 2010
34
0
71
Hello, community.

We are faced with migration problem today.

root@pr0xm3x:~# qm migrate 120 pr0xm5x --online
Mar 30 13:38:48 starting migration of VM 120 to node 'pr0xm5x' (172.26.6.221)
Mar 30 13:38:48 copying disk images
Mar 30 13:38:48 starting VM 120 on remote node 'pr0xm5x'
Mar 30 13:38:50 starting ssh migration tunnel
Mar 30 13:38:51 starting online/live migration on localhost:60000
Mar 30 13:38:51 migrate_set_speed: 8589934592
Mar 30 13:38:51 migrate_set_downtime: 0.1
Mar 30 13:38:51 spice client_migrate_info
Mar 30 13:38:51 migrate uri => tcp:localhost:60000 failed: VM 120 qmp command 'migrate' failed - State blocked by non-migratable device '0000:00:1f.2/ich9_ahci'
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/PVE/QemuMigrate.pm line 450.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/PVE/QemuMigrate.pm line 455.
Mar 30 13:38:53 ERROR: online migrate failure - VM 120 qmp command 'migrate' failed - State blocked by non-migratable device '0000:00:1f.2/ich9_ahci'
Mar 30 13:38:53 aborting phase 2 - cleanup resources
Mar 30 13:38:53 migrate_cancel
Mar 30 13:38:53 ERROR: migration finished with problems (duration 00:00:05)
migration problems

grep machine /etc/pve/nodes/pr0xm3x/qemu-server/120.conf
machine: q35



root@pr0xm3x:~# pveversion -v
proxmox-ve-2.6.32: 3.4-150 (running kernel: 3.10.0-7-pve)
pve-manager: 3.4-3 (running version: 3.4-3/2fc72fee)
pve-kernel-3.10.0-7-pve: 3.10.0-28
pve-kernel-2.6.32-37-pve: 2.6.32-150
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-2
pve-cluster: 3.0-16
qemu-server: 3.4-3
pve-firmware: 1.1-4
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-32
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.2-8
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1

Is any solution for this issue?

Thanks,

Alexander.
 
SATA is a non-migratable device.

use virtio or ide or scsi.
 
Thanks, Tom, VM hasn't any disk device.

Full config and kvm cmdline follows:

root@pr0xm3x:# cat /etc/pve/nodes/pr0xm3x/qemu-server/120.conf

#Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-2.2)
balloon: 512
boot: n
cores: 1
ide2: none,media=cdrom
localtime: 1
machine: q35
memory: 2048
name: t6
net0: virtio=EA:2C:F8:AE:5B:56,bridge=vmbr1,tag=6
net1: virtio=6E:F6:B7:18:1B:BB,bridge=vmbr1,tag=6
numa: 0
ostype: l26
smbios1: uuid=e7ca6100-759f-45b7-9d0f-9b4f809af982
sockets: 1
vga: qxl

root@pr0xm3x:~# ps axuwwwf | grep '\-id 120' | grep -v grep
root 48906 1.0 0.0 2616100 32016 ? Sl Mar30 12:46 /usr/bin/kvm -id 120 -chardev socket,id=qmp,path=/var/run/qemu-server/120.qmp,server,nowait -mon chardev=qmp,mode=control -vnc unix:/var/run/qemu-server/120.vnc,x509,password -pidfile /var/run/qemu-server/120.pid -daemonize -smbios type=1,uuid=e7ca6100-759f-45b7-9d0f-9b4f809af982 -name t6 -smp 1,sockets=1,cores=1,maxcpus=1 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000 -vga qxl -cpu kvm64,+lahf_lm,+x2apic,+sep -m 2048 -k en-us -readconfig /usr/share/qemu-server/pve-q35.cfg -spice tls-port=61010,addr=127.0.0.1,tls-ciphers=DES-CBC3-SHA,seamless-migration=on -device virtio-serial,id=spice,bus=pci.0,addr=0x9 -chardev spicevmc,id=vdagent,name=vdagent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -iscsi initiator-name=iqn.1993-08.org.debian:01:13287513 -drive if=none,id=drive-ide2,media=cdrom,aio=native -device ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2 -netdev type=tap,id=net0,ifname=tap120i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,mac=EA:2C:F8:AE:5B:56,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=100 -netdev type=tap,id=net1,ifname=tap120i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,mac=6E:F6:B7:18:1B:BB,netdev=net1,bus=pci.0,addr=0x13,id=net1,bootindex=101 -rtc base=localtime -machine type=q35




Best regard, Alexander.
 
machine: q35
...
vga: qxl

live migration does not work with q35, also spice enabled VM do not live-migrate, known issues which will be fixed in future versions.
 
I can easily do online migration here with spice enabled VM's, even with an open spice console. The only problem is that the spice console is terminated when the spice server moves from one host to the other.
 
I can easily do online migration here with spice enabled VM's, even with an open spice console. The only problem is that the spice console is terminated when the spice server moves from one host to the other.

just tested it again here and yes, works also here like you described.