Update vmcreate.sh
This commit is contained in:
@@ -292,6 +292,7 @@ do
|
|||||||
qm set $vmid --cicustom "user=${storage}:snippets/${vmid}_user.yaml"
|
qm set $vmid --cicustom "user=${storage}:snippets/${vmid}_user.yaml"
|
||||||
qm set $vmid --ipconfig0 ip="$ip"/"$mask",gw="$gw"
|
qm set $vmid --ipconfig0 ip="$ip"/"$mask",gw="$gw"
|
||||||
sed -i "s|tag=35|tag=$vlan|" /etc/pve/qemu-server/${vmid}.conf
|
sed -i "s|tag=35|tag=$vlan|" /etc/pve/qemu-server/${vmid}.conf
|
||||||
|
# sed -i "s|vmbr0|vmbr1|" /etc/pve/qemu-server/${vmid}.conf
|
||||||
qm cloudinit update $vmid
|
qm cloudinit update $vmid
|
||||||
### DEBUG
|
### DEBUG
|
||||||
echo "DEBUG: ${vmid}.conf"
|
echo "DEBUG: ${vmid}.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user