Public bug reported:
I am running a vm on google cloud engine (gce)
I a trying to run some nested tests for ubuntu core 20 using ovmf and
tpm. The proble we have with this is that when using kvm we see random
reboots on the vm during first boot. If I set more than 1 cpu like in
the following example I see the random reboots much more often.
How we run the vm:
/usr/bin/qemu-system-x86_64 -smp 2 -m 4096 -machine ubuntu-q35,accel=kvm
-global ICH9-LPC.disable_s3=1 -nographic -net nic,model=virtio -net
user,hostfwd=tcp::8022-:22 -drive
file=/usr/share/OVMF/OVMF_CODE.secboot.fd,if=pflash,format=raw,unit=0,readonly=on
-drive
file=/tmp/work-dir/image/OVMF_VARS.snakeoil.fd,if=pflash,format=raw,unit=1
-chardev socket,id=chrtpm,path=/var/snap/swtpm-mvo/current/swtpm-sock -tpmdev
emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0 -drive
file=/tmp/work-dir/image/ubuntu-core-new.img,cache=none,format=raw,id=disk1,if=none
-device virtio-blk-pci,drive=disk1,bootindex=1 -monitor
tcp:127.0.0.1:8888,server,nowait -usb
When using only 1 cpu (-smp 1) there are less reboots bet then when
running test if the cpu of qemu arrives to 100% then the machine also
starts rebooting
Error I see in logs:
Every time the machine is rebooted I see this line in the journal logs:
Apr 14 18:35:57 apr141722-614284 kernel: kvm [62484]: vcpu0, guest rIP:
0xffffffffbc4788b4 disabled perfctr wrmsr: 0xc2 data 0xffff
The reboots are not happening when kvm is not used.
Thanks
** Affects: kvm (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872803
Title:
VM reboots using qemu and kvm with ovmf
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/1872803/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs