Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Linux Servers on VirtualBox!
You have completed Linux Servers on VirtualBox!
Preview
Next we need to create a new virtual machine to hold our new operating system, and then install Linux onto it. The process is similar to plugging installation media into an actual computer, but we'll do it all virtually.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Next we're going to need an OS to
install on our virtual machine.
0:00
We've chosen a Ubuntu too
because it's commonly used.
0:03
To download it, visit To Ubuntu.com and
then click on the download link.
0:06
And choose a Ubuntu Server.
0:14
You'll have a choice between a couple
different versions of Ubuntu,
0:18
we're going to want the LTS version,
which stands for long term support.
0:21
Basically that means it's going to
be a more stable version of Ubuntu.
0:26
It'll begin downloading an ISO
file which is basically a virtual
0:31
CD-ROM image from which
you can install Ubuntu.
0:35
When the download completes we'll be
ready to create a new virtual machine,
0:39
in the VirtualBox application
click the New icon.
0:43
Since will be using this virtual
machine to simulate a server at our
0:47
hosting company I'm gonna name it hostcom.
0:50
For the type of operating system it's
going to host I'm gonna select Linux.
0:56
And then Ubuntu (64-bit) as the default
for the operating system version.
1:00
I'll click Continue.
1:05
Next VirtualBox needs to know
how much of your host computer's
1:08
ram that should devote to
running the virtual machine.
1:10
I'm just going to go with the default.
1:13
Then it needs to create a file to
hold the virtual hard disk for
1:16
this virtual machine.
1:18
I'm just going to go with the default,
Create a virtual hard disk now.
1:20
I'll use VirtualBox Disk Image,
which is the default.
1:25
To save space I'm going to let
it dynamically allocate room
1:29
within the virtual disk file.
1:32
By default the virtual hard disk file will
have the same name as the virtual machine
1:35
you're creating so
I'll leave it at the default hostcom, and
1:39
I'll set its virtual size to
the default again 8.00 gigabytes.
1:43
Okay, our virtual machine
is now ready to run.
1:50
I'm going to click the Start
button the start to start it up.
1:52
Now if this were a real server that
you were installing Ubuntu for,
1:57
you'd probably plug a CD-ROM into
the CD-ROM drive and boot it up so
2:00
that it could install
the Ubuntu from the CD-ROM.
2:04
We're going to do the equivalent
to that here in VirtualBox.
2:07
So you remember earlier,
2:11
we downloaded that ISO file which contains
the contents of the Ubuntu installer.
2:12
We're going to use that ISO
file as a virtual CD-ROM drive.
2:17
So, I'm gonna find,
That ISO file here on our disk.
2:20
And once that selected all click Start.
2:32
The virtual machine will boot and will
immediately begin running the contents of
2:36
the virtual CD-ROM, and at this point
it'll launch into the Ubuntu installer.
2:39
I'll mostly be choosing the defaults for
all these install options.
2:46
I work in English so
I'll select that as my language,
2:49
I'll select that I want to
install the Ubuntu Server.
2:52
I'll select defaults for
most of the location options.
2:58
Now Ubuntu wants to know a host name for
this server.
3:14
It can be anything you want, but it should
ideally be a single word all lowercase.
3:18
I'm going to name it hostcom,
the same as our virtual machine.
3:22
Now it wants to create a user account so
I'll enter my name here.
3:28
Obviously you should
substitute your own name.
3:31
And then it wants a username,
3:34
again ideally this will be
a single word all lowercase.
3:36
I'll just go with the default.
3:39
Then it'll ask me to create a password.
3:42
You can choose whether you want to
encrypt your home directory or not,
3:49
I'm going to opt not to.
3:52
I'll stick with the defaults for
the time zone.
3:56
And if this were an actual server we
might care about how the hard disk is
4:04
partitioned.
4:07
But since it's a virtual machine,
4:08
I'm just going to go with the defaults for
everything.
4:09
So I'll use the entire virtual disk.
4:12
This is a potentially destructive change,
so by default no is highlighted.
4:15
I'm going to select Yes and hit Enter.
4:19
I'll use the default for
the amount of space.
4:21
And again I'll select Yes and confirm
that I want to write the changes to disk.
4:27
Computers on some networks have
to go through an HTTP proxy to
4:41
access the Internet.
4:45
If your network has one,
you probably already know about it.
4:46
I don't have one so
I'm going to just hit Enter.
4:49
Next, you can choose whether you want to
automatically apply security updates to
4:56
the system.
5:00
I'm just going to go with the default,
no updates.
5:01
Then it'll ask which software
packages you want to install.
5:03
I want full control over
what gets installed,
5:08
I'll be installing additional
stuff from the command line later.
5:10
So I'm just going to install
the standard system utilities and
5:13
leave everything else uninstalled for now.
5:17
For systems that have multiple operating
systems installed at the same time,
5:22
Windows installed alongside Linux for
example, you would need the grub
5:26
bootloader to let you select
between those operating systems.
5:29
We're not going to set this
machine up this way but
5:33
there's no harm in having
the grub bootloader so
5:35
I'm going to select the default
to install the grub bootloader.
5:37
And finally the installer will notify
you that the installation is complete.
5:43
It will warn you to remove
the installation media but
5:47
since this is a virtual machine we
don't have to worry about that.
5:51
So I'm just going to
hit Enter to continue.
5:53
The virtual machine will shutdown and
6:00
it'll reboot into the Ubuntu
operating system.
6:02
You'll be asked for a login, go ahead and
6:09
enter the all lowercase username that
you selected during the install.
6:12
And type in the password you selected.
6:17
And there you are, you'll be out of
prompts for your new operating system.
6:22
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up