diff --git a/conf/zamba.conf.example b/conf/zamba.conf.example index b45134d..d76b20c 100644 --- a/conf/zamba.conf.example +++ b/conf/zamba.conf.example @@ -87,6 +87,9 @@ LXC_VIM_BG_DARK=1 # Default random password length LXC_RANDOMPWD=32 +# Move lxc to specific ressource pool +LXC_RESSOURCE_POOL="" + # Automatically add meta tags to lxc container LXC_AUTOTAG=1 diff --git a/install.sh b/install.sh index bbdcc9f..ce499a7 100755 --- a/install.sh +++ b/install.sh @@ -134,9 +134,15 @@ if [ $LXC_THREADS -gt 0 ]; then LXC_CORES=--cores\ $LXC_THREADS fi + +if [[ $LXC_RESSOURCE_POOL != "" ]]; then + LXC_POOL=--pool\ $LXC_RESSOURCE_POOL +fi + + # Create the container set +u -pct create $LXC_NBR $TAGS $LXC_CORES --password $LXC_PWD -unprivileged $LXC_UNPRIVILEGED $LXC_TEMPLATE_STORAGE:vztmpl/$TMPL_NAME -rootfs $LXC_ROOTFS_STORAGE:$LXC_ROOTFS_SIZE; +pct create $LXC_NBR $TAGS $LXC_CORES $LXC_POOL --password $LXC_PWD -unprivileged $LXC_UNPRIVILEGED $LXC_TEMPLATE_STORAGE:vztmpl/$TMPL_NAME -rootfs $LXC_ROOTFS_STORAGE:$LXC_ROOTFS_SIZE; set -u sleep 2;