** Description changed:

+ =====================================================
+ SRU Justification
+ Impact: Vms cannot be started on ppc
+ Test case: define and start a kvm vm on ppc host (as below in description)
+ Regression potential: This should cause no regressions, but qemu vms will now 
be able to read device-tree info
+ =====================================================
+ 
+ 
  virsh # define vm01.xml
  virsh # start Ubuntu-VM01
  error: Failed to start domain Ubuntu-VM01
  error: internal error: early end of file from monitor: possible problem:
  Can't open directory /proc/device-tree/cpus/
  qemu-system-ppc: -device piix3-usb-uhci,id=usb,bus=pci,addr=0x1: Bus 'pci' 
not found
  
  With or without the "controller_type "pci" > statement fails:
  
  (trusty)root@jade-rev4:/home2/qemu# cat *xml
  <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
-   <name>Ubuntu-VM01</name>
-   <uuid>38bbffe5-47e9-4a3b-84b1-1af5ff3f7194</uuid>
-   <memory unit='KiB'>1048576</memory>
-   <currentMemory unit='KiB'>1048576</currentMemory>
-   <vcpu placement='static'>1</vcpu>
-   <os>
-     <type arch='ppc' machine='ppce500'>hvm</type>
-     <kernel>/home2/qemu/jade-kernel-2.0.bin</kernel>
-     <initrd>/home2/qemu/jade-initrd-2.0.bin</initrd>
-     <cmdline>console=ttyS0</cmdline>
-   </os>
-   <clock offset='utc'/>
-   <on_poweroff>destroy</on_poweroff>
-   <on_reboot>destroy</on_reboot>
-   <on_crash>destroy</on_crash>
-   <devices>
-     <emulator>/usr/bin/qemu-system-ppc</emulator>
-     <disk type='file' device='disk'>
-       <driver name='qemu' type='raw'/>
-       <source file='/home2/qemu/jade-ubuntu-14.04.qcow2.netinstall'/>
-       <target dev='vda' bus='virtio'/>
-     </disk>
-     <controller type='usb' index='0'/>
+   <name>Ubuntu-VM01</name>
+   <uuid>38bbffe5-47e9-4a3b-84b1-1af5ff3f7194</uuid>
+   <memory unit='KiB'>1048576</memory>
+   <currentMemory unit='KiB'>1048576</currentMemory>
+   <vcpu placement='static'>1</vcpu>
+   <os>
+     <type arch='ppc' machine='ppce500'>hvm</type>
+     <kernel>/home2/qemu/jade-kernel-2.0.bin</kernel>
+     <initrd>/home2/qemu/jade-initrd-2.0.bin</initrd>
+     <cmdline>console=ttyS0</cmdline>
+   </os>
+   <clock offset='utc'/>
+   <on_poweroff>destroy</on_poweroff>
+   <on_reboot>destroy</on_reboot>
+   <on_crash>destroy</on_crash>
+   <devices>
+     <emulator>/usr/bin/qemu-system-ppc</emulator>
+     <disk type='file' device='disk'>
+       <driver name='qemu' type='raw'/>
+       <source file='/home2/qemu/jade-ubuntu-14.04.qcow2.netinstall'/>
+       <target dev='vda' bus='virtio'/>
+     </disk>
+     <controller type='usb' index='0'/>
  <!-- <controller type='pci' index='0' model='pci-root'/> -->
-     <memballoon model='virtio'/>
-   </devices>
-   <qemu:commandline>
-     <qemu:arg value='-no-shutdown'/>
-   </qemu:commandline>
+     <memballoon model='virtio'/>
+   </devices>
+   <qemu:commandline>
+     <qemu:arg value='-no-shutdown'/>
+   </qemu:commandline>
  </domain>
  
  virsh # start Ubuntu-VM01
  error: Failed to start domain Ubuntu-VM01
  error: internal error: early end of file from monitor: possible problem:
  Can't open directory /proc/device-tree/cpus/
  qemu-system-ppc: -device piix3-usb-uhci,id=usb,bus=pci,addr=0x1: Bus 'pci' 
not found
  
  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: libvirt-bin 1.2.2-0ubuntu13
  ProcVersionSignature: Ubuntu 3.13.0-24.46-powerpc-e500mc 3.13.9
  Uname: Linux 3.13.0-24-powerpc-e500mc ppc
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: powerpc
  Date: Tue May 20 11:39:39 2014
  ProcEnviron:
-  TERM=xterm
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=<set>
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=<set>
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  SourcePackage: libvirt
  UpgradeStatus: Upgraded to trusty on 2014-04-29 (21 days ago)
  modified.conffile..etc.libvirt.libvirt.conf: [modified]
  mtime.conffile..etc.libvirt.libvirt.conf: 2014-05-15T15:07:48.854124

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321365

Title:
   virsh (ppc) fails with "missing /proc/device-tree/cpu "

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1321365/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to