Path: blob/master/manuals/vm/seedvm-from-scratch.md
7481 views
How to Build SEED Ubuntu 20.04 VM from Scratch
Building the SEED Ubuntu 20.04 VM involves the following steps:
1. Create a VM in VirtualBox
Install the free VirtualBox software first. Inside VirtualBox, we will create a VM instance. This involves a series of steps:
Step 1: Name and operating system. We will use the following parameters when creating the VM:
Step 2: Memory size. The minimal memory size is 2GB. Pick more if your machine has enough memory.
Step 3: Hard disk. The configuration for the hard disk consists of several steps:
VirtualBox will ask you whether you want to create a new virtual disk or use an existing one; select
Create a virtual hard disk now.The hard disk file type we choose is
VDI(Virtual Disk Image).Choose
Dynamically allocatedoption for the storage on physical hard disk.Select
80 GBfor the virtual disk file size.
2. Configure the VM
After the VM is created, go to its Settings. We will change some of the settings. Please go to the following setting categories: General, System, Display, and Network, and change their parameters based on the following (a detailed manual on changing the settings can be found in this document).
Note: In the past, we had to use VBoxVGA for the display, otherwise, the desktop won't go full screen. In the new VirtualBox version (6.1.10), it seems that this graphic controller is causing trouble (system crash). We now switch to VMSVGA (the default). Online resources indicate that VBoxVGA is for legacy system, VBoxSVGA is for Windows, while VMSVGA is for Linux.
3. OS Installation and Configuration
Next, we install Ubuntu 20.04 OS in VirtualBox. We will not go to details on how to do that (you can find the instructions from online). We will only provide the important information that is needed during the installation.
Step 1: OS installation. When we install the Ubuntu 20.04 from the ISO file, we will be asked to provide additional information. Please use the following:
Step 2: Install the Update. After the installation finishes, and we log into the seed account, the OS will prompt us to install the updates. Do it.
Step 3: Install the Guest Addition. If we just go to the Device menu, click "Insert Guest Addition CD image", it will not work, because it requires the kernel building tools, which has not been installed yet. We can switch to the following step (these commands are already added to guest-addition.sh):
After rebooting the machine, the copy-and-paste will work.
4. Installing Software Packages
Most of the software package installation steps are automated with shell scripts. We will install many software packages, and we group them into individual shell scripts and they are stored in the lab-setup/ubuntu20.04-vm/src-vm folders of the SEED Labs GitHub repo. The main script is called main.sh, which will invoke all the other shell scripts in this folder.
Note: This installation script will download and install all the software needed for the SEED labs. The whole process will take a few minutes. Please don't leave, because during the installation of Wireshark, you will be asked whether non-superuser should be able to capture packets. Select No.
5. Additional Manual Steps
There are still a few steps that need to be done manually. They are described in here.