[pve-devel] [PATCH qemu-server 03/13] create_vm: don't add vmgenid for ARM machines by default
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Oct 24 10:56:39 CEST 2018
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
PVE/API2/Qemu.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 52f4a5f..5a3a0a8 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -585,6 +585,8 @@ __PACKAGE__->register_method({
my $conf = $param;
+ my ($arch, undef) = PVE::QemuServer::get_basic_machine_info($conf);
+
eval {
$vollist = &$create_disks($rpcenv, $authuser, $conf, $storecfg, $vmid, $pool, $param, $storage);
@@ -599,7 +601,7 @@ __PACKAGE__->register_method({
$conf->{smbios1} = PVE::QemuServer::generate_smbios1_uuid();
}
- if (!defined($conf->{vmgenid}) || $conf->{vmgenid} eq '1') {
+ if ((!defined($conf->{vmgenid}) || $conf->{vmgenid} eq '1') && $arch ne 'arm64') {
$conf->{vmgenid} = PVE::QemuServer::generate_uuid();
}
--
2.11.0
More information about the pve-devel
mailing list