Section | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
The first time the virtual machine (VM) boots, it may take you through a series of screens to accept the licence, configure the language, timezone and date.
Use the TAB key and RETURN keys to navigate through these options, the mouse will not work until the VM has fully booted.
Resizing the screen and shared folders
Resizing screen automatically
To have the monitor size in the virtual machine change size automatically as the virtual machine window is resized, select the 'Auto resize' option from the View menu when the virtual machine is active.
In order for this to work, some additional software might need to be installed on the virtual machine, known as Guest Additions. If this doesn't work, try installing (or reinstalling) the guest additions software.
Change default screen size
The first time the virtual machine (VM) is started, the screen size may be set to 1024x768 pixels.
To change the screen size requires changing the desktop settings in the Linux virtual machine (similar to any Linux desktop)
- Start up the virtual machine and let it start up fully.
- Resize the VM window to the required size.
- In the bottom left corner, find the openSUSE icon and click it.
- Then select 'Applications' and 'Configure Desktop':
- On the window that appears, find the icon labelled 'Display and Monitor' and click it.
- On the display window, click 'Size & Orientation' in the left bar (if not selected).
In the middle panel, find the 'Size' menu: - Select the largest size on this menu. It should match the resized window from step 2.
- Click 'Apply' to set the new resolution:
- Confirm the change and you're done.
Shared folders
Shared folders enable the host and guest machines to share files via a common folder (directory).
Please see instructions above for how to setup the shared folder for the virtual machine.
In order for this to work, some additional software might need to be installed (or reinstalled) on the virtual machine, known as Guest Additions. See below for more information.
Install Guest Additions
Warning |
---|
Although Guest additions is normally installed in the OpenIFS virtual machines, the shared_folder (and auto-screen resize) does not always work. This may be due to different versions of the guest additions between the VM and VirtualBox. In which case, re-install following the instructions below. |
To install or re-install Guest Additions follow these instructions.
Check guest additions are installed
To check if guest additions is already installed run the following command in a Terminal:
Code Block | ||
---|---|---|
| ||
lsmod | grep -i vbox |
if you see the following output (or similar), then the Guest Additions software is installed.
The first screen asks you to confirm acceptance of the OpenIFS Binary Licence.
Use TAB to navigate to option to Agree to the License Terms:
Hit RETURN to select (put a X), then TAB again to Next:
and hit RETURN to progress to the next screen.
The following screens will ask for the choice of language:
keyboard and timezone. Again use the TAB key to navigate the options (or the shortcuts highlighted in yellow) and RETURN to select the option.
These steps only need to be done on the very first boot of the virtual machine.
Resizing the screen and shared folders
Resizing screen automatically
To have the monitor size in the virtual machine change size automatically as the virtual machine window is resized, select the 'Auto resize' option from the View menu when the virtual machine is active.
In order for this to work, some additional software might need to be installed on the virtual machine, known as Guest Additions. If this doesn't work, try installing (or reinstalling) the guest additions software.
Change default screen size
The first time the virtual machine (VM) is started, the screen size may be set to 1024x768 pixels.
To change the screen size requires changing the desktop settings in the Linux virtual machine (similar to any Linux desktop)
- Start up the virtual machine and let it start up fully.
- Resize the VM window to the required size.
- In the bottom left corner, find the openSUSE icon and click it.
- Then select 'Applications' and 'Configure Desktop':
- On the window that appears, find the icon labelled 'Display and Monitor' and click it.
- On the display window, click 'Size & Orientation' in the left bar (if not selected).
In the middle panel, find the 'Size' menu: - Select the largest size on this menu. It should match the resized window from step 2.
- Click 'Apply' to set the new resolution:
- Confirm the change and you're done.
Shared folders
Shared folders enable the host and guest machines to share files via a common folder (directory).
Please see instructions above for how to setup the shared folder for the virtual machine.
In order for this to work, some additional software might need to be installed (or reinstalled) on the virtual machine, known as Guest Additions. See below for more information.
Install Guest Additions
Warning |
---|
Although Guest additions is normally installed in the OpenIFS virtual machines, the shared_folder (and auto-screen resize) does not always work. This may be due to different versions of the guest additions between the VM and VirtualBox. In which case, re-install following the instructions below. |
To install or re-install Guest Additions follow these instructions.
Check guest additions are installed
To check if guest additions is already installed run the following command in a Terminal:
Code Block | ||
---|---|---|
| ||
lsmod | grep -i vbox |
if you see the following output (or similar), then the Guest Additions software is installed.
Code Block |
---|
vboxsf |
Code Block |
vboxsf 47936 0
vboxvideo 12669 1
vboxguest 293037 6 vboxsf
drm 335594 3 vboxvideo |
Uninstall Following the install steps below will overwrite any existing guest additions installation. It should not be necessary to uninstall. However, you can uninstall guest additions by:
Code Block |
---|
sudo zypper rm virtualbox-guest-kmp-default virtualbox-guest-tools virtualbox-guest-x11 |
...
- Start up the virtual machine (VM) and let it start up fully.
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.
- 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 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. - In the virtual machine, open a Terminal window from the openSUSE icon and 'Applications' menu
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 title e.g. cd /run/media/openifs/VBOXADDITIONS_4.3.34_104062
(older systems may use /var/run/media instead).
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.
- 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:
...
This arises because the OpenIFS/Metview virtual machines are 64-bit which requires hardware virtualization support in the BIOS of your computer to be enabled.
There are many helpful pages on Internet forums to resolve this, see for example: http://askubuntu.com/questions/256792/how-do-i-enable-hardware-virtualization-technology-vt-x-for-use-in-virtualbox
Mac users. The above instructions apply to machines running Windows/Linux which allow access to the BIOS. On Macs, this is not possible though this issue can still occur. If you see this message on a Mac, it's likely that another application has changed the state of the VT-x hardware acceleration. In which case, a reboot of the machine usually clears it.
-bit which requires hardware virtualization support in the BIOS of your computer to be enabled.
There are many helpful pages on Internet forums to resolve this, see for example: http://askubuntu.com/questions/256792/how-do-i-enable-hardware-virtualization-technology-vt-x-for-use-in-virtualbox
Mac users. The above instructions apply to machines running Windows/Linux which allow access to the BIOS. On Macs, this is not possible though this issue can still occur. If you see this message on a Mac, it's likely that another application has changed the state of the VT-x hardware acceleration. In which case, a reboot of the machine usually clears it.
If none of the above solve the problem, make sure you are running the latest version of VirtualBox for your machine. Older versions of VirtualBox do not support VT-x on newer computers.
Network is not working
In some cases, it may not be possible to use the VM to connect to the outside, or connections only work to the local network. This may be due to proxies on your local network intercepting external traffic.
To solve this, configure the VM with your local network proxy settings in Yast2 > Network settings > Proxy.If none of the above solve the problem, make sure you are running the latest version of VirtualBox for your machine. Older versions of VirtualBox do not support VT-x on newer computers.
Drag'n'Drop not working
Check that the Settings for the VM are set to 'Bidirectional'. Also, when the VM is running, check that the menu option "Devices" -> "Drag'n'Drop" is also set to Bidirectional.
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 | ||||||
---|---|---|---|---|---|---|
|