mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-30 00:30:42 +00:00
add new 'machine' configuration
This commit is contained in:
parent
1a71fa73a4
commit
3bafc5106e
@ -421,6 +421,13 @@ EODESCR
|
|||||||
type => 'string', format => 'pve-volume-id',
|
type => 'string', format => 'pve-volume-id',
|
||||||
description => "Reference to a volume which stores the VM state. This is used internally for snapshots.",
|
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 ?
|
# what about other qemu settings ?
|
||||||
@ -2377,6 +2384,10 @@ sub config_to_command {
|
|||||||
die "No accelerator found!\n" if !$cpuinfo->{hvm};
|
die "No accelerator found!\n" if !$cpuinfo->{hvm};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($conf->{machine}) {
|
||||||
|
push @$machineFlags, "type=$conf->{machine}";
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->{startdate}) {
|
if ($conf->{startdate}) {
|
||||||
push @$rtcFlags, "base=$conf->{startdate}";
|
push @$rtcFlags, "base=$conf->{startdate}";
|
||||||
} elsif ($useLocaltime) {
|
} elsif ($useLocaltime) {
|
||||||
|
Loading…
Reference in New Issue
Block a user