Commits

prologic  committed c706ac6 Draft

Added script to conveniently create new containers with sensible defaults

  • Participants
  • Parent commits 50df298

Comments (0)

Files changed (1)

File create_container

+#!/bin/bash
+
+CTID=${1}
+HOSTNAME=${2}
+
+TEMPLATE="local:vztmpl/crux-custom_2.8_amd64.tar.gz"
+
+OPTIONS="-cpus 1 -cpuunits 1000 -memory 512 -swap 512 -disk 4 -hostname ${HOSTNAME} -netif ifname=eth0,bridge=vmbr1 -nameserver 192.168.1.1 -searchdomain shortcircuit.net.au -password semaj2891 -onboot yes"
+
+pvectl create ${CTID} ${TEMPLATE} ${OPTIONS}