VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 1

Introduction

VirtualBox is free and  open-source software that allows you to set up   your very own virtual machine. A virtual machine  is kind of like a pretend computer or a guest that   runs on your real computer or the host.With a virtual machine,   you can install other operating systems  like maybe an older version of Windows,   or maybe you want to experiment with Linux, or  maybe you want to install software that doesn’t   work on your host machine, like, let’s say, an  older computer game. It’s basically like having   a computer within your computer. Let’s check out  how to do this.

How to setup your bios on computer for installing VirtualBox ?

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 2

Before we can install VirtualBox,   you need to make sure that virtualization is  turned on on your computer. I’m on a Windows PC,   and I’ll press Control, Shift, Escape. This opens  up Task Manager, and over on the left-hand side,   let’s click into Performance, and at the  very top, make sure that you click into CPU.   Right down here, you can see virtualization  and whether it’s enabled or disabled. Mine is   currently enabled. If virtualization  is disabled on your PC, don’t worry,   it’s fairly easy to turn on, but it does require  going through your BIOS.

To get to your BIOS,   first off, restart your PC. As your computer’s  restarting, you’ll need to press the hotkey that   brings you into the BIOS, and that depends on the  brand of the computer that you have. Typically,   it’s the Escape key, or it could be F2, or it  could be the Delete key.

So, you’ll need to look   that up. I have a Dell computer, and it happens to  be F2. This drops me into the BIOS, and up on top,   I’ll switch over into the Advanced tab, and  here, I see virtualization. If it’s disabled,   you can change it to Enabled. Once you’re all  done, Escape. Now that we have virtualization   enabled, next, we need to install VirtualBox

How to download and install VirtualBox ?

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 3

open your browser and type download Virtual box in the search box and press enter and you can find pacific website or click the link Download virtual boxYou can also click on   the card in the top right-hand corner. On this web  page, let’s click on this very prominent download   button for VirtualBox 7.0.

That’s currently the  most recent version. Right here, you can choose   what operating system you have on your computer.  I’m running a Windows PC, so I’ll select Windows   hosts. However, you can also install this on Mac  or even on Linux, and you have a few other options   as well. I’ll click on Windows, and this now kicks  off the download. Once you finish downloading

Install virtual box

Click the install. Right here, let’s click on  Next. On this screen, you can define all of the   features that you want to install. I’ll stick  with all of the defaults and then click on Next.  Right here, we get a warning that it’ll  temporarily remove us or disconnect us   from the network. Let’s click on Yes. And here,  it also calls out missing dependencies. We need   these to proceed with the install, so let’s click  on Yes. And lastly, let’s click on Install. It’ll   now go through and install VirtualBox. And look at  that, the install is all done. I’ll check this box   to start the VM, then let’s click on Finish. 

Downloading The os and installing on the virtual box

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 4

: To Download the Installation Media. In a web browser, visit the Ubuntu download page and pick the Ubuntu version suitable for your machine. …

This drops me on the Download page, and let’s  scroll down just a little bit. I’m going to   install this version right here. One thing to note  is there are some recommended system requirements.

Setting up virtual machine for installing Ubuntu os

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 5

finished downloading   Ubuntu, and I’ve launched the VirtualBox Manager.  This is what we use to create, configure, and also   manage all of our virtual machines. Over on the  left-hand side, here we’ll see a list of all of   our virtual machines, but it’s currently empty  because I haven’t yet made a virtual machine. 

 To create a new virtual machine, up on top, let’s  click on New. This now opens up a dialog that will   walk us through setting up our new virtual  machine. First, we need to give the virtual   machine a name. I’ll simply call it Ubuntu.  Down here, I can specify where I want to place   my virtual machine. Make sure that you choose a  location that has a sufficient amount of space.

Right down here, you’ll need to navigate to where  you saved your ISO image. I placed it right here.   I’ll select that. And it’s automatically detected  the type. It’s Linux and also the version, Ubuntu.   All of that looks good, so I’ll click on Next. On  this next screen, here you can type in your user   credentials to log into your virtual machine.  You can type in a username and a password.

I would recommend changing those. And down at the  bottom, you can toggle on something called guest   additions. This will give you better performance  and also usability, so I would recommend turning   that on. Down below, let’s click on Next. On  this screen,

Adjust hardware settings such as memory and processors for optimal performance.

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 6

we can specify the hardware for the   virtual machine. You can specify how much RAM the  virtual machine should get and also the number of   processors.

Now, keep in mind that as you allocate  memory to your virtual machine, this will take it   away from the host machine. That’s why you see it  orange and red up near the top. If you allocate   all of your resources towards the virtual machine,  your host machine will slow down considerably.  

For now, I’ll go with four gigabytes for the  memory and for the processors, let’s go with four   here. Keep in mind, you can always come in later  on and you can change these values. Down below,   I’ll click on Next.

On this screen, you can  specify how much hard disk space you want to   allocate to your virtual machine. And this is  dynamic, so it’ll only actually consume this   space if you end up using it on your virtual  machine, unless, of course, you check this   box next to pearl locate full size.

You’ll get  some performance improvements by checking this,   but then it does use up all of the space. I would  recommend sticking with dynamic and then let’s   click on Next. We now see a summary of all of our  different selections.

Down below, let’s click on   Finish

Powering the virtual machine

It’s now powered up the virtual machine  and now it’s running through and installing the   operating system on this virtual machine. Now  that the virtual machine has finished installing,   we can now log in. I’ll select this user and  then type in the password. I’m now logged into   my virtual machine, but you’ll notice that the  display is fairly small. Ideally, I would like   to take full advantage of all of my screen real  estate.

Resize the guest display and switch to full-screen mode for a better viewing experience

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 7

in the top left-hand corner, let’s   click on the View menu, and right here, there’s  the option to auto resize the guest display.   This now adjusts it so it uses up all of this  screen real estate. That’s looking a lot better.   Let’s go back up to the View menu, and here,  there’s also an option to switch into full   screen mode. I could click on this right here in  the menu, but over to the right, there’s also a   shortcut key that says Host + F.

View, input, devices & help menus

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 8

If we look down in the bottom right-hand corner,   we see that it says Right Control. This is  the right control key on your keyboard. If   you’d like to modify that to a different shortcut  key, you can go up to the Input menu, Keyboard,   and then Keyboard Settings, and right here, you  can modify the host key combination.

I’ll leave   it set to Right Control. I’ll cancel out of this,  go back up to View, and let’s press Host together   with F, so the right control key together with F.  Here, I get this dialog. Let’s click on Switch.   And this now launches me into full  screen mode on my virtual machine. 

  You might be wondering, well, what happened to  the menu? What if I want to access some of those   different options? If we go to the very bottom of  the screen, here I can access all of those same   options at the very bottom. To exit out of full  screen mode, I could click on the View menu, and  here I could select this option, or we could press  the Host key or Right Control key together with F,   and that now exits full screen mode.

The function and application overview of Ubuntu

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 9

This is now  a fully functional computer. Over on the left-hand   side, I have all of my different applications.  Here, I have a web browser, Firefox. I also have   LibreOffice Writer, and over here, I can install  additional software to my virtual machine.   Let’s now go up to the top menus to see some of  the more interesting functionality that you have   access to. Let’s first click into the Machine  menu and right here, there’s the option to   take a snapshot.

Shutdown the virtual machine

In the  top left-hand corner, let’s go to the Machine   menu, and down at the very bottom, let’s select  Shut Down. This drops me back into the VirtualBox   Manager, and here we see the virtual machine that  we created and also logged in to.

Adding the multi number of virtual machine

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 10

You can add any number of virtual machines here.Simply click  up on Tools, and over here, there’s the option   to add yet another virtual machine. You can have  multiple virtual machines show up here. The one   thing that you have to be aware of, though, is  if you’re running multiple virtual machines at   the same time, they will all consume some of the  CPU, some of the RAM, and some of the disk space   of the host machine, so you just have to make  sure they don’t overwhelm the host machine.  

How to remove Virtual Machine ?

VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023
VirtualBox: Step-by-Step Guide to Installing Ubuntu Operating System 2023 11

To remove a  virtual machine, go up to the virtual machine, and   you can right-click on it, and here’s the option  to remove it.That’ll delete not only the virtual   machine, but also all files associated with that  virtual machine. VirtualBox is incredibly rich   software, and you have so many different controls  and capabilities that you could take advantage

conclusion

By following these steps, you can easily install Ubuntu operating system within VirtualBox. VirtualBox provides a convenient and isolated environment to experiment with Ubuntu or run it alongside other operating systems onyour host computer. With VirtualBox’s virtualization capabilities, you can explore Ubuntu’s features, develop applications, or test software in a safe and controlled environment.

Remember, VirtualBox allows you to create multiple virtual machines, enabling you to experiment with different versions of Ubuntu or even other operating systems. Enjoy the flexibility and versatility that VirtualBox offers!

FAQs

Q1: Can I install Ubuntu alongside my existing operating system using VirtualBox?

Yes, you can install Ubuntu alongside your existing operating system using VirtualBox. This is known as a dual-boot setup, where you can choose which operating system to boot into when starting your computer.

Q2: Can I share files between my host operating system and Ubuntu installed in VirtualBox?

Yes, VirtualBox provides a feature called “Shared Folders” that allows you to share files between your host operating system and the virtual machine. This enables easy file transfer and collaboration between the two environments.

Q3: Can I resize the screen resolution of Ubuntu running in VirtualBox?

Yes, you can resize the screen resolution of Ubuntu running in VirtualBox. VirtualBox provides a feature called “Guest Additions” that enhances the integration between the host and guest operating systems. Installing Guest Additions enables features like dynamic screen resizing and improved graphics performance.

Q4: Is it possible to connect USB devices to Ubuntu running in VirtualBox?

Yes, VirtualBox supports USB device connectivity. You can connect USB devices, such as flash drives, external hard drives, or peripherals, to Ubuntu within VirtualBox. Simply select the USB device from the VirtualBox menu and choose to connect it to the virtual machine.

Q5: Can I run other Linux distributions besides Ubuntu in VirtualBox?

Yes, VirtualBox supports a wide range of Linux distributions. You can install and run various Linux distributions, such as Fedora, Debian, CentOS, or openSUSE, within VirtualBox. The process is similar to the steps outlined in this guide for installing Ubuntu.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top