mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-09 06:32:41 +01:00
@@ -8,10 +8,10 @@ chown root:kvm /dev/kvm
|
||||
|
||||
# create the bridge for networking
|
||||
ip link add name virt0 type bridge
|
||||
ip link set virt0 up
|
||||
ip link set dev virt0 up
|
||||
bridge link
|
||||
ip addr add dev virt0 192.168.66.66/24
|
||||
iptables -t nat -A POSTROUTING -s 192.168.66.66/24 -j MASQUERADE
|
||||
ip addr add dev virt0 172.20.0.1/16
|
||||
iptables -t nat -A POSTROUTING -s 172.20.0.1/16 -j MASQUERADE
|
||||
|
||||
# start the virtlogd daemon
|
||||
exec virtlogd --daemon &
|
||||
|
||||
Reference in New Issue
Block a user