Add patches

This commit is contained in:
jiangcuo 2025-01-19 17:12:58 +08:00
parent 95f0028cb4
commit f87e3ab2c8
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,9 @@
diff --git a/modules-load.conf b/modules-load.conf
index aee7d42a..e0fc25b2 100644
--- a/modules-load.conf
+++ b/modules-load.conf
@@ -1 +1,4 @@
vhost_net
+kvm
+kvm_intel
+kvm_amd

View File

@ -0,0 +1,13 @@
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 5cde94a1..ed88b3b7 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3735,6 +3735,8 @@ sub config_to_command {
} else {
push @$cmd, '-smbios', "type=1,$conf->{smbios1}";
}
+ $smbios_conf->{uuid} = $conf->{pxclouduuid} if $conf->{pxclouduuid};
+ push @$cmd, '-smbios', "type=2,manufacturer=lierfang,product=pxvirt,version=20250119,serial=$smbios_conf->{uuid}";
}
if ($conf->{bios} && $conf->{bios} eq 'ovmf') {

View File

@ -15,3 +15,5 @@ patches/016-Optimizes-the-get_default_cpu_type-function.patch
patches/017-kvm-machine-check-when-vm-create.patch
patches/pxcloud/001-add-microvm-pxcloud.patch
patches/pxcloud/002-add-api-permission.patch
patches/pxcloud/003-enable-kvm-on-boot.patch
patches/pxcloud/004-add-smbios-to-checkvm.patch