LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2015, 02:20 PM   #1
warpman
Member
 
Registered: Apr 2005
Posts: 76

Rep: Reputation: 17
Installing Virtualbox


I'm running Salix 14.1 and I would like to install Virtualbox but when I tried to run the package from SBOPKG it didn't install. I got a few messages. So, I'm trying to find an easy way to install Virtualbox. Is there an easy procedure out there to run? Should I just grab the file(s) from Oracle and install it that way instead of trying the packages from slackbuilds?

Any help would be appreciated.
 
Old 03-31-2015, 02:24 PM   #2
warpman
Member
 
Registered: Apr 2005
Posts: 76

Original Poster
Rep: Reputation: 17
I found this link. http://forum.salixos.org/viewtopic.p...tualbox#p37653
I'm going to try it later on today. I will let you know if this works ok.
 
Old 03-31-2015, 03:57 PM   #3
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: Slackware64
Posts: 366

Rep: Reputation: 143Reputation: 143
You just have to download the file from:

https://www.virtualbox.org/wiki/Linux_Downloads" (choose "All distributions" and your architecture - amd64 or i386)

Make it executable

#chmod +x VirtualBox-(...).run

And then, to install:

#sh VirtualBox(...).run

It will be installed.

To run Virtualbox, type "virtualbox" on console as root.

Last edited by gauchao; 03-31-2015 at 04:49 PM.
 
1 members found this post helpful.
Old 03-31-2015, 07:54 PM   #4
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273
^ What gauchao said above ^, plus be sure to download the appropriate extension pack.
 
1 members found this post helpful.
Old 04-01-2015, 06:17 AM   #5
michaelslack
Member
 
Registered: Feb 2013
Location: Sydney
Distribution: slackware
Posts: 110

Rep: Reputation: 36
a proper slackware package is always better...

It takes a little more work, but you should also consider building a proper slackware package. Then it is easier to "undo" whatever you do later on. Also, updating when virtualbox is updated is perhaps a bit cleaner.

It this interests you, be sure to read the slackbuilds howto to actually build the package, then read
Code:
man installpkg
to learn how to install it.

Personally I use sbopkg to maintain packages built from slackbuilds.org (including virtualbox), it makes it all pretty easy and I haven't had any major difficulties.

Note also that if you want to build and install virtualbox using slackbuilds.org, 2 other packages need to be built and installed first: acpcia and virtualbox-kernel (see the README and also the README.SLACKWARE for important setup information).

Cheers,

Michael
 
1 members found this post helpful.
Old 04-01-2015, 07:28 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Over the years I have installed (and updated when notified) VirtualBox from both Sun and Oracle. The installation instructions given above (with the addition of the extension pack -- you do want that) will get installed and working.

Note that the Oracle installer places VirtualBox in /opt (which, in my opinion, is exactly where it belongs rather than in the /usr tree). The installer builds and installs the kernel modules and installs start/stop scripts in /etc/rc.d for you.

If you wish to remove VirtualBox completely from your system simply use the uninstaller:
Code:
su -
<root password>
/opt/VirtualBox/uninstall.sh
and it's gone.

When a new version of VirtualBox is released, you'll be notified when you start it. You download the two files (as above) and execute the ".run" which will uninstall the existing version and replace it with the new one.

Hope this helps some.
 
3 members found this post helpful.
Old 04-13-2015, 12:56 AM   #7
warpman
Member
 
Registered: Apr 2005
Posts: 76

Original Poster
Rep: Reputation: 17
Hey guys, sorry I took a long time to reply. But I was able to install the virtualbox just fine. Here is the problem I have, I haven't been able to install Windows or any other distributions. I was able to install zenwalk but it takes like super LONG to respond. Also, I was never able to install the VirtualBox 4.3.26 Oracle VM VirtualBox Extension Pack. I'm going to give it another shot tomorrow. I'm going to try to write down all the errors but it doesn't seem to work properly. I might try a different version of virtualbox tomorrow.

Do you guys know if we can install vmware instead of virtualbox?
 
Old 04-13-2015, 01:12 AM   #8
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Here you go:

http://www.microlinux.fr/microlinux/...bit/slackware/

http://www.microlinux.fr/microlinux/...t/slackware64/

 
Old 04-13-2015, 01:28 AM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by tronayne View Post
If you wish to remove VirtualBox completely from your system simply use the uninstaller:
Code:
su -
<root password>
/opt/VirtualBox/uninstall.sh
and it's gone.
Actually it is not completely gone but almost

https://www.virtualbox.org/ticket/10752
 
1 members found this post helpful.
Old 04-13-2015, 05:42 AM   #10
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
A couple of things to be aware of: you really do need to install the extension pack (before you install any virtual machines) and you need to allocate RAM. You will also want to install the Guest Additions in each virtual machine.

The Extension Pack is installed once for VirtualBox itself, the Guest Additions are installed in individual virtual machines.

First off, the User Manual can be found in /opt/VirtualBox/UserManual.pdf. It's a good idea to take a look though it simply because installation and configuration can be a little confusing and it won't hurt to have a reference to look at.

If you downloaded, for example, Oracle_VM_VirtualBox_Extension_Pack-4.3.26-98988.vbox-extpack, you would start VirtualBox, just VirtualBox, no virtual machines, click on File, then on Preferences, then Extensions. Over to the right of the window is a blue box with a down-pointing arrow. Click that and navigate to where the Extension Pack downloaded file is, highlight it and click OK to install. You only do this once when you install a new version of VirtualBox.

Once you've done that you'll be able to easily install a virtual machine.

RAM: your virtual machines use RAM that you allocate from your total RAM pool. You do that by, when you have a virtual machine installed, clicking on the Settings icon on the Oracle VM VirtualBox Manager (it's the window that pops up when you start VirtualBox). That is, you've installed a virtual machine and you don't start it until you do the settings.

The one you need to fiddle with first is the RAM and it's a balancing act: keep in mind that you've got your Linux system and your virtual machine that are separate. Whatever you allocate to the virtual machine will not be available to the system, so don't give the virtual machine any more that half of the total RAM installed in your box. And, if you do allocate half the RAM to more than one virtual machine, don't ever start two of them because the system will be unusable. The balancing comes into play when you're allocating enough RAM to the virtual machine to make it usable (Win7, for example, is a pig dog with only a gig of RAM) without crippling your Linux system.

The box I use for virtual machines has 8G in it, I allocate 4G to a Win7 virtual machine and things work well (I don't actually use Win7 for much of anything except, you know, critical updates). If you've got wads of RAM, say, 16G or better, it's a little easier to balance things so they all work well, just be careful what you wish for.

Note that one you have installed a virtual machine and have it running you will not need to do all the settings again when you install a VirtualBoxc update -- extension pack and guest additions, yes, virtual machine configuration, no. The virtual machine retains you settings.

Take some time to read through the User Manual about installing and configuring just to get a feel for what to do and why to do it for your particular needs. VirtualBox does work quite well if you let it.

Hope this helps some.

Last edited by tronayne; 04-13-2015 at 05:46 AM.
 
2 members found this post helpful.
Old 04-13-2015, 08:34 AM   #11
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by warpman View Post
Hey guys, sorry I took a long time to reply. But I was able to install the virtualbox just fine. Here is the problem I have, I haven't been able to install Windows or any other distributions. I was able to install zenwalk but it takes like super LONG to respond. Also, I was never able to install the VirtualBox 4.3.26 Oracle VM VirtualBox Extension Pack. I'm going to give it another shot tomorrow. I'm going to try to write down all the errors but it doesn't seem to work properly. I might try a different version of virtualbox tomorrow.

Do you guys know if we can install vmware instead of virtualbox?
Sort of echoing tronayne. Use the same version of VirtualBox

How much memory on your host computer. Things will run slow if you don't have a lot or don't give the guest OS enough. The default for Linux should be enough (512 MB) but I always at least give in 1024 MB. I have 8 GB on memory on my host machine. Things run quite well and similar to tronayne I give my Windows 7 machine 4608 MB. My Windows 10 machine only gets 2048 MB.

Once VirtualBox is installed you can install the Extension Pack from the VirtualBox Manager via File, Preferences..., Extensions.

Another way is via a terminal. Make sure you are in the directory that the extension pack file was downloaded to and then enter:
Code:
vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-4.3.26-98988.vbox-extpack
NOTE: Leave out --replace if this is a new install.

If you don't have enogh memory switching to vmware won't help much.

Last edited by chrisretusn; 04-13-2015 at 08:35 AM.
 
1 members found this post helpful.
Old 04-13-2015, 11:58 AM   #12
warpman
Member
 
Registered: Apr 2005
Posts: 76

Original Poster
Rep: Reputation: 17
OK... thanks for the info guys. I did read the user's manual but only the portion pertaining to Linux. Chris, I followed the procedure that you mentioned. That wasn't the problem. I'm getting an IO error. I will post it later on today.
As far as memory is concern, you might be right. I took the default and never increased it. I'm going to change the vm size and give it a shot later on today.
 
Old 04-22-2015, 06:56 PM   #13
warpman
Member
 
Registered: Apr 2005
Posts: 76

Original Poster
Rep: Reputation: 17
OK... sorry it took a while to get back but the issue was resolved. What I had to do was increase the memory size on the VM like some people have suggested. I was also able to install the Extension Pack. All I had to do is open VB as root, select the extension pack, install it and issue was resolved.

Thanks for all your help/Info...
 
Old 04-30-2015, 06:13 PM   #14
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Aparently there is more than just installing it, just tried myself. Once I add myself to the group it created it won't run because my UID is not root.
 
Old 04-30-2015, 07:37 PM   #15
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: Slackware64
Posts: 366

Rep: Reputation: 143Reputation: 143
@enine

As far as I know, you must add the USER to the vboxusers group as below:

Quote:
su

#usermod -a -G vboxusers user
(to add the user "user" to the group "vboxusers")

or

Quote:
sudo gpasswd -a $USER vboxusers

Last edited by gauchao; 05-04-2015 at 06:48 PM. Reason: typo
 
1 members found this post helpful.
  


Reply

Tags
salix, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Virtualbox in Slackware 14.0 gabytf Slackware 3 12-13-2012 09:33 AM
Installing VirtualBox TroN-0074 Linux - Newbie 6 02-04-2012 09:08 PM
need help installing virtualbox baronobeefdip Linux - Software 2 05-18-2011 05:52 PM
installing ose virtualbox Fred Caro Linux - Newbie 3 06-20-2008 06:21 PM
Help installing VirtualBox 449 Linux - Software 1 02-15-2008 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration