User Tools

Site Tools


linux:virtualbox-set-up-fedora-server

This is an old revision of the document!


VirtualBox Setup

Fedora Server 28

Date: Wed Aug 4 2018

After the initial settings have been made in VirtualBox, do the following as you're installing and after you've installed Fedora.

Within Fedora

In the Software Selection page, choose both the following. This will install some packages we'd like to use:

  • Editors
  • Headless Management

Mount points -- same as book, but choose ext4 filesystems (except for swap)

Post install

After the OS has installed, do the following from the command line:

sudo poweroff

In VirtualBox, under Settings, System, Boot Order:

  • Move hard disk to first position and/or uncheck Floppy and Optical off

Restart the machine/OS, then:

  • Update machine
    • sudo dnf updateinfo
    • sudo dnf upgrade

SSH should be installed by default, but if not, install, enable, and start it. Then check to see its status:

sudo dnf -y install openssh
sudo systemctl enable sshd
sudo systemctl start sshd
sudo systemctl status sshd

Set up NAT

We want to be able to SSH to our machines without having to use the VirtualBox GUI. Since we're using wireless, we can't easily set up bridged networking in VirtualBox, and so we have to use NAT. To do that:

Go to Settings, Network, Advanced, Port Forwarding, and enter the following in the table:

Name Protocol Host IP Host Port Guest IP Guest Port
SSH TCP 10.163.0.2 2222 10.0.2.15 22

The Host IP should be the IP address for your physical machine. Now you should be able to SSH into your virtual machine, if it's running (of course). In Mac Terminal, parameters are (configure appropriately for PuTTY):

$ ssh -p 2222 user@10.163.0.2
linux/virtualbox-set-up-fedora-server.1548086256.txt.gz · Last modified: 2019/01/21 10:57 by seanburns