How to install openSUSE Leap 42.2 in VirtualBox


Posted by Daniel Lanza on February 12, 2017

This tutorial will explain how to install openSUSE 42.2 Leap in VirtualBox.

Requirements

You will need the following:

Steps

Preparing the virtual machine

Open VirtualBox and create a new virtual machine. Select Linux type and openSUSE version.

New openSUSE virtual machine

Select the amount of memory RAM. The recommendation is 4096 MB (4 GB).

4096-MB memory RAM

Create a new virtual hard disk.

New virtual hard disk

Select VirtualBox Disk Image.

VirtualBox Disk Image

And dynamically allocated.

Dynamically allocated

The amount of memory size will be 80 GB. As we selected dynamically allocated, the real size of hard disk will be growing until reaching 80 GB.

80-GB memory size

Installing openSUSE

We have created a new empty virtual machine. We need to set more properties and load ISO file. Go to settings of the new virtual machine.

Virtual machine settings

Enable bidirectional shared clipboard and drag and drop functionality in General tab.

Bidirectional shared clipboard and drag and drop

Increase number of processors by 2 in System tab.

2 processors

And increase video memory by 128 MB in Display tab.

128-MB memory size

Load openSUSE ISO file in Storage tab.

Load ISO openSUSE

Load ISO openSUSE

Let’s start and first run the virtual machine.

First start the virtual machine

The ISO file will be loaded when starting the virtual machine. Select installation.

Select installation

Set language and keyboard.

Language and keyboard

Continue the installation options.

Continue the installation

Edit suggested partition. We will install using one partition and Ext4 file system for root partition.

Only one partition

Only one partition

Only one partition

Set Clock and Time Zone.

Clock and Time Zone

And here the Desktop type. If you only want openSUSE as server, select server (text mode). In this case, we will use KDE Plasma Desktop.

KDE Plasma Desktop

Local user to login.

Local user

Disable firewall and enable SSH service.

Firewall and enable SSH

Firewall and enable SSH

Confirm the installation and wait.

Install openSUSE

Install openSUSE

When finished, openSUSE will be rebooted.

Install openSUSE

Post-installation tasks

Shutdown the virtual machine, and remove the ISO file from virtual drive that was loaded previously.

Remove ISO file

Next, start the virtual machine and update the system with the last software and libraries.

Update system

Update system

Update system

Update system

And finally, shutdown the virtual machine to make a snapshot. This snapshot will let you restore a fresh openSUSE installation.

Make a snapshot

Make a snapshot

Make a snapshot