mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-25 23:21:29 +03:00
Allow vm migration if the VM have PCI devices and is in poff state (#3291)
This commit is contained in:
parent
fe39e53054
commit
0d8d34645e
@ -1244,7 +1244,7 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
|
||||
vm->get_requirements(cpu, mem, disk, pci);
|
||||
|
||||
if ((pci.size() > 0) && !poffmgr)
|
||||
if ((pci.size() > 0) && (!poffmgr && vm->get_state() != VirtualMachine::POWEROFF))
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user