[pve-devel] [PATCH] allow migration with usbhost device
Alexandre Derumier
aderumier at odiso.com
Thu Feb 4 16:04:03 CET 2016
We can migrate a vm with a usbhost device plugged without any problem.
If the target server don't have the usb device, the device is unplugged on target vm
If the target server have same kind of usb device (same vendor:productid or same usb port),
it's transparent for the vm.
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
Reported-by: Edouard Bru <ebru at unicoque.com>
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 14a18f0..fbd4830 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2297,7 +2297,7 @@ sub check_local_resources {
next if $k =~ m/^usb/ && ($conf->{$k} eq 'spice');
# sockets are safe: they will recreated be on the target side post-migrate
next if $k =~ m/^serial/ && ($conf->{$k} eq 'socket');
- $loc_res = 1 if $k =~ m/^(usb|hostpci|serial|parallel)\d+$/;
+ $loc_res = 1 if $k =~ m/^(hostpci|serial|parallel)\d+$/;
}
die "VM uses local resources\n" if $loc_res && !$noerr;
--
2.1.4
More information about the pve-devel
mailing list