Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to use libvirt to create a paravirtualized xen domain. Here's the xml file that I'm passing to virsh --connect xen:/// define:

<domain type='xen'>
  <name>xenguest</name>
  <uuid>f51a3d97-3e35-335f-7853-de59610bddba</uuid>
  <memory unit='KiB'>8286208</memory>
  <currentMemory unit='KiB'>8286208</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <bootloader>/usr/lib/xen-4.2/bin/pygrub</bootloader>
  <os>
    <type>linux</type>
    <kernel>/vz/xen/kernels/vmlinuz-3.2.0-38-virtual</kernel>
    <initrd>/vz/xen/kernels/initrd.img-3.2.0-38-virtual</initrd>
    <cmdline>root=LABEL=cloudimg-rootfs ro   console=ttyS0</cmdline>
  </os>
  <clock offset='utc' adjustment='reset'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/vz/disks/xenguest'/>
      <target dev='sda1' bus='scsi'/>
    </disk>
    <interface type='bridge'>
      <mac address='52:54:1a:8b:be:bc'/>
      <source bridge='virbr0'/>
    </interface>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target type='xen' port='0'/>
    </console>
    <input type='mouse' bus='xen'/>
    <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
  </devices>
</domain>

However, after I add the guest, this line:

<emulator>/usr/lib/xen-4.2/bin/qemu-dm</emulator>

gets automatically added to the disk section. I even tried changing <target dev='sda1' bus='scsi'/> to <target dev='xvda1' bus='xen'/> and it automatically adds the "emulator" line.

However, when I use the bus='xen' setting and boot the domain I can see that it is using the xenblk major number, so my main question is: it using paravirtualized driver? Is there another way to check?

root@xenhost:~# lsblk 
NAME  MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda1 202:1    0  28G  0 disk /

Here is some more system information:

zje@host:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:        13.04
Codename:       raring
zje@host:~$ uname -a
Linux host 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:24:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.