LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-22-2007, 10:06 AM   #31
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142

Goal is definitely to create a SlackBuild script for VirtualBox.

Unfortunately I don't have the skills required. But with the excellent "Team" here, it certainly could be done... ;-)

gargamel
 
Old 01-22-2007, 06:53 PM   #32
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Ok, well here it is all in one post so you don't have to go between 3 pages:

1) Install bcc from:
http://homepage.ntlworld.com/robert.debath/dev86/
Get the complete source (Dev86src-X.Y.Z.tar.gz)

2) Install iasl from:
http://developer.intel.com/technolog.../downloads.htm
Get this one:
Quote:
Unix
ACPI CA - Unix Build Environment (.TAR.GZ 819KB)
This provides the basic implementation, which OSV's may integrate into their products as they see fit.
Quote:
Originally Posted by gargamel
install XERCES-C before you turn to XALAN-C
3) So, install xerces-c from:
http://www.apache.org/dyn/closer.cgi/xml/xerces-c/
Get the 'xerces-c-current'

4) Install xalan-c from:
http://www.apache.org/dyn/closer.cgi/xml/xalan-c/
Get the 'Xalan-C_current-src'

5) Make the following symlink (unless you find a better way):
Code:
cd /usr
mkdir qt
cd qt
ln -s /usr/lib/qt-3.3.6 3
or that last line could be
Code:
ln -s /usr/lib/qt 3
as long as '/usr/lib/qt' is linked to some version of qt-3.x.x

6) You are ready to build Vbox, so compile it as follows:
Code:
LIBRARY_PATH=/usr/X11R6/lib ./configure
For the rest you can follow the guide here starting with step 2 (you can also find all dependencies there in case you need them, most should already come with slackware standard install):
http://www.virtualbox.org/wiki/Linux...20instructions
Which would be, after the configure above:
Code:
source ./env.sh
kmk
# or 'kmk all' which will take a while as this is the compile step
# the following builds a kernel module, so make sure you installed the kernel sources
cd out/linux.x86/release/bin/src
make
su
<Enter root password>
make install
cd ..
modprobe vboxdrv
# now you should give yourself read/write access to /dev/vboxdrv, I think the best way to do this is to chown it, but you can also chmod it, so you can do either or both:
chmod a+rw /dev/vboxdrv
# AND/OR
chown $USER:users /dev/vboxdrv
exit # back to regular user so you can't mess too much up
LD_LIBRARY_PATH=. ./VBoxSVC&
LD_LIBRARY_PATH=. ./VirtualBox
And now it should work. Good Luck with all that

Last edited by H_TeXMeX_H; 01-22-2007 at 07:24 PM.
 
Old 01-23-2007, 03:14 AM   #33
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
Hi ,

thank you verymuch, H_TeXMeX_H.

You guys are really amazing ! This is the reason slackware community is the best

I have already started downloading the things, but for compilation I will have to wait for a day or two.

regards,
Hardik
 
Old 01-23-2007, 04:34 AM   #34
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
A third way to get the required access writes to /dev/vboxdrv is to make your user a member of group vboxdrv.

(However, that's what I did, and I still don't have it working the way I want; VirtualBox GUI runs, creating a virtual machine was smooth, but I am unable to install a system on it; I am just asking for help on the vbox users newsgroup, and report back, when I have a solution)

gargamel
 
Old 01-23-2007, 10:28 AM   #35
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
Seems I got my problem solved, thanks to the really great support from the InnoTek guys on their users newsgroup. Very competent, responsive and friendly!

It's not 100% assured, but most likely some notifying daemon of KDE blocked the VBox daemon from accessing the installation CD.

To confirm (or deny) this, I'd be interested, what desktops/window managers you use, as you don't seem to have the same problem. I suspect it's not Gnome or KDE, is it?

gargamel
 
Old 01-23-2007, 01:56 PM   #36
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I use fluxbox.
 
Old 01-23-2007, 02:48 PM   #37
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by H_TeXMeX_H
I use fluxbox.
That seems to confirm my guess: My problem was caused by some KDE daemon. After stopping the daemon it worked.
Fluxbox runs no such daemon, so that's why it worked better for you than me.

Thanks!

gargamel
 
Old 01-24-2007, 11:37 AM   #38
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by H_TeXMeX_H
Ok, well here it is all in one post so you don't have to go between 3 pages:

1) Install bcc from:
http://homepage.ntlworld.com/robert.debath/dev86/
Get the complete source (Dev86src-X.Y.Z.tar.gz)

2) Install iasl from:
http://developer.intel.com/technolog.../downloads.htm
Get this one:




3) So, install xerces-c from:
http://www.apache.org/dyn/closer.cgi/xml/xerces-c/
Get the 'xerces-c-current'

4) Install xalan-c from:
http://www.apache.org/dyn/closer.cgi/xml/xalan-c/
Get the 'Xalan-C_current-src'

5) Make the following symlink (unless you find a better way):
Code:
cd /usr
mkdir qt
cd qt
ln -s /usr/lib/qt-3.3.6 3
or that last line could be
Code:
ln -s /usr/lib/qt 3
as long as '/usr/lib/qt' is linked to some version of qt-3.x.x

6) You are ready to build Vbox, so compile it as follows:
Code:
LIBRARY_PATH=/usr/X11R6/lib ./configure
For the rest you can follow the guide here starting with step 2 (you can also find all dependencies there in case you need them, most should already come with slackware standard install):
http://www.virtualbox.org/wiki/Linux...20instructions
Which would be, after the configure above:
Code:
source ./env.sh
kmk
# or 'kmk all' which will take a while as this is the compile step
# the following builds a kernel module, so make sure you installed the kernel sources
cd out/linux.x86/release/bin/src
make
su
<Enter root password>
make install
cd ..
modprobe vboxdrv
# now you should give yourself read/write access to /dev/vboxdrv, I think the best way to do this is to chown it, but you can also chmod it, so you can do either or both:
chmod a+rw /dev/vboxdrv
# AND/OR
chown $USER:users /dev/vboxdrv
Or you make your user a member of group vboxusers:
Code:
# usermod -G vboxusers <username>
Note that you should list all groups your users is supposed to be a member of. If you only mention one group, the user will be removed from any other groups he's currently a member of.

In case you want to use a CD or DVD drive from within your guest, no media must be mounted and your user must have read/write access to the device file. Usually there's a softlink /dev/cdrom or /dev/dvd or /dev/dvdwriter pointing to the relevant device file, so you should be able to easily identify it.

Depending on your environment, you are all set now. If you are using Fluxbox or any other window manager that doesn't run its own damons, skip the next paragraph.

However, if you use KDE (and for Gnome I would expect the same, but haven't tried it), read on here.
Even if no media is mounted (it may be inserted), and your user has read/write access to the device file, it still may happen that the VirtualBox daemon cannot access it. This indicated by error messages containing the string "VERR_ACCESS_DENIED". This may be an indication that some daemon in your system is trying to access the device, thus blocking the VirtualBox daemon from doing so. Typical examples are the media management and device notifying daemons in KDE. In case you see error messages with "VERR_ACCESS_DENIED" try stopping these daemons, stop VirtualBox GUI and daemon, log off from your X session, have a cup of tea, and maybe another one, and then log in again. The cup of tea is vital, as it can the system well take a few minutes to remove lock files etc.


Quote:
Originally Posted by H_TeXMeX_H
Code:
exit # back to regular user so you can't mess too much up
LD_LIBRARY_PATH=. ./VBoxSVC&
LD_LIBRARY_PATH=. ./VirtualBox
And now it should work. Good Luck with all that
Setting up a guest shouldn't be too complicated, from here. Just have the GUI application guide you.
However, when your guest is up and running you might want to exchange data between it and your host. However, the open source edition 1.3.3 of VirtualBox doesn't support USB or CD/DVD writing. But you can use scp. It's up to you, which scp program you want to use. I prefer 'the real thing', so downloaded and installed the Cygwin tools in my guest. Note, that the connection can only be originated on the guest.
If you have a NAT configuration, Windows XP will get something like 10.0.2.15. This address is not 'seen' by the host. But the host address is seen by the guest. Assuming the host address is 192.168.22.10, a command like

Code:
scp file user@host:/target/directory/
should work just fine. With this simple and familiar command you can transfer data created on the guest to your host, for backups, archiving and further processing.

Have fun!

gargamel

Last edited by gargamel; 01-24-2007 at 11:40 AM.
 
Old 01-24-2007, 11:42 AM   #39
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
Hi guys,

feel free to shorten the above. Maybe we can together create a VirtualBox-on-Slackware-mini-HOWTO.

Regards

gargamel
 
Old 01-25-2007, 09:13 AM   #40
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
Hi guys,

Thanks a lot for the help. I could install and run the virtualbox very easily following you how-to.

Still, I have a question, I have a tgz image of windows xp, how should I load it into the Virtualbox , to test if everythign works ?

regards,
Hardik
 
Old 01-25-2007, 10:14 AM   #41
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
Hi,


I managed that also. I just renamed a tgz cd image to iso and VirtualBox accepted it without any problems.

But when I start the vm (windows xp), I get following error

1908 VERR_VM_DIRVER_NOT_INSTALLED

but in my lsmod, I can see the vboxdrv is loaded.

I know this is more a question for the VBox forum, and I will surely ask it there itself, but from my office I dont have access to those forums, so I will ask it after I am back home.

thanks and regards,
Hardik
 
Old 01-25-2007, 12:05 PM   #42
nfriedli
LQ Newbie
 
Registered: Jan 2007
Location: Cortaillod - Switzerland
Distribution: Slackware 11
Posts: 5

Rep: Reputation: 0
There is already a (french) SlackBuild here : forum.slackbuilds.net/viewtopic.php?id=328

[Sorry, that's my first reply and I can't post a link :-(]
 
Old 01-25-2007, 02:49 PM   #43
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by rangalo
I managed that also. I just renamed a tgz cd image to iso and VirtualBox accepted it without any problems.

But when I start the vm (windows xp), I get following error

1908 VERR_VM_DIRVER_NOT_INSTALLED
Did you try extracting the tgz ? Maybe there's an iso inside ?

As for that error ... I would have no idea what it means, the guys at the vbox forum would know better.
 
Old 01-25-2007, 07:50 PM   #44
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by rangalo
Hi,


I managed that also. I just renamed a tgz cd image to iso and VirtualBox accepted it without any problems.

But when I start the vm (windows xp), I get following error

1908 VERR_VM_DIRVER_NOT_INSTALLED

but in my lsmod, I can see the vboxdrv is loaded.

I know this is more a question for the VBox forum, and I will surely ask it there itself, but from my office I dont have access to those forums, so I will ask it after I am back home.

thanks and regards,
Hardik

Actually I'd expect a different error message, if this was the problem, but does your user have read/write access to /dev/vboxdrv?

gargamel
 
Old 01-25-2007, 08:15 PM   #45
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,600

Original Poster
Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by nfriedli
There is already a (french) SlackBuild here : forum.slackbuilds.net/viewtopic.php?id=328

[Sorry, that's my first reply and I can't post a link :-(]
Thanks for the pointer, however, although my French is ... absent, to say the least, if get it right, this SlackBuild script is intended for repackaging the closed source version, and not for building the open source edition of Virtual Box. I may be wrong, though.

Anyway, interesting!

gargamel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
LXer: VirtualBox - VM software goes Open Source LXer Syndicated Linux News 0 01-15-2007 11:33 AM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration