Tutorial: Installing Ubuntu Server in VirtualBox
In this tutorial, we will walk you through the process of installing Ubuntu Server in VirtualBox, a popular virtualization software. Also, you will learn how to access your Ubuntu server using the Bitvise SSH Client. Bitvise SSH Client provides a secure way to connect to remote servers using the SSH protocol.
Prerequisites
Before you begin, make sure you have the following:
Step 1: Create a New Virtual Machine
- Open VirtualBox and click the “New” button.
- Choose a name for your virtual machine (e.g., “Ubuntu Server”).
- Select “Linux” as the type and “Ubuntu (64-bit)” as the version.

- Set the memory size for your virtual machine. We recommend at least 1 GB for Ubuntu Server.
- Choose “Create a virtual hard disk now” and click “Create.”

Step 3: Create a Virtual Hard Disk
- Choose “VDI (VirtualBox Disk Image)” as the hard disk file type.
- Select “Dynamically allocated” for storage on physical hard disk.
- Set the virtual hard disk size. We recommend at least 10 GB.
- Now View all your Configurations. Click Finish.


Step 4: Install Ubuntu Server
- Right-click on the virtual machine you created and select “Settings.”
- Go to the “Storage” section, click on the empty optical drive, and choose the Ubuntu Server ISO image you downloaded.
- Or Simply Start the virtual machine and then select the ISO image you Downloaded.
Step 5: Install Ubuntu Server
-
Select “Install Ubuntu Server” from the boot menu or wait it will start automatically.
-
Choose your language and press Enter.

-
Now in Installer update available. Choose Continue without updating.

-
Select your keyboard layout, and other settings.

-
Select the Default Ubuntu Server install and press Enter

-
Now it Will automatically set your Network Connection. Choose Done.

-
Now setup the proxy setting Just leave it blank and press Enter.

-
Next Select the default Mirror address

-
Now Select the option to use an entire disk. Use the spacebar to select thi soption,(X) means it is selected . Use tab to move down and hit Enter.

-
Erase disk and install Ubuntu server. Press Done and choose Contine in confirm destructive actions.

-
Create a user account and password.

-
Choose the default skip option in Upgrade to Ubuntu pro and click Continue.

-
If you want to access the server remotely using the SSH then you can select the Install OpenSSH Server option using arrow keys and spacebar otherwise simply select the DONE.

-
If you wanyt to install some popular and common server software packages such as Docker? Then you can select them here otherwise, leave them unselected and select the Done option.

-
Wait for the installation to complete and hit Reboot Now.

Step 6: Complete the Installation
- After the installation is complete, the VM will prompt you to remove the installation media (ISO).
- Press Enter to reboot the virtual machine.
Step 7: Access Ubuntu Server
- Once the virtual machine restarts, you will see the login prompt.
- Enter the username and password you created during installation.
- Now Install Some guest addition files. select Devices>Insert Guest Addition Cd Image
- Then Run Following commands:
-sudo mkdir -v /media/cdrom
-sudo mount /dev/cdrom /media/cdrom
-sudo apt install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
-sudo /media/cdrom/VBoxLinuxAdditions.run
- Then Restart the Machine.
Congratulations! You have successfully installed Ubuntu Server in VirtualBox.

Step 8: Port Forwarding in VirtualBox
- Right-click on the installed virtual machine and choose “Settings” from the context menu.
- In the Settings window, go to the “Network” section.
- Here, you’ll see a tab named “Port Forwarding” within the Network settings. Click on it.
- Click the “+” icon to add a new port forwarding rule. A new row will be added to the port forwarding table.
- In this table, you’ll need to specify the following information for the port forwarding rule:


- After filling in the necessary information, click “OK” to save the port forwarding rule.
Step 9: Acess your Ubuntu server via Windows PowerShell
- First check in your Setting>Apps>Optional feature that open ssh is installed.
- Now open Windows Powershell.
- Then access your server at baljit@ip-addresss mine is 192.168.1.15.
Step 10: Acess your Ubuntu server via Bitvise SSH Client
- Go to the official Bitvise website and download the Bitvise SSH Client installer suitable for your operating system.
- Once the installation is complete, launch the Bitvise SSH Client from the Start Menu or desktop shortcut, depending on where it was installed.
- When you launch Bitvise SSH Client, you’ll be presented with the main interface. To set up an SSH connection, follow these steps:
- Profile Name: Give your profile a meaningful name.
- Host: Enter the IP address of your Ubuntu server.
- Port: Use the default SSH port, which is usually 22.
- Username: Enter your Ubuntu server username.
- Using Password authentication, enter your Ubuntu server password.
- Click the “Save Profile” button to save your SSH profile.
- You can also view the site on which you installed the ERPNext and frappe by setting guest port(eg 8000) and host port(eg 8010).
- Now open address 127.0.0.1:8010 on any browser and start using the Interface.

- Select the profile you just created and click the “Login” button to initiate the SSH connection.
- If you’re connecting to the server for the first time, you’ll be prompted to accept the server’s host key. This is a security measure to ensure you’re connecting to the right server.
- Once the connection is established, you’ll have access to your Ubuntu server’s terminal through the Bitvise SSH Client’s terminal window.

Conclusion
In this tutorial, you learned how to create a virtual machine and install Ubuntu Server using VirtualBox. Also You’ve learned how to access your Ubuntu server using the Bitvise SSH Client. This setup is useful for testing, learning, and development purposes.