I’ve
read through a lot of forums on how to update Oracle’s VirtualBox and
never really found many of them to be all that informative. I find a lot
of answers to be rather short, fairly direct but not very good at
giving directions. While the process is fairly simple, when someone
hasn’t done it before and isn’t sure what they should do, the idea can
be a little daunting. I run VBox on openSUSE with a few instances
running and it is fairly easy once a person has done it a few times.
Here is how it gets done using openSUSE.
Obviously,
the new version needs to be downloaded with the extension pack that
goes with it. It is important to note that the extension pack and VBox
version numbers need to match as they are harmonious in their usage.
Keep the both of them together and possibly make a backup if necessary.
First
thing to do is make a backup of the directory housing all the virtual
machines. The update process doesn’t mess with these, but it doesn’t
hurt to have a backup anyway since as we all know “stuff happens”. Since
a lot of the machines I run are installed directly from the iso files
for various Linux systems, I keep these in a directory the same as the
virtual machine directory and back them up as well. Doing this keeps all
our data in a nice cozy spot that can be accessed just in case things
don’t go as planned for some odd reason.
Next,
open YaST and in the search box on the left type in Oracle and click on
the box checked with VirtualBox until it become a red X to signify
removal of the software from the system then click “Accept” to have it
removed. Once that is done click the rpm VBox file and let it install
itself. Believe it or not, the process is almost half done.
Start
VBox and go to File > Preferences > Extension and select the old
version of the extension pack and remove it. Then of course select to
add a new extension and add the new one in its place. Now both the new
VBox and the new extension pack that goes with it are installed and
almost ready to be used. Now go into system runlevels and restart VBox.
Go
back into YaST and go to System Services (Runlevels) and once that
opens scroll down to the V’s and there should be an asterisk next to a
couple of the VBox items that need to be running for it to work. Select
each one with an asterisk and click on “Enable” to get them running
again. Remember, don’t forget to click on “Ok” in the lower right corner
or none of the changes will get registered with the system! If for any
reason something doesn’t restart right, then check with the support team
over at openSUSE and find out why, but there shouldn’t be any problems.
The
last thing to do is reboot the system and launch VBox. Each of the machines will need to have the new extension pack re-installed for it
to take effect.
Showing posts with label Oracle. Show all posts
Showing posts with label Oracle. Show all posts
Friday, March 22, 2013
VirtualBox Updated
Labels:
Linux,
OpenSUSE,
Oracle,
VirtualBox,
virtualization,
YaST
Tuesday, July 10, 2012
How-To Set Up VirtualBox in openSUSE 12.1
Recently I needed to do a new install of VirtualBox on my openSUSE 12.1 desktop. I usually only do this when I get in the mood to test new operating systems or I need a version of Windows for something specific that Linux isn’t suited for. I used to keep a copy installed by default, but lately I have been more resourceful in getting things done without Windows. This just happened to be one of those times when I had a new OS that I had never experienced before and I needed a platform to try it out on (the story on that later).
I know that a lot of people still aren’t familiar with virtualization or how to set one up or what they would even want one for. There are also a lot of relatively new Linux users that still do the dual-boot system on their computers running Windows next to Linux and choose which system to run on start. When I started using Linux back in 2009, I did the very same thing so I could continue to be productive in my old ways while learning to accept change and migrate over to a Linux OS. Whatever the reasoning, often times Linux users still end up needing a copy of Windows for some reason or another now and again however, as each new release of the various Linux distributions improve in user interface, operation, and efficiency, I’m seeing less and less dependencies on the old Microsoft build.
The dual boot system works fine for those who insist on having their OS have direct control to the hardware and network. The problem lies in the fact that some OS are more prone to infection and virus than other systems and if one of the two gets in deep enough trouble, it could render the entire machine useless and require a complete scrub and new install. By installing a second OS through means of a virtual machine such as Oracle’s VirtualBox, there is only one log in screen and when the need to use a secondary OS is required, a user just starts up the virtual instance just as if it were another program. If the secondary OS becomes unstable or infected in some way there is no complete loss, just scrub the virtual machine and install it again. Running two operating systems in this manner is far safer than trying to run side by side.
Getting past a simple why and into the how-to section, obviously the first thing anyone is going to want to do is to visit the Oracle VirtualBox download page and find the correct version for their particular openSUSE distribution. I strongly suggest taking the time to read the documentation on this page and not just surf for the matching download to their particular system. It does make a difference as to whether or not a 32 or 64 bit will be the host OS. There are also a lot of hints, tips and tricks to installing VirtualBox on Linux so do your reading and save aspirin! While on the download page, make sure to also download the extensions pack that goes with the version of VirtualBox. The serial numbers should match on both.
Once both the software and extension pack have been installed, don’t do anything with them just yet. As much as we would like, they are not ready to go right off the bat. There are a couple of things that need to be done prior to installing the first “guest” OS. Considering how popular the use of VirtualBox has become to Linux users over the last couple of years, I would hope that in future releases of openSUSE the programming engineers could make the installation a bit simpler, for now though it is what it is and that’s why I’m writing this how-to.
The next thing to do is go to YaST and in the search box on the upper left corner type in “DKMS”. Select the checkbox and install it. DKMS is an acronym for “Dynamic Kernel Module Support”. These packages are required for VirtualBox to generate Linux kernel modules for itself when updates are made and for driver support. No, I don’t know a whole lot about it except for the fact that the installation of VirtualBox will give an error when trying to initialize without it.
After DKMS is installed then we can go ahead and get VirtualBox in. This should have been downloaded from Oracle as an RPM package. These are the best and easiest packages to deal with in openSUSE. They operate just like the old EXE files for Windows programs. Just click on the file and openSUSE will take care of the rest. Don’t get overly excited just yet however, there are still a number of steps we have to go through before we can actually get our guest OS up and running so just be patient and follow along. Once the loader is done doing its thing, go to the application launcher in the lower left corner and navigate to Applications -> System -> Emulator and there should be the installation of VirtualBox. At this particular point I would actually suggest doing a right click and adding it to favorites since it will probably get used quite a bit in the beginning.
zypper in gcc make kernel-devel
Finally we have reached the point where we can re-boot the system so everything we changed gets set into place and start using our virtual environment.
I know this seems like a lot of work to set up a virtual machine, but once all is said and done, the payoff is totally worth it. I have actually had 4 different operating systems installed into one of these before for various levels of testing and trial purposes. One of the nice things is that a virtual machine can also be used for testing the same OS as the host before modifying the host itself. There are a number of good reasons for taking the time to install virtual machines besides being able to run Linux and Windows at one station. So I urge people to give it a try.
I also want to thank my friends over at openSUSE for helping me when I get stuck and motivating me to continue writing about my experiences and explorations with what I consider to be one of the most user friendly free OS available today. If for any reason these instructions aren’t working for anyone, please feel free to review the source I used to create them.
Labels:
Linux,
OpenSUSE,
Oracle,
VirtualBox,
virtualization,
Windows
Subscribe to:
Posts (Atom)










