X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lbuild-initvm.sh;h=e541600ad4749ba51c5a1ff21f38686ccddceb2f;hb=72ac8af87c5e0297709c1cc1b5ae6e2a20a066e6;hp=e9c13e6af904ff45565c663772a3523303c6e911;hpb=015e930f2db1101985e6c3c3ccf03473df33dcf1;p=build.git diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index e9c13e6a..e541600a 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -24,7 +24,7 @@ export PATH=$PATH:/bin:/sbin DEFAULT_FCDISTRO=f20 DEFAULT_PLDISTRO=lxc DEFAULT_PERSONALITY=linux64 -DEFAULT_MEMORY=512 +DEFAULT_MEMORY=1024 ########## # constant @@ -165,9 +165,9 @@ function fedora_download() { MIRROR_URL=$FEDORA_MIRROR_BASE/releases/$release/Everything/$arch/os RELEASE_URL1="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm" # with fedora18 the rpms are scattered by first name - RELEASE_URL2="$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm" - # with fedora21 somehow this one came numbered -2 + # first try the second version of fedora-release first RELEASE_URL2="$MIRROR_URL/Packages/f/fedora-release-$release-2.noarch.rpm" + RELEASE_URL3="$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm" RELEASE_TARGET=$INSTALL_ROOT/fedora-release-$release.noarch.rpm found="" @@ -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