How to move VirtualBox virtual machine image

By  •  VirtualBox

Virtual machines in VirtualBox can be exported from one VirtualBox installation and imported to another. It works well to move virtual machines across different systems and physical locations.

Read More

How to import Virtual Machine to VirtualBox

By  •  VirtualBox

VirtualBox can import virtual machines appliance that has been exported to the Open Virtualization Format both from a folder (ovf) or an archive file (ova). Open Virtualization Format is …
Read More

How to export VirtualBox Virtual Machine

By  •  VirtualBox

One way to move a virtual machine or just as a backup solution is to create a copy of your virtual machine as an appliance. This appliance can then …
Read More

How to add new harddrive to VirtualBox virtual machine

By  •  VirtualBox

You can attach new storage to your Virtualbox virtual machine (VM) after it's already been created. This storage can either be from virtual hard disks of supported format commonly …
Read More

How to change default Virtual Machine location for VirtualBox

By  •  VirtualBox

VirtualBox stores all the virtual machine files in a folder named VirtualBox VMs. The folder, by default, is within the user's home directory. It contains all the virtual machine's …
Read More

How to insert disk image to VM disc drive in VirtualBox

By  •  VirtualBox

A virtual optical device is by default attached to the virtual machines in VirtualBox. You can insert a disk image into the optical drive to install an application or …
Read More

How to change boot order for VirtualBox Guest OS

By  •  VirtualBox

A BIOS will search for bootable medium based on the configured boot order during system boot. A virtual BIOS for VirtualBox will do the same for a virtual machine. …
Read More

How to access guest VM in Virtualbox via port forwarding

By  •  VirtualBox

You’ll not be able to directly access your guest virtual machine in Virtualbox via SSH or RDP if it’s under NAT network. For this you’ll have to configure port forwarding as detailed below;

  1. Go to Virtualbox‘s main interface and make sure the virtual machine that you want to configure is powered off.
  2. Select your virtual machine and click Settings icon on the top toolbar. Alternatively, right click on the virtual machine and click Settings.
  3. Click on the Network tab in Settings main interface.
  4. Look for and click on Advanced text at the bottom of the window.
  5. Click on Port Forwarding button.
  6. Click on the + icon on the upper right to add new port forwarding rule in Port Forwarding‘s main interface.
  7. Some of the fields are automatically filled up as the followings.
  8. Fill in the fields accordingly.

    In this example, port 2202 in the host machine will forward to port 22 of the guest machine whereby is the default IP for guest VM under NAT network.

  9. Test the forwarding rule.

    $ ssh -p2022  [email protected]
    Warning: Permanently added '[]:2022' (ECDSA) to the list of known hosts.
    [email protected]'s password:
    Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-83-generic x86_64)
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    0 packages can be updated.
    0 updates are security updates.
    Last login: Fri Jul  7 09:29:30 2017
    [email protected]:~$

    SSH is used to test the forwarding rule as SSH is listening on port 22 of the guest VM.