VirtualBox forward ports below 1024

The VirtualBox online-manual writes “Forwarding host ports < 1024 impossible…”. This tutorial shows that it is still possible. I know that there are several reasons not to do so, but there are also reasons where it is necessary.

Conditions

  • VirtualBox with VM configured (not running)
  • You know the root password

Example for Ubuntu

Now you probably need to import the VM. Attention! The acces rights will be changed!

Port Forwarding

Configure or just check the port forwarding. To do so, you can use the graphical port forwarding editor or even the command line (VBoxManage).

VirtualBox port forwarding editor

At the end you can start the VM as root.

Create Windows 10 Vagrant Base Box

In the first part I have shown how to create the Windows 10 VirtualBox VM. This time I will show you how to create a Vagrant Base Box.

Preconditions

Important Windows 10 Settings

Turn off and disable UAC (here you will find different ways)

disable windows 10 uac

Enable Remote Desktop

remote desktop settings

Configure WinRM on Windows

open the Command Prompt as Admin

Optional Settings for Windows

open the PowerShell as Admin

Okay,… that is all. Now shutdown windows…

Create Vagrant BaseBox

Create and run test project

Values for username and password should match your needs!

Create Windows 10 VirtualBox VM

This tutorial is designed to prepare for another!

Preconditions

Prepare VM

You can now begin the installation. Do not forget the Guest Additions! After successful installation and configuration, you can remove the unnecessary media.