[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+

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!


This example works with Xen 4.4.0, Libvirt 1.2.2 and Openvswitch 2.0.0 :

<domain type='xen'>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <boot dev='network'/>
    <boot dev='hd'/>
  <clock offset='variable' adjustment='0' basis='utc'>
    <timer name='hpet' present='no'/>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/vg/example-disk'/>
      <target dev='xvda' bus='xen'/>
    <interface type='bridge'>
      <mac address='00:16:3e:xx:xx:xx'/>
      <source bridge='xenbr0'/>
      <script path='/etc/xen/scripts/vif-openvswitch'/>
    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target type='serial' port='0'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='' keymap='fr'>
      <listen type='address' address=''/>
      <model type='cirrus' vram='9216' heads='1'/>

Be advised that "listen=''" in the VNC config doesn't work with a HVM 
domU and libxl driver in libvirt < 1.2.3. The QEMU process listens on 
instead of
There's a patch in libvirt 1.2.3 
 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,


Xen-users mailing list



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