Re: Libvirt on power pc

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

 



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

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.


Hi,

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'>
  <name>unnamed</name>
  <uuid>8776233e-df27-0f2f-89b8-3e0d237a9d36</uuid>
  <memory unit='KiB'>536870912</memory>
  <currentMemory unit='KiB'>536870912</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='ppc' machine='ppce500v2'>hvm</type>
    <kernel>/boot/uImage-p2020rdb.bin</kernel>
    <initrd>./guest.rootfs.ext2.gz</initrd>
    <cmdline>root=/dev/ram rw console=ttyS0,115200</cmdline>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>qemu-system-ppc</emulator>
    <interface type='ethernet'>
      <mac address='52:54:00:ac:84:3b'/>
      <script path='/home/root/qemu-ifup'/>
      <model type='virtio'/>
    </interface>
    <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='-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>

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'>
      <name>nodebug</name>
      <memory>524288</memory>
      <memorybacking>
          <hugepages/>
      </memorybacking>
      <vcpu>1</vcpu>
      <os>
          <type arch='ppc64' machine='pseries'>hvm</type>
      </os>
      <features>
          <acpi/>
      </features>
      <clock offset='utc'/>
      <devices>
          <emulator>/usr/local/bin/qemu-system-ppc64</emulator>
          <disk type='file' device='disk' >
              <driver name='qemu' type='raw'/>
              <source file='/home/kvm-test/fedora.img'/>
              <target dev='sda' bus='scsi'/>
          </disk>
          <serial type='pty'>
             <target port='0'/>
          </serial>
          <console type='pty'>
             <target type='serial' port='0'/>
          </console>
          <memballoon model="virtio"/>
      </devices>
</domain>


Thanks~!


Regards,

Veera.




--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



--
Best Regards
Li

IBM LTC, China System&Technology Lab, Beijing


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]