mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-14 00:38:08 +00:00
nic hotplug : use pxe roms for older machinetype
we want to avoid mix some nics with pxe rom and other with efi rom. Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
249c4a6c75
commit
8718099ce4
@ -3337,7 +3337,12 @@ sub vm_deviceplug {
|
||||
} elsif ($deviceid =~ m/^(net)(\d+)$/) {
|
||||
|
||||
return undef if !qemu_netdevadd($vmid, $conf, $device, $deviceid);
|
||||
my $netdevicefull = print_netdevice_full($vmid, $conf, $device, $deviceid);
|
||||
|
||||
my $machine_type = PVE::QemuServer::qemu_machine_pxe($vmid, $conf);
|
||||
my $use_old_bios_files = undef;
|
||||
($use_old_bios_files, $machine_type) = qemu_use_old_bios_files($machine_type);
|
||||
|
||||
my $netdevicefull = print_netdevice_full($vmid, $conf, $device, $deviceid, undef, $use_old_bios_files);
|
||||
qemu_deviceadd($vmid, $netdevicefull);
|
||||
eval { qemu_deviceaddverify($vmid, $deviceid); };
|
||||
if (my $err = $@) {
|
||||
|
Loading…
Reference in New Issue
Block a user