Blame SOURCES/virt-manager-Fix-tests-on-f20-dev-loop0-isn-t-available.patch

d0fc41
From f8e1030e4077db9785475bc75a660afa14651ba2 Mon Sep 17 00:00:00 2001
d0fc41
From: Cole Robinson <crobinso@redhat.com>
d0fc41
Date: Mon, 30 Sep 2013 14:11:50 +0200
d0fc41
Subject: [RHEL-7.0 virt-manager PATCH] Fix tests on f20, /dev/loop0 isn't
d0fc41
 available
d0fc41
d0fc41
(gscrivan: fix other failures)
d0fc41
d0fc41
(cherry picked from commit 382a24d08db1611787b104d675076ffe7715e4a7)
d0fc41
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
d0fc41
d0fc41
Conflicts:
d0fc41
        tests/image-xml/image2guest/image-format-out.xml
d0fc41
        tests/image-xml/image2guest/image-xenfv32.xml
d0fc41
        tests/image-xml/image2guest/image-xenpv32-kernel.xml
d0fc41
        tests/image-xml/image2guest/image-xenpv32.xml
d0fc41
        tests/utils.py
d0fc41
        tests/xmlconfig-xml/boot-fullyvirt-disk-block.xml
d0fc41
        tests/xmlconfig-xml/boot-many-devices.xml
d0fc41
        tests/xmlconfig-xml/boot-many-disks2.xml
d0fc41
        tests/xmlconfig-xml/boot-paravirt-disk-block.xml
d0fc41
        tests/xmlconfig-xml/boot-paravirt-disk-drv-phy.xml
d0fc41
        tests/xmlconfig-xml/boot-paravirt-many-disks.xml
d0fc41
        tests/xmlconfig-xml/install-f10.xml
d0fc41
        tests/xmlconfig-xml/install-f11-ac97.xml
d0fc41
        tests/xmlconfig-xml/install-f11-noac97.xml
d0fc41
        tests/xmlconfig-xml/install-f11-norheldefaults.xml
d0fc41
        tests/xmlconfig-xml/install-f11-qemu.xml
d0fc41
        tests/xmlconfig-xml/install-f11-rheldefaults.xml
d0fc41
        tests/xmlconfig-xml/install-f11-xen.xml
d0fc41
        tests/xmlconfig-xml/install-f11.xml
d0fc41
        tests/xmlconfig-xml/install-fullyvirt-disk-block.xml
d0fc41
        tests/xmlconfig-xml/install-fullyvirt-disk-file.xml
d0fc41
        tests/xmlconfig-xml/install-fullyvirt-livecd.xml
d0fc41
        tests/xmlconfig-xml/install-paravirt-disk-block.xml
d0fc41
        tests/xmlconfig-xml/install-paravirt-disk-drv-phy.xml
d0fc41
        tests/xmlconfig-xml/install-paravirt-many-disks.xml
d0fc41
        tests/xmlconfig-xml/install-windowsxp-xennew.xml
d0fc41
        tests/xmlconfig-xml/install-windowsxp-xenold.xml
d0fc41
        tests/xmlconfig-xml/misc-qemu-driver-name.xml
d0fc41
        tests/xmlconfig-xml/misc-qemu-driver-overwrite.xml
d0fc41
        tests/xmlconfig-xml/misc-qemu-driver-type.xml
d0fc41
        tests/xmlconfig-xml/misc-qemu-iso-disk.xml
d0fc41
        tests/xmlconfig-xml/misc-xml-escaping.xml
d0fc41
        tests/xmlconfig-xml/rhel6-kvm-stage1.xml
d0fc41
        tests/xmlconfig-xml/rhel6-kvm-stage2.xml
d0fc41
        tests/xmlconfig-xml/winxp-kvm-stage1.xml
d0fc41
        tests/xmlconfig-xml/winxp-kvm-stage2.xml
d0fc41
        tests/xmlconfig-xml/winxp-kvm-stage3.xml
d0fc41
        tests/xmlconfig.py
d0fc41
---
d0fc41
 tests/clone-xml/empty-disks-out.xml                  |  4 ++--
d0fc41
 tests/clone-xml/force-out.xml                        |  4 ++--
d0fc41
 tests/clone-xml/general-cfg-in.xml                   |  2 +-
d0fc41
 tests/clone-xml/general-cfg-out.xml                  |  6 +++---
d0fc41
 tests/clone-xml/readonly-disks-out.xml               |  4 ++--
d0fc41
 tests/clone-xml/skip-out.xml                         |  4 ++--
d0fc41
 tests/clonetest.py                                   |  6 +++---
d0fc41
 tests/testdriver.xml                                 |  4 ++--
d0fc41
 tests/utils.py                                       |  6 +++---
d0fc41
 tests/validation.py                                  |  6 +++---
d0fc41
 tests/xmlconfig-xml/boot-fullyvirt-disk-block.xml    |  4 ++--
d0fc41
 tests/xmlconfig-xml/boot-many-devices.xml            |  8 ++++----
d0fc41
 tests/xmlconfig-xml/boot-many-disks2.xml             | 20 ++++++++++----------
d0fc41
 tests/xmlconfig-xml/boot-paravirt-disk-block.xml     |  4 ++--
d0fc41
 tests/xmlconfig-xml/boot-paravirt-disk-drv-phy.xml   |  4 ++--
d0fc41
 tests/xmlconfig-xml/boot-paravirt-many-disks.xml     |  4 ++--
d0fc41
 tests/xmlconfig-xml/boot-windowsxp-kvm.xml           |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-f10.xml                  |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-f11-ac97.xml             |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-f11-noac97.xml           |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-f11-qemu.xml             |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-f11-xen.xml              |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-f11.xml                  |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-fullyvirt-disk-block.xml |  8 ++++----
d0fc41
 tests/xmlconfig-xml/install-fullyvirt-disk-file.xml  |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-fullyvirt-livecd.xml     |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-paravirt-disk-block.xml  |  4 ++--
d0fc41
 .../xmlconfig-xml/install-paravirt-disk-drv-phy.xml  |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-paravirt-many-disks.xml  |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-windowsxp-kvm.xml        |  4 ++--
d0fc41
 tests/xmlconfig-xml/install-windowsxp-xennew.xml     |  8 ++++----
d0fc41
 tests/xmlconfig-xml/install-windowsxp-xenold.xml     |  8 ++++----
d0fc41
 tests/xmlconfig-xml/misc-qemu-driver-name.xml        |  8 ++++----
d0fc41
 tests/xmlconfig-xml/misc-qemu-driver-overwrite.xml   |  4 ++--
d0fc41
 tests/xmlconfig-xml/misc-qemu-driver-type.xml        |  4 ++--
d0fc41
 tests/xmlconfig-xml/misc-qemu-iso-disk.xml           |  4 ++--
d0fc41
 tests/xmlconfig-xml/misc-xml-escaping.xml            |  4 ++--
d0fc41
 tests/xmlconfig-xml/rhel6-kvm-stage1.xml             |  4 ++--
d0fc41
 tests/xmlconfig-xml/rhel6-kvm-stage2.xml             |  4 ++--
d0fc41
 tests/xmlconfig-xml/winxp-kvm-stage1.xml             |  8 ++++----
d0fc41
 tests/xmlconfig-xml/winxp-kvm-stage2.xml             |  8 ++++----
d0fc41
 tests/xmlconfig-xml/winxp-kvm-stage3.xml             |  8 ++++----
d0fc41
 tests/xmlconfig.py                                   | 12 ++++++------
d0fc41
 tests/xmlparse-xml/add-devices-in.xml                |  2 +-
d0fc41
 tests/xmlparse-xml/change-boot-kernel-in.xml         |  2 +-
d0fc41
 tests/xmlparse-xml/change-boot-kernel-out.xml        |  2 +-
d0fc41
 tests/xmlparse-xml/change-disk-in.xml                |  2 +-
d0fc41
 tests/xmlparse-xml/change-disk-out.xml               |  2 +-
d0fc41
 tests/xmlparse-xml/change-filesystems-in.xml         |  2 +-
d0fc41
 tests/xmlparse-xml/change-filesystems-out.xml        |  2 +-
d0fc41
 tests/xmlparse-xml/change-graphics-in.xml            |  2 +-
d0fc41
 tests/xmlparse-xml/change-graphics-out.xml           |  2 +-
d0fc41
 tests/xmlparse-xml/change-guest-in.xml               |  2 +-
d0fc41
 tests/xmlparse-xml/change-guest-out.xml              |  2 +-
d0fc41
 tests/xmlparse-xml/change-smartcard-in.xml           |  2 +-
d0fc41
 tests/xmlparse-xml/change-smartcard-out.xml          |  2 +-
d0fc41
 tests/xmlparse-xml/change-sounds-in.xml              |  2 +-
d0fc41
 tests/xmlparse-xml/change-sounds-out.xml             |  2 +-
d0fc41
 tests/xmlparse-xml/change-videos-in.xml              |  2 +-
d0fc41
 tests/xmlparse-xml/change-videos-out.xml             |  2 +-
d0fc41
 tests/xmlparse-xml/change-watchdogs-in.xml           |  2 +-
d0fc41
 tests/xmlparse-xml/change-watchdogs-out.xml          |  2 +-
d0fc41
 tests/xmlparse.py                                    |  2 +-
d0fc41
 63 files changed, 137 insertions(+), 137 deletions(-)
d0fc41
d0fc41
diff --git a/tests/clone-xml/empty-disks-out.xml b/tests/clone-xml/empty-disks-out.xml
d0fc41
index 2b768a6..8e5c88e 100644
d0fc41
--- a/tests/clone-xml/empty-disks-out.xml
d0fc41
+++ b/tests/clone-xml/empty-disks-out.xml
d0fc41
@@ -17,9 +17,9 @@
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/bin/qemu-kvm</emulator>
d0fc41
-    <disk type="block" device="disk">
d0fc41
+    <disk type="file" device="disk">
d0fc41
       <target dev="hda" bus="ide"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source file="/dev/null"/>
d0fc41
     </disk>
d0fc41
     <disk type="file" device="floppy">
d0fc41
       <target dev="fdb" bus="fdc"/>
d0fc41
diff --git a/tests/clone-xml/force-out.xml b/tests/clone-xml/force-out.xml
d0fc41
index 656ae1c..58eaa9b 100644
d0fc41
--- a/tests/clone-xml/force-out.xml
d0fc41
+++ b/tests/clone-xml/force-out.xml
d0fc41
@@ -17,9 +17,9 @@
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/bin/qemu-kvm</emulator>
d0fc41
-    <disk type="block" device="disk">
d0fc41
+    <disk type="file" device="disk">
d0fc41
       <target dev="hda" bus="ide"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source file="/dev/null"/>
d0fc41
     </disk>
d0fc41
     <disk type="block" device="floppy">
d0fc41
       <target dev="fdb" bus="fdc"/>
d0fc41
diff --git a/tests/clone-xml/general-cfg-in.xml b/tests/clone-xml/general-cfg-in.xml
d0fc41
index b3ab912..c0a554c 100644
d0fc41
--- a/tests/clone-xml/general-cfg-in.xml
d0fc41
+++ b/tests/clone-xml/general-cfg-in.xml
d0fc41
@@ -22,7 +22,7 @@
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <interface type='network'>
d0fc41
diff --git a/tests/clone-xml/general-cfg-out.xml b/tests/clone-xml/general-cfg-out.xml
d0fc41
index 20508dc..cce9a83 100644
d0fc41
--- a/tests/clone-xml/general-cfg-out.xml
d0fc41
+++ b/tests/clone-xml/general-cfg-out.xml
d0fc41
@@ -17,13 +17,13 @@
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/bin/qemu-kvm</emulator>
d0fc41
-    <disk type="block" device="disk">
d0fc41
+    <disk type="file" device="disk">
d0fc41
       <target dev="hda" bus="ide"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source file="/dev/null"/>
d0fc41
     </disk>
d0fc41
     <disk type="file" device="disk">
d0fc41
+      <source dev="/dev/null" file="/tmp/clone2.img"/>
d0fc41
       <target dev="hdb" bus="ide"/>
d0fc41
-      <source file="/tmp/clone2.img"/>
d0fc41
     </disk>
d0fc41
     <interface type="network">
d0fc41
       <mac address="22:23:45:67:89:00"/>
d0fc41
diff --git a/tests/clone-xml/readonly-disks-out.xml b/tests/clone-xml/readonly-disks-out.xml
d0fc41
index f8d3ac4..4cc3fd8 100644
d0fc41
--- a/tests/clone-xml/readonly-disks-out.xml
d0fc41
+++ b/tests/clone-xml/readonly-disks-out.xml
d0fc41
@@ -17,9 +17,9 @@
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/bin/qemu-kvm</emulator>
d0fc41
-    <disk type="block" device="disk">
d0fc41
+    <disk type="file" device="disk">
d0fc41
       <target dev="hda" bus="ide"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source file="/dev/null"/>
d0fc41
     </disk>
d0fc41
     <disk type="file" device="disk">
d0fc41
       <source file="/tmp/virtinst-test1.img"/>
d0fc41
diff --git a/tests/clone-xml/skip-out.xml b/tests/clone-xml/skip-out.xml
d0fc41
index ac68746..c3064d1 100644
d0fc41
--- a/tests/clone-xml/skip-out.xml
d0fc41
+++ b/tests/clone-xml/skip-out.xml
d0fc41
@@ -28,9 +28,9 @@
d0fc41
       <target dev="sda" bus="scsi"/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
-    <disk type="block" device="disk">
d0fc41
+    <disk type="file" device="disk">
d0fc41
       <target dev="sdb" bus="scsi"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source file="/dev/null"/>
d0fc41
     </disk>
d0fc41
     <interface type="network">
d0fc41
       <mac address="22:23:45:67:89:00"/>
d0fc41
diff --git a/tests/clonetest.py b/tests/clonetest.py
d0fc41
index e58d3c1..ffab910 100644
d0fc41
--- a/tests/clonetest.py
d0fc41
+++ b/tests/clonetest.py
d0fc41
@@ -97,7 +97,7 @@ class TestClone(unittest.TestCase):
d0fc41
             for disk in disks:
d0fc41
                 cloneobj.clone_devices = disk
d0fc41
         else:
d0fc41
-            cloneobj.clone_devices = "/dev/loop0"
d0fc41
+            cloneobj.clone_devices = "/dev/null"
d0fc41
             cloneobj.clone_devices = "/tmp/clone2.img"
d0fc41
             cloneobj.clone_devices = "/tmp/clone3.img"
d0fc41
             cloneobj.clone_devices = "/tmp/clone4.img"
d0fc41
@@ -186,13 +186,13 @@ class TestClone(unittest.TestCase):
d0fc41
     def testCloneStorageForce(self):
d0fc41
         base = "force"
d0fc41
         self._clone_helper(base,
d0fc41
-                           disks=["/dev/loop0", None, "/tmp/clone2.img"],
d0fc41
+                           disks=["/dev/null", None, "/tmp/clone2.img"],
d0fc41
                            force_list=["hda", "fdb", "sdb"])
d0fc41
d0fc41
     def testCloneStorageSkip(self):
d0fc41
         base = "skip"
d0fc41
         self._clone_helper(base,
d0fc41
-                           disks=["/dev/loop0", None, "/tmp/clone2.img"],
d0fc41
+                           disks=["/dev/null", None, "/tmp/clone2.img"],
d0fc41
                            skip_list=["hda", "fdb"])
d0fc41
d0fc41
     def testCloneFullPool(self):
d0fc41
diff --git a/tests/testdriver.xml b/tests/testdriver.xml
d0fc41
index d085af2..114a756 100644
d0fc41
--- a/tests/testdriver.xml
d0fc41
+++ b/tests/testdriver.xml
d0fc41
@@ -87,7 +87,7 @@
d0fc41
d0fc41
     
d0fc41
     <disk type='block' device='floppy'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='fda' bus='fdc'/>
d0fc41
     </disk>
d0fc41
     <disk type='dir' device='floppy'>
d0fc41
@@ -104,7 +104,7 @@
d0fc41
     </disk>
d0fc41
     <disk type='block' device='disk'>
d0fc41
       <driver cache='none' type="raw"/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/utils.py b/tests/utils.py
d0fc41
index 438f291..24a12fd 100644
d0fc41
--- a/tests/utils.py
d0fc41
+++ b/tests/utils.py
d0fc41
@@ -192,7 +192,7 @@ def get_basic_fullyvirt_guest(typ="xen", installer=None):
d0fc41
     g.memory = int(200)
d0fc41
     g.maxmemory = int(400)
d0fc41
     g.uuid = "12345678-1234-1234-1234-123456789012"
d0fc41
-    g.cdrom = "/dev/loop0"
d0fc41
+    g.cdrom = "/dev/null"
d0fc41
     g.add_device(VirtualGraphics("sdl"))
d0fc41
     g.features['pae'] = 0
d0fc41
     g.vcpus = 5
d0fc41
@@ -217,7 +217,7 @@ def make_distro_installer(location="/dev/default-pool/default-vol", gtype="xen")
d0fc41
     return inst
d0fc41
d0fc41
d0fc41
-def make_live_installer(location="/dev/loop0", gtype="xen"):
d0fc41
+def make_live_installer(location="/dev/null", gtype="xen"):
d0fc41
     inst = virtinst.LiveCDInstaller(type=gtype, os_type="hvm",
d0fc41
                                     conn=_conn, location=location)
d0fc41
     return inst
d0fc41
@@ -253,7 +253,7 @@ def get_filedisk(path=None):
d0fc41
     return VirtualDisk(path, size=.0001, conn=_conn)
d0fc41
d0fc41
d0fc41
-def get_blkdisk(path="/dev/loop0"):
d0fc41
+def get_blkdisk(path="/dev/null"):
d0fc41
     return VirtualDisk(path, conn=_conn)
d0fc41
d0fc41
d0fc41
diff --git a/tests/validation.py b/tests/validation.py
d0fc41
index a384afb..d942be7 100644
d0fc41
--- a/tests/validation.py
d0fc41
+++ b/tests/validation.py
d0fc41
@@ -87,7 +87,7 @@ args = {
d0fc41
         'valid'   : ['sometype']},
d0fc41
     'cdrom'     : {
d0fc41
         'invalid' : ['', 0, '/somepath'],
d0fc41
-        'valid'   : ['/dev/loop0']
d0fc41
+        'valid'   : ['/dev/null']
d0fc41
   },
d0fc41
     'arch'      : {
d0fc41
         'invalid' : [],
d0fc41
@@ -127,7 +127,7 @@ args = {
d0fc41
  ],
d0fc41
d0fc41
    'valid' : [
d0fc41
-    {'path' : '/dev/loop0'},
d0fc41
+    {'path' : '/dev/null'},
d0fc41
     {'path' : 'nonexist', 'size' : 1},
d0fc41
     {'path' : '/dev/null'},
d0fc41
     {'path' : None, 'device' : VirtualDisk.DEVICE_CDROM},
d0fc41
@@ -430,7 +430,7 @@ class TestValidation(unittest.TestCase):
d0fc41
         self._testArgs(g, virtinst.Guest, 'guest')
d0fc41
d0fc41
     def testDiskValidation(self):
d0fc41
-        disk = VirtualDisk("/dev/loop0")
d0fc41
+        disk = VirtualDisk("/dev/null")
d0fc41
         self._testArgs(disk, VirtualDisk, 'disk')
d0fc41
d0fc41
     def testNetworkValidation(self):
d0fc41
diff --git a/tests/xmlconfig-xml/boot-fullyvirt-disk-block.xml b/tests/xmlconfig-xml/boot-fullyvirt-disk-block.xml
d0fc41
index a9866ae..edb2ce4 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-fullyvirt-disk-block.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-fullyvirt-disk-block.xml
d0fc41
@@ -18,8 +18,8 @@
d0fc41
   <on_crash>restart</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlconfig-xml/boot-many-devices.xml b/tests/xmlconfig-xml/boot-many-devices.xml
d0fc41
index 4b63570..c5871a3 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-many-devices.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-many-devices.xml
d0fc41
@@ -22,12 +22,12 @@
d0fc41
   <on_crash>restart</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
-    <disk type='block' device='floppy'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='floppy'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='fda' bus='fdc'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='sda' bus='scsi'/>
d0fc41
     </disk>
d0fc41
     <disk type='dir' device='floppy'>
d0fc41
diff --git a/tests/xmlconfig-xml/boot-many-disks2.xml b/tests/xmlconfig-xml/boot-many-disks2.xml
d0fc41
index 54b6c34..c68b460 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-many-disks2.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-many-disks2.xml
d0fc41
@@ -22,19 +22,19 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver type='raw'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu' type='qcow2'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdd' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
@@ -44,14 +44,14 @@
d0fc41
     <disk type='block' device='floppy'>
d0fc41
       <target dev='fda' bus='fdc'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='floppy'>
d0fc41
+    <disk type='file' device='floppy'>
d0fc41
       <driver name='phy' cache='none'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='fdb' bus='fdc'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu' type='qcow2' cache='none' io='threads'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='ps2'/>
d0fc41
diff --git a/tests/xmlconfig-xml/boot-paravirt-disk-block.xml b/tests/xmlconfig-xml/boot-paravirt-disk-block.xml
d0fc41
index c2f6827..42974cc 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-paravirt-disk-block.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-paravirt-disk-block.xml
d0fc41
@@ -9,8 +9,8 @@
d0fc41
   <on_reboot>restart</on_reboot>
d0fc41
   <on_crash>restart</on_crash>
d0fc41
   <devices>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='xvda' bus='xen'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='xen'/>
d0fc41
diff --git a/tests/xmlconfig-xml/boot-paravirt-disk-drv-phy.xml b/tests/xmlconfig-xml/boot-paravirt-disk-drv-phy.xml
d0fc41
index f9213b2..16c4ac0 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-paravirt-disk-drv-phy.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-paravirt-disk-drv-phy.xml
d0fc41
@@ -9,9 +9,9 @@
d0fc41
   <on_reboot>restart</on_reboot>
d0fc41
   <on_crash>restart</on_crash>
d0fc41
   <devices>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='phy'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='xvda' bus='xen'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='xen'/>
d0fc41
diff --git a/tests/xmlconfig-xml/boot-paravirt-many-disks.xml b/tests/xmlconfig-xml/boot-paravirt-many-disks.xml
d0fc41
index b88d1c8..1acbac0 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-paravirt-many-disks.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-paravirt-many-disks.xml
d0fc41
@@ -18,8 +18,8 @@
d0fc41
       <source file='/tmp/test2.img'/>
d0fc41
       <target dev='xvdb' bus='xen'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='xvdc' bus='xen'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='xen'/>
d0fc41
diff --git a/tests/xmlconfig-xml/boot-windowsxp-kvm.xml b/tests/xmlconfig-xml/boot-windowsxp-kvm.xml
d0fc41
index 91cc3d0..2973adf 100644
d0fc41
--- a/tests/xmlconfig-xml/boot-windowsxp-kvm.xml
d0fc41
+++ b/tests/xmlconfig-xml/boot-windowsxp-kvm.xml
d0fc41
@@ -24,12 +24,12 @@
d0fc41
     </disk>
d0fc41
     <disk type='block' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/install-f10.xml b/tests/xmlconfig-xml/install-f10.xml
d0fc41
index 470df8c..0ef7cb0 100644
d0fc41
--- a/tests/xmlconfig-xml/install-f10.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-f10.xml
d0fc41
@@ -23,9 +23,9 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <interface type='network'>
d0fc41
diff --git a/tests/xmlconfig-xml/install-f11-ac97.xml b/tests/xmlconfig-xml/install-f11-ac97.xml
d0fc41
index c017594..9b158d3 100644
d0fc41
--- a/tests/xmlconfig-xml/install-f11-ac97.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-f11-ac97.xml
d0fc41
@@ -27,9 +27,9 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlconfig-xml/install-f11-noac97.xml b/tests/xmlconfig-xml/install-f11-noac97.xml
d0fc41
index 24ed598..a6b5a5a 100644
d0fc41
--- a/tests/xmlconfig-xml/install-f11-noac97.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-f11-noac97.xml
d0fc41
@@ -27,9 +27,9 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlconfig-xml/install-f11-qemu.xml b/tests/xmlconfig-xml/install-f11-qemu.xml
d0fc41
index 685ccd4..302e4bd 100644
d0fc41
--- a/tests/xmlconfig-xml/install-f11-qemu.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-f11-qemu.xml
d0fc41
@@ -27,9 +27,9 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlconfig-xml/install-f11-xen.xml b/tests/xmlconfig-xml/install-f11-xen.xml
d0fc41
index b902126..67159b8 100644
d0fc41
--- a/tests/xmlconfig-xml/install-f11-xen.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-f11-xen.xml
d0fc41
@@ -26,8 +26,8 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlconfig-xml/install-f11.xml b/tests/xmlconfig-xml/install-f11.xml
d0fc41
index ccf30d6..c132ae9 100644
d0fc41
--- a/tests/xmlconfig-xml/install-f11.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-f11.xml
d0fc41
@@ -27,9 +27,9 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlconfig-xml/install-fullyvirt-disk-block.xml b/tests/xmlconfig-xml/install-fullyvirt-disk-block.xml
d0fc41
index f361961..09b02ab 100644
d0fc41
--- a/tests/xmlconfig-xml/install-fullyvirt-disk-block.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-fullyvirt-disk-block.xml
d0fc41
@@ -19,12 +19,12 @@
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/install-fullyvirt-disk-file.xml b/tests/xmlconfig-xml/install-fullyvirt-disk-file.xml
d0fc41
index 95a80c8..bcea591 100644
d0fc41
--- a/tests/xmlconfig-xml/install-fullyvirt-disk-file.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-fullyvirt-disk-file.xml
d0fc41
@@ -23,8 +23,8 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/install-fullyvirt-livecd.xml b/tests/xmlconfig-xml/install-fullyvirt-livecd.xml
d0fc41
index 351fdc5..7f793c0 100644
d0fc41
--- a/tests/xmlconfig-xml/install-fullyvirt-livecd.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-fullyvirt-livecd.xml
d0fc41
@@ -18,8 +18,8 @@
d0fc41
   <on_crash>restart</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/install-paravirt-disk-block.xml b/tests/xmlconfig-xml/install-paravirt-disk-block.xml
d0fc41
index c3483c7..cc7da6a 100644
d0fc41
--- a/tests/xmlconfig-xml/install-paravirt-disk-block.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-paravirt-disk-block.xml
d0fc41
@@ -13,8 +13,8 @@
d0fc41
   <on_reboot>destroy</on_reboot>
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='xvda' bus='xen'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='xen'/>
d0fc41
diff --git a/tests/xmlconfig-xml/install-paravirt-disk-drv-phy.xml b/tests/xmlconfig-xml/install-paravirt-disk-drv-phy.xml
d0fc41
index a5a542f..1c0e748 100644
d0fc41
--- a/tests/xmlconfig-xml/install-paravirt-disk-drv-phy.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-paravirt-disk-drv-phy.xml
d0fc41
@@ -13,9 +13,9 @@
d0fc41
   <on_reboot>destroy</on_reboot>
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='phy'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='xvda' bus='xen'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='xen'/>
d0fc41
diff --git a/tests/xmlconfig-xml/install-paravirt-many-disks.xml b/tests/xmlconfig-xml/install-paravirt-many-disks.xml
d0fc41
index 27a522e..9be0350 100644
d0fc41
--- a/tests/xmlconfig-xml/install-paravirt-many-disks.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-paravirt-many-disks.xml
d0fc41
@@ -22,8 +22,8 @@
d0fc41
       <source file='/tmp/test2.img'/>
d0fc41
       <target dev='xvdb' bus='xen'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='xvdc' bus='xen'/>
d0fc41
     </disk>
d0fc41
     <input type='mouse' bus='xen'/>
d0fc41
diff --git a/tests/xmlconfig-xml/install-windowsxp-kvm.xml b/tests/xmlconfig-xml/install-windowsxp-kvm.xml
d0fc41
index 21c75fe..7d54eab 100644
d0fc41
--- a/tests/xmlconfig-xml/install-windowsxp-kvm.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-windowsxp-kvm.xml
d0fc41
@@ -25,12 +25,12 @@
d0fc41
     </disk>
d0fc41
     <disk type='block' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/install-windowsxp-xennew.xml b/tests/xmlconfig-xml/install-windowsxp-xennew.xml
d0fc41
index 3447e89..3037251 100644
d0fc41
--- a/tests/xmlconfig-xml/install-windowsxp-xennew.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-windowsxp-xennew.xml
d0fc41
@@ -23,12 +23,12 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/install-windowsxp-xenold.xml b/tests/xmlconfig-xml/install-windowsxp-xenold.xml
d0fc41
index 3016fdb..e684aa1 100644
d0fc41
--- a/tests/xmlconfig-xml/install-windowsxp-xenold.xml
d0fc41
+++ b/tests/xmlconfig-xml/install-windowsxp-xenold.xml
d0fc41
@@ -20,12 +20,12 @@
d0fc41
       <source file='/tmp/test.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/misc-qemu-driver-name.xml b/tests/xmlconfig-xml/misc-qemu-driver-name.xml
d0fc41
index 5059cc1..8eb2494 100644
d0fc41
--- a/tests/xmlconfig-xml/misc-qemu-driver-name.xml
d0fc41
+++ b/tests/xmlconfig-xml/misc-qemu-driver-name.xml
d0fc41
@@ -19,14 +19,14 @@
d0fc41
   <on_crash>destroy</on_crash>
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/misc-qemu-driver-overwrite.xml b/tests/xmlconfig-xml/misc-qemu-driver-overwrite.xml
d0fc41
index 0cf03b5..4fd7b03 100644
d0fc41
--- a/tests/xmlconfig-xml/misc-qemu-driver-overwrite.xml
d0fc41
+++ b/tests/xmlconfig-xml/misc-qemu-driver-overwrite.xml
d0fc41
@@ -24,9 +24,9 @@
d0fc41
       <source file='/dev/default-pool/iso-vol'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/misc-qemu-driver-type.xml b/tests/xmlconfig-xml/misc-qemu-driver-type.xml
d0fc41
index 65f00b5..a07a131 100644
d0fc41
--- a/tests/xmlconfig-xml/misc-qemu-driver-type.xml
d0fc41
+++ b/tests/xmlconfig-xml/misc-qemu-driver-type.xml
d0fc41
@@ -29,9 +29,9 @@
d0fc41
       <source dev='/iscsi-pool/diskvol1'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/misc-qemu-iso-disk.xml b/tests/xmlconfig-xml/misc-qemu-iso-disk.xml
d0fc41
index 1191320..e55ec35 100644
d0fc41
--- a/tests/xmlconfig-xml/misc-qemu-iso-disk.xml
d0fc41
+++ b/tests/xmlconfig-xml/misc-qemu-iso-disk.xml
d0fc41
@@ -24,9 +24,9 @@
d0fc41
       <source file='/dev/default-pool/iso-vol'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/misc-xml-escaping.xml b/tests/xmlconfig-xml/misc-xml-escaping.xml
d0fc41
index 7dd9cd0..9ace6b5 100644
d0fc41
--- a/tests/xmlconfig-xml/misc-xml-escaping.xml
d0fc41
+++ b/tests/xmlconfig-xml/misc-xml-escaping.xml
d0fc41
@@ -26,8 +26,8 @@
d0fc41
       <source file='/tmp/ISO&'&s'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/rhel6-kvm-stage1.xml b/tests/xmlconfig-xml/rhel6-kvm-stage1.xml
d0fc41
index 75afd3d..b80fbf5 100644
d0fc41
--- a/tests/xmlconfig-xml/rhel6-kvm-stage1.xml
d0fc41
+++ b/tests/xmlconfig-xml/rhel6-kvm-stage1.xml
d0fc41
@@ -29,9 +29,9 @@
d0fc41
       <source file='/dev/default-pool/rhel6.img'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <interface type='network'>
d0fc41
diff --git a/tests/xmlconfig-xml/rhel6-kvm-stage2.xml b/tests/xmlconfig-xml/rhel6-kvm-stage2.xml
d0fc41
index a679b5a..c436f80 100644
d0fc41
--- a/tests/xmlconfig-xml/rhel6-kvm-stage2.xml
d0fc41
+++ b/tests/xmlconfig-xml/rhel6-kvm-stage2.xml
d0fc41
@@ -27,9 +27,9 @@
d0fc41
       <source file='/dev/default-pool/rhel6.img'/>
d0fc41
       <target dev='vda' bus='virtio'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <interface type='network'>
d0fc41
diff --git a/tests/xmlconfig-xml/winxp-kvm-stage1.xml b/tests/xmlconfig-xml/winxp-kvm-stage1.xml
d0fc41
index b4a84ac..e82f100 100644
d0fc41
--- a/tests/xmlconfig-xml/winxp-kvm-stage1.xml
d0fc41
+++ b/tests/xmlconfig-xml/winxp-kvm-stage1.xml
d0fc41
@@ -23,14 +23,14 @@
d0fc41
       <source file='/dev/default-pool/winxp.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/winxp-kvm-stage2.xml b/tests/xmlconfig-xml/winxp-kvm-stage2.xml
d0fc41
index b858c29..e29f6d4 100644
d0fc41
--- a/tests/xmlconfig-xml/winxp-kvm-stage2.xml
d0fc41
+++ b/tests/xmlconfig-xml/winxp-kvm-stage2.xml
d0fc41
@@ -22,14 +22,14 @@
d0fc41
       <source file='/dev/default-pool/winxp.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig-xml/winxp-kvm-stage3.xml b/tests/xmlconfig-xml/winxp-kvm-stage3.xml
d0fc41
index a926a0f..ef3d1ce 100644
d0fc41
--- a/tests/xmlconfig-xml/winxp-kvm-stage3.xml
d0fc41
+++ b/tests/xmlconfig-xml/winxp-kvm-stage3.xml
d0fc41
@@ -22,14 +22,14 @@
d0fc41
       <source file='/dev/default-pool/winxp.img'/>
d0fc41
       <target dev='hda' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='disk'>
d0fc41
+    <disk type='file' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdb' bus='ide'/>
d0fc41
     </disk>
d0fc41
-    <disk type='block' device='cdrom'>
d0fc41
+    <disk type='file' device='cdrom'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source file='/dev/null'/>
d0fc41
       <target dev='hdc' bus='ide'/>
d0fc41
       <readonly/>
d0fc41
     </disk>
d0fc41
diff --git a/tests/xmlconfig.py b/tests/xmlconfig.py
d0fc41
index e691130..8c0179f 100644
d0fc41
--- a/tests/xmlconfig.py
d0fc41
+++ b/tests/xmlconfig.py
d0fc41
@@ -546,10 +546,10 @@ class TestXMLConfig(unittest.TestCase):
d0fc41
d0fc41
         g.add_device(utils.get_filedisk())
d0fc41
         g.add_device(utils.get_blkdisk())
d0fc41
-        g.add_device(VirtualDisk(conn=g.conn, path="/dev/loop0",
d0fc41
+        g.add_device(VirtualDisk(conn=g.conn, path="/dev/null",
d0fc41
                                    device=VirtualDisk.DEVICE_CDROM,
d0fc41
                                    driverType="raw"))
d0fc41
-        g.add_device(VirtualDisk(conn=g.conn, path="/dev/loop0",
d0fc41
+        g.add_device(VirtualDisk(conn=g.conn, path="/dev/null",
d0fc41
                                    device=VirtualDisk.DEVICE_DISK,
d0fc41
                                    driverName="qemu", format="qcow2"))
d0fc41
         g.add_device(VirtualDisk(conn=g.conn, path=None,
d0fc41
@@ -557,10 +557,10 @@ class TestXMLConfig(unittest.TestCase):
d0fc41
                                    bus="scsi"))
d0fc41
         g.add_device(VirtualDisk(conn=g.conn, path=None,
d0fc41
                                    device=VirtualDisk.DEVICE_FLOPPY))
d0fc41
-        g.add_device(VirtualDisk(conn=g.conn, path="/dev/loop0",
d0fc41
+        g.add_device(VirtualDisk(conn=g.conn, path="/dev/null",
d0fc41
                                    device=VirtualDisk.DEVICE_FLOPPY,
d0fc41
                                    driverName="phy", driverCache="none"))
d0fc41
-        disk = VirtualDisk(conn=g.conn, path="/dev/loop0",
d0fc41
+        disk = VirtualDisk(conn=g.conn, path="/dev/null",
d0fc41
                            bus="virtio", driverName="qemu",
d0fc41
                            driverType="qcow2", driverCache="none")
d0fc41
         disk.driver_io = "threads"
d0fc41
@@ -694,9 +694,9 @@ class TestXMLConfig(unittest.TestCase):
d0fc41
         g.add_device(VirtualAudio("es1370", conn=g.conn))
d0fc41
d0fc41
         # Disk devices
d0fc41
-        g.add_device(VirtualDisk(conn=g.conn, path="/dev/loop0",
d0fc41
+        g.add_device(VirtualDisk(conn=g.conn, path="/dev/null",
d0fc41
                                    device=VirtualDisk.DEVICE_FLOPPY))
d0fc41
-        g.add_device(VirtualDisk(conn=g.conn, path="/dev/loop0",
d0fc41
+        g.add_device(VirtualDisk(conn=g.conn, path="/dev/null",
d0fc41
                                    bus="scsi"))
d0fc41
         g.add_device(VirtualDisk(conn=g.conn, path="/tmp", device="floppy"))
d0fc41
         d3 = VirtualDisk(conn=g.conn, path="/dev/default-pool/testvol1.img",
d0fc41
diff --git a/tests/xmlparse-xml/add-devices-in.xml b/tests/xmlparse-xml/add-devices-in.xml
d0fc41
index 9e225f0..b84c3bd 100644
d0fc41
--- a/tests/xmlparse-xml/add-devices-in.xml
d0fc41
+++ b/tests/xmlparse-xml/add-devices-in.xml
d0fc41
@@ -29,7 +29,7 @@
d0fc41
     </disk>
d0fc41
     <disk type="block" device="disk">
d0fc41
       <driver name="qemu"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="vdb" bus="virtio"/>
d0fc41
     </disk>
d0fc41
     <disk type="block" device="cdrom">
d0fc41
diff --git a/tests/xmlparse-xml/change-boot-kernel-in.xml b/tests/xmlparse-xml/change-boot-kernel-in.xml
d0fc41
index 7abd3b5..ffbc280 100644
d0fc41
--- a/tests/xmlparse-xml/change-boot-kernel-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-boot-kernel-in.xml
d0fc41
@@ -15,7 +15,7 @@
d0fc41
   <vcpu>5</vcpu>
d0fc41
   <devices>
d0fc41
     <disk type="block" device="disk">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="xvda" bus="xen"/>
d0fc41
     </disk>
d0fc41
     <input type="mouse" bus="xen"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-boot-kernel-out.xml b/tests/xmlparse-xml/change-boot-kernel-out.xml
d0fc41
index 7e8d137..b66c708 100644
d0fc41
--- a/tests/xmlparse-xml/change-boot-kernel-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-boot-kernel-out.xml
d0fc41
@@ -15,7 +15,7 @@
d0fc41
   <vcpu>5</vcpu>
d0fc41
   <devices>
d0fc41
     <disk type="block" device="disk">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="xvda" bus="xen"/>
d0fc41
     </disk>
d0fc41
     <input type="mouse" bus="xen"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-disk-in.xml b/tests/xmlparse-xml/change-disk-in.xml
d0fc41
index b2ebfab..885e296 100644
d0fc41
--- a/tests/xmlparse-xml/change-disk-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-disk-in.xml
d0fc41
@@ -29,7 +29,7 @@
d0fc41
     </disk>
d0fc41
     <disk type="block" device="cdrom">
d0fc41
       <driver type="raw"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source file="/dev/zero"/>
d0fc41
       <target dev="hdc" bus="ide"/>
d0fc41
       <driver name='phy' error_policy='stop'/>
d0fc41
       <readonly/>
d0fc41
diff --git a/tests/xmlparse-xml/change-disk-out.xml b/tests/xmlparse-xml/change-disk-out.xml
d0fc41
index ebccd57..c59881b 100644
d0fc41
--- a/tests/xmlparse-xml/change-disk-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-disk-out.xml
d0fc41
@@ -28,7 +28,7 @@
d0fc41
       <source dev="/dev/loop0"/>
d0fc41
       <target dev="hdb" bus="ide"/>
d0fc41
     </disk>
d0fc41
-    <disk type="block" device="floppy">
d0fc41
+    <disk type="file" device="floppy">
d0fc41
       <target dev="fde" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <disk type="block" device="disk">
d0fc41
diff --git a/tests/xmlparse-xml/change-filesystems-in.xml b/tests/xmlparse-xml/change-filesystems-in.xml
d0fc41
index f0d5a1a..bd1b5ca 100644
d0fc41
--- a/tests/xmlparse-xml/change-filesystems-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-filesystems-in.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <filesystem>
d0fc41
diff --git a/tests/xmlparse-xml/change-filesystems-out.xml b/tests/xmlparse-xml/change-filesystems-out.xml
d0fc41
index 6d0c00c..2329792 100644
d0fc41
--- a/tests/xmlparse-xml/change-filesystems-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-filesystems-out.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <filesystem type="mount" accessmode="passthrough">
d0fc41
diff --git a/tests/xmlparse-xml/change-graphics-in.xml b/tests/xmlparse-xml/change-graphics-in.xml
d0fc41
index 6d44ec5..7d0bd72 100644
d0fc41
--- a/tests/xmlparse-xml/change-graphics-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-graphics-in.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <graphics type="vnc" passwd="foobar" port="100" listen="0.0.0.0"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-graphics-out.xml b/tests/xmlparse-xml/change-graphics-out.xml
d0fc41
index 3acf093..7975f17 100644
d0fc41
--- a/tests/xmlparse-xml/change-graphics-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-graphics-out.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <graphics type="vnc" passwd="newpass" port="6000" listen="1.2.3.4"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-guest-in.xml b/tests/xmlparse-xml/change-guest-in.xml
d0fc41
index ab56c03..650ee31 100644
d0fc41
--- a/tests/xmlparse-xml/change-guest-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-guest-in.xml
d0fc41
@@ -39,7 +39,7 @@
d0fc41
     </disk>
d0fc41
     <disk type="block" device="disk">
d0fc41
       <driver name="qemu"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="vdb" bus="virtio"/>
d0fc41
     </disk>
d0fc41
     <disk type="block" device="cdrom">
d0fc41
diff --git a/tests/xmlparse-xml/change-guest-out.xml b/tests/xmlparse-xml/change-guest-out.xml
d0fc41
index c0d3e72..015f811 100644
d0fc41
--- a/tests/xmlparse-xml/change-guest-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-guest-out.xml
d0fc41
@@ -42,7 +42,7 @@
d0fc41
     </disk>
d0fc41
     <disk type="block" device="disk">
d0fc41
       <driver name="qemu"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="vdb" bus="virtio"/>
d0fc41
     </disk>
d0fc41
     <disk type="block" device="cdrom">
d0fc41
diff --git a/tests/xmlparse-xml/change-smartcard-in.xml b/tests/xmlparse-xml/change-smartcard-in.xml
d0fc41
index 5033e8e..c07010c 100644
d0fc41
--- a/tests/xmlparse-xml/change-smartcard-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-smartcard-in.xml
d0fc41
@@ -36,7 +36,7 @@
d0fc41
     </disk>
d0fc41
     <disk type='block' device='disk'>
d0fc41
       <driver name='qemu'/>
d0fc41
-      <source dev='/dev/loop0'/>
d0fc41
+      <source dev='/dev/null'/>
d0fc41
       <target dev='vdb' bus='virtio'/>
d0fc41
     </disk>
d0fc41
     <disk type='block' device='cdrom'>
d0fc41
diff --git a/tests/xmlparse-xml/change-smartcard-out.xml b/tests/xmlparse-xml/change-smartcard-out.xml
d0fc41
index 72305af..d733f55 100644
d0fc41
--- a/tests/xmlparse-xml/change-smartcard-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-smartcard-out.xml
d0fc41
@@ -36,7 +36,7 @@
d0fc41
     </disk>
d0fc41
     <disk type="block" device="disk">
d0fc41
       <driver name="qemu"/>
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="vdb" bus="virtio"/>
d0fc41
     </disk>
d0fc41
     <disk type="block" device="cdrom">
d0fc41
diff --git a/tests/xmlparse-xml/change-sounds-in.xml b/tests/xmlparse-xml/change-sounds-in.xml
d0fc41
index 001c50b..dc5365d 100644
d0fc41
--- a/tests/xmlparse-xml/change-sounds-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-sounds-in.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <sound model="sb16"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-sounds-out.xml b/tests/xmlparse-xml/change-sounds-out.xml
d0fc41
index 9d7dd4b..dfd9ddd 100644
d0fc41
--- a/tests/xmlparse-xml/change-sounds-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-sounds-out.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <sound model="ac97"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-videos-in.xml b/tests/xmlparse-xml/change-videos-in.xml
d0fc41
index 76f8806..7dde768 100644
d0fc41
--- a/tests/xmlparse-xml/change-videos-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-videos-in.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <video>
d0fc41
diff --git a/tests/xmlparse-xml/change-videos-out.xml b/tests/xmlparse-xml/change-videos-out.xml
d0fc41
index 929862c..c11ffd3 100644
d0fc41
--- a/tests/xmlparse-xml/change-videos-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-videos-out.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <video>
d0fc41
diff --git a/tests/xmlparse-xml/change-watchdogs-in.xml b/tests/xmlparse-xml/change-watchdogs-in.xml
d0fc41
index e9ae34f..fb9bcd1 100644
d0fc41
--- a/tests/xmlparse-xml/change-watchdogs-in.xml
d0fc41
+++ b/tests/xmlparse-xml/change-watchdogs-in.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <watchdog model="ib700" action="none"/>
d0fc41
diff --git a/tests/xmlparse-xml/change-watchdogs-out.xml b/tests/xmlparse-xml/change-watchdogs-out.xml
d0fc41
index 58456dd..2b9622d 100644
d0fc41
--- a/tests/xmlparse-xml/change-watchdogs-out.xml
d0fc41
+++ b/tests/xmlparse-xml/change-watchdogs-out.xml
d0fc41
@@ -20,7 +20,7 @@
d0fc41
   <devices>
d0fc41
     <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
d0fc41
     <disk type="block" device="floppy">
d0fc41
-      <source dev="/dev/loop0"/>
d0fc41
+      <source dev="/dev/null"/>
d0fc41
       <target dev="fda" bus="fdc"/>
d0fc41
     </disk>
d0fc41
     <watchdog model="i6300esb" action="poweroff"/>
d0fc41
diff --git a/tests/xmlparse.py b/tests/xmlparse.py
d0fc41
index e19bfdb..bc1f7d6 100644
d0fc41
--- a/tests/xmlparse.py
d0fc41
+++ b/tests/xmlparse.py
d0fc41
@@ -273,7 +273,7 @@ class XMLParseTest(unittest.TestCase):
d0fc41
         check("serial", "WD-WMAP9A966149", "frob")
d0fc41
d0fc41
         check = self._make_checker(disk2)
d0fc41
-        check("path", "/dev/loop0", None)
d0fc41
+        check("path", "/dev/zero", None)
d0fc41
         check("device", "cdrom", "floppy")
d0fc41
         check("read_only", True, False)
d0fc41
         check("target", None, "fde")
d0fc41
-- 
d0fc41
1.8.3.2
d0fc41