mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2024-12-25 23:21:43 +03:00
hot-unplug : add some warnings for differents guest os
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
73aa03b87f
commit
9a8d6b6665
@ -647,7 +647,16 @@ my $vmconfig_delete_option = sub {
|
||||
}
|
||||
}
|
||||
|
||||
die "error hot-unplug $opt" if !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt);
|
||||
my $unplugwarning = "";
|
||||
if($conf->{ostype} && $conf->{ostype} eq 'l26'){
|
||||
$unplugwarning = "<br>verify that you have acpiphp && pci_hotplug modules loaded in your guest VM";
|
||||
}elsif($conf->{ostype} && $conf->{ostype} eq 'l24'){
|
||||
$unplugwarning = "<br>kernel 2.4 don't support hotplug, please disable hotplug in options";
|
||||
}elsif(!$conf->{ostype} || ($conf->{ostype} && $conf->{ostype} eq 'other')){
|
||||
$unplugwarning = "<br>verify that your guest support acpi hotplug";
|
||||
}
|
||||
|
||||
die "error hot-unplug $opt $unplugwarning" if !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt);
|
||||
|
||||
PVE::QemuServer::vm_deviceplug(undef, $conf, $vmid, $opt) if $opt eq 'tablet';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user