X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=README;fp=README;h=fbfa4ae7a2142833dd9bc09998a8d64194871728;hp=0dc966b444daaec21b33185ff1b45979a82626b7;hb=1e6019a5846160b3f62fc94357e16944b5b3527b;hpb=137ffae7de84a51c4b438ccf2fb50f5571f522a6 diff --git a/README b/README index 0dc966b..fbfa4ae 100644 --- a/README +++ b/README @@ -292,7 +292,63 @@ fai.log:Error: /dev/vda: unrecognised disk label This is from parted -m $d unit MiB print. It happens when there are no partitions yet. -# linode notes + +######## notes on creating a lan with just 2 computers ######## + + +## below assumes eth0 is the ethernet device used to connect to the target computer. + + +# this is not strictly needed. I had my connection die at some point, +# and I suspected this might help. +# based on +# https://support.qacafe.com/knowledge-base/how-do-i-prevent-network-manager-from-controlling-an-interface/ +cat > /etc/NetworkManager/conf.d/99-fai-tmp.conf <<'EOF' +[main] +plugins=keyfile + +[keyfile] +unmanaged-devices=interface-name:eth0 +EOF +ser restart NetworkManager + + +cat >> /etc/network/interfaces <<'EOF' +iface eth0 inet static +address 10.0.44.1/24 +EOF + +ifup eth0 + +# note turn off fsf vpn, so route to coresite is the normal route. +echo 1 > /proc/sys/net/ipv4/ip_forward +m s iptables -t nat -A POSTROUTING -o $(ip -4 route get 8.8.8.8 | sed -nr 's,^.* dev\s+(\S+).*,\1,p') -j MASQUERADE + + +change /p/c/machine_specific/vps/bind-initial/db.b8.nz +faiserver 10.0.44.1 +TARGET 10.0.44.2 + +apt install isc-dhcp-server + +cat >> /etc/default/isc-dhcp-server <<'EOF' +INTERFACESv4="eth0" +EOF + +edit ./dhcpd.conf to change mac address and target host name. + +s cp /b/fai/dhcpd.conf /etc/dhcp/ +ser restart isc-dhcp-server + +edit /a/bin/fai/fai/config/class/51-multi-boot + +pxe-server -d TARGET fai + +Then do a pxe boot on the target host + + + +##### linode notes ###### * create 2 disks, installer (3000 mb, raw), boot (remaining, raw) * create 2 profiles w direct boot, no helpers: @@ -308,7 +364,8 @@ It happens when there are no partitions yet. settings. -# ubuntu notes + +###### ubuntu notes ###### For someone who really needed ubuntu on host tp, otherwise they would end up on a non-gnu os, and I didn't want to figure out how to get all