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'>
  <memory unit='KiB'>8286208</memory>
  <currentMemory unit='KiB'>8286208</currentMemory>
  <vcpu placement='static'>4</vcpu>
    <cmdline>root=LABEL=cloudimg-rootfs ro   console=ttyS0</cmdline>
  <clock offset='utc' adjustment='reset'/>
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/vz/disks/xenguest'/>
      <target dev='sda1' bus='scsi'/>
    <interface type='bridge'>
      <mac address='52:54:1a:8b:be:bc'/>
      <source bridge='virbr0'/>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target type='xen' port='0'/>
    <input type='mouse' bus='xen'/>
    <graphics type='vnc' port='5900' autoport='yes' listen='' keymap='en-us'>
      <listen type='address' address=''/>

However, after I add the guest, this line:


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

Your Answer


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

Browse other questions tagged or ask your own question.