LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   VirtualBox 2.1 PUEL on Slackware 12.2 (https://www.linuxquestions.org/questions/slackware-14/virtualbox-2-1-puel-on-slackware-12-2-a-691554/)

gefst 12-18-2008 04:32 PM

VirtualBox 2.1 PUEL on Slackware 12.2
 
I had some problems installing VirtualBox 2.1 PUEL (not OSE) on Slackware 12.2. This is what worked for me (this applies to a system upgraded to 12.2 from 12.1 using the official instructions):

I downloaded VirtualBox PUEL from http://www.virtualbox.org/wiki/Linux_Downloads selecting "All distributions - i386".

After installation (sh VirtualBox-2.1.0-41146-Linux_x86.run as root) VirtualBox would not start complaining about a missing libcap.so.1.

For some reason the package libcap-2.14-i486-1.tgz was not installed on my machine during upgrade and I had to manually download it from a Slackware ftp mirror (look under l/). After installing the package the same complaint about missing libcap.so.1 appeared, so I made a symbolic link as follows

(as root)
cd /lib
ln -s libcap.so.2.14 libcap.so.1

Everything works now.

Gefst

sertmusluman 12-18-2008 04:47 PM

I have installed VirtualBox 2.1.0 yet, and applied your instructions but i have different problem now.

Quote:

sinem@slackware:~$ su
Password:
root@slackware:/home/sinem# VirtualBox
/opt/VirtualBox-2.1.0/VirtualBox: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
root@slackware:/home/sinem# cd /lib
root@slackware:/lib# ln -s libcap.so.2.14 libcap.so.1
root@slackware:/lib# VirtualBox
No protocol specified
Qt WARNING: VirtualBox: cannot connect to X server :0.0
root@slackware:/lib#

gefst 12-18-2008 04:48 PM

try to run is a normal user.

sertmusluman 12-18-2008 04:52 PM

Yes it works properly now. :)
Previous versions were requiring a bit work to install an OS on VirtualBox as USER. Now can i directly install an OS as user?

gefst 12-18-2008 05:04 PM

I think you can install guest OSes as a normal user, as was the case in previous versions.

Glad I helped

Cuetzpallin 12-24-2008 03:22 PM

Quote:

Originally Posted by gefst (Post 3380454)
I had some problems installing VirtualBox 2.1 PUEL (not OSE) on Slackware 12.2. ....

Gefst

What is the difference between those versions?

Ilgar 12-24-2008 03:33 PM

I installed VBox 2.1.0 two days ago but in a different way. I first tried libcap2 as you did, and had the same error. I thought of the linking trick :) but didn't do it, fearing it could cause some problems. Instead, I found libcap1 from the Debian repository. The original package doesn't compile but there is also a patch there, with that patch applied it compiles nicely and you can run VBox. Here is the page:

http://packages.debian.org/source/stable/libcap

Ilgar 12-24-2008 03:36 PM

Quote:

Originally Posted by sertmusluman (Post 3380476)
Yes it works properly now. :)
Previous versions were requiring a bit work to install an OS on VirtualBox as USER. Now can i directly install an OS as user?

You're getting that error because the root user can't create an X connection (any GUI program will give you that error). If you run an X session as root you won't get that. But it's a bad idea to run VBox as root anyway, so just run it as a regular user.

ppr:kut 12-25-2008 02:46 AM

Just a pointer here: VirtualBox binaries are installed suid root, so they *always* run as root....

gefst 12-25-2008 04:10 AM

Cuetzpallin, you can read about the differences between the two editions here:

http://www.virtualbox.org/wiki/Editions

Ilgar, how about a buildscript, with the patch? Perhaps you can submit it to slackbuilds.org for everyone. There is a buildscript for libcap1 for slackware 11 at slackbuilds.org but I don't see any patch. Perhaps you can expand this.

http://slackbuilds.org/repository/11...raries/libcap/

Gefst

ppr:kut 12-25-2008 04:23 AM

Quote:

Ilgar, how about a buildscript, with the patch? Perhaps you can submit it to slackbuilds.org for everyone.
I guess this won't be accepted. libcap1 is old code, meant for the 2.4.x kernel series. For 2.6.x kernels there's libcap2, which is already included in Slackware 12.2 and won't be accepted by SlackBuilds.org either.

Ilgar 12-25-2008 07:07 AM

Quote:

Originally Posted by ppr:kut (Post 3386763)
I guess this won't be accepted. libcap1 is old code, meant for the 2.4.x kernel series. For 2.6.x kernels there's libcap2, which is already included in Slackware 12.2 and won't be accepted by SlackBuilds.org either.

In that case I should probably not bother. Isn't it strange that VBox asks for a 2.4 libcap library, because after all it's targeted for and it extensively uses 2.6 stuff...

Cuetzpallin 12-26-2008 01:07 PM

I installed VB and made the link trick and it works :-D
My question now is how can I activate my USB ports in order to attach an Ipodtouch to my virtual OS.

jannekrille 12-26-2008 01:41 PM

Usb in guest system
 
First off you need the guest additions, then you need to edit this line in /etc/rc.d/rc.S
Code:

/sbin/mount -v usbfs /proc/bus/usb -t usbfs
into this
Code:

/sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=10,devmode=0664
and finally add yourself in the group "wheel".

This is picked up from another thread here, which I can't find at the moment, so I cannot tell who's to credit. But it works well for me.

Jan-C

zetabill 12-26-2008 03:56 PM

I received an IPod Touch for Christmas (2G so no linux for me yet) and set this up in my Windows VM in VirtualBox 2.1.

I made the libcap link as above, I changed rc.S as above, I'm already in the wheel group, and I set up a USB filter in VirtualBox. When the device is plugged in and before you boot up the virtual machine, go to Settings->USB, enable USB and USB 2.0. On the right, click the "Add filter from Device" button (second one down) and it should autodetect the USB settings right from the IPod and you can add that filter (if not see if you can grab what its asking for using the lsusb -v command in shell). If you do not set up this filter and go to upgrade/jailbreak your firmware you could potentially brick your ipod! It's unlikely but I wouldn't take that chance.

As of today, there's no jailbreak for the 2G Ipod touch so it's important to seriously do your research on that before doing so. This might not apply to you but I feel obligated to mention it for others who might read this thread. It is too excellent of a device to brick despite the fact it is a prisoner in its own hardware with absolutely zero linux compatibility. Zero unless you have a USB-functional windows/mac virtual machine or physical host... and this method works beautifully in Slackware.


All times are GMT -5. The time now is 01:25 PM.