Re: [f20] Problem with libvirt + Xen XL toolstack

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

 



On Thu, Nov 13, 2014 at 1:08 AM, Jim Fehlig <jfehlig@xxxxxxxx> wrote:
>
> Can you provide
>

Sure!

> 1. the config you use with xl

name = "testvm"
uuid = "93f08541-bfd5-4ac4-851d-c619a4516a13"
kernel = "/usr/lib/xen/boot/hvmloader"
builder = "hvm"
maxmem = 3072
memory = 2048
vcpus = 1
on_crash = "restart"
disk = [ "file:/root/images/test.img,hda,w",
"file:/root/iso/CentOS-7.0-1406-x86_64-Minimal.iso,hdc:cdrom,r" ]
vif = [ "bridge=xenbr0,script=vif-bridge" ]
boot = "cd"
sdl = 0
vnc = 1
vncunused = 1
xen_platform_pci = 1


> 2. the XML config you use with libvirt

<domain type='xen'>
  <name>testvm</name>
  <uuid>93f08541-bfd5-4ac4-851d-c619a4516a13</uuid>
  <memory unit='KiB'>3145728</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
<!--
    <boot dev='hd'/>
-->
  </os>
  <clock offset='variable' adjustment='0' basis='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <disk type='file' device='disk'>
<!--
      <driver name='file'/>
-->
      <driver name='qemu'/>
      <source file='/root/images/test.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='file' device='cdrom'>
<!--
      <driver name='file'/>
-->
      <driver name='qemu'/>
      <source file='/root/iso/CentOS-7.0-1406-x86_64-Minimal.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='bridge'>
      <mac address='00:00:00:00:00:00'/>
      <source bridge='xenbr0'/>
      <script path='vif-bridge'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
  </devices>
</domain>


> 3. the qemu command line libxl generated for each case?

QEMU command for "xl create testvm.cfg":

 /usr/lib/xen/bin/qemu-dm -d 11 -domain-name testvm -vnc 127.0.0.1:0
-vncunused -videoram 8 -boot cd -acpi -vcpu_avail 0x01 -net
nic,vlan=0,macaddr=00:16:3e:5c:c2:5a,model=rtl8139 -net
tap,vlan=0,ifname=vif11.0-emu,bridge=xenbr0,script=no,downscript=no -M
xenfv

QEMU command for "virsh create testvm.xml":

/usr/lib/xen/bin/qemu-dm -d 12 -domain-name testvm -vnc 127.0.0.1:1
-videoram 8 -boot c -vcpu_avail 0x01 -net none -M xenfv


Thanks so much.

Best,

-- Marco
--
xen mailing list
xen@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/xen





[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux