X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lbuild-initvm.sh;h=a20438fa0409288a8891e456cdbce09244a09fd7;hb=a5f93502b19dc144eb6cc917e82837654b5be58c;hp=e9c13e6af904ff45565c663772a3523303c6e911;hpb=55bb6bb4ff123cbf658b0bb00bc21b8ffe4344c5;p=build.git diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index e9c13e6a..a20438fa 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -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