mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-25 06:03:52 +03:00
Make the smbios UUID unique if --unique is used.
When we clone a VM we also make the smbios unique.
This commit is contained in:
parent
8107b378c9
commit
19a5dd551d
@ -5347,6 +5347,13 @@ sub restore_update_config_line {
|
||||
} else {
|
||||
print $outfd $line;
|
||||
}
|
||||
} elsif (($line =~ m/^(smbios1: )(.*)/) && $unique) {
|
||||
my ($uuid, $uuid_str);
|
||||
UUID::generate($uuid);
|
||||
UUID::unparse($uuid, $uuid_str);
|
||||
my $smbios1 = parse_smbios1($2);
|
||||
$smbios1->{uuid} = $uuid_str;
|
||||
print $outfd $1.print_smbios1($smbios1)."\n";
|
||||
} else {
|
||||
print $outfd $line;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user