run lxc-enter-namespace with the --noseclabel flag
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 28 Feb 2015 12:49:11 +0000 (13:49 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 28 Feb 2015 12:49:11 +0000 (13:49 +0100)
lbuild-initvm.sh

index e9c13e6..a20438f 100755 (executable)
@@ -650,7 +650,10 @@ function post_install () {
        if [ -n "$START_VM" ] ; then
            virsh -c lxc:/// start $lxc
            # manually run dhclient in guest - somehow this network won't start on its own
-            virsh -c lxc:/// lxc-enter-namespace $lxc /usr/bin/$personality /bin/bash -c "dhclient $VIF_GUEST"
+           # we need the --noseclabel flag with recent libvirt's
+           # was not required with f20/libvirt-1.2.5
+           # but is now with f21/libvirt-1.2.9
+            virsh -c lxc:/// lxc-enter-namespace --noseclabel $lxc /usr/bin/$personality /bin/bash -c "dhclient $VIF_GUEST"
        fi
     else
        post_install_myplc $lxc $personality