Open bktan8 opened 4 years ago
Works fine on Clear 30770.
Is this before the major qemu version update I did a few weeks back?
Try this:
sudo modprobe msr
-vmx
to the startup line of qemuHere's the startup line:
qemu-system-x86_64 \ -enable-kvm \ -vmx \ ${UEFI_BIOS} \ -smp sockets=1,cpus=4,cores=2 -cpu host \ -m 1024 \ -vga none -nographic \ -drive file="$IMAGE",if=virtio,aio=threads,format=raw \ -netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 \ -device virtio-net-pci,netdev=mynet0 \ -device virtio-rng-pci \ -debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
Here's the result:
qemu-system-x86_64: -vmx: invalid option
@bktan8 I think -vmx
is a modifier for the -cpu
option, specified as -cpu host,-vmx ...
Thanks @phmccarty - that works!
@bktan8 can this be closed?
@miguelinux - should we add the -vmx modifier to the start_qemu.sh script?
$ sudo ./start_qemu.sh clear-32350-kvm.img
qemu-system-x86_64: error: failed to set MSR 0x48b to 0x11582e00000000 qemu-system-x86_64: /builddir/build/BUILD/qemu-4.2.0/target/i386/kvm.c:2947: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. ./start_qemu.sh: line 66: 1691 Aborted (core dumped) qemu-system-x86_64 -enable-kvm ${UEFI_BIOS} -smp sockets=1,cpus=4,cores=2 -cpu host -m 1024 -vga none -nographic -drive file="$IMAGE",if=virtio,aio=threads,format=raw -netdev user,id=mynet0,hostfwd=tcp::${VMN}0022-:22,hostfwd=tcp::${VMN}2375-:2375 -device virtio-net-pci,netdev=mynet0 -device virtio-rng-pci -debugcon file:debug.log -global isa-debugcon.iobase=0x402 $@
Works fine on Clear 30770.