Hello world, thanks for joining me again. Today, we're gonna be installing
VirtualBox, and Ubuntu in VirtualBox. So, the files that we've downloaded in the first
video, one of them is the actual VirtualBox installer, and then we also have
Ubuntu ISO, or disk image. So, we're gonna start by running VirtualBox installer as
administrator. Now the installation of this is pretty straightforward, it doesn't
really require you to configure anything. So, once it comes up just hit next, next,
next, yes, and then install. And once this installs, you'll see how we are able to create virtual
machines, or virtual computers, that we can run on our host, Windows operating system.
And the virtual machines will have their own virtual disk image, which is
basically like a hard drive. So, we can create that and you'll see what I mean in a
moment. So, once the installer finishes, we're gonna leave the checked because we
want to start the VirtualBox immediately. So, just hit finish and should it start up
here, right there. So, this is a VirtualBox, it's a very clean and simple interface. You've got a
menu bar up here, which we will probably never touch, and then you've also got a
toolbar with icons here. So, to get started we're gonna hit new, to create a new
virtual machine, and I'm going to name it Ubuntu. The type is Linux, and the version
is going to be issued defaulted to Ubuntu (64 bit) which is great because we've got a
64 bit disk image to use.
So, click next, and here we're gonna a lot it a certain amount of our actual RAM to use
of the virtual machine. You can set this to whatever you like,
typically you don't want to go into this orange or pink field because that's
going to give you less RAM on your host machine. So, I typically like to set it to
about half of my total RAM which is 4096 megabytes or 4 gigabytes. Once you've got
this set, hit next, and we're going to create a virtual disk, now. We're gonna be using
the VDI or VirtualBox Disk Image format, just hit next. The difference between
Dynamically allocated and Fixed size is that in a moment we're going to be able to
choose a target size for the VirtualBox disk image. With a fixed size, that's
always going to be the same. So, it's always if we set it to 20 gigabytes,
that's always going to consume exactly 20 gigabytes on our host hard drive as
a file. If we dynamically allocated, what that means is that we can set the target
size to 20 gigabytes, but if there's only like 5 gigabytes of actual data on that
virtual drive, its only gonna consume that 5 gigabytes on our host drive as a
file. So, dynamically allocated as always, what I use it just seems better.
So, hit next and here is where we are able to choose the target size of the
hard drive, so I'm gonna choose 20 gigabytes. Hit create and here is our virtual machine.
We have an option to start it right now which is going to be useless, because we
haven't yet told it what type of installation media we want to use. So,
select
VirtualBox in the left hand menu and hit settings. When the settings comes up there's
not much we need to really do here. If we go to system, we need to make sure "Enable
I/O APIC" on, "Hardware Clock In UTC Time" should be defaulted as well. If
we go to the processor tab, we see that it's using one core of my quad core
processor, now we can increase this, but I find you get worse performance the
more cores you use. So, we're not gonna do that.
Acceleration should always be enabled, if you have trouble with this and you're on
Windows 10, you've actually got to do something else. So, if I go into programs
and features by right clicking on the Start menu icon, I'm gonna turn Windows
features on or off. Now here's an interesting thing, Hypervisor is a
virtualization technology that Windows includes by default.
I'm not sure if it's
pre-configured to use, if it's checked that means it is, if it's unchecked it means
it's not.
So, if you have trouble with setting up a virtual machine, basically what you're
gonna wanna do is first of all come in here and make sure this is disabled. So,
make sure it's unchecked. If it's checked uncheck, it's gonna prompt you to restart.
Once that's configured, you've got actually go in to your BIOS, and you've
got to enable virtualization technology for your processor. So, to boot into the
BIOS you're gonna restart your computer normally, and as soon as it comes back on,
before you see the Windows logo or anything like that, you're going to
repeatedly strike the key, it's normally F10. Your motherboard might have a
different key that it uses to get in the BIOS, sometimes it's F2, so just try that
and once you get into the BIOS follow these images and you should have no
trouble at all. So, back to the VirtualBox, if we go to display we're going to see
that the video memory is set really low at 12 megabytes. This is not gonna really help much, so what
we're gonna do is put that up all the way to the end which is a 128
megabytes, it should give better and we're going to enable 3D
acceleration. 2D acceleration is only available on Windows guest machines, so
that's irrelevant. The storage item is what we need to use to tell the
virtual image to load up our Ubuntu ISO. So, select the empty disk here and on
the right hand side you'll see this icon here, I've already pre-selected it in
a previous run, but what you're gonna do is click "Choose Virtual Optical Disc File,"
and then browse to where you saved the ISO.
Select it and hit open. Now this tells the virtual machine that we want to use this ISO to boot off
of, and to install the system. We don't really need to go through anything else, so just
hit OK and now we can start the virtual machine.