From a3271a47ca4e0251e94a47dbf1362c5c9669f072 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 8 Mar 2024 10:52:33 +0100 Subject: [PATCH] esxi: improve scsihw detection we should actually keep the scsihw even with eg. linux VMs as they might not have virtio/... in their initrd and then fail to boot Signed-off-by: Wolfgang Bumiller --- src/PVE/Storage/ESXiPlugin.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm index badb34e..1daaff8 100644 --- a/src/PVE/Storage/ESXiPlugin.pm +++ b/src/PVE/Storage/ESXiPlugin.pm @@ -968,8 +968,12 @@ sub get_create_args { # my $fullpath = "$mntdir/$path"; # return if !-e $fullpath; - if ($devtype && $devtype =~ /^lsi/i) { - $set_scsihw->('lsi'); + if ($devtype) { + if ($devtype =~ /^lsi/i) { + $set_scsihw->('lsi'); + } elsif ($devtype eq 'pvscsi') { + $set_scsihw->('pvscsi'); # same name in pve + } } my $count = $counts{$bus}++;