You are on page 1of 11

ITEC 625 9042 Computer Systems Architecture

Instructions:

Download and install a Virtual Machine (VM) (e.g. Virtual box, VMWare) and an Operating
Systems CentOS v7 on the VM. CentOS v7 will work better than v8. This HOA3 will be used
for HOA6. You must install the maximum development software package in order for HOA6
to work. When you create an account for your VM, other than the default root account, you
must also create a user account with your name on it.

After completing create the VM, open a terminal, logoff as the root and login with your
name, and run the three commands as below:

$ whoami

$ hostname

$ ifconfig (if the VM is Mac or Linux)

$ ipconfig (if the VM is Windows)

$ ip addr show (some Windows VM’s only work with this command)

Then screen shot the VM and send the PDF file as part of the HW1 answer. The snap shot
can be from a phone or camera, then submit it as a PDF or JPEG file. The screen shot must
show the VM logo (such as Oracle VM). The screen shot can’t be from a host computer.
(40%)
Instructions:

The instruction below is based on Virtualbox as the VM and Centos as the VM OS on a


MAC OS 10.10.5. Virtualbox is like a virtual computer hardware and Centos is the operating
system for the Virtualbox.

Do Google search for Oracle Virtualbox and Centos free download for your platform. Be
sure to get the right ones for your platform, for example “*.dmg” for MAC. Some downloads
are OS version specific, for example, MAC OS 10.10.x.

Install your VM. In the case of Virtualbox for MAC, just double click “Virtualbox-xxx.dmg”.
From the pop-up window, drag “Virtualbox” onto the “Application” folder. Close the pop-up
window. Double click “Virtualbox” icon to launch Virtualbox.

If you have Windows 10 computer, you must enable virtualization before installing virtual
machine. Otherwise, it may appears that the virtual machine will run, but it won't run
correctly. There are several ways to do so.

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-
hyper-v
(1) Using Powershell

Powershell> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -


All

or

Powershell> DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

(2) Using Setting

Right click on the Windows button and select ‘Apps and Features’.
Select Programs and Features on the right under related settings.
Select Turn Windows Features on or off.
Select Hyper-V and click OK.
In the Virtualbox window. There is no OS installed yet. You can install many OS on the VM,
but only one OS can run at once. To toggle between the Virtualbox and the host
environment, press the “command” key on the MAC.

On the top panel click “New”. A new smaller window pop-up within. Enter a “Name” for this
VM OS you are about to create, e.g. “Centos_1”.

Choose a “Type” for the OS. Centos’ type is “Linux”. For “Version”, choose “Red Hat (64-
bit)”.

Adjust “Memory size” to 8GB.

For “Hard Disk”, choose

“Create a virtual hard disk now”, if you never had one. This is the case for most of you.
“Use an existing virtual hard disk file”, if you are using one from other person or previous
created one.
Click “Create”.

Another window pop-up. For “file location”, leave it alone, or click the right icon next to it for
determining your own location.

For “Hard Disk File Type”, choose,

“VDI (Virtual Disk Image)”, if you don’t need to port it to another computer.
“VMMDK (Virtual Machine Disk)”, if you want to port it to another computer.
Click “Create”.

Another window pop-up. It asks where the bootable file is. Right click on the icon next to it,
choose the Centos-xxx.iso file (a CD/DVD disk image) or any virtual OS image that you
downloaded. This will create the virtual OS on the VM. For Centos, you will need to go
through configuration to choose files and features you need. Then on the second
configuration window, be sure to create a root password and a user account other than the
root. Give it the administrate privileges, that will make it easier to do things later on. But be
aware that this user can also damage the system, if she/he doesn’t know what to do. The
good thing is that you can always create another VM and VM OS.

The alternative to Centos VM is to use VMware or Oracle VM. Windows 10 seems to have
difficulty in installing Centos VM, or VMWare, but it should have no problem installing
Oracle VM.

However, Oracle VM doesn’t support HOA6 Docker installation well. You will have to redo
HOA3 to use CentOS in order to install Docker.

------------------------------------------------------------

When you configure Linux system, be sure to

Select Ethernet on. If you don’t, your VM will not be able to communicate with outside work.
You will have to redo it.
For “Software Package” selection, be sure to choose GNOME Developer”, and
“Development tools”, otherwise, you will have a hard time to install Docker in HOA6. You
won’t have the installation commands and download them will cause a serious installation
additional software and potentially incompatibility.
-----------------------------------------------------------------------------------------------

If you have HP Windows computer, you might have hard time to get IP address. Do the
following:

The Windows 10 method:

Open up your HP Windows laptop.


Press the Windows key.
Search for an open Settings.
Select Network & Internet.
Select either WiFi or Ethernet, depending on your connection type.
Select the network you're connected to.
Scroll down the page and you'll find your IP address and the DNS you're connected to.
If you still can’t get an IP address, call HP technical help desk.

----------------------------------------------------------------------------------

Once the system is configured and ready to use, right click to open a terminal.

Type in the three commands and print screen FROM VM. The screen shot must contain the
VM lego and name on it, preferred also have host on the background, but not mandatory.

$ whoami

$ hostname

$ ifconfig (if the VM is Mac or Linux)


$ ipconfig (if the VM is Windows)

$ ip addr show (some Windows VM need this command)

You save print screen with key board combination or use your cell phone and screen shot in
a PDF file and send it alone with other HW1 answers. Then send the VM screen shot as a
PDF or JPEG file as part of the HW1 answer. The snap shot can be from a phone or
camera, then submit it as a PDF or JPEG file. The screen shot must show the VM logo
(such as Oracle VM). The screen shot cannot be from a host computer.
Answer:
Please refer to the explanation below

Step-by-Step explanation
First of all, select Security & Privacy from the System Preferences menu. At the bottom, click
the 'Allow' option. Run the installation again. Below are more specific instructions.

Install Virtual Box in the same way you would any other program.
MacOS may issue a warning about not permitting unsafe system extensions, but you can
click 'Next.'
When you get to the finish, the installation will fail and display the notice above.
All you have to do is Select Security & Privacy from the System Preferences menu. "System
software from the developer, 'Oracle, America, Inc.' was stopped from loading," you should
see at the bottom of the window.

Enter your password by clicking the lock in the lower left corner.
Click 'Allow' next to the "blocked from loading" message.
Re-run the Virtual Box installer. It should succeed.

Download, and set up your VM. See above.

Open settings for the VM. Click the "Shared Folders" tab and then add your folder and
finally select Yes for "Auto-mount".

Run the VM

While the VM is running you have to do the following steps:

In the Mac menu bar you have to go to Devices > Optical Drives > Choose disk image.

Select the Virtual Box Guest Additions image, for me, this is located at
/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso. After selecting the
Choose disc image option, you were probably shown a file picker. All you have to do is press
Command-Shift-G and then type in that file to choose the V Box Guess Additions. ISO.

You might need to force mount/unmount. You'll be prompted by Virtual Box if this is
necessary.

Restart your VM.

Now you have to run the following command to install prerequisites for the Mac Virtual Box
Guest Additions:

Sudo apt-get-y install gcc create linux-headers-$(uname -r)


To install the Guest Additions, you should run the sudo /media/cdrom/VBoxLinuxAdditions.
Restart your VM again.

Now Run the sudo usermod -aG vboxsf USERNAME, where USERNAME is your guest OS
username. This will allow your user access to the shared folder.

Your folder will appear at /media/sf_FOLDER_NAME, so cd /media/sf_FOLDER_NAME.

Note:

Below is the step-by-step procedure of the installation process. These are the screen shots of
my work, which indicate how to install the software.
Step by Steps Procedure:

Here are the screen shots of the installation process of Oracle VM virtual Box

Step#1

Step#2

Nhm h
Step#3

Step #4
How it works:

First of all you have to an install operating system to run the VMWare.

I have CentOS v7 installed on VMWare.

I will create a new user Mericia together with a login password by entering the ff.
commands:

$ sudo adduser Mericia


$ sudo passwd Mericia

I will enter a new password and then restart the VM.

This time, I will log in to CentOS v7 through your username, then we will open the terminal
window.

Please refer to the attached snapshots for the command output on the terminal.

Home X [Cent05 7 X Mon 22:07


User mericia not listed?
CentOS or press Ctrl+ G.
Home X Cent05 7 X Applications

Places Terminal Mon 22:09 mericia@localhost:~ X File Edit View Search Terminal Help
[mericia@localhost ~] $ whoami mericia [mericia@localhost ~] $ hostname localhost. localdomain
[mericia@localhost ~]$ ifconfig eno16777736: flags=4163<UP , BROADCAST, RUNNING,
MULTICAST> mtu 1500 ether 00: 0c: 29:8:55:4d txqueuelen 1000 (Ethernet) RX packets 13 bytes 780
(780.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0
overruns 0 carrier 0 collisions 0 lo: flags=73<UP , LOOPBACK, RUNNING> mtu 65536 inet 127.0.0.1
netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local
Loopback) RX packets 2 bytes 140 (140.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2
bytes 140 (140.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 virbro: flags=4099<UP ,
BROADCAST , MULTICAST> mtu 1500 inet 192. 168.122.1 netmask 255. 255. 255.0 broadcast 192.
168.122.255 ether 52:54:00:45: e5:99 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors
0 dropped 0 overruns 0 frame 0
Home X Cent05 7 X Applications

Places Terminal Mon 22:10 mericia@localhost: X File Edit View Search Terminal Help
[mericia@localhost ~]$ ip addr show 1: lo: <LOOPBACK, UP, LOWER UP> mtu 65536 qdisc
noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00: 00: 00: 00:00 brd 00: 00: 00:
00:00:00 inet 127.0.0.1/8 scope host lo valid Ift forever preferred_lift forever inet6 : :1/128 scope host
valid Ift forever preferred lift forever 2: eno16777736: <BROADCAST , MULTICAST, UP,
LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr oup default glen 1000 link/ether 00: 0c:
29:a8:55:4d brd ff: ff: ff: ff : ff: ff 3: virbro: <NO-CARRIER, BROADCAST , MULTICAST, UP> mtu
1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 52:54:00:45:e5:99 brd ff: ff : ff : ff : ff :
ff inet 192. 168. 122.1/24 brd 192. 168. 122.255 scope global virbro valid Ift forever preferred lift forever 4:
virbro-nic: <BROADCAST, MULTICAST> mtu 1500 qdisc pfifo_fast master virbro state DOWN group
default qlen 1000 link/ether 52:54: 00:45:e5:99 brd ff : ff : ff : ff : ff : ff [mericia@localhost ~]$
[mericia@localhost ~]$ [mericia@localhost ~]$ [mericia@localhost ~]$ [mericia@localhost ~]$
[mericia@localhost ~]$

You might also like