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

Re: [Xen-users] Does anyone create HVM with libvirt successfully with xl of Xen 4.3+



ï
Hi Chris,
     Today, I recompiled Xen 4.4 with libvirt 1.2.2 and I made it work for HVM domU now.
     Thank you very much!
     However, I found another problem, spice related libvirt confg  does not take effect.
     Have you ever tried SPICE related configuraton?
 

Best Regards

From: Chris
Date: 2014-04-04 06:20
Subject: Re: [Xen-users] Does anyone create HVM with libvirt successfully with xl of Xen 4.3+
On Mon, 31 Mar 2014 11:24:38 +0800
"kevin.zhang@xxxxxxxxxxx" <kevin.zhang@xxxxxxxxxxx> wrote:
 
> Hi, Everyone,
>
>        I sent a email about questions on libvirt configuration guide for Xen 4.4, but received no further information.
>        Could anyone give me any libvirt examples to make libvirt create HVM vm based on xen 4.4-xl?
>        Thank you very much!
>
>
 
 
Hi,
 
This example works with Xen 4.4.0, Libvirt 1.2.2 and Openvswitch 2.0.0 :
 
<domain type='xen'>
  <name>example</name>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='network'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
    <hap/>
  </features>
  <clock offset='variable' adjustment='0' basis='utc'>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/lib/xen/bin/qemu-system-i386</emulator>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/vg/example-disk'/>
      <target dev='xvda' bus='xen'/>
    </disk>
    <interface type='bridge'>
      <mac address='00:16:3e:xx:xx:xx'/>
      <source bridge='xenbr0'/>
      <script path='/etc/xen/scripts/vif-openvswitch'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='fr'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>
 
Be advised that "listen='0.0.0.0'" in the VNC config doesn't work with a HVM domU and libxl driver in libvirt < 1.2.3. The QEMU process listens on 127.0.0.1 instead of 0.0.0.0.
There's a patch in libvirt 1.2.3 (http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=b55cc5f4e31b488c4f9c3c8470c992c1f8f5d09c) but I encountered libvirtd segfaults with it ... Backporting this specific patch in libvirt 1.2.2 causes the same segfaults :/
I may have done something wrong in compiling libvirt on a slackware64-14.1 ...
 
Best regards,
 
Chris
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.