Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.
Section
Column

This tutorial will explain how to create the "virtual machine" using the "virtual machine player" in order to run the practical exercises.

 

What is a "virtual machine"? A virtual machine is literally one computer operating system and its applications running on top of another operating system. It is a way of using Linux with MacOSX and Windows for example. But is can also be used to run one version of Linux on another version of Linux. Often called "appliances", virtual machines are useful for providing complete environments for certain applications so that no software needs to be installed on the host computer.

What is a "virtual machine player"? A virtual machine player is an application that is used to run or 'play' the virtual machine. This is typically either 'VirtualBox' or 'VMplayer'. Mac users may be familiar with 'Parallels' which is also a virtual machine (VM) player. The VM player software needs to be installed on the host computer before the virtual machine can be used.

Why use a "virtual machine"?. Virtual machines are very useful for training. All of the software and training materials for OpenIFS and Metview are loaded into the virtual machine. There is no need to install software/files on your own computer. OpenIFS user workshop create the workshop case studies using virtual machines so that we can deliver training remotely. We have examples of virtual machines from previous workshops. For more information please contact openifs-support@ecmwf.int.

Before you start

This tutorial assumes you have already downloaded one of the OpenIFS/Metview virtual machines. The virtual machines have been used for the OpenIFS workshops.

If you do not have a virtual machine and would like to try one, they are available for download on the OpenIFS ftp site. Please contact openifs-support@ecmwf.int for more information.

Column
width30%
Panel
borderColorblack
bgColorwhite
borderWidth1
titleBGColorwhite
borderStyledotted
titleOn this page...

Table of Contents
maxLevel2

Panel
borderColorblack
bgColorwhite
borderWidth1
titleBGColorwhite
borderStyledotted
titleAlso see...

The VirtualBox user documentation page has more information about creating and using virtual machines.

It includes a FAQ and HowTo articles on various topics.

Information about VirtualBox is also available on the openSUSE website.

...

  1. Start up the virtual machine (VM) and let it start up fully.

  2. First On the virtual machine (not the host), check that the necessary kernel files are installed:

    Code Block
    zypper search kernel-devel

    If not, install them with the command:

    Code Block
    sudo zypper install kernel-devel

    The installation needs to be done as the root user. This command will prompt for the root password 'metv1ew!'

    The 'make' and 'gcc' packages are also required but these are normally available by default in the OpenIFS virtual machine.

  3. With the virtual machine as the active window, select the 'Devices' menu and the 'Install guest additions CD image..



    A popup window should appear in the virtual machine showing the CD.
    Click the Guest Additions CD to mount it. A new folder window should appear showing the contents of the CD.

  4. In the virtual machine, open a Terminal window from the openSUSE icon and 'Applications' menu


     

  5. In the Terminal, change to the directory where the VBoxAdditions CD was mounted. This will be under the /run/media directory, followed by the username.

    Code Block
    titlee.g.
    cd /run/media/openifs/VBOXADDITIONS_4.3.34_104062

    (older systems may use /var/run/media instead).

  6. To start the installation of the Guest Additions, type the following in the Terminal:

    Code Block
    sudo ./VBoxLinuxAdditions.run

    This will prompt for the root password, usually 'metv1ew!'

    Info

    The installation may report that Guest Additions is already installed and ask you to confirm.

    The installation only takes a few minutes.

  7. Reboot the virtual machine for the changes to take effect.

...

For the 2015 and later OpenIFS workshops, download the latest version of the OpenIFS/Metview  virtual machine (contact openifs-support@ecmwf.int for assistance).

Configure the virtual machine as above and let is start fully. Then:

...

If shared folder does not automatically mount

Mount On the virtual machine, mount the folder manually by (for example to your home directory):

...

If a system update has updated the kernel files and shared folders have stopped working, reinstall the Guest Additions software. Guest Additions adds files to the kernel and these must be reinstalled if the kernel is changed.

 

Excerpt Include
Credits
Credits
nopaneltrue