forked from c3d2/nix-config
proxmox/nixprox: fix /init, grow memory limit, doc
This commit is contained in:
parent
406dbae70a
commit
9648360a48
|
@ -19,10 +19,13 @@ NAME=$2
|
||||||
# https://pve.proxmox.com/pve-docs/pct.1.html
|
# https://pve.proxmox.com/pve-docs/pct.1.html
|
||||||
# --ssh-public-keys
|
# --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
|
# storage: there's enough of slow
|
||||||
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
|
# memory: enough for building stuff
|
||||||
echo "lxc.init.cmd: /init" >> /etc/pve/lxc/$ID.conf
|
# 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
|
pct start $ID
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user