[VCREATE] Added prefix variable
This commit is contained in:
parent
2b8ce06d91
commit
93e0bfb4f8
@ -16,6 +16,7 @@ set IMAGE=ubuntu20.img
|
|||||||
set PUBKEY=/home/simon/.ssh/id_ed25519.pub
|
set PUBKEY=/home/simon/.ssh/id_ed25519.pub
|
||||||
set NAMESERVER=192.168.10.254
|
set NAMESERVER=192.168.10.254
|
||||||
set GATEWAY=192.168.10.254
|
set GATEWAY=192.168.10.254
|
||||||
|
set PREFIX=24
|
||||||
|
|
||||||
# create vm
|
# create vm
|
||||||
$VM create \
|
$VM create \
|
||||||
@ -23,5 +24,5 @@ $VM create \
|
|||||||
-s $SIZE \
|
-s $SIZE \
|
||||||
-i $IMAGE \
|
-i $IMAGE \
|
||||||
-C -k $PUBKEY \
|
-C -k $PUBKEY \
|
||||||
-n "ip=$IP/24;gateway=$GATEWAY;nameservers=$NAMESERVER" \
|
-n "ip=$IP/$PREFIX;gateway=$GATEWAY;nameservers=$NAMESERVER" \
|
||||||
$HOSTNAME
|
$HOSTNAME
|
||||||
|
Loading…
Reference in New Issue
Block a user