1. can anyone find problems or offer general feedback on the script below?
(The IP addresses have been redacted. Said script seems to run fine in initial testing.)
2. I have questions about the
3. Is there a collection of example scripts like these, say in some wiki or github/gitlab repo?
4. also: what are the fundamental differences between
(The IP addresses have been redacted. Said script seems to run fine in initial testing.)
2. I have questions about the
--rootfs
vs --storage
options as noted in my post reply below.3. Is there a collection of example scripts like these, say in some wiki or github/gitlab repo?
4. also: what are the fundamental differences between
pct
and pvesh
; eg: why use one over the other?
Code:
cores=4
cpuunits=1024
memory=8192
swap=512
rootfs_storage=8
pct create $node_id \
local:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz \
--cores $cores --cpuunits $cpuunits \
--memory $memory --swap $swap \
--hostname $node_fqdn \
--net0 name=eth0,ip=$ip_address/32,bridge=vmbr0,gw=$gateway \
--rootfs local-lvm:$rootfs_storage \
--storage local-lvm \
--ssh-public-keys /root/.ssh/authorized_keys \
--onboot 1
# maybe use this later
# --net1 name=eth1,ip=x.x.x.2/32,bridge=vmbr1 \
pct start $node_id
Last edited: