5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-25 06:03:52 +03:00

add new 'machine' configuration

This commit is contained in:
Dietmar Maurer 2013-06-05 09:18:23 +02:00
parent 1a71fa73a4
commit 3bafc5106e

View File

@ -421,6 +421,13 @@ EODESCR
type => 'string', format => 'pve-volume-id',
description => "Reference to a volume which stores the VM state. This is used internally for snapshots.",
},
machine => {
description => "Specific the Qemu machine type.",
type => 'string',
pattern => '(pc|pc(-i440fx)?-\d+\.\d+|q35|pc-q35-\d+\.\d+)',
maxLength => 40,
optional => 1,
},
};
# what about other qemu settings ?
@ -2377,6 +2384,10 @@ sub config_to_command {
die "No accelerator found!\n" if !$cpuinfo->{hvm};
}
if ($conf->{machine}) {
push @$machineFlags, "type=$conf->{machine}";
}
if ($conf->{startdate}) {
push @$rtcFlags, "base=$conf->{startdate}";
} elsif ($useLocaltime) {