[Pkg-libvirt-commits] [libvirt-sandbox] 19/42: virt-builder: disable setup of network for virt-builder

Guido Guenther agx at moszumanska.debian.org
Sat May 27 16:27:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to branch debian/experimental
in repository libvirt-sandbox.

commit ef6fe702844cf9a1939a9247ef09e1ea4284d811
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Thu Jul 14 15:26:00 2016 +0100

    virt-builder: disable setup of network for virt-builder
    
    When getting the pristine image, we don't customize it or
    run any scripts, so we can safely disable use of the network.
    This avoids a possible failure scenario that virt-builder
    cannot report upfront, where is not configured virbr0.
    
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 libvirt-sandbox/image/sources/virtbuilder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-sandbox/image/sources/virtbuilder.py b/libvirt-sandbox/image/sources/virtbuilder.py
index 28fbffb..6e71b36 100644
--- a/libvirt-sandbox/image/sources/virtbuilder.py
+++ b/libvirt-sandbox/image/sources/virtbuilder.py
@@ -45,7 +45,7 @@ class VirtBuilderSource(base.Source):
         templatename = self._get_template_name(template)
         imagepath_original = "%s/%s-original.qcow2" % (templatedir, templatename)
         imagepath = "%s/%s.qcow2" % (templatedir, templatename)
-        cmd = ["virt-builder", templatename,
+        cmd = ["virt-builder", templatename, "--no-network",
                "-o", imagepath_original, "--format", "qcow2"]
         subprocess.check_call(cmd)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt-sandbox.git



More information about the Pkg-libvirt-commits mailing list