[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] Unable to start VM Libvirt-0.9.13



Hi Daniel,

 

I am unable to start VM

 

Lbvirt Version :

Compiled against library: libvir 0.9.13

Using library: libvir 0.9.13

Using API: QEMU 0.9.13

Running hypervisor: QEMU 1.0.0

 

Here is my command:

 

LC_ALL=C PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin HOME=/home/root USER=root LOGNAME=root /usr/bin/qemu-system-ppc -name new -M ppce500v2 -enable-kvm -m 256 -smp 1,sockets=1,cores=1,threads=1 -uuid eebd22bb-c1db-da23-ca6d-f54c9c23282f -nographic -nodefconfig -nodefaults -rtc base=utc -no-shutdown -kernel /boot/uImage-p2020rdb.bin -initrd /home/root/guest.rootfs.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200" -serial tcp::4444,server,telnet -chardev socket,id=charserial0,host=,port=4444,path=/usr/local/var/lib/libvirt/qemu/new.monitor,server,nowait -device virtio-balloon-pci,id=balloon0 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/usr/local/var/lib/libvirt/qemu/new.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb -netdev tap,script=/home/root/qemu-ifup,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:fa:d4:84 -mem-path /var/lib/hugetlbfs/pagesize-4MB -dtb /usr/share/qemu/ppce500v2.dtb

 

I am able to start VM using above command, but when I convert to xml I unable to start VM

 

XML File:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

  <name>new</name>

  <uuid>eebd22bb-c1db-da23-ca6d-f54c9c23282f</uuid>

  <memory unit='KiB'>262144</memory>

  <currentMemory unit='KiB'>262144</currentMemory>

  <vcpu placement='static'>1</vcpu>

  <os>

    <type arch='ppc' machine='ppce500v2'>hvm</type>

    <kernel>/boot/uImage-p2020rdb.bin</kernel>

    <initrd>/home/root/guest.rootfs.ext2.gz</initrd>

    <cmdline>root=/dev/ram rw console=ttyS0,115200</cmdline>

  </os>

  <features>

    <acpi/>

  </features>

  <cpu>

    <topology sockets='1' cores='1' threads='1'/>

  </cpu>

  <clock offset='utc'/>

  <on_poweroff>destroy</on_poweroff>

  <on_reboot>restart</on_reboot>

  <on_crash>destroy</on_crash>

  <devices>

    <emulator>/usr/bin/qemu-system-ppc</emulator>

    <serial type='tcp'>

      <source mode='bind' host='' service='4444'/>

      <protocol type='raw'/>

      <target port='0'/>

    </serial>

    <console type='tcp'>

      <source mode='bind' host='' service='4444'/>

      <protocol type='raw'/>

      <target type='serial' port='0'/>

    </console>

    <memballoon model='virtio'/>

  </devices>

  <qemu:commandline>

    <qemu:arg value='-nodefconfig'/>

    <qemu:arg value='-nodefaults'/>

    <qemu:arg value='-rtc'/>

    <qemu:arg value='base=utc'/>

    <qemu:arg value='-no-shutdown'/>

    <qemu:arg value='-chardev'/>

    <qemu:arg value='socket,id=charserial0,host=,port=4444,path=/usr/local/var/lib/libvirt/qemu/new.monitor,server,nowait'/>

    <qemu:arg value='-device'/>

    <qemu:arg value='virtio-balloon-pci,id=balloon0'/>

    <qemu:arg value='-nodefconfig'/>

    <qemu:arg value='-nodefaults'/>

    <qemu:arg value='-chardev'/>

    <qemu:arg value='socket,id=charmonitor,path=/usr/local/var/lib/libvirt/qemu/new.monitor,server,nowait'/>

    <qemu:arg value='-mon'/>

    <qemu:arg value='chardev=charmonitor,id=monitor,mode=control'/>

    <qemu:arg value='-rtc'/>

    <qemu:arg value='base=utc'/>

    <qemu:arg value='-no-shutdown'/>

    <qemu:arg value='-device'/>

    <qemu:arg value='piix3-usb-uhci,id=usb'/>

    <qemu:arg value='-netdev'/>

    <qemu:arg value='tap,script=/home/root/qemu-ifup,id=hostnet0'/>

    <qemu:arg value='-device'/>

    <qemu:arg value='virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:fa:d4:84'/>

    <qemu:arg value='-mem-path'/>

    <qemu:arg value='/var/lib/hugetlbfs/pagesize-4MB'/>

    <qemu:arg value='-dtb'/>

    <qemu:arg value='/usr/share/qemu/ppce500v2.dtb'/>

  </qemu:commandline>

</domain>

 

 

Error:

“internal error process exited while connecting to monitor: qemu-system-ppc: -dev

ice piix3-usb-uhci,id=usb,bus=pci,addr=0x1.0x2: Bus 'pci' not found”

 

 

Regards,

Veera.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]