mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update build_backend.sh
This commit is contained in:
parent
c637a77789
commit
e0119824b1
1 changed files with 14 additions and 0 deletions
|
@ -12,9 +12,23 @@ iface vmbr1 inet static
|
||||||
bridge_stp off
|
bridge_stp off
|
||||||
bridge_fd 0
|
bridge_fd 0
|
||||||
EOF
|
EOF
|
||||||
|
if grep -q "iface vmbr1" /etc/network/interfaces; then
|
||||||
|
echo "Bridge vmbr1 is already in Proxmox VE configuration."
|
||||||
|
else
|
||||||
|
# Add bridge configuration to Proxmox VE configuration
|
||||||
|
echo "Adding bridge vmbr1 to Proxmox VE configuration..."
|
||||||
|
cat <<EOF >> /etc/network/interfaces
|
||||||
|
# Proxmox VE bridge vmbr1
|
||||||
|
iface vmbr1 inet manual
|
||||||
|
bridge-ports enp0s8
|
||||||
|
bridge-stp off
|
||||||
|
bridge-fd 0
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
systemctl restart networking.service
|
systemctl restart networking.service
|
||||||
echo "Bridge vmbr1 created!"
|
echo "Bridge vmbr1 created!"
|
||||||
|
|
||||||
|
|
||||||
# 创建资源池
|
# 创建资源池
|
||||||
echo "Creating resource pool mypool..."
|
echo "Creating resource pool mypool..."
|
||||||
pvesh create /pools --poolid mypool
|
pvesh create /pools --poolid mypool
|
||||||
|
|
Loading…
Reference in a new issue