From a6448e073c2d02a6f66c4bcf921afd7b195ed994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 4 Apr 2015 16:18:10 +0200 Subject: [PATCH] block: fix handling non-dom0 backend The libvirt XML config syntax was changed - the element is named . --- core/qubesutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/qubesutils.py b/core/qubesutils.py index 342c4505..3af24bd7 100644 --- a/core/qubesutils.py +++ b/core/qubesutils.py @@ -415,7 +415,7 @@ def block_attach(qvmc, vm, device, frontend=None, mode="w", auto_detach=False, w SubElement(disk, 'source').set('dev', device['device']) SubElement(disk, 'target').set('dev', frontend) if backend_vm.qid != 0: - SubElement(disk, 'domain').set('name', device['vm']) + SubElement(disk, 'backenddomain').set('name', device['vm']) vm.libvirt_domain.attachDevice(etree.tostring(disk, encoding='utf-8')) def block_detach(vm, frontend = "xvdi"):