proxmox/nixprox: fix /init, grow memory limit, doc

This commit is contained in:
Astro 2021-09-06 00:29:25 +02:00
parent 406dbae70a
commit 9648360a48
1 changed files with 7 additions and 4 deletions

View File

@ -19,10 +19,13 @@ NAME=$2
# https://pve.proxmox.com/pve-docs/pct.1.html
# --ssh-public-keys
#pct create $ID local:vztmpl/nixos-system-x86_64-linux.tar.xz --arch amd64 --hostname $NAME --ostype unmanaged --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --cmode shell
pct create $ID $TEMPLATE --hostname $NAME --ostype unmanaged --arch amd64 --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --cmode shell --features nesting=1
echo "lxc.init.cmd: /init" >> /etc/pve/lxc/$ID.conf
# storage: there's enough of slow
# memory: enough for building stuff
# net vlan tag 5: c3d2 (with dhcp). request a static IP address with Astro and move to 3 (serv).
pct create $ID $TEMPLATE --hostname $NAME --ostype unmanaged --arch amd64 --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --memory 4096 --cmode shell --features nesting=1
# this boots the current profile
echo "lxc.init.cmd: /sw/bin/init" >> /etc/pve/lxc/$ID.conf
echo Done, Starting $ID
echo Starting $ID
pct start $ID