clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
517 stars 27 forks source link

QEMU broken on Clear 32350 in Azure environment #1764

Open bktan8 opened 4 years ago

bktan8 commented 4 years ago

$ 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.

ahkok commented 4 years ago

Works fine on Clear 30770.

Is this before the major qemu version update I did a few weeks back?

ahkok commented 4 years ago

https://www.mail-archive.com/qemu-devel@nongnu.org/msg665065.html

ahkok commented 4 years ago

Try this:

bktan8 commented 4 years ago

Here'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

phmccarty commented 4 years ago

@bktan8 I think -vmx is a modifier for the -cpu option, specified as -cpu host,-vmx ...

bktan8 commented 4 years ago

Thanks @phmccarty - that works!

mbelluzzo commented 4 years ago

@bktan8 can this be closed?

bktan8 commented 4 years ago

@miguelinux - should we add the -vmx modifier to the start_qemu.sh script?