Create an ubuntu virtual machine

Create an ubuntu 14.06 Virtualbox virtual machine

I’m using a windows 10 operating system and I want to use an ubuntu virtual machine to do some stuff.

Stuff needed

Virtual Machine setup

First step

Virtualbox Expert setup - Step 1
Virtualbox expert setup – Step 1

Second step

Virtualbox expert setup - Step 2
Virtualbox expert setup – Step 2

Network configuration

Network configuration
Network configuration

Installation of the OS on the VM

Add the iso as virtual disk

Iso selection
Iso selection

Start the VM

Ubuntu Installer menu
Ubuntu Installer menu

Select Install and choose language and locale.

Host name selection

Hostname selection
Hostname selection

User Creation

Insert, user details, username and password for the default user of the VM.

I’ve chosen not to encrypt my user directory.

Default timezone options.

Disk partitioning

Defaults, this should be the result

Disk partitioning results
Disk partitioning results

Base system install

Defaults until package selection, choose just:

  • base system
  • ssh server

Log into the virtual machine

Enter your username and password at the login prompt

Connect via SSH to the VM from the host system with putty

Enter the ifconfig command in the wm to find the virtual machine’s ip address.

user@ubuntu-base-vm:~$ ifconfig
enp0s3 Link encap:Ethernet IndirizzoHW 08:00:27:cf:66:ae
indirizzo inet:192.168.1.5 Bcast:192.168.1.255 Maschera:255.255.255.0
indirizzo inet6: fe80::a00:27ff:fecf:66ae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:6148 (6.1 KB) Byte TX:7515 (7.5 KB)

lo Link encap:Loopback locale
indirizzo inet:127.0.0.1 Maschera:255.0.0.0
indirizzo inet6: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1
Byte RX:11840 (11.8 KB) Byte TX:11840 (11.8 KB)

The inet address for enp0s3 is 192.168.1.5, so we are ready to connect with putty

Putty Configuration window
Putty Configuration window

You should be required to enter the username and password and be presented with a shell like this:

login as: user
user@192.168.1.5's password:
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-36-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
user@ubuntu-base-vm:~$

We’re good to go!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s