Hi There,
I've seen this raised a couple of years back (https://forum.proxmox.com/threads/migrate-vm-with-local-devices.17369/#post-88296) and I'm wondering what is the best / recommended method for migrating a VM (with Intel IGP passthrough enabled) from one node to another?
Currently, my VM has the Intel IGP passed-through to the VM (hostpci0: 00:02.0) but I can't migrate either online or offline when using HA. I have a 2-node cluster with a 3rd qdevice for quorum voting... The two hosts are not identical but both have a similar Intel IGP (with the same local Device ID of 00:02.0) and the VM itself is able to run on both nodes with the Intel IGP passed-through and working successfully...
The error I get whenever I try to migrate manually / via HA is always:
I get the error above if:
(A) VM is running on Node 2 and I change the HA profile to "Prefer Node 1"
(B) VM is stopped on Node 2 and I click "Migrate"
The only way I seem to be able to migrate the VM between Node 1 and Node 2 is to change the HA state to "Ignored", stop the VM, remove the PCI-passthrough for the Intel IGP from the VM configuration, and manually migrate it to the new Node and then re-enable the passthrough but this seems overly laborious.
I understand that the running VM may not be able to be migrated between Nodes (given the state of the underlying physical Intel IGP?) but, when the VM is stopped, I should be able to migrate it offline without having to remove/re-add the passed-through device?
Would it be possible to add a "Forced" option to GUI to allow for the VM to be either (1) Migrated online (if at all possible, with minimal downtime), or (2) To stop the VM, migrate it to the second Node and start the VM again on the new Node?
I've seen this raised a couple of years back (https://forum.proxmox.com/threads/migrate-vm-with-local-devices.17369/#post-88296) and I'm wondering what is the best / recommended method for migrating a VM (with Intel IGP passthrough enabled) from one node to another?
Currently, my VM has the Intel IGP passed-through to the VM (hostpci0: 00:02.0) but I can't migrate either online or offline when using HA. I have a 2-node cluster with a 3rd qdevice for quorum voting... The two hosts are not identical but both have a similar Intel IGP (with the same local Device ID of 00:02.0) and the VM itself is able to run on both nodes with the Intel IGP passed-through and working successfully...
The error I get whenever I try to migrate manually / via HA is always:
Code:
task started by HA resource agent
2019-06-19 12:52:12 ERROR: migration aborted (duration 00:00:00): can't migrate VM which uses local devices: hostpci0
TASK ERROR: migration aborted
I get the error above if:
(A) VM is running on Node 2 and I change the HA profile to "Prefer Node 1"
(B) VM is stopped on Node 2 and I click "Migrate"
The only way I seem to be able to migrate the VM between Node 1 and Node 2 is to change the HA state to "Ignored", stop the VM, remove the PCI-passthrough for the Intel IGP from the VM configuration, and manually migrate it to the new Node and then re-enable the passthrough but this seems overly laborious.
I understand that the running VM may not be able to be migrated between Nodes (given the state of the underlying physical Intel IGP?) but, when the VM is stopped, I should be able to migrate it offline without having to remove/re-add the passed-through device?
Would it be possible to add a "Forced" option to GUI to allow for the VM to be either (1) Migrated online (if at all possible, with minimal downtime), or (2) To stop the VM, migrate it to the second Node and start the VM again on the new Node?