Add an approximation of Xe
parent
8249478a04
commit
74a3d7a98d
@ -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,14 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
. ./lib.shs
|
||||
|
||||
# typically: bring up the networks
|
||||
ip link set dev lo up
|
||||
|
||||
# FIXME: Xe does not belong to this location (it is just conveniently also behind two NATs and IPv4-only…
|
||||
# TODO: DHCP client!
|
||||
ip addr add 192.168.0.3/24 dev wifi
|
||||
# No IPv6 at public spaces lol (but we should try obtaining it anyway!
|
||||
ip link set dev wifi up
|
||||
ip route add default via 192.168.0.1 dev wifi
|
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
. ./lib.shs
|
||||
. machines/$mach/opts.shs
|
||||
|
||||
setup_statedir
|
||||
|
||||
unshare $namespaces /bin/true # just create the namespaces
|
||||
|
||||
# FIXME: Move to a better location (esp. in order to test providing it with IPv6 connectivity…)
|
||||
veth_to_bridge wifi loc1_cli ve_loc1_xe
|
Loading…
Reference in New Issue