[SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby epretorious » Jan 6th, '12, 01:21

I'm not able to install VirtalBox 4.1.8 on Mageia 1 because of an unresolved dependency:
Code: Select all
[eric@localhost Downloads]$ sudo rpm -Uvh VirtualBox-4.1-4.1.8_75467_mdv2011.0-1.i586.rpm
error: Failed dependencies:
   libstdc++.so.6(GLIBCXX_3.4.15) is needed by VirtualBox-4.1-4.1.8_75467_mdv2011.0-1.i586

I've verified that the package that provides libstdc++.so.6 (libstdc++6) is installed and that the .so exists:
Code: Select all
[eric@localhost Downloads]$ rpm -q libstdc++6
libstdc++6-4.5.2-4.mga1

[eric@localhost Downloads]$ ls -al /usr/lib/libstdc++.so.6
lrwxrwxrwx 1 root root 19 May 30  2011 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.14*

...but I'm still not able to install VirtualBox 4.1.8.

Ideas? Suggestions?
Last edited by epretorious on May 1st, '12, 01:57, edited 1 time in total.
epretorious
 
Posts: 44
Joined: Jan 6th, '12, 00:44

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby doktor5000 » Jan 6th, '12, 01:35

Try again with rpm -Uhv --force or rpm -Uhv --nodeps (can't remember exactly, not used rpm to install something in a long time, only for removal)
or you could try with urpmi --allow-force --allow-nodeps
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby winstonteacox » Jan 6th, '12, 01:39

Hmm...

Just a question:
Why do you want to install a Mandriva 2011 rpm?

Wouldn't it be better to activate the Cauldron repos and take the virtualbox...mga2.rpm?

cheers,
Bernd
Now after my words of profound wisdom, I'm going back to procrastinating.
User avatar
winstonteacox
 
Posts: 139
Joined: Mar 30th, '11, 16:05
Location: Straubing Germany

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby epretorious » Jan 6th, '12, 02:09

I found an interesting post that discussed a similar problem (i.e., GLIBCXX_3.4.15) but wasn't able to find libstdc++.so.6.0.15.

winstonteacox wrote:Hmm... Wouldn't it be better to activate the Cauldron repos and take the virtualbox...mga2.rpm?


I've seen the warning "Cauldron is not for the faint of heart!" and decided to take the easy way out: I installed VirtualBox 4.1.8 from source (i.e., VirtualBox-4.1.8-75467-Linux_x86.run) after installing kernel-desktop586-devel-latest, gcc, and gcc-devel.

It seems to work so far... I'll update this thread with my results once I've had time to test.
epretorious
 
Posts: 44
Joined: Jan 6th, '12, 00:44

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby doktor5000 » Jan 6th, '12, 03:21

@winstonteacox: No, the name may be a bit misleading but that's an official virtualbox package:
http://download.virtualbox.org/virtualb ... 1.i586.rpm
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby rolltide101x » Jan 6th, '12, 06:20

This does not directly answer your question, but I much prefer VMware player to Virtualbox. If you have never used it, it may be worth a shot. It can be downloaded for free here
http://www.vmware.com/products/player/

But they do require you to register with them for the download
They say gaming ruined my life. Good thing I have 2 extra lives Image

Bow before me, for I am ROOT
User avatar
rolltide101x
 
Posts: 85
Joined: Dec 4th, '11, 09:34
Location: Mobile, Alabama United States

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby epretorious » Jan 7th, '12, 05:30

rolltide101x wrote:This does not directly answer your question, but I much prefer VMware player to Virtualbox.


I haven't kept up with VMware Player but last time I checked (Version 6.x, IIRC) VirtualBox was much more full-featured. In face, AFAIK, VirtualBox 4 supports live-migration and a couple of other useful features that are only available in VMware vShpere! ;)
epretorious
 
Posts: 44
Joined: Jan 6th, '12, 00:44

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby rolltide101x » Jan 7th, '12, 05:41

This does not directly answer your question, but I much prefer VMware player to Virtualbox.


I haven't kept up with VMware Player but last time I checked (Version 6.x, IIRC) VirtualBox was much more full-featured. In face, AFAIK, VirtualBox 4 supports live-migration and a couple of other useful features that are only available in VMware vShpere! ;)


THIS is from my experience.

VMware seems to run MUCH faster on Linux than Virtualbox. I used Virtualbox for several years and about 6 months ago switched to VMware. Also the ability to change to custom resolutions without an act of congress is nice. The main feature Virtualbox has that i think VMware player should have is snapshot beyond that I have never found anything Vbox has that VMware doesnt. Though its worth noting (for my specific needs) the "kernel paravirtualization option" which Vbox does not have comes in handy every once in a while for me. With this said, I think they are both great. I just have better luck with vmware.
They say gaming ruined my life. Good thing I have 2 extra lives Image

Bow before me, for I am ROOT
User avatar
rolltide101x
 
Posts: 85
Joined: Dec 4th, '11, 09:34
Location: Mobile, Alabama United States

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby borsa » Jan 7th, '12, 15:11

You should not choose mandriva. Choose "All distributions" instead. That's working for me.
borsa
 
Posts: 32
Joined: Apr 4th, '11, 19:34

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby morgano » Feb 22nd, '12, 23:50

Using 4.1.8 from .run file ... how about dkms?
I simply skip it, and if kernel get upgraded it may not load the kernel module, boot without it and i just need to let it compile and looad it again, no worries i presume.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1492
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby epretorious » May 1st, '12, 01:42

doktor5000 wrote:Try again with rpm -Uhv --force or rpm -Uhv --nodeps... or you could try with urpmi --allow-force --allow-nodeps

Thanks, Doktor: I was able to install the package by using the --nodeps flag only to have VirtualBox compalin about the missing library later...

Code: Select all
[eric@localhost VirtualBox-4.1.8]$ sudo rpm -Uvh --nodeps VirtualBox-4.1-4.1.8_75467_mdv2011.0-1.i586.rpm
warning: VirtualBox-4.1-4.1.8_75467_mdv2011.0-1.i586.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Preparing...                ########################################### [100%]
   1:VirtualBox-4.1         ########################################### [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules                              [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules                 [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS     [  OK  ]
Starting VirtualBox kernel modules                              [  OK  ]

[eric@localhost VirtualBox-4.1.8]$ sudo /etc/init.d/vboxdrv status
VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) are loaded.

[eric@localhost VirtualBox-4.1.8]$ VirtualBox
VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/virtualbox/VBoxRT.so)

VirtualBox: Tip! It may help to reinstall VirtualBox.

However, using the installation script as root was successful:

Code: Select all
[root@localhost VirtualBox-4.1.8]# ./VirtualBox-4.1.8-75467-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation...........
VirtualBox Version 4.1.8 r75467 (2011-12-19T13:08:07Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
warning: build_py: byte-compiling is disabled, skipping.

warning: install_lib: byte-compiling is disabled, skipping.

Building the VirtualBox kernel modules

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.

Code: Select all
[eric@localhost VirtualBox-4.1.8]$ sudo /etc/init.d/vboxdrv status
VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) are loaded.

[eric@localhost VirtualBox-4.1.8]$ VBoxManage startvm storagecluster
Waiting for VM "storagecluster" to power on...
VM "storagecluster" has been successfully started.
epretorious
 
Posts: 44
Joined: Jan 6th, '12, 00:44

Re: Unable to install VirtualBox 4.1.8 on Mageia 1

Postby epretorious » May 1st, '12, 02:36

epretorious wrote:
doktor5000 wrote:However, using the installation script as root was successful:

Upgrading from version 4.1.8-75467 to 4.1.14-77440 was just as easy using the installation script for 4.1.14-77440:

Code: Select all
[eric@localhost VirtualBox-4.1.14]$ sudo ./VirtualBox-4.1.14-77440-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation...........
VirtualBox Version 4.1.14 r77440 (2012-04-12T16:20:44Z) installer
Removing previous installation of VirtualBox 4.1.8 r75467 from /opt/VirtualBox
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.

[eric@localhost VirtualBox-4.1.14]$ VBoxManage startvm storagecluster
Waiting for VM "storagecluster" to power on...
VM "storagecluster" has been successfully started.

Be cautious when downloading from the VirtualBox download site, however - Most files downloaded failed the md5sum check the first one or two times!

Code: Select all
[eric@localhost VirtualBox-4.1.14]$ md5sum -c VirtualBox-4.1.14-77440.md5 2> /dev/null | grep OK
Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack: OK
Oracle_VM_VirtualBox_Extension_Pack-4.1.14.vbox-extpack: OK
UserManual.pdf: OK
VBoxGuestAdditions_4.1.14.iso: OK

[eric@localhost VirtualBox-4.1.14]$ # Only the first four files signatures were correct - The other three files (.run, .bz2, and .rpm) all failed!!!
[eric@localhost VirtualBox-4.1.14]$ ls -al
total 140244
-rw-r--r-- 1 eric pretorious 10063096 Apr 30 17:09 Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack
-rw-r--r-- 1 eric pretorious 10063096 Apr 30 17:10 Oracle_VM_VirtualBox_Extension_Pack-4.1.14.vbox-extpack
-rw-r--r-- 1 eric pretorious  5075922 Apr 30 17:03 UserManual.pdf
-rw-r--r-- 1 eric pretorious 50780160 Apr 30 17:04 VBoxGuestAdditions_4.1.14.iso
-rwxrwxr-- 1 eric pretorious 27986054 Apr 30 17:05 VirtualBox-4.1.14-77440-Linux_x86.run*
-rw-r--r-- 1 eric pretorious     4434 Apr 30 17:09 VirtualBox-4.1.14-77440.md5
-rw-r--r-- 1 eric pretorious  4327479 Apr 30 17:03 VirtualBox-4.1.14.tar.bz2
-rw-r--r-- 1 eric pretorious 35289542 Apr 30 17:03 VirtualBox-4.1-4.1.14_77440_mdv2011.0-1.i586.rpm
epretorious
 
Posts: 44
Joined: Jan 6th, '12, 00:44

Re: [SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby morgano » May 1st, '12, 11:38

Here is my variant, sucessfully installed on cauldron 64 bit

Retrieve from https://www.virtualbox.org/wiki/Downloads to a separate folder:
MD5SUMS.txt
Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack
VirtualBox-4.1.14-77440-Linux_amd64.run
__Check!
Code: Select all
$ md5sum -c MD5SUMS.txt 2> /dev/null | grep OK
Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack: OK
VirtualBox-4.1.14-77440-Linux_amd64.run: OK
__Install
Code: Select all
# chmod +x *.run
# ./*.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation...........
VirtualBox Version 4.1.14 r77440 (2012-04-12T16:28:20Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
warning: build_py: byte-compiling is disabled, skipping.

warning: install_lib: byte-compiling is disabled, skipping.

Building the VirtualBox kernel modules

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.
__Install extension pack
Code: Select all
# VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

And add yourself to group vboxusers.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1492
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby epretorious » May 1st, '12, 17:40

morgano wrote:Here is my variant, sucessfully installed on cauldron 64 bit...

Pretty easy, eh?

Upgrading is just as easy and - if you ever need to uninstall/remove VirtualBox - you can just use the /opt/VirtualBox/uninstall.sh script. :idea:
epretorious
 
Posts: 44
Joined: Jan 6th, '12, 00:44

Re: [SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby morgano » May 1st, '12, 22:03

Yes. Not my first time, but good to document for ourself and others ;)

To install guest, in my case cauldron 32 bit: in the guest settings I mounted the network install boot.iso file as a DVD media, and set networking to bridged, and it installed in an ansap from my urpmi-proxy.

One more thing to note:
After installing the guest, in my case , we should install/update the guest additions in the guest!
Any installed guest additions need be uninstalled first. Mysteriously my guest had both host and guest drivers installed for virtualbox 4.1.12 !
I choose only a minimal install of only LXDE, no internet, no office etc, but there were installed anyway - why is a question...

So I uninstalled them, and installed the kernels -devel-latest and dependencies. (needed for next step)
Then in the virtualbox menu of the running guest i selected "Install guest additions", and a couple seconds later the guest OS detected the media and i could open the folder, become root and run
Code: Select all
# ./VBoxLinuxAdditions.run
which successfully compiled and installed the guest additions.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1492
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby morgano » May 1st, '12, 22:09

Tip: how to send Ctrl-Alt-F1..F12 to guest: Use the host key (normally right CTRL) + F1..F12 (took me a while to find)

Folder sharing
Me and other have experienced problems when following the manual
https://www.virtualbox.org/manual/ch04. ... redfolders and using fstab
For some it do not work, for me one folder work not the other

The working solution is to add a line to your guests /etc/rc.local like this:
Code: Select all
mount -t vboxsf -o uid=500,gid=500 VBox /home/johndoe/Share
The user (here johndoe) need to be set up to have same user and group id as in the host, and that must correspond to the values in uid=500,gid=500. First make the folder "Share" in his home in guest. "VBox" is the name of the share as set up in virtualbox virtual machine configuration.
References: https://forums.virtualbox.org/viewtopic.php?t=15868 plus net search...
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1492
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby doktor5000 » May 2nd, '12, 21:16

Shared folders works just fine, you need to set them up via virtualbox manager and make them persistent, and the user in the guest has to be a member of the vboxsf group, then those folders will be automatically mounted at (graphical IIRC) login. Has already been discussed here in some other threads, please use the search function.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Unable to install VirtualBox 4.1.8 on Mageia 1

Postby morgano » May 3rd, '12, 21:27

I did not go into details, but i set it up to share both the host /home/user as readonly, and /home/user/VBox, but did not get the /home/user to work. I think it was about ownership. I do not remember what i tried - It could possibly have worked by setting uid and gid in the fstab line, but then i had already googled and found people saying it works better for them to use mounting in rc.local, it worked for me too, so i stay here :)
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1492
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest