[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Managed to verify that switching between pc-i440fx-trusty and -utopic will cause the svm flag to be dropped (as long as it is not forcefully enabled in the libvirt config). And my special failure seems to be caused by another oddness in qemu: while a Opteron_G4 is too recent and I would have to disable things, the Opteron_G3 which normally gets picked as a base is far too old. (the G4 is based on 62xx but G3 is based on 23xx, while I got a 61xx). The better match for my case seems "phenom" which at least sets the right cpuid_level and xlevel. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
So this quite likely might be a "feature" that got introduced with qemu 2.2: commit 75d373ef9729bd22fbc46bfd8dcd158cbf6d9777 Author: Eduardo Habkost Date: Fri Oct 3 16:39:51 2014 -0300 target-i386: Disable SVM by default in KVM mode Make SVM be disabled by default on all CPU models when in KVM mode. Nested SVM is enabled by default in the KVM kernel module, but it is probably less stable than nested VMX (which is already disabled by default). Add a new compat function, x86_cpu_compat_kvm_no_autodisable(), to keep compatibility on previous machine-types. I saw both machine types (pc-i440fx-trusty and pc-i440fx-utopic) mentioned in some xml configs. Not sure which is which. Might be worth checking the config in the currently not working case and if that is not trusty, try to replace it with that. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Did I understand this right to be a combination of roughly 14.04 (Trusty) as base with (probably both through the cloud archive) a libvirt version that appears to closest match with 15.04 (Vivid) and qemu at 15.10 (Wily) level? Unfortunately I cannot recreate the same results as I only got a fam 10h model 09h host. For that I get the svm flag inside the guest on native Trusty, Vivid, and Wily. However nested is actually broken for all as cpuid function 800a seems not implemented in any qemu version (2.0.0 +dfsg-2ubuntu1.18 ... 1:2.3+dfsg-5ubuntu6). I have to check what the G4 type (from fam 16h model 02h) would yield. Just also wondering whether in the case of not dropping svm the kvm module actually loads or also fails on cpuid 800Ah. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Adding vm xml (virsh dumpxml domain_name) and the full qemu/kvm command (ps -auxw | egrep -e '(qemu|kvm)' ) that I'm seeing along with the host and VM /proc/cpuinfo ** Attachment added: "bug_info_1494602.txt" https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+attachment/4466485/+files/bug_info_1494602.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qemu (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
no, since you've provided the information it should be reset to New, thanks :) status: new ** Changed in: qemu (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Sorry, I changed the status of this bug by accident. But should it still be 'incomplete'? ** Changed in: qemu (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
** Changed in: qemu (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Hello, here is the extra information you have asked for. Instance 37aa aka kvm id 677 is my currently running test instance, but I have given you the full ps output you have asked for. 18429 is the PID for this instance. instance-37aa 12396aff-3f84-4ceb-9791-d20cf656fb35 http://openstack.org/xmlns/libvirt/nova/1.0";> qemu9 2015-09-10 06:14:59 4096 10 0 30 1 andrew.spi...@unimelb.edu.au pt-489 4194304 4194304 1 1024 /machine OpenStack Foundation OpenStack Nova 2015.1.1-a41-g26267dc-trusty 534d4349-0002-5290-2500-529025005ccf 12396aff-3f84-4ceb-9791-d20cf656fb35 hvm destroy restart destroy /usr/bin/qemu-system-x86_64 libvirt-12396aff-3f84-4ceb-9791-d20cf656fb35 libvirt-12396aff-3f84-4ceb-9791-d20cf656fb35 root@cc3:~# ps -auxww | egrep -e '(qemu|kvm)' libvirt+ 815 0.3 0.7 8928504 1037444 ? Sl Sep10 21:43 /usr/bin/qemu-system-x86_64 -name instance-3798 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu Opteron_G4,+perfctr_nb,+perfctr_core,+topoext,+nodeid_msr,+lwp,+wdt,+skinit,+ibs,+osvw,+cr8legacy,+extapic,+cmp_legacy,+fxsr_opt,+mmxext,+osxsave,+monitor,+ht,+vme -m 4096 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid cd51f9ff-4175-4a95-abca-49fdcad12316 -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=2014.2.1-a153-g68554dc-trusty,serial=534d4349-0002-5290-2500-529025005ccf,uuid=cd51f9ff-4175-4a95-abca-49fdcad12316 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-3798.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/in stances/cd51f9ff-4175-4a95-abca-49fdcad12316/disk,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/var/lib/nova/instances/cd51f9ff-4175-4a95-abca-49fdcad12316/disk.local,if=none,id=drive-virtio-disk1,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -netdev tap,fd=28,id=hostnet0,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:f6:fa:4a,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/cd51f9ff-4175-4a95-abca-49fdcad12316/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0 -vnc 0.0.0.0:4 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -msg timestamp=on root 821 0.0 0.0 0 0 ?SSep10 0:00 [kvm-pit/815] libvirt+ 1120 0.3 0.8 8928360 1054916 ? Sl Sep10 20:30 /usr/bin/qemu-system-x86_64 -name instance-379a -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu Opteron_G4,+perfctr_nb,+perfctr_core,+topoext,+nodeid_msr,+lwp,+wdt,+skinit,+ibs,+osvw,+cr8legacy,+extapic,+cmp_legacy,+fxsr_opt,+mmxext,+osxsave,+monitor,+ht,+vme -m 4096 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 90bebf98-cc44-4b10-9c19-18bc545e4674 -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=2014.2.1-a153-g68554dc-trusty,serial=534d4349-0002-5290-2500-529025005ccf,uuid=90bebf98-cc44-4b10-9c19-18bc545e4674 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-379a.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/in stances/90bebf98-cc44-4b10-9c19-18bc545e4674/disk,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/var/lib/nova/instances/90bebf98-cc44-4b10-9c19-18bc545e4674/disk.local,if=none,id=drive-virtio-disk1,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virt
[Bug 1494602] Re: qemu-system-x86 nested virtualisation is broken on AMD system
Thanks for reporting this bug. Could you please show the vm xml (virsh dumpxml domain_name) and the full qemu/kvm command (ps -auxw | egrep -e '(qemu|kvm)' )? ** Changed in: qemu (Ubuntu) Status: New => Incomplete ** Changed in: qemu (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1494602 Title: qemu-system-x86 nested virtualisation is broken on AMD system To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1494602/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs