diff --git a/tests/capabilities-xml/vz.xml b/tests/capabilities-xml/vz.xml
new file mode 100644
index 00000000..fac68d9d
--- /dev/null
+++ b/tests/capabilities-xml/vz.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ x86_64
+ IvyBridge
+ Intel
+
+
+
+
+
+
+ 16692408
+ 4173102
+ 0
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ exe
+
+ 32
+ vz
+
+ vz
+
+
+
+
+
+ exe
+
+ 64
+ vz
+
+ vz
+
+
+
+
+
diff --git a/tests/cli-test-xml/compare/virt-install-vz-ct-template.xml b/tests/cli-test-xml/compare/virt-install-vz-ct-template.xml
new file mode 100644
index 00000000..e9e4b053
--- /dev/null
+++ b/tests/cli-test-xml/compare/virt-install-vz-ct-template.xml
@@ -0,0 +1,26 @@
+
+ foobar
+ 00000000-1111-2222-3333-444444444444
+ 65536
+ 65536
+ 1
+
+ exe
+ /sbin/init
+
+
+
+
+
+ vz
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/clitest.py b/tests/clitest.py
index 05fb0715..aa45c7b5 100644
--- a/tests/clitest.py
+++ b/tests/clitest.py
@@ -81,6 +81,7 @@ test_files = {
'URI-KVM-S390X-KVMIBM' : utils.uri_kvm_s390x_KVMIBM,
'URI-XEN': utils.uri_xen,
'URI-LXC': utils.uri_lxc,
+ 'URI-VZ': utils.uri_vz,
'CLONE_DISK_XML' : "%s/clone-disk.xml" % xmldir,
'CLONE_STORAGE_XML' : "%s/clone-disk-managed.xml" % xmldir,
@@ -773,6 +774,20 @@ c.add_compare("--disk %(BLOCKVOL)s --cdrom %(EXISTIMG1)s --livecd --hvm", "xen-h
+#####################
+# VZ specific tests #
+#####################
+
+c = vinst.add_category("vz", "--connect %(URI-VZ)s --noautoconsole")
+c.add_compare(""" \
+--container \
+--filesystem type=template,source=centos-7-x86_64,target="/" \
+--network network="Bridged" \
+""", "vz-ct-template")
+
+
+
+
#####################################
# Device option back compat testing #
#####################################
diff --git a/tests/utils.py b/tests/utils.py
index 013b3051..64dfee48 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -54,6 +54,7 @@ uri_kvm_s390x_KVMIBM = (_uri_kvm_domcaps + _capsprefix + "kvm-s390x-KVMIBM.xml")
uri_xen = uri_test + _capsprefix + "xen-rhel5.4.xml,xen"
uri_lxc = uri_test + _capsprefix + "lxc.xml,lxc"
+uri_vz = uri_test + _capsprefix + "vz.xml,vz"
def get_debug():
diff --git a/virtinst/uri.py b/virtinst/uri.py
index 36747266..2ea31d2e 100644
--- a/virtinst/uri.py
+++ b/virtinst/uri.py
@@ -124,7 +124,7 @@ class MagicURI(object):
files in test/capabilities-xml/
* 'domcaps=%s': Points to a file with domain capabilities XML, that
will be returned in conn.getDomainCapabilities
- * qemu or xen or lxc: Fake the specified hypervisor
+ * qemu, xen, lxc or vz: Fake the specified hypervisor
See tests/utils.py for example URLs
"""
@@ -161,6 +161,8 @@ class MagicURI(object):
self.hv = "lxc"
if pop_bool("xen"):
self.hv = "xen"
+ if pop_bool("vz"):
+ self.hv = "vz"
self.conn_version = opts.pop("connver", None)
if self.conn_version: