diff --git a/hypervisor/libvirt/libvirt.go b/hypervisor/libvirt/libvirt.go index 302229a7..a86e68e4 100644 --- a/hypervisor/libvirt/libvirt.go +++ b/hypervisor/libvirt/libvirt.go @@ -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" diff --git a/hypervisor/qemu/qemu_amd64.go b/hypervisor/qemu/qemu_amd64.go index 979b85f3..c1624dcb 100644 --- a/hypervisor/qemu/qemu_amd64.go +++ b/hypervisor/qemu/qemu_amd64.go @@ -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