Archive for January 2013

Quick and Dirty: Installing the openSUSE 12.3 Beta on VirtualBox

This guide is a down-and-dirty visual walkthrough about how I installed the openSUSE 12.3 Beta on VirtualBox 4.6 from the KDE live CD (which is available for download here). (Note: This, of course, is simply how I did it; you could find other ways to accomplish the same thing.)

The reason for this guide is that, although the openSUSE live CD comes with the VirtualBox extensions, the ones on the live CD are incompatible with openSUSE 12.3’s version of X.org. Please look at this bug report.

This guide makes the following assumptions:
1. You have experience creating and installing virtual machines in VirtualBox
2. You have experience using openSUSE
3. You have experience using basic Linux commands, including from the command line

To get started, create a new virtual machine with a virtual hard drive, and set the virtual machine to boot from the openSUSE KDE live CD ISO. Also, have the virtual machine mount the VirtualBox guest additions ISO.

Next, run the virtual machine. OpenSUSE will come to the point where it tries to start KDE, but it will fail due to the incompatibility between the installed VirtualBox video driver and the installed version of X.org. Switch to a console by pressing the combination Right Ctrl + F1. Log in as root (no password is necessary). Next, mount the VirtualBox guest additions ISO by creating a mountpoint (in the screenshot, I used /media/sr1) and mounting the ISO.

Then, run the “VboxLinuxAdditions.run” script.

The main VirtualBox guest additions module will not build correctly because the live CD doesn’t come with the kernel headers, or the necessary compilation software (i.e. gcc and make), but the script will install the correct video driver, which is what we want.

After everything is done, cycle to runlevel 3 and back to runlevel 5 (by issuing the “init 3” and “init 5” commands), and KDE will start. You can then use openSUSE’s installer to install it.

(Installation note: remember to set the installer to put GRUB2 on the MBR, /dev/sda – it seems to default to /dev/sda1.)

After the installation’s finished, exit from the live CD. Of course, before you reboot into your new virtual machine, you’ll need to change the boot order, so that VirtualBox boots from the VM’s hard drive. Unmount the live CD. Keep the Guest Additions ISO mounted.

After you reboot into openSUSE, the first problem you will probably encounter is that the network isn’t up. You can use YaST to set up your virtual network card. I brought up the connection by running the command “dhclient eth0” as root in a console.

After that, you can properly install the VirtualBox guest additions. In order to do so, you’ll need to install the “kernel-devel”, “make”, and “gcc” packages using YaST (or zypper, from the command line), first.

Now that you’ve got openSUSE installed and running, here are some suggestions for next steps:
1. Install all available software updates (if you get an error message, that’s because there is one repo that’s enabled by default — “openSUSE-12.3-Update-Non-Oss” — that doesn’t actually exist)
2. If your installation went like mine, your (virtual) sound card isn’t working. I got it to work by using YaST to disable PulseAudio
3. If your screen resolution is stuck at 640×480, create an “xorg.conf” file to set the resolution as want it to be — that’s a bit too much for this simple guide

Good luck, and, as openSUSE tells you when you log in as root, “Have a lot of fun!” Post any problems or questions you might have to the pre-release/beta section of the openSUSE Forum.

Advertisements

Posted January 26, 2013 by eco2geek in Linux distributions