Another machine!
parent
d72865bc07
commit
df1b8bb3ec
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
. ./lib.shs
|
||||||
|
. machines/$mach/opts.shs
|
||||||
|
|
||||||
|
nsenter --wdns=$nethorror_root $namespaces "$@"
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/false
|
||||||
|
|
||||||
|
namespaces="--net=./state/$mach/netns --mount=./state/$mach/mntns"
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
. ./lib.shs
|
||||||
|
|
||||||
|
ensure_started
|
||||||
|
attach machines/$mach/setup.sh
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# typically: bring up the networks
|
||||||
|
ip addr add 100.100.0.2/29 dev up_ve
|
||||||
|
ip link set up_ve up
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
. ./lib.shs
|
||||||
|
. machines/$mach/opts.shs
|
||||||
|
|
||||||
|
setup_statedir
|
||||||
|
|
||||||
|
unshare $namespaces /bin/true # just create the namespaces
|
||||||
|
|
||||||
|
veth_to_bridge up_ve vpsuplink
|
Loading…
Reference in New Issue