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

Re: [libvirt] Libvirt on power pc

On 07/18/2012 06:04 PM, B Veera-B37207 wrote:

Using command line I am able to bring up VM

Here is the command:

“/qemu-system-ppc -enable-kvm -m 512M -mem-path
/var/lib/hugetlbfs/pagesize-4MB -nographic -M ppce500v2 -kernel
/boot/uImage-p2020rdb.bin -initrd /


/./guest.rootfs.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200"
-serial tcp::4444,server,telnet -dtb /usr/share/qemu/ppce500v2.dtb -net /


/nic,model=virtio -net tap,script=/home/root/qemu-ifup/”

Can anybody let me know the libvirt xml format for above command.


I use the command:

$virsh domxml-from-native qemu-argv config

The xml file is as the following:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <memory unit='KiB'>536870912</memory>
  <currentMemory unit='KiB'>536870912</currentMemory>
  <vcpu placement='static'>1</vcpu>
    <type arch='ppc' machine='ppce500v2'>hvm</type>
    <cmdline>root=/dev/ram rw console=ttyS0,115200</cmdline>
  <clock offset='utc'/>
    <interface type='ethernet'>
      <mac address='52:54:00:ac:84:3b'/>
      <script path='/home/root/qemu-ifup'/>
      <model type='virtio'/>
    <serial type='tcp'>
      <source mode='bind' host='' service='4444'/>
      <protocol type='raw'/>
      <target port='0'/>
    <console type='tcp'>
      <source mode='bind' host='' service='4444'/>
      <protocol type='raw'/>
      <target type='serial' port='0'/>
    <memballoon model='virtio'/>
    <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'/>

I doubt whether this can work.

BTW, I am working on ppc64 for pseries machine.
The following is my xml configuration.
I think this won't work for ppce500v2, just for reference.

<domain type='kvm'>
          <type arch='ppc64' machine='pseries'>hvm</type>
      <clock offset='utc'/>
          <disk type='file' device='disk' >
              <driver name='qemu' type='raw'/>
              <source file='/home/kvm-test/fedora.img'/>
              <target dev='sda' bus='scsi'/>
          <serial type='pty'>
             <target port='0'/>
          <console type='pty'>
             <target type='serial' port='0'/>
          <memballoon model="virtio"/>




libvir-list mailing list
libvir-list redhat com

Best Regards

IBM LTC, China System&Technology Lab, Beijing

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