Merge pull request #1052 from guardicore/vm-ip-config-docs

docs: update vmware OVA static IP configuration instructions
This commit is contained in:
Mike Salvatore 2021-03-26 12:25:32 -04:00 committed by GitHub
commit ad0ce3cdeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 19 deletions

View File

@ -16,8 +16,9 @@ tags: ["setup", "vmware"]
1. Log in to the machine with the following credentials: 1. Log in to the machine with the following credentials:
1. Username: **monkeyuser** 1. Username: **monkeyuser**
1. Password: **Noon.Earth.Always** 1. Password: **Noon.Earth.Always**
1. It's recommended you change the machine passwords by running the following 1. For security purposes, it's recommended that you change the machine
commands: `sudo passwd monkeyuser`, `sudo passwd root`. passwords by running the following commands: `sudo passwd monkeyuser`, `sudo
passwd root`.
## OVA network modes ## OVA network modes
@ -26,37 +27,43 @@ You can use the OVA in one of two modes:
1. In a network with the DHCP configured — In this case, the Monkey Island will 1. In a network with the DHCP configured — In this case, the Monkey Island will
automatically query and receive an IP address from the network. automatically query and receive an IP address from the network.
1. With a static IP address — In this case, you should log in to the VM console 1. With a static IP address — In this case, you should log in to the VM console
with the username `root` and the password `G3aJ9szrvkxTmfAG`. After logging with the username `monkeyuser` and the password `Noon.Earth.Always`. After logging
in, edit the interfaces file by entering the following command in the in, edit the Netplan configuration by entering the following command in the
prompt: prompt:
```sh ```sh
sudo nano /etc/network/interfaces sudo nano /etc/netplan/00-installer-config.yaml
``` ```
Change the lines: Make the following changes:
```sh ```diff
auto ens160 # This is the network config written by 'subiquity'
iface ens160 inet dhcp network:
ethernets:
ens160:
- dhcp4: true
+ dhcp4: false
+ addresses: [XXX.XXX.XXX.XXX/24]
+ gateway4: YYY.YYY.YYY.YYY
+ nameservers:
+ addresses: [1.1.1.1]
version: 2
``` ```
to the following: Replace `XXX.XXX.XXX.XXX` with the desired IP addess of the VM. Replace
`YYY.YYY.YYY.YYY` with the default gateway.
```sh
auto ens160
iface ens160 inet static
address AAA.BBB.CCC.DDD
netmask XXX.XXX.XXX.XXX
gateway YYY.YYY.YYY.YYY
```
Save the changes then run the command: Save the changes then run the command:
```sh ```sh
sudo ifdown ens160 && ifup ens160 sudo netplan apply
``` ```
If this configuration does not suit your needs, see
https://netplan.io/examples/ for more information about how to configure
Netplan.
## Upgrading ## Upgrading
Currently, there's no "upgrade-in-place" option when a new version is released. Currently, there's no "upgrade-in-place" option when a new version is released.