Название | Mastering Linux System Administration |
---|---|
Автор произведения | Richard Blum |
Жанр | Зарубежная компьютерная литература |
Серия | |
Издательство | Зарубежная компьютерная литература |
Год выпуска | 0 |
isbn | 9781119794462 |
5 After reading the Warning window and you are ready to proceed with the installation, click the Next button.
6 You get one more chance to bail out of this installation. If you want to continue, click the Install button.
7 If you are not performing this VirtualBox software installation in an account that has administrator privileges, you will receive a pop‐up window asking for the administrator password. Enter the password and click the Yes button.
8 At this point, you will receive an installation status box that shows the progress of the VirtualBox software install, similar to the following:
9 After the software installation is completed, you'll receive a window letting you know that it is done. Click the Finish button to open the VirtualBox hypervisor app.
10 You should see a window showing the Oracle VirtualBox hypervisor interface, called the VirtualBox Manager, which looks similar to this:Congratulations! You have successfully installed the hypervisor software! You are ready to start the process of creating your Ubuntu Server VM.
If you need to take a break, close out the VirtualBox interface window by clicking the X in the upper‐right corner. However, if you want to plow on ahead, keep it open. We'll launch into installing Ubuntu Server in the next section.
Ubuntu Server
Installing the Ubuntu Server as a VM may feel overwhelming the first time you do it, but as you complete the process a few more times, you'll feel more at ease. We'll help you through this initial instance to build confidence.
SETTING UP AN UBUNTU SERVER CONFIGURATION WITHIN ORACLE VirtualBox
Prior to installing Ubuntu Server as a VM within the VirtualBox hypervisors, you need to perform a few basic tasks to create and configure a place for the new VM within the VirtualBox app. After you have completed these tasks, you will have a folder on your host machine for the new VM as well as two files within the folder: one file for the VM configuration information and one file acting as a hard disk for the VM.
Follow these steps to configure the VM. Though only a few steps are needed to complete this part of the installation project, they are important! So don't skim through this exercise.
1 Open the Oracle VirtualBox app on your host system. How this is accomplished depends on the configuration you chose when installing the VirtualBox software. You may have to find it via the menu search feature on Windows 10, or you can simply click the VirtualBox icon on the desktop or taskbar. Once you have the app open, you should see a window showing the Oracle VirtualBox Manager that looks similar to this:
2 In the VirtualBox Manager window, using the top menu within the window, select Machine ➢ New. This will start the process of configuring the Ubuntu Server VM and produce the Create Virtual Machine window.
3 Enter the name Ubuntu Server in the Create Virtual Machine window's Name box.
4 Click the Next button to reach the Memory Size window, which looks similar to the following:
5 By either typing in the memory setting box or using the up‐arrow button, change the Ubuntu Server memory to 2048 MB.
6 Click the Next button in the Memory Size window to reach the Hard Disk window.
7 Double‐check that the Create A Virtual Hard Disk Now option is selected. (You can tell that a particular option is selected by the circle next to it being filled with a dark color as shown in the previous figure.) If you need to select the Create A Virtual Hard Disk Now option, click the empty circle next to it.
8 Click the Create button in the Hard Disk window, which will open another configuration window called Hard Disk File Type.
9 Within the Hard Disk File Type window, ensure that the VirtualBox disk image (VDI) is selected.
10 Click the Next button, and the Storage On Physical Hard Disk window will appear. This configuration window looks similar to the following:
11 Double‐check that the Dynamically Allocated setting is selected.
12 Click the Next button to open the File Location And Size window.
13 Click the Next button, and the Storage On Physical Hard Disk window will appear. In this window, you will see where the VM's virtual disk file will be created as well as its size. This configuration window looks similar to the following:
14 Change the file size to 16 GB by typing 16 within the size box.
15 You are now ready to create the basic configuration and virtual disk file of the VM. Do so by clicking the Create button.You should now be back at the VirtualBox Manager window with the Ubuntu Server VM in the left pane, as shown here:We have a few more configuration items to accomplish before the VM is completely configured.
16 Click the Settings button in the VirtualBox Manager's top‐right pane, which opens the Settings window for the Ubuntu Server VM.
17 In the Settings window, click Network in the left pane to open the Network settings window for the Ubuntu Server.The next few steps help you to set up a second network interface card (NIC) on the Ubuntu Server. This allows your VM to act as an independent node on your network.
18 In the Network settings window's right pane, click the Adapter 2 tab.
19 In the Adapter 2 tab window, click the empty box next to Enable Network Adapter.
20 Still in the Network settings’ Adapter 2 tab window, use the arrow to open the drop‐down menu in the Attached To box, and select Bridged Adapter. Except for the Name box, your selections should look similar to the following:
21 Click the OK button to save the network settings.You should now be back to the VirtualBox Manager window. Pat yourself on the back! You have successfully configured the Ubuntu Server VM.
All this hard work will soon pay off. You are now ready to install the Ubuntu Server distribution on the virtual machine you just configured within VirtualBox.
INSTALLING UBUNTU SERVER AS A VM
After configuring the Ubuntu Server VM within the VirtualBox hypervisor, you can perform the actual installation of the Linux OS. Conducting the installation process on a VM is similar to conducting it on a physical server. Just a few differences exist, such as loading the ISO image file into the virtualized DVD drive.
Follow these steps to install your Ubuntu Server from the ISO image file:
1 Open the Oracle VirtualBox hypervisor app on your host system if it's not already open.
2 If you have multiple VMs configured in your hypervisor, click one time on the Ubuntu Server VM to select it.
3 Click the Settings button in the VirtualBox Manager's top‐right pane, which opens the Settings window for the Ubuntu Server VM.
4 In the Settings window, click Storage in the left pane to open the Storage settings window for the Ubuntu Server. It will look similar to the following:
5 In the Storage settings window's middle pane under Controller: IDE, click the word Empty to open the Attributes pane for the IDE optical drive.
6 In the Storage settings window's Attributes pane, click the DVD image to produce a drop‐down menu, and select Choose/Create A Virtual Optical Disk. An Optical Disk Selector window will appear that looks similar to the following:
7 In the Optical Disk Selector window, click the Add icon, which will open the Windows Explorer utility, and you will see “Please choose an optical disk file” in the