Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

use machine type pc #529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hypervisor/libvirt/libvirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func (lc *LibvirtContext) domainXml(ctx *hypervisor.VmContext) (string, error) {

dom.OS.Supported = "yes"
dom.OS.Type.Arch = "x86_64"
dom.OS.Type.Machine = "pc-i440fx-2.1"
dom.OS.Type.Machine = "pc"
dom.OS.Type.Content = "hvm"

dom.SecLabel.Type = "none"
Expand Down
2 changes: 1 addition & 1 deletion hypervisor/qemu/qemu_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (qc *QemuContext) arguments(ctx *hypervisor.VmContext) []string {
qc.cpus = boot.CPU

var machineClass, memParams, cpuParams string
machineClass = "pc-i440fx-2.1"
machineClass = "pc"
memParams = fmt.Sprintf("size=%d,slots=1,maxmem=%dM", boot.Memory, hypervisor.DefaultMaxMem) // TODO set maxmem to the total memory of the system
cpuParams = fmt.Sprintf("cpus=%d,maxcpus=%d", boot.CPU, hypervisor.DefaultMaxCpus) // TODO set it to the cpus of the system

Expand Down