mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 11:38:00 +08:00
Create build_backend.sh
This commit is contained in:
parent
1bf6a7387b
commit
976b5f613b
1 changed files with 21 additions and 0 deletions
21
build_backend.sh
Normal file
21
build_backend.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
#from https://github.com/spiritLHLS/pve
|
||||
|
||||
# 创建网桥
|
||||
echo "Creating bridge vmbr1..."
|
||||
cat <<EOF >> /etc/network/interfaces.d/vmbr1.cfg
|
||||
auto vmbr1
|
||||
iface vmbr1 inet static
|
||||
address 192.168.1.1
|
||||
netmask 255.255.255.0
|
||||
bridge_ports enp0s8
|
||||
bridge_stp off
|
||||
bridge_fd 0
|
||||
EOF
|
||||
systemctl restart networking.service
|
||||
echo "Bridge vmbr1 created!"
|
||||
|
||||
# 创建资源池
|
||||
echo "Creating resource pool mypool..."
|
||||
pvesh create /pools --poolid mypool
|
||||
echo "Resource pool mypool created!"
|
Loading…
Reference in a new issue