Virtual Machine
• Not technically part of Web Applications
• Necessary so we can administer the machine
• VirtualBox
• LL46 installed
• Personal machine -> www.virtualbox.org/wiki/Downloads
• CentOS 7 (RHEL 7)
• www.centos.org
• I:shamblinFall_2016CS_4143CentOS-7-x66_64-Minimal-1511.iso
Install the VM -> Start VirtualBox
Start VirtualBox
Click ā€˜New’
Installing the VM -> Name and OS
Name: Your Choice
Type: Linux
Version: Red Hat (64-bit)
Click ā€˜Next’
Installing the VM -> Memory size
Set memory size to ~2Gb
Don’t get past the green on the
slider for your machine
Click ā€˜Next’
Installing the VM -> Hard disk
Accept default
(Create a virtual hard disk now)
Click ā€˜Create’
Installing the VM -> Hard disk file type
Accept the default (VDI)
If you’re adventurous and you want to
use some other virtual software you
may want to investigate this.
Click ā€˜Next’
Installing the VM -> Storage on physical hard
disk
Accept the default
Click ā€˜Next’
Installing the VM -> File location and size
Unless you have a reason to name the file
differently and put it some place else,
accept the default for the name and
location
Adjust the size to ~20Gb -> this is
probably overkill
Click ā€˜Create’
Installing the VM -> Back to VirtualBox
Manager Window
Choose ā€˜Settings’
Installing the VM -> Settings -> General
Click the ā€˜Advanced’ tab
Use the drop down boxes
to choose ā€˜Bidirectional’
On the left select ā€œDisplayā€
Installing the VM -> Settings -> Display
Under the ā€˜Screen’ tab,
increase the Video Memory
On the left, select ā€œStorageā€
Installing the VM -> Settings -> Storage 1
Under ā€˜Storage Tree’, click ā€œEmptyā€
Under ā€˜Attributes’, click the CD/DVD
icon to the right (Tool tip: ā€œChoose a
...ā€)
Click
ā€œChoose Virtual Optical Disk File ā€¦ā€
Navigate to the iso and open
Installing the VM -> Settings -> Storage 2
On the left, ā€œNetworkā€
Installing the VM -> Settings -> Network
Use the drop down to change
to ā€˜Bridged Adapter’
On the left, select ā€œShared
Foldersā€
Installing the VM -> Settings -> Shared Folders
Far right, click the icon of a
folder with a ā€˜+’ on it (Tool tip:
ā€˜Adds new…’)
Under ā€˜Folder Path:’ use drop
down to select ā€˜Other’
Navigate to/create the file you
wish to share between the host
and the guest.
Select the ā€˜Auto-mount’
checkbox
Click ā€˜OK’
Click ā€˜OK’
Installing the VM -> Ready to install
Click ā€˜Start’
Installing the VM -> Installation -> Initial
Screen
A new window opens
Select it
Installing the VM -> Installation -> Capture
Initially the VM will capture the
cursor, that’s ok, we will fix it later.
Any time you need to ā€˜get free’ click
the right <Ctrl> key on the keyboard
Click ā€œCaptureā€
Installing the VM -> Installation -> Install
CentOS 7
Use the up arrow on the
keyboard to select
ā€œInstall CentOS 7ā€
Press the enter key
WAIT!!!!!!!!!!!!!!!!!
Installing the VM -> Installation -> Welcome
Click ā€˜Continue’ in the lower
right
Installing the VM -> Installation -> Summary
Click ā€˜DATE & TIME’
Installing the VM -> Installation -> DATE &
TIME
Click some where in the Central
Time Zone (unless … )
Adjust the time
Click ā€˜Done’
Installing the VM -> Installation -
>PreDestination
If you are using the minimal
install iso I provided,
ā€œSOFTWARE SELECTIONā€ should
reflect ā€˜Minimal Install’. If not,
click ā€œSOFTWARE SELECTIONā€,
then choose ā€˜Minimal Install’
and click ā€œDoneā€
Click ā€œINSTALLATION
DESTINATIONā€.
Installing the VM -> Installation ->Destination
You could setup your own partioning and
mount scheme here if you chose to do
so. For our purposes we can accept the
default.
Click ā€˜Done’
Installing the VM -> Installation ->
PostDestination
Select ā€œNETWORK & HOST
NAMEā€
Installing the VM -> Installation -> NETWORK
1
At the top right, turn Ethernet
ā€œONā€
At the lower right, click
ā€˜Configure …’
Installing the VM -> NETWORK -> Ethernet
Configuration
Select the ā€œGeneralā€ tab
Select the ā€˜Automatically connect …’
checkbox
Click ā€˜Save’
Click ā€˜Done’
Installing the VM -> Summary -> Begin
Ensure
ā€œDATE & TIMEā€ -> Central (???)
ā€œSOFTWARE SELECTIONā€ -> ā€˜Minimal’
ā€œINSTALLATION DESTINATIONā€ -> ā€˜Automatic’
ā€œNETWORK & HOST NAMEā€ -> ā€˜Wired … connected’
Click ā€˜Begin Installation’
Installing the VM -> Configuration -> root
password
Installing the VM ->ROOT PASSWORD
Enter a password for the SUPER USER
This is the user that can do anything.
We won’t use it, but we must have
an account and password for it.
DON’T use a weak password!!!!
Click ā€˜Done’
Then Select ā€œUSER CREATIONā€
Installing the VM -> CREATE USER
Enter a ā€˜User name’. This will be the user
we log in as.
Make sure the ā€˜Make this user
administrator’ check box is checked.
Create a STRONG password
Click ā€˜Done’
Installing the VM -> Reboot
Once you have the ROOT PASSWORD
and USER CREATION done,
WAIT for this screen.
If you have completed ROOT
PASSWORD and USER CREATION and
you get a button ā€˜Finish
Configuration’ click that and WAIT for
this screen.
Click ā€˜Reboot’
Running the VM -> Initial login
Enter the user name and press
<enter> Yeah that’s different
than Windows.
Enter the password. It will not
show on the screen. Press
<enter>
Running the VM -> Logged In
So now we are logged in to the
machine and ready.
Note the prompt shows username
and the default HOSTNAME.
Running the VM -> Update
Enter the command:
sudo yum update<enter>
Since this will be the first time you
have used sudo, it will print a
message and ask for your user
password. Enter it.
Respond with y when asked
ā€œIs this ok [y/d/N]ā€
and when asked again
WAIT!
Running the VM -> kernel-devel …
Give the command
sudo yum install kernel-devel
InthescreenshotIforgottoputinthesudosoIgottheerrorā€œYouneedtobeā€¦ā€œ
Give your password if prompted
Respond y
After that finishes give the command
sudo yum group install ā€œDevelopment Toolsā€
Note the ā€˜group’ and the double quotes
Respond y if prompted.
Finally
sudo yum group install ā€œGNOME Desktopā€
Respond y as necessary
WAIT!!!
Running the VM -> startx
When you get ā€˜Complete’
give the command
startx
You should get a window similar
to this.
Click ā€˜Next’ through the two
screens, then ā€˜Skip’
Running the VM -> GNOME Screen
You should get the Gnome ā€˜Getting
Started’ application. You can check
out the links as you wish. When
finished close the app by clicking the x
in the top right.
Running the VM -> Insert Guest Additions
Once you get to the Gnome desktop, you will
need to press the right <ctrl> key to release
the mouse cursor.
Then on the top menu click ā€˜Devices’ and
select ā€˜Insert Guest Additions CD image…’
Running the VM -> Run VBOXADDIONS …
Click on the desktop and ā€˜Capture’
the cursor.
Click ā€˜Run’
Authenticate with your password.
Running the VM -> Results of Guest Additions
Although we have the message ā€˜Failed
…’, we are ok. Press <enter>
Running the VM -> Terminal after Guest Add
On the Gnome menu select ā€˜Applications’
and then ā€˜Terminal’
Running the VM -> shutdown now -r
In the terminal window give the
command
sudo shutdown now –r
And your password
WAIT!!!!
Running the VM -> Finally
The machine will reboot.
Login again as normal user.
startx
And you should have something
similar to this and the cursor
should no longer be captured.
Running the VM -> Post Initial Setup
• The virtual machine should now be ready for us to use.
• Some things you will need to use later:
• login
• startx
• start a terminal
• shutdown now –r (to restart the vm)
• shutdown now –h ( to halt/shutdown the vm)

Virtual machine

  • 1.
    Virtual Machine • Nottechnically part of Web Applications • Necessary so we can administer the machine • VirtualBox • LL46 installed • Personal machine -> www.virtualbox.org/wiki/Downloads • CentOS 7 (RHEL 7) • www.centos.org • I:shamblinFall_2016CS_4143CentOS-7-x66_64-Minimal-1511.iso
  • 2.
    Install the VM-> Start VirtualBox Start VirtualBox Click ā€˜New’
  • 3.
    Installing the VM-> Name and OS Name: Your Choice Type: Linux Version: Red Hat (64-bit) Click ā€˜Next’
  • 4.
    Installing the VM-> Memory size Set memory size to ~2Gb Don’t get past the green on the slider for your machine Click ā€˜Next’
  • 5.
    Installing the VM-> Hard disk Accept default (Create a virtual hard disk now) Click ā€˜Create’
  • 6.
    Installing the VM-> Hard disk file type Accept the default (VDI) If you’re adventurous and you want to use some other virtual software you may want to investigate this. Click ā€˜Next’
  • 7.
    Installing the VM-> Storage on physical hard disk Accept the default Click ā€˜Next’
  • 8.
    Installing the VM-> File location and size Unless you have a reason to name the file differently and put it some place else, accept the default for the name and location Adjust the size to ~20Gb -> this is probably overkill Click ā€˜Create’
  • 9.
    Installing the VM-> Back to VirtualBox Manager Window Choose ā€˜Settings’
  • 10.
    Installing the VM-> Settings -> General Click the ā€˜Advanced’ tab Use the drop down boxes to choose ā€˜Bidirectional’ On the left select ā€œDisplayā€
  • 11.
    Installing the VM-> Settings -> Display Under the ā€˜Screen’ tab, increase the Video Memory On the left, select ā€œStorageā€
  • 12.
    Installing the VM-> Settings -> Storage 1 Under ā€˜Storage Tree’, click ā€œEmptyā€ Under ā€˜Attributes’, click the CD/DVD icon to the right (Tool tip: ā€œChoose a ...ā€) Click ā€œChoose Virtual Optical Disk File ā€¦ā€ Navigate to the iso and open
  • 13.
    Installing the VM-> Settings -> Storage 2 On the left, ā€œNetworkā€
  • 14.
    Installing the VM-> Settings -> Network Use the drop down to change to ā€˜Bridged Adapter’ On the left, select ā€œShared Foldersā€
  • 15.
    Installing the VM-> Settings -> Shared Folders Far right, click the icon of a folder with a ā€˜+’ on it (Tool tip: ā€˜Adds new…’) Under ā€˜Folder Path:’ use drop down to select ā€˜Other’ Navigate to/create the file you wish to share between the host and the guest. Select the ā€˜Auto-mount’ checkbox Click ā€˜OK’ Click ā€˜OK’
  • 16.
    Installing the VM-> Ready to install Click ā€˜Start’
  • 17.
    Installing the VM-> Installation -> Initial Screen A new window opens Select it
  • 18.
    Installing the VM-> Installation -> Capture Initially the VM will capture the cursor, that’s ok, we will fix it later. Any time you need to ā€˜get free’ click the right <Ctrl> key on the keyboard Click ā€œCaptureā€
  • 19.
    Installing the VM-> Installation -> Install CentOS 7 Use the up arrow on the keyboard to select ā€œInstall CentOS 7ā€ Press the enter key WAIT!!!!!!!!!!!!!!!!!
  • 20.
    Installing the VM-> Installation -> Welcome Click ā€˜Continue’ in the lower right
  • 21.
    Installing the VM-> Installation -> Summary Click ā€˜DATE & TIME’
  • 22.
    Installing the VM-> Installation -> DATE & TIME Click some where in the Central Time Zone (unless … ) Adjust the time Click ā€˜Done’
  • 23.
    Installing the VM-> Installation - >PreDestination If you are using the minimal install iso I provided, ā€œSOFTWARE SELECTIONā€ should reflect ā€˜Minimal Install’. If not, click ā€œSOFTWARE SELECTIONā€, then choose ā€˜Minimal Install’ and click ā€œDoneā€ Click ā€œINSTALLATION DESTINATIONā€.
  • 24.
    Installing the VM-> Installation ->Destination You could setup your own partioning and mount scheme here if you chose to do so. For our purposes we can accept the default. Click ā€˜Done’
  • 25.
    Installing the VM-> Installation -> PostDestination Select ā€œNETWORK & HOST NAMEā€
  • 26.
    Installing the VM-> Installation -> NETWORK 1 At the top right, turn Ethernet ā€œONā€ At the lower right, click ā€˜Configure …’
  • 27.
    Installing the VM-> NETWORK -> Ethernet Configuration Select the ā€œGeneralā€ tab Select the ā€˜Automatically connect …’ checkbox Click ā€˜Save’ Click ā€˜Done’
  • 28.
    Installing the VM-> Summary -> Begin Ensure ā€œDATE & TIMEā€ -> Central (???) ā€œSOFTWARE SELECTIONā€ -> ā€˜Minimal’ ā€œINSTALLATION DESTINATIONā€ -> ā€˜Automatic’ ā€œNETWORK & HOST NAMEā€ -> ā€˜Wired … connected’ Click ā€˜Begin Installation’
  • 29.
    Installing the VM-> Configuration -> root password
  • 30.
    Installing the VM->ROOT PASSWORD Enter a password for the SUPER USER This is the user that can do anything. We won’t use it, but we must have an account and password for it. DON’T use a weak password!!!! Click ā€˜Done’ Then Select ā€œUSER CREATIONā€
  • 31.
    Installing the VM-> CREATE USER Enter a ā€˜User name’. This will be the user we log in as. Make sure the ā€˜Make this user administrator’ check box is checked. Create a STRONG password Click ā€˜Done’
  • 32.
    Installing the VM-> Reboot Once you have the ROOT PASSWORD and USER CREATION done, WAIT for this screen. If you have completed ROOT PASSWORD and USER CREATION and you get a button ā€˜Finish Configuration’ click that and WAIT for this screen. Click ā€˜Reboot’
  • 33.
    Running the VM-> Initial login Enter the user name and press <enter> Yeah that’s different than Windows. Enter the password. It will not show on the screen. Press <enter>
  • 34.
    Running the VM-> Logged In So now we are logged in to the machine and ready. Note the prompt shows username and the default HOSTNAME.
  • 35.
    Running the VM-> Update Enter the command: sudo yum update<enter> Since this will be the first time you have used sudo, it will print a message and ask for your user password. Enter it. Respond with y when asked ā€œIs this ok [y/d/N]ā€ and when asked again WAIT!
  • 36.
    Running the VM-> kernel-devel … Give the command sudo yum install kernel-devel InthescreenshotIforgottoputinthesudosoIgottheerrorā€œYouneedtobeā€¦ā€œ Give your password if prompted Respond y After that finishes give the command sudo yum group install ā€œDevelopment Toolsā€ Note the ā€˜group’ and the double quotes Respond y if prompted. Finally sudo yum group install ā€œGNOME Desktopā€ Respond y as necessary WAIT!!!
  • 37.
    Running the VM-> startx When you get ā€˜Complete’ give the command startx You should get a window similar to this. Click ā€˜Next’ through the two screens, then ā€˜Skip’
  • 38.
    Running the VM-> GNOME Screen You should get the Gnome ā€˜Getting Started’ application. You can check out the links as you wish. When finished close the app by clicking the x in the top right.
  • 39.
    Running the VM-> Insert Guest Additions Once you get to the Gnome desktop, you will need to press the right <ctrl> key to release the mouse cursor. Then on the top menu click ā€˜Devices’ and select ā€˜Insert Guest Additions CD image…’
  • 40.
    Running the VM-> Run VBOXADDIONS … Click on the desktop and ā€˜Capture’ the cursor. Click ā€˜Run’ Authenticate with your password.
  • 41.
    Running the VM-> Results of Guest Additions Although we have the message ā€˜Failed …’, we are ok. Press <enter>
  • 42.
    Running the VM-> Terminal after Guest Add On the Gnome menu select ā€˜Applications’ and then ā€˜Terminal’
  • 43.
    Running the VM-> shutdown now -r In the terminal window give the command sudo shutdown now –r And your password WAIT!!!!
  • 44.
    Running the VM-> Finally The machine will reboot. Login again as normal user. startx And you should have something similar to this and the cursor should no longer be captured.
  • 45.
    Running the VM-> Post Initial Setup • The virtual machine should now be ready for us to use. • Some things you will need to use later: • login • startx • start a terminal • shutdown now –r (to restart the vm) • shutdown now –h ( to halt/shutdown the vm)