Www.wright.edu



CEG 2400 Fall 2012In-Class Lab 10 – Virtualization ProjectHands-On Projects 10-1 and 10-2 from Chapter 10Project 10-1 (page 480)This chapter introduced you to some of the most popular virtualizationprograms and their conventions. In these Hands-On Projects, you have thechance to install virtualization software, create virtual machines, and configurethem to communicate over a network. This project leads you through the stepsof installing Oracle’s VirtualBox virtualization software and establishing your firstvirtual machine.1-17. VirtualBox is already installed on your workstation so skip steps 1-17 and start the VirtualBox.program.18. The Oracle VM VirtualBox Manager window opens, as shown in Figure 10-17.19. To begin creating a virtual machine, choose Machine, then New from the VirtualBoxmenu. The Create New Virtual Machine wizard appears.20. Click Next to continue. The VM Name and OS Type dialog box opens.21. In the Name text box, type VM-Test-1.22. From the Operating System drop-down box, choose Linux.23. From the Version drop-down box, choose Ubuntu.24. Click Next to continue. A dialog box opens, prompting you to choose how much base memory (RAM) to allocate to your new virtual machine.25. Click Next to accept the default memory allocation of 512 MB.26. The next dialog box prompts you to choose whether you want to create a new harddisk or use an existing hard disk for this virtual machine. Click Next to accept thedefault choice of creating a new (virtual) hard disk.27. The Virtual Disk Creation Wizard dialog box opens. Click Next to accept the defaultoption of VDI (VirtualBox Disk Image).28. The Virtual disk storage details dialog box opens, prompting you to choose whetheryou want the VM’s hard disk space dynamically allocated or given a fixed size. Dynamically allocated means that the virtual machine will consume hard disk space only as needed, which can help conserve your host’s hard disk resources. Click Next to accept this default selection.29. The Virtual disk file location and size dialog box opens, as shown in Figure 10-18, prompting you to choose the maximum size for your VM’s hard disk. Notice that VirtualBox has created a folder with the same name of your VM in which it will save the VM as a file, as shown in Figure 10-18. Also notice that the default disk size is set to 8.00 GB.30. Enter 16 GB in the text box corresponding to the disk size, and then click Next tocontinue.31. The Summary dialog box opens. Review your settings, and then click Create.32. Another Summary dialog box opens. Click Create again to finish creating your newvirtual machine.33. The Oracle VM VirtualBox Manager window now lists your new virtual machine and a summary of its characteristics, as shown in Figure 10-19.34. Now that you have configured a VM in VirtualBox, proceed to Hands-On Project 10-2 to install its operating system from a disk image.Project 10-2 (Page 483)In Project 10-1, you installed VirtualBox and set the parameters for a new virtualmachine that runs the Ubuntu Server operating system. Before you canrun the new VM, however, you need to supply it with the Ubuntu Server IOSimage. In this project, you will install Ubuntu on the VM you created in Project 10-1. Forthis project, you will need the same Windows workstation you used in Project 10-1. 1-4. Instead of downloading the IOS from the internet go to \\cs-share.cs.wright.edu\public\ceg2400And download to your desktop the ISO we used when creating Linux on a USB drive.5. After the Ubuntu Server ISO image has been saved, you are ready to install it on yourvirtual machine. If the VirtualBox Manager window is not open, click the Start button,click All Programs, click Oracle VM VirtualBox, and then click Oracle VM VirtualBoxto launch it now. The Oracle VM VirtualBox Manager window opens.6. Click the Start button to launch the Ubuntu virtual machine. A VirtualBox – Informationwindow may open to inform you that the Auto capture keyboard option is turned on.This means that when you are working in the VM’s window, the keyboard will beunavailable to other applications on your host machine by default; however, usingthe right Ctrl key will give you control of the keyboard. If this message or a similarmessage opens, select the Do not show this message again check box, and then click OK.7. The First Run Wizard dialog box opens. Click Next to begin setting up this virtualmachine.8. The Select Installation Media dialog box opens, prompting you to choose the folder and filename for your IOS image. Click the folder icon. Navigate to the folder where yousaved the Ubuntu image in Step 4 and choose the Ubuntu Server file you downloaded.Click Open to continue.9. The ISO file you chose should now appear in the Media Source drop-down box in theSelect Installation Media dialog box. Click Next to continue.10. A summary of your choices appears. Click the Start button to start your virtualmachine.11. If you receive a VirtualBox Information message regarding the virtual display, click OK to continue.12. The VM-Test-1 virtual Ubuntu Linux server you created is now running. For thenext several steps, you will be configuring the Ubuntu server independent of VirtualBox,as if the server were running on a separate physical machine. The first step in configuring it is to choose your language. By default, English is selected. Press Enter toaccept the default language setting. The Ubuntu main menu appears, as shown inFigure 10-20.Figure 10-20 Ubuntu main menu on a virtual machine13. Press Enter to install the Ubuntu server software on your virtual machine.14. If any pop-up windows open to advise you about display or mouse functionality, foreach pop-up window, select the check box that says Do not show this message again,and then click OK.15. The Ubuntu Select your language screen appears on the virtual machine, prompting you to select the operating system’s language. Press Enter to accept the default choice, English.16. The Ubuntu Select your location screen appears on the virtual machine, prompting you to select your location. Use the arrow keys to select your location, and then press Enter.17. The Configure the keyboard screen appears, asking whether you want the installation program to detect your keyboard type or allow you to choose it from a list. Use the left arrow key to choose <Yes>, and then press Enter to continue.18. The next screen prompts you to press a series of keys so that the installation program can choose the appropriate keyboard type. In response to each prompt, press one of the keys that appears in the list. Continue following the instructions for pressing a key if it appears on your keyboard. If you are asked whether a key appears on your keyboard, use the left or right arrow to select Yes or No, as appropriate, and then pressEnter. After several iterations, the installation program should detect your correctkeyboard type (for example, US-Int). Press Enter to accept the selection, and then waitwhile more files are installed.19. The Configure the network screen appears, prompting you to assign the virtual server a host name (the default host name is ubuntu). Press the Backspace key until you reach the beginning of the line, and then type TestServer1 and press Enter.20. The installation program sets up the clock and suggests a time zone. Press Enter to confirm that the time zone it selected is correct. (If it isn’t correct, use the right arrow to highlight No, and then press Enter and choose your correct time zone from the list that appears.)21. The installation program begins detecting disks and other hardware, and then the Partition disks screen appears. Use the up arrow to highlight the Guided – use entire diskoption, and then press Enter.22. Another Partition disks screen appears, alerting you that all the contents of the disk will be erased if you choose to partition it and prompting you to confirm which disk youwant to partition. Press Enter to confirm that you want to partition this (virtual) disk.23. The Ubuntu server installation program partitions the new disk, and then a third Partition disks screen appears, describing how the disks will be formatted and askingwhether you want to write these changes to the disk. Use your left arrow to highlightthe <Yes> option, and then press Enter.24. After files are installed on the new partition, a Set up users and passwords screenappears. Establishing a username and password here provides an alternative to usingthe root (or administrator) logon ID for all functions. At this screen, you are asked toenter the real name of a user. Type VM User and press Enter to continue.25. A second Set up users and passwords screen appears. This time, you are prompted to enter a username for logging on to the system. Type vmuser and press Enter to continue.26. A third Set up users and passwords screen appears, prompting you to enter a password for the username you just created. Type ak**jA7n02fv&S and then press Enter to continue. The password will not appear on the screen as you type.27. At the next screen, you are asked to type the password again for verification. Typeak**jA7n02fv&S and then press Enter to continue.28. The next Set up users and passwords screen asks whether you want to configure your home directory for encryption. Press Enter to accept the default option, <No>, which means your home directory will not be encrypted.29. The Configure the package manager screen appears, prompting you to enter proxyserver information. If you are not using a proxy server for Web access, press Enter tocontinue without specifying a proxy server. (If you are using a proxy server, enter theserver’s address, and then press Enter.)30. Wait while the server software is installed. When the Configuring tasks screen appears, press Enter to accept the default upgrade management option of No automatic updates.31. When you are prompted to choose which packages to install (for example, DNS server or mail server), use the down arrow to highlight the last option, Manual package selection, and then press Enter to continue.32. Wait while the installation program installs more files. When the Install the GRUB boot loader on a hard disk screen appears, press Enter to confirm that this is the first operating system installed on the (virtual) disk and that you want to install the boot loader.33. When the Finish the installation screen appears, press Enter to confirm that you want complete the installation and boot the new Ubuntu server you have installed. The server reboots and presents you with a login prompt, as shown in Figure 10-21.Figure 10-21 Virtual Ubuntu server login prompt34. At the TestServer1 login: prompt, type vmuser, the username you created in Step25, and then press Enter.35. At the Password: prompt, type the password you created in Step 26, ak**jA7n02fv&S,and then press Enter.36. You are now logged on to the test server you have just created.37. At the vmuser@TestServer1$: prompt, type ifconfig –a or the similar command,ip addr, and then press Enter. What is your new virtual server’s IP address? 38. Shut down your virtual server.39. Close virtualbox.40. Start virtualbox 41. In virtualbox, Pick your virtual server and start it.42. Once your virtual server has started you are done.Show that you have finished both project 10-1 and project 10-2 to me to get credit for the lab. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download