Tutorial : VirtualBox on openSUSE 11.1 Part 1

VirtualBox is free open source virtualization utility to run another (or similar)  operating system on top our current operating system. In this case, I may run another copies of openSUSE, Windows or another Linux distro on my openSUSE box.
What is the advantage of VirtualBox beside another virtualization utility such as VmWare, MS Virtual PC or Xen? VirtualBox is free and open source, although the open source version has less feature than the binary version, e.g : USB support. VirtualBox available on  various edition and easy to configured. The OSE (Open Source Edition) included on default openSUSE 11.1 DVD. It’s free and open source. The binary version without source code is free for personal usage and can be downloaded at VirtualBox website.
You may install VirtualBox with 3 different way. The first one is by installing the OSE version from openSUSE DVD Install. Another way is by installing binary version on RPM format, by download the proper version on VirtualBox website. The last one is by download and installing binary version of multi installer format. This is a run-executable file.
Beware that you may not used both of them on same machine. You must choose whether used the OSE or binary format. If you wish to install the binary, you must remove the OSE version.
In this scenario, I’m using the latest version (currently), VirtualBox ver 2.1.0

INSTALLATION

USING OSE VERSION

  1. Install virtualbox-ose from YAST or by using zypper :
    virtualbox-yast-kecil[code language=’cpp’]
    zypper in virtualbox-ose
    [/code]

USING RPM VERSION

  1. Download VirtualBox binary RPM. Choose binary RPM for openSUSE 11.1.
  2. Install
    [code language=’cpp’]
    rpm -ivh VirtualBox-2.1.0_41146_openSUSE111-1.i586.rpm
    [/code]

USING MULTIPLE INSTALLER VERSION

  1. Download VirtualBox Multiple Installer. Choose Binary for All Distribution.
  2. Install
    [code language=’cpp’]
    chmod +x VirtualBox-2.1.0-41146-Linux_x86.run
    ./VirtualBox-2.1.0-41146-Linux_x86.run
  3. [/code]
    Verifying archive integrity… All good.
    Uncompressing VirtualBox for Linux installation……..
    VirtualBox Version 2.1.0 (2009-01-08T20:30:27Z) installer
    Installing VirtualBox to /opt/VirtualBox-2.1.0
    Building the VirtualBox kernel module

    VirtualBox has been installed successfully.
    You will find useful information about using VirtualBox in the user manual
    /opt/VirtualBox-2.1.0/UserManual.pdf
    and in the user FAQ
    http://www.virtualbox.org/wiki/User_FAQ

    We hope that you enjoy using VirtualBox.

CONFIGURATION

  1. Add your user name into vboxusers group. Open Yast | Security and User | User Management. Choose your logon user name, Edit. Navigate into detail tab and mark the vboxusers or do it with konsole :[code language=’cpp’]groupmod –add-user vavai vboxusers[/code]
    Please remember the user name and the Group ID (GID) from vboxuser. We will use this later
  2. Activating USB Support IF ONLY USED BINARY VERSION. You won’t be able to activating this with OSE version.
    Edit /etc/fstab, and add this into last row :
    none /proc/bus/usb usbfs devgid=XXX, devmode=664 0 0
    Replace  XXX with the GID as describe above.
  3. Run VirtualBox from Kick Off Menu | System | VirtualBox or use search menu
  4. Click I Agree for license agreement (Scroll Down if the button is disabled. You must read the license carefully for your reference)
  5. Fill in user name and email address for registration

  6. VirtualBox will display the main windows

We will discussed Part II : Using VirtualBox. Let’s wait for a day or two 🙂

19 thoughts on “Tutorial : VirtualBox on openSUSE 11.1 Part 1

  1. Nice article, about _how_ to install.
    But _why_ should i?
    According to the author there’s only a single reason: “VirtualBox is free and open source”
    Just checking out the website: http://www.virtualbox.org/wiki/Guest_OSes
    Here they claims that openSUSE_11 is only partially supported.
    So what is the advantage over XEN, which is also open and free and fully supports the latest version of openSuSE? Is it better, faster, more stable, emulate more hardware? Figures?
    I might want to try it, but for a better reason than only “free and open”.

  2. Nice article, about _how_ to install.
    But _why_ should i?
    According to the author there’s only a single reason: “VirtualBox is free and open source”
    Just checking out the website: http://www.virtualbox.org/wiki/Guest_OSes
    Here they claims that openSUSE_11 is only partially supported.
    So what is the advantage over XEN, which is also open and free and fully supports the latest version of openSuSE? Is it better, faster, more stable, emulate more hardware? Figures?
    I might want to try it, but for a better reason than only “free and open”.

  3. Hans,
    openSUSE11_11 is only partially supported AS A GUEST. opensuse11 works as a HOST OS.
    The advantage over XEN is that it does full virtualization – I can take my Windows CD, boot and install it in Virtual Box. XEN does Paravirtualization – I need an OS install customized to run on XEN. Someday soon XEN will do full virtualization IF and only IF you have a processor with the virtualization extensions, that is a Core 2 Duo or later.

  4. Hans,
    openSUSE11_11 is only partially supported AS A GUEST. opensuse11 works as a HOST OS.
    The advantage over XEN is that it does full virtualization – I can take my Windows CD, boot and install it in Virtual Box. XEN does Paravirtualization – I need an OS install customized to run on XEN. Someday soon XEN will do full virtualization IF and only IF you have a processor with the virtualization extensions, that is a Core 2 Duo or later.

  5. I downloaded the latest version on February 1, 2009. After installing on OpenSuse 11. and editing the groups and users, the icon appeared in the KDE menu. Clicking on it just produces a bouncing cube which goes away after a few bounces.
    Could someone please post the diagnostic steps which should be taken to solve this problem?
    Also, for new users, it would be helpful to explain that fstab is opened in read-only mode, and what to do about that.

  6. Mas Vavai,
    Pesan error dari Sun VB nya:
    Unable to open a connection to the Xen hypervisor/daemon.
    Verify that:
    – A Xen host kernel was booted
    – The Xen service has been started
    Detail
    Unable to open connection to hypervisor URI ‘xen:///’:
    internal error failed to connect to xend
    Traceback (most recent call last):
    File “/usr/share/virt-manager/virtManager/connection.py”, line 325, in _open_thread
    self.vmm = libvirt.openReadOnly(self.uri)
    File “/usr/lib/python2.6/site-packages/libvirt.py”, line 149, in openReadOnly
    if ret is None:raise libvirtError(‘virConnectOpenReadOnly() failed’)
    libvirtError: internal error failed to connect to xend
    Mohon penjelasan.

  7. Mas Vavai,
    Pesan error dari Sun VB nya:
    Unable to open a connection to the Xen hypervisor/daemon.
    Verify that:
    – A Xen host kernel was booted
    – The Xen service has been started
    Detail
    Unable to open connection to hypervisor URI ‘xen:///’:
    internal error failed to connect to xend
    Traceback (most recent call last):
    File “/usr/share/virt-manager/virtManager/connection.py”, line 325, in _open_thread
    self.vmm = libvirt.openReadOnly(self.uri)
    File “/usr/lib/python2.6/site-packages/libvirt.py”, line 149, in openReadOnly
    if ret is None:raise libvirtError(‘virConnectOpenReadOnly() failed’)
    libvirtError: internal error failed to connect to xend
    Mohon penjelasan.

  8. buat di share :
    kalo ada yang ngalamin error waktu running awal Vbox seperti dibawah ini :
    Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100) (rc=-10)
    tenang aja.. bisa diakalin tuh :
    blinkon~> /bin/ls -l /usr/lib/virtualbox/VirtualBox
    Make sure the permissions are 4511 (chmow 4511 /usr/lib/virtualbox/VirtualBox)
    selesai deh. dan jangan lupa petunjuk mas vavai diatas diikutin juga..jangan da yang ketinggalan.. wokeh..
    lam kenal buat semua..

  9. the configuration guide works fine, but you need to log out after the changes to take effect
    keep up mates!
    pantelis gr

  10. the configuration guide works fine, but you need to log out after the changes to take effect
    keep up mates!
    pantelis gr

  11. log out is necessary to put you in the vboxusers group. test by going to command line and running ‘groups’. if it does not list vboxusers, you either did not log out or you did not do the groupmod command right (requires sudo).

  12. Hi,
    Im stuck here because i also have a problem with “dpkg” so whenever i try and sort my Sun virtualbox out it comes out with dpkg error again!!! and then when i try and sort the dpkg error it comes out with dpkg error!
    Please help!!!!!!!!!!!!!!!!!1

Leave a Reply

Your email address will not be published. Required fields are marked *