Installation of Debian 8 in VirtualBox

VirtualBox Setting

  • For macOS user must give macOS permission to run VirtualBox.

    • Open macOS "Security and Privacy" setting ("General" tab), and permit the execution of Oracle or VirtualBox application.

  • Create new virtural machine for Debian 8.

    • Setting: 1024, 2048, or 4096MB memory, 32, 64, or 128 GB VirtualBox Dist Image(VDI, variable size).

  • Setting -> Stroage -> Controller: IDE -> Addition of optical drive -> Add -> select downloaded debian-8.11.1-amd64-netinst.iso.

  • Boot the virtual machine.

Tips for installation processes of Debian 8

  • "Partition disks" stage:

    • select "Guided - use entire disk" -> "All files in one partition".

  • "Configure the package manager" stage:

    • Do not select mirror. It will be failed. Minimum installation is enough.

      • At the "Debian archive mirror country" selection page , select <go back>.

      • At next page: "No network mirror was selected. Continue without a network mirror?", select <Yes>.

  • "Software selection" stage:

    • Do not select any software (standard system utilities, etc.). It will be failed. This installation process requires above package mirror settings.

  • "Install the GRUB boot loader on a hard disk" state:

    • Select <yes> and in next page, select created hard disk (/dev/sda, etc.) for boot loader installation.

Debian 8 Settings

  1. Edit /etc/apt/sources.list, and update.

  2. Install GNU development environments.

  3. Install OpenSSH.

# #1

# vi /etc/apt/sources.list

# cat /etc/apt/sources.list

deb http://deb.debian.org/debian jessie main

deb http://deb.debian.org/debian jessie-updates main

deb http://security.debian.org/debian-security/ jessie/updates main

# apt-get update; apt-get dist-upgrade

# #2

# apt-get install build-essential gfortran

# #3

# apt-get install openssh-server

VirtualBox Settings for ssh login from your host OS to guest Debian 8

  1. Conform Host and Guest Ports.

    • Host: Port: 50022 (any unused port number is OK)

    • Guest: Port: 22, UserID: youraccount

  2. Prepare host ssh terminal (macOS: Terminal, Windows: Cygwin terminal).

  3. VirtualBox virtual machine Setting -> Network -> Advance -> Portforwarding -> "Port forwarding rules" dialog -> Add a following rule

<Portforwarding rules dialog>

name protocol Host-IP Host-Port Guest-IP Guest-Port

Rule 1 TCP 50022 22

  1. Access to Guest OS from macOS Terminal or Windows Cygwin terminal

Host-Terminal$ ssh -p 50022 youraccount@localhost