trying on current, it's worse
This commit is contained in:
parent
eb39bcf1e7
commit
3c6afb0096
@ -30,8 +30,13 @@ then
|
||||
do
|
||||
ping -c 1 -w 1 $HOST >/dev/null 2>/dev/null && break
|
||||
printf "."
|
||||
if ! vmctl show ${HOST%.kube} | grep running >/dev/null
|
||||
then
|
||||
printf "\n$HOST isn't running"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo "abort"
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
ssh-keygen -R "$HOST" >/dev/null 2>/dev/null
|
||||
|
@ -32,7 +32,7 @@ curl -OL https://cdn.openbsd.org/pub/OpenBSD/7.3/amd64/bsd.rd
|
||||
# create install.conf
|
||||
cat <<EOF >install.conf
|
||||
System hostname = $NAME
|
||||
Password for root = *************
|
||||
Password for root = hunter2
|
||||
Public ssh key for root = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIZKLFQXVM15viQXHYRjGqE6LLfvETMkjjgSz0mxMzS
|
||||
Change the default console to com0 = yes
|
||||
Which speed should com0 use = 19200
|
||||
|
@ -23,6 +23,12 @@ install -d -o root -g wheel -m 755 /var/openkubsd/templates/
|
||||
install -o root -g wheel -m 555 ./get_ip.sh /var/openkubsd/bin/
|
||||
install -o root -g wheel -m 555 ./recreate_conf.sh /var/openkubsd/bin/
|
||||
|
||||
if ! grep net.inet.ip.forwarding=1 /etc/sysctl.conf
|
||||
then
|
||||
echo net.inet.ip.forwarding=1 >> /etc/sysctl.conf
|
||||
sysctl net.inet.ip.forwarding=1
|
||||
fi
|
||||
|
||||
# generate NAT PF rule
|
||||
cat <<EOF >/var/openkubsd/pf/nat
|
||||
match out on egress from vether0:network to any nat-to (egress)
|
||||
@ -35,13 +41,12 @@ cat <<EOF >/etc/hostname.vether0
|
||||
inet 10.100.0.1 255.255.255.0
|
||||
up
|
||||
EOF
|
||||
sh /etc/netstart vether0
|
||||
|
||||
cat <<EOF >/etc/hostname.bridge0
|
||||
add vether0
|
||||
up
|
||||
EOF
|
||||
|
||||
sh /etc/netstart vether0
|
||||
sh /etc/netstart bridge0
|
||||
|
||||
# Configure vmd to use a switch
|
||||
|
@ -13,6 +13,8 @@ then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
# create a derived disk from the template
|
||||
arp -d $NAME.kube
|
||||
rm -f /var/openkubsd/derived/${NAME}.qcow2
|
||||
|
Loading…
Reference in New Issue
Block a user