From 9f9fdfb0c38876d65ab934cc448f6317ea6ca48a Mon Sep 17 00:00:00 2001 From: man715 Date: Mon, 23 Nov 2020 14:52:41 -0800 Subject: [PATCH] Fix indenting Issues --- HyperV/README.md | 4 +--- HyperV/reset-static-ip.sh | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/HyperV/README.md b/HyperV/README.md index 1663c93..1053a27 100644 --- a/HyperV/README.md +++ b/HyperV/README.md @@ -29,9 +29,7 @@ By not having this line added to the Vagrantfile you will be required to put in During the build you will also have to select the virtual switch you want to use for each server. This cannot be avoided. There is a option that can be used to force the network adapter to use a particular switch; however, using that option breaks this build process. A really hacky workaround is, if you are using the smb_username and smb_password options, would be to press the option number corresponding with the virtual switch you want to use then enter four times after `vagrant up`. So, if you know you want the virtual switch 1 `vagrant up` 1 enter 1 enter 1 enter 1 enter - -Yes, I know hacky, but it works. - + ## How this build works The majority of this build works the same as the VirtualBox build. The most notable difference is on the Windows builds. There is a script that will create an internal virtual switch called "NATSwitch." Throughout the build process, a script will create a second network adapter and attach it to the NATSwitch on the VM being built. After the machine is built the original network adapter will be removed from the VM. diff --git a/HyperV/reset-static-ip.sh b/HyperV/reset-static-ip.sh index ff5c68a..669c8b1 100644 --- a/HyperV/reset-static-ip.sh +++ b/HyperV/reset-static-ip.sh @@ -2,8 +2,8 @@ reset_static_ip() { # The bootstrap script assumes that there are two adapters and attempts to set the ip address # to the eth1 adapter. This corrects the 01-netcfg.yaml file - MAC=$(ip a | grep "link/ether" | cut -d ' ' -f 6) - cat > /etc/netplan/01-netcfg.yaml << EOL + MAC=$(ip a | grep "link/ether" | cut -d ' ' -f 6) + cat > /etc/netplan/01-netcfg.yaml << EOL network: ethernets: eth0: @@ -18,7 +18,6 @@ network: version: 2 renderer: networkd EOL - } reset_static_ip \ No newline at end of file