Re: [Kernel-packages] [Qemu-devel] [Bug 1563887] Re: qemu-system-ppc64 freezes on starting image on ppc64le
Quoting Mike Rushton (2016-04-05 17:22:24) > Sorry, I copied the wrong thing: > > sudo qemu-system-ppc64 -enable-kvm -m 256 -display none -nographic -net nic > -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 -machine pseries > -drive file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive > file=seed.iso,if=virtio > ioctl(KVM_CREATE_VM) failed: 22 Invalid argument > failed to initialize KVM: Invalid argument Can you post the output of this from the host? cat /proc/cpuinfo | grep platform If it reports "PowerNV" then things should be working, so the error needs investigation. If it reports "pSeries", then that's not a normally supported scenario for running KVM (since your host is already running as virtualized pSeries partition running on top of the pHyp hypervisor rather than KVM). You *might* have KVM support via 'PR' mode as opposed to the normal 'HV' mode, but that's generally used to do nested virtualization on top of a KVM HV guest. To do it on top of a pHyp guest partition is probably not something that's been actively tested. I'd assume you're using PowerNV host, but you mentioned "PowerVM" earlier which is synonymous with pHyp, so it warrants confirming. > > -- > You received this bug notification because you are a member of qemu- > devel-ml, which is subscribed to QEMU. > https://bugs.launchpad.net/bugs/1563887 > > Title: > qemu-system-ppc64 freezes on starting image on ppc64le > > Status in QEMU: > New > Status in linux package in Ubuntu: > Confirmed > Status in livecd-rootfs package in Ubuntu: > New > Status in qemu package in Ubuntu: > Confirmed > > Bug description: > qemu-system-ppc64 running on Ubuntu 16.04 beta-2 fails to start an > image as part of the certification process. This on an IBM ppc64le in > PowerVM mode running Ubuntu 16.04 beta-2 deployed by MAAS 1.9.1. There > is no error output. > > ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -m 256 -display none -nographic > -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 > -machine pseries -drive > file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive > file=seed.iso,if=virtio > WARNING: Image format was not specified for 'seed.iso' and probing guessed > raw. > Automatically detecting the format is dangerous for raw images, > write operations on block 0 will be restricted. > Specify the 'raw' format explicitly to remove the restrictions. > > SLOF ** > QEMU Starting > Build Date = Jan 29 2016 18:58:37 > FW Version = buildd@ release 20151103 > Press "s" to enter Open Firmware. > > Populating /vdevice methods > Populating /vdevice/vty@7100 > Populating /vdevice/nvram@7101 > Populating /vdevice/l-lan@7102 > Populating /vdevice/v-scsi@7103 > SCSI: Looking for devices > 8200 CD-ROM : "QEMU QEMU CD-ROM 2.5+" > Populating /pci@8002000 > 00 1800 (D) : 1af4 1001virtio [ block ] > 00 1000 (D) : 1af4 1001virtio [ block ] > 00 0800 (D) : 106b 003fserial bus [ usb-ohci ] > 00 (D) : 1234 qemu vga > No NVRAM common partition, re-initializing... > Installing QEMU fb > > Scanning USB > OHCI: initializing > USB Keyboard > USB mouse > No console specified using screen & keyboard > > Welcome to Open Firmware > > Copyright (c) 2004, 2011 IBM Corporation All rights reserved. > This program and the accompanying materials are made available > under the terms of the BSD License available at > http://www.opensource.org/licenses/bsd-license.php > > Trying to load: from: /pci@8002000/scsi@3 ... > E3404: Not a bootable device! > Trying to load: from: /pci@8002000/scsi@2 ... Successfully loaded > Linux ppc64le > #31-Ubuntu SMP F > > ProblemType: Bug > DistroRelease: Ubuntu 16.04 > Package: qemu-system-ppc 1:2.5+dfsg-5ubuntu6 > ProcVersionSignature: Ubuntu 4.4.0-16.32-generic 4.4.6 > Uname: Linux 4.4.0-16-generic ppc64le > ApportVersion: 2.20-0ubuntu3 > Architecture: ppc64el > Date: Wed Mar 30 14:10:01 2016 > KvmCmdLine: > COMMAND STAT EUID RUID PID PPID %CPU COMMAND > kvm-irqfd-clean S< 0 0 1172 2 0.0 [kvm-irqfd-clean] > qemu-nbdSsl 0 0 13467 1 0.0 qemu-nbd -c /dev/nbd0 > xenial-server-cloudimg-ppc64el-disk1.img > qemu-system-ppc Sl+ 1000 1000 18973 18896 101 qemu-system-ppc64 -m 256 > -display none -nographic -net nic -net > user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 -machine pseries > -drive file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive > file=seed.iso,if=virtio > Lsusb: Error: command ['lsusb'] failed with exit code 1: > ProcEnviron: > TERM=xterm > PATH=(custom, no user) >
Re: [Kernel-packages] [Qemu-devel] [Bug 1563887] Re: qemu-system-ppc64 freezes on starting image on ppc64le
Quoting Mike Rushton (2016-04-05 16:47:29) > @mdroth > > I don't think PPC supports kvm the same way as x86: > > ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -enable-kvm -m 256 -display none > -nographic -net nic -net > user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 -machine pseries > -drive file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive > file=seed.iso,if=virtio > Could not access KVM kernel module: Permission denied > failed to initialize KVM: Permission denied -enable-kvm should work as expected on Power machines that support KVM. You seem to be running the command as a normal user. KVM generally requires a priviledged user. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1563887 Title: qemu-system-ppc64 freezes on starting image on ppc64le Status in QEMU: New Status in linux package in Ubuntu: Confirmed Status in livecd-rootfs package in Ubuntu: New Status in qemu package in Ubuntu: Confirmed Bug description: qemu-system-ppc64 running on Ubuntu 16.04 beta-2 fails to start an image as part of the certification process. This on an IBM ppc64le in PowerVM mode running Ubuntu 16.04 beta-2 deployed by MAAS 1.9.1. There is no error output. ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -m 256 -display none -nographic -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 -machine pseries -drive file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive file=seed.iso,if=virtio WARNING: Image format was not specified for 'seed.iso' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. SLOF ** QEMU Starting Build Date = Jan 29 2016 18:58:37 FW Version = buildd@ release 20151103 Press "s" to enter Open Firmware. Populating /vdevice methods Populating /vdevice/vty@7100 Populating /vdevice/nvram@7101 Populating /vdevice/l-lan@7102 Populating /vdevice/v-scsi@7103 SCSI: Looking for devices 8200 CD-ROM : "QEMU QEMU CD-ROM 2.5+" Populating /pci@8002000 00 1800 (D) : 1af4 1001virtio [ block ] 00 1000 (D) : 1af4 1001virtio [ block ] 00 0800 (D) : 106b 003fserial bus [ usb-ohci ] 00 (D) : 1234 qemu vga No NVRAM common partition, re-initializing... Installing QEMU fb Scanning USB OHCI: initializing USB Keyboard USB mouse No console specified using screen & keyboard Welcome to Open Firmware Copyright (c) 2004, 2011 IBM Corporation All rights reserved. This program and the accompanying materials are made available under the terms of the BSD License available at http://www.opensource.org/licenses/bsd-license.php Trying to load: from: /pci@8002000/scsi@3 ... E3404: Not a bootable device! Trying to load: from: /pci@8002000/scsi@2 ... Successfully loaded Linux ppc64le #31-Ubuntu SMP F ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: qemu-system-ppc 1:2.5+dfsg-5ubuntu6 ProcVersionSignature: Ubuntu 4.4.0-16.32-generic 4.4.6 Uname: Linux 4.4.0-16-generic ppc64le ApportVersion: 2.20-0ubuntu3 Architecture: ppc64el Date: Wed Mar 30 14:10:01 2016 KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND kvm-irqfd-clean S< 0 0 1172 2 0.0 [kvm-irqfd-clean] qemu-nbdSsl 0 0 13467 1 0.0 qemu-nbd -c /dev/nbd0 xenial-server-cloudimg-ppc64el-disk1.img qemu-system-ppc Sl+ 1000 1000 18973 18896 101 qemu-system-ppc64 -m 256 -display none -nographic -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 -machine pseries -drive file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive file=seed.iso,if=virtio Lsusb: Error: command ['lsusb'] failed with exit code 1: ProcEnviron: TERM=xterm PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinux-4.4.0-16-generic root=UUID=92d820c8-ab25-497b-9b1e-f1435992bbf3 ro ProcLoadAvg: 1.08 0.94 0.58 2/616 19571 ProcLocks: 1: POSIX ADVISORY WRITE 886 00:13:381 0 EOF 2: POSIX ADVISORY WRITE 1339 00:13:528 0 EOF 3: FLOCK ADVISORY WRITE 1284 00:13:522 0 EOF 4: POSIX ADVISORY WRITE 2281 00:13:563 0 EOF 5: POSIX ADVISORY WRITE 1331 00:13:536 0 EOF ProcSwaps: Filename TypeSizeUsedPriority /swap.img file 8388544 0 -1 ProcVersion: Linux version 4.4.0-16-generic (buildd@bos01-ppc64el-001) (gcc version 5.3.1 20160320 (Ubunt
Re: [Kernel-packages] [Qemu-devel] [Bug 1563887] Re: qemu-system-ppc64 freezes on starting image on ppc64le
Quoting Mike Rushton (2016-04-05 13:10:17) > ubuntu@alpine01:~$ sudo ppc64_cpu --smt=1 > ubuntu@alpine01:~$ ppc64_cpu --info > Core 0:0*1 2 3 4 5 6 7 > Core 1:8*9101112131415 > Core 2: 16* 17181920212223 > Core 3: 24* 25262728293031 > Core 4: 32* 33343536373839 > Core 5: 40* 41424344454647 > Core 6: 48* 49505152535455 > Core 7: 56* 57585960616263 > > ubuntu@alpine01:~$ sudo ppc64_cpu --smt > SMT is off > > > Still freezing at the same point. > > Bug description: > qemu-system-ppc64 running on Ubuntu 16.04 beta-2 fails to start an > image as part of the certification process. This on an IBM ppc64le in > PowerVM mode running Ubuntu 16.04 beta-2 deployed by MAAS 1.9.1. There > is no error output. > > ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -m 256 -display none -nographic > -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 > -machine pseries -drive > file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive > file=seed.iso,if=virtio > WARNING: Image format was not specified for 'seed.iso' and probing guessed > raw. > Automatically detecting the format is dangerous for raw images, > write operations on block 0 will be restricted. > Specify the 'raw' format explicitly to remove the restrictions. Unless things are different with Ubuntu, I don't think KVM is enabled by default. Try your command with -enable-kvm to be sure. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1563887 Title: qemu-system-ppc64 freezes on starting image on ppc64le Status in QEMU: New Status in linux package in Ubuntu: Confirmed Status in livecd-rootfs package in Ubuntu: New Status in qemu package in Ubuntu: Confirmed Bug description: qemu-system-ppc64 running on Ubuntu 16.04 beta-2 fails to start an image as part of the certification process. This on an IBM ppc64le in PowerVM mode running Ubuntu 16.04 beta-2 deployed by MAAS 1.9.1. There is no error output. ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -m 256 -display none -nographic -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 -machine pseries -drive file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive file=seed.iso,if=virtio WARNING: Image format was not specified for 'seed.iso' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. SLOF ** QEMU Starting Build Date = Jan 29 2016 18:58:37 FW Version = buildd@ release 20151103 Press "s" to enter Open Firmware. Populating /vdevice methods Populating /vdevice/vty@7100 Populating /vdevice/nvram@7101 Populating /vdevice/l-lan@7102 Populating /vdevice/v-scsi@7103 SCSI: Looking for devices 8200 CD-ROM : "QEMU QEMU CD-ROM 2.5+" Populating /pci@8002000 00 1800 (D) : 1af4 1001virtio [ block ] 00 1000 (D) : 1af4 1001virtio [ block ] 00 0800 (D) : 106b 003fserial bus [ usb-ohci ] 00 (D) : 1234 qemu vga No NVRAM common partition, re-initializing... Installing QEMU fb Scanning USB OHCI: initializing USB Keyboard USB mouse No console specified using screen & keyboard Welcome to Open Firmware Copyright (c) 2004, 2011 IBM Corporation All rights reserved. This program and the accompanying materials are made available under the terms of the BSD License available at http://www.opensource.org/licenses/bsd-license.php Trying to load: from: /pci@8002000/scsi@3 ... E3404: Not a bootable device! Trying to load: from: /pci@8002000/scsi@2 ... Successfully loaded Linux ppc64le #31-Ubuntu SMP F ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: qemu-system-ppc 1:2.5+dfsg-5ubuntu6 ProcVersionSignature: Ubuntu 4.4.0-16.32-generic 4.4.6 Uname: Linux 4.4.0-16-generic ppc64le ApportVersion: 2.20-0ubuntu3 Architecture: ppc64el Date: Wed Mar 30 14:10:01 2016 KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND kvm-irqfd-clean S< 0 0 1172 2 0.0 [kvm-irqfd-clean] qemu-nbdSsl 0 0 13467 1 0.0 qemu-nbd -c /dev/nbd0 xenial-server-cloudimg-ppc64el-disk1.img qemu-system-ppc Sl+ 1000 1000 18973 18896 101 qemu-system-ppc64 -m 256 -display none -nographic -net nic -net user,net
Re: [Kernel-packages] [Qemu-devel] [Bug 1563887] Re: qemu-system-ppc64 freezes on starting image on ppc64le
Quoting Mike Rushton (2016-04-04 09:49:29) > ubuntu@alpine01:~$ ppc64_cpu --info > Core 0:0*1*2*3*4*5*6*7* > Core 1:8*9* 10* 11* 12* 13* 14* 15* > Core 2: 16* 17* 18* 19* 20* 21* 22* 23* > Core 3: 24* 25* 26* 27* 28* 29* 30* 31* > Core 4: 32* 33* 34* 35* 36* 37* 38* 39* > Core 5: 40* 41* 42* 43* 44* 45* 46* 47* > Core 6: 48* 49* 50* 51* 52* 53* 54* 55* > Core 7: 56* 57* 58* 59* 60* 61* 62* 63* > ubuntu@alpine01:~$ ppc64_cpu --smt off > SMT=8 > ubuntu@alpine01:~$ ppc64_cpu --info > Core 0:0*1*2*3*4*5*6*7* > Core 1:8*9* 10* 11* 12* 13* 14* 15* > Core 2: 16* 17* 18* 19* 20* 21* 22* 23* > Core 3: 24* 25* 26* 27* 28* 29* 30* 31* > Core 4: 32* 33* 34* 35* 36* 37* 38* 39* > Core 5: 40* 41* 42* 43* 44* 45* 46* 47* > Core 6: 48* 49* 50* 51* 52* 53* 54* 55* > Core 7: 56* 57* 58* 59* 60* 61* 62* 63* Yah, this is not right. I think the command you need is actually: ppc64_cpu --smt=1 I don't know if this is the root cause, but I would not expect things to work in general without SMT=1 > > Still freezing at the same point: > > Trying to load: from: disk ... Successfully loaded > * finddevice /memory grub workaround * > * finddevice /memory grub workaround * > * finddevice /memory grub workaround * > Linux ppc64le > #31-Ubuntu SMP F > > > This is running on an LPAR in PowerNV mode. > > -- > You received this bug notification because you are a member of qemu- > devel-ml, which is subscribed to QEMU. > https://bugs.launchpad.net/bugs/1563887 > > Title: > qemu-system-ppc64 freezes on starting image on ppc64le > > Status in QEMU: > New > Status in linux package in Ubuntu: > Confirmed > Status in qemu package in Ubuntu: > Confirmed > > Bug description: > qemu-system-ppc64 running on Ubuntu 16.04 beta-2 fails to start an > image as part of the certification process. This on an IBM ppc64le in > PowerVM mode running Ubuntu 16.04 beta-2 deployed by MAAS 1.9.1. There > is no error output. > > ubuntu@alpine01:~/kvm$ qemu-system-ppc64 -m 256 -display none -nographic > -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::-:22 > -machine pseries -drive > file=xenial-server-cloudimg-ppc64el-disk1.img,if=virtio -drive > file=seed.iso,if=virtio > WARNING: Image format was not specified for 'seed.iso' and probing guessed > raw. > Automatically detecting the format is dangerous for raw images, > write operations on block 0 will be restricted. > Specify the 'raw' format explicitly to remove the restrictions. > > SLOF ** > QEMU Starting > Build Date = Jan 29 2016 18:58:37 > FW Version = buildd@ release 20151103 > Press "s" to enter Open Firmware. > > Populating /vdevice methods > Populating /vdevice/vty@7100 > Populating /vdevice/nvram@7101 > Populating /vdevice/l-lan@7102 > Populating /vdevice/v-scsi@7103 > SCSI: Looking for devices > 8200 CD-ROM : "QEMU QEMU CD-ROM 2.5+" > Populating /pci@8002000 > 00 1800 (D) : 1af4 1001virtio [ block ] > 00 1000 (D) : 1af4 1001virtio [ block ] > 00 0800 (D) : 106b 003fserial bus [ usb-ohci ] > 00 (D) : 1234 qemu vga > No NVRAM common partition, re-initializing... > Installing QEMU fb > > Scanning USB > OHCI: initializing > USB Keyboard > USB mouse > No console specified using screen & keyboard > > Welcome to Open Firmware > > Copyright (c) 2004, 2011 IBM Corporation All rights reserved. > This program and the accompanying materials are made available > under the terms of the BSD License available at > http://www.opensource.org/licenses/bsd-license.php > > Trying to load: from: /pci@8002000/scsi@3 ... > E3404: Not a bootable device! > Trying to load: from: /pci@8002000/scsi@2 ... Successfully loaded > Linux ppc64le > #31-Ubuntu SMP F > > ProblemType: Bug > DistroRelease: Ubuntu 16.04 > Package: qemu-system-ppc 1:2.5+dfsg-5ubuntu6 > ProcVersionSignature: Ubuntu 4.4.0-16.32-generic 4.4.6 > Uname: Linux 4.4.0-16-generic ppc64le > ApportVersion: 2.20-0ubuntu3 > Architecture: ppc64el > Date: Wed Mar 30 14:10:01 2016 > KvmCmdLine: > COMMAND STAT EUID RUID PID PPID %CPU COMMAND > kvm-irqfd-clean S< 0 0 1172 2 0.0 [kvm-irqfd-clean] > qemu-nbdSsl 0 0 13467 1 0.0 qemu-nbd -c /dev/nbd0 > xenial-server-cloudimg-ppc64el-disk1.img > qemu-system-ppc Sl+ 1000 1000 18973