VMware
Overview
In this section, we’ll cover creating a virtual machine (VM) for our ISO image in VMware Workstation Pro and VMware Fusion. These steps should be fairly similar for most VMware installations.
Note
If you want to sniff live traffic, then you will need a second network interface dedicated to sniffing. You will need to set this sniffing interface to sniff from whatever network you want to monitor. With the sniffing interface in bridged mode, you should be able to see all traffic to and from the host machine’s physical NIC. If you would like to see ALL the traffic on your network, you will need a method of forwarding that traffic to the interface to which the virtual adapter is bridged. This can be achieved with a TAP or SPAN port. If you want to sniff traffic from other VMs, then the virtual sniffing interface needs to be set to the same virtual network that those VMs are set to (this may be NAT or bridged depending on how they are configured).
Workstation Pro
VMware Workstation is available for many different host operating systems, including Windows and several popular Linux distros. Follow the steps below to create a VM in VMware Workstation Pro for our ISO image:
From the VMware main window, select File >> New Virtual Machine.
Select Typical installation >> Click
Next.Installer disc image file >> SO ISO file path >> Click
Next.Choose Linux, then choose the closest Linux distribution and click
Next.Specify virtual machine name and click
Next.Specify disk size (minimum 200GB), store as single file, click
Next.Customize hardware and increase Memory and Processors based on the Hardware Requirements section.
Network Adapter (
NATorBridged– if you want to be able to access your Security Onion machine from other devices in the network then choose Bridged, otherwise choose NAT to leave it behind the host). This will be the management interface.Add >> Network Adapter (
NATorBridged). This will be the sniffing (monitor) interface.Click
Close.Click
Finish.Power on the virtual machine and then follow the installation steps for your desired installation type in the Installation section.
Fusion
VMware Fusion is available for Mac OS. For more information about VMware Fusion, please see https://www.vmware.com/products/fusion.html.
Follow the steps below to create a VM in VMware Fusion for our ISO image:
From the VMware Fusion main window, click
Fileand then clickNew.Select the Installation Methodappears. ClickInstall from disc or imageand clickContinue.Create a New Virtual Machineappears. ClickUse another disc or disc image..., select our ISO image, clickOpen, then clickContinue.Choose Operating Systemappears. ClickLinux, choose the closest Linux distribution, then clickContinue.Choose Firmware Typeappears. ClickLegacy BIOSand then clickContinue.Finishscreen appears. Click theCustomize Settingsbutton.Save Asscreen appears. Give the VM a name and click theSavebutton.Settingswindow appears. ClickProcessors & Memory.Processors & Memoryscreen appears. Increase processors and memory based on the Hardware Requirements section. Click theAdd Device...button.Add Devicescreen appears. ClickNetwork Adapterand click theAdd...button.Network Adapter 2screen appears. This will be the sniffing (monitor) interface. Select your desired network adapter configuration. Click theShow Allbutton.Settingsscreen appears. ClickHard Disk (SCSI).Hard Disk (SCSI)screen appears. Increase the disk size to at least200GBdepending on your use case. Click theApplybutton.Close the
Settingswindow.At the window for your new VM, click the
Playbutton to power on the virtual machine.Follow the installation steps for your desired installation type in the Installation section.
ESXi
If you’re using VMware ESXi, then you’re likely familiar with VM creation and installation and so we won’t detail that here. There are a few things specific to ESXi that you might want to be aware of:
You may need to set your monitoring interface in the vSwitch to VLAN ID 4095 to allow all traffic through. You can read more about this at https://github.com/Security-Onion-Solutions/securityonion/discussions/7185.
If you’re trying to monitor multiple network interfaces, then you may need to enable the
Allow MAC Changesoption at both the vSwitch and Port Group levels. You can read more about this at https://github.com/Security-Onion-Solutions/securityonion/discussions/2676.If you happen to notice after rebooting that the Elastic Agent takes signifantly longer than 15 minutes to initialize, then you may need to enable the following option in ESXi: Settings > VM Options > VMWare Tools > Synchronise Guest Time. You can read more about this at https://github.com/Security-Onion-Solutions/securityonion/discussions/13285.
VMware Tools
If using a graphical desktop, you may want to install open-vm-tools-desktop to enable more screen resolution options and other features. For example, using our ISO image or standard Oracle Linux 9:
sudo dnf install open-vm-tools-desktop