Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

how to install virtualbox perfectly

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
Uns
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran
Contact:

how to install virtualbox perfectly

#1 Post by Uns »

Hi

i am installed the virtualbox4.1.16 in debian 6 squeez

and i have 2 errors

Code: Select all

Failed to open a session for the virtual machine Windows7.
The virtual machine 'Windows7' has terminated unexpectedly during startup with exit code 1

Code: Select all

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
how can i install the dkms?!! i text in terminal

Code: Select all

apt-get install dkms

Code: Select all

root@Uns:/home/programmer# apt-get install dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dkms is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
how can i fixed :?:

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: how to install virtualbox perfectly

#2 Post by vbrummond »

Make sure your kernel headers are installed as well. As root (please type this exactly):

Code: Select all

apt-get install linux-headers-`uname -r`
Then try to reinstall the virtualbox dkms:

Code: Select all

apt-get --reinstall install virtualbox virtualbox-dkms
Then run:

Code: Select all

modprobe vboxdrv
If that fails try the script they mention:

Code: Select all

/etc/init.d/vboxdrv setup
Always on Debian Testing

kmathern
Posts: 603
Joined: 2011-02-05 19:20

Re: how to install virtualbox perfectly

#3 Post by kmathern »

@vbrummond,

I'm guessing that the O.P. Uns is probably trying to install the virtualbox package from the following Oracle repo:
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib
because that repo has a squeeze compatible virtualbox package at version 4.1.16. The virtualbox package in the regular Debian squeeze repo is actually named 'virtualbox-ose' and it's at version 3.2.10-dfsg-1. There are squeeze-backports virtualbox & virtualbox-dkms packages, but they are version 4.0.10-dfsg-1.



@ Uns,

If you are using the Oracle virtualbox repo package, replace the second command that vbrummond posted:

Code: Select all

apt-get --reinstall install virtualbox virtualbox-dkms
with:

Code: Select all

apt-get --reinstall install virtualbox-4.1
then continue with vbrummond's 3rd & 4th steps if necessary.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: how to install virtualbox perfectly

#4 Post by vbrummond »

Sorry I am used to using wheezy where it is called virtualbox and virtualbox-ose is deprecated.
Always on Debian Testing

Uns
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran
Contact:

Re: how to install virtualbox perfectly

#5 Post by Uns »

i updated the header-kernerl

Code: Select all

root@Uns:/home/programmer# apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  linux-headers-2.6.32-5-amd64
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 497 kB of archives.
After this operation, 6,947 kB of additional disk space will be used.
Get:1 http://ftp.au.debian.org/debian/ squeeze/main linux-headers-2.6.32-5-amd64 i386 2.6.32-45 [497 kB]
Fetched 497 kB in 53s (9,315 B/s)                                              
Selecting previously deselected package linux-headers-2.6.32-5-amd64.
(Reading database ... 145987 files and directories currently installed.)
Unpacking linux-headers-2.6.32-5-amd64 (from .../linux-headers-2.6.32-5-amd64_2.6.32-45_i386.deb) ...
Setting up linux-headers-2.6.32-5-amd64 (2.6.32-45) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.32-5-amd64
dkms: running auto installation service for kernel 2.6.32-5-amd64:
      vboxhost (4.1.16)...done.
      virtualbox-ose (3.2.10)...done.
reinstalling the virtualbox4.1

Code: Select all

root@Uns:/home/programmer# apt-get --reinstall install virtualbox-4.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
Need to get 71.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://download.virtualbox.org/virtualbox/debian/ squeeze/contrib virtualbox-4.1 i386 4.1.16-78094~Debian~squeeze [71.8 MB]
Err http://download.virtualbox.org/virtualbox/debian/ squeeze/contrib virtualbox-4.1 i386 4.1.16-78094~Debian~squeeze
  503  Service Unavailable
Failed to fetch http://download.virtualbox.org/virtualbox/debian/pool/contrib/v/virtualbox-4.1/virtualbox-4.1_4.1.16-78094~Debian~squeeze_i386.deb  503  Service Unavailable
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@Uns:/home/programmer# apt-get --reinstall install virtualbox virtualbox-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package virtualbox is a virtual package provided by:
  virtualbox-3.2 3.2.14-75509~Debian~squeeze
  virtualbox-4.1 4.1.16-78094~Debian~squeeze
  virtualbox-4.0 4.0.16-75491~Debian~squeeze
You should explicitly select one to install.

E: Package 'virtualbox' has no installation candidate
E: Unable to locate package virtualbox-dkms
its already installed and when i going to start its begining erorr

Code: Select all

RTR3Init failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/etc/init.d/vboxdrv setup'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

Code: Select all

Failed to open a session for the virtual machine Windows7.
The virtual machine 'Windows7' has terminated unexpectedly during startup with exit code 1.
i did everything you said but its not work?!!!
why?

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: how to install virtualbox perfectly

#6 Post by vbrummond »

Because you make things overcomplicated. Anyway, make sure you have the virtualbox 4 packages reinstalled correctly it seemed to have errors in the output:
Err http://download.virtualbox.org/virtualbox/debian/ squeeze/contrib virtualbox-4.1 i386 4.1.16-78094~Debian~squeeze
503 Service Unavailable
Failed to fetch http://download.virtualbox.org/virtualb ... e_i386.deb 503 Service Unavailable
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Make sure you can connect to the virtualbox archive. Try running (as root):

Code: Select all

apt-get update

Code: Select all

apt-get -f install

Code: Select all

apt-get --reinstall install virtualbox
If that fails lastly run:

Code: Select all

/etc/init.d/vboxdrv setup
Always on Debian Testing

Uns
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran
Contact:

Re: how to install virtualbox perfectly

#7 Post by Uns »

hi
im from iran and virtualbox website limited iranian people to download virtualbox if i try to download website give me accses denid

so i download virtualbox 4.1.16 with http socks and i haved

i update headers and reinstall virtualbox from downloaded package

its not work

i opened software center and text virtualbox i see virtualbox-ose-dkms has been installed i removed

and right now i have this error

Code: Select all

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
i must install dkms!! which dkms ??!!! give a link for download!!! ican't downloaded from virtualbox website or from server source in sources.list

when i text /etc/init.d/vboxdrv setup

Code: Select all

root@Uns:/home/programmer# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules:.
Uninstalling old VirtualBox DKMS kernel modules:.
Trying to register the VirtualBox kernel modules using DKMS:.
Starting VirtualBox kernel modules:.
i need virtualbox in my system plz help :oops:

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5343
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: how to install virtualbox perfectly

#8 Post by dilberts_left_nut »

Maybe you would have less problems if you install the version supplied in squeeze-backports http://packages.debian.org/squeeze-backports/virtualbox

Remove the foreign vbox packages, and their repo from sources.list.
Add the backports repo as instructed here http://backports.debian.org/
Then

Code: Select all

aptitude install virtualbox
AdrianTM wrote:There's no hacker in my grandma...

Uns
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran
Contact:

Re: how to install virtualbox perfectly

#9 Post by Uns »

i removed all virtualbox in my system

and i go in this address http://packages.debian.org/squeeze-backports/virtualbox

and i downloaded virtualbox-4.0.10 and virtualbox-dkms-4.0.10

dkms installing complete and when i installed virtualbox-4.0.10 i can't finded no shortcut in desktop no icon in system tools

i text in terminal virtualbox told me not found

i removed again in install virtualbox-4.1.16 its work but i have same errors

plz somebody told me how i can install virtualbox witch version for debian squuze 6 step by step

Thanks

Uns
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran
Contact:

Re: how to install virtualbox perfectly

#10 Post by Uns »

nobody?!!! :(

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: how to install virtualbox perfectly

#11 Post by craigevil »

The few times I have had virtualbox installed I was lazy and used another one of h2's script called svmi:

Code: Select all

# svmi
Updating svmi now using the default server
------------------------------------------------------------------
 svmi :: version: 2.8.25 :: last updated: May 22 2012
------------------------------------------------------------------
 Virtual Machine Options
------------------------------------------------------------------
For most new or average users, VirtualBox is a simple, clean install,
and you'll have your vbox up and running almost immediately.
------------------------------------------------------------------
Vmware options are basic, and only support vmware player.
------------------------------------------------------------------
For convenience, this top level menu also includes the options to
rebuild vmware/vbox kernel modules if that's all you need to do.
------------------------------------------------------------------
1 - virtualbox-options Downloads, installs, rebuild kernel module, vbox tools, for
    both virtualbox non-ose and virtualbox-ose. Current: non-ose 4.1.16.
2 - vmware-options Downloads, installs, rebuild kernel module, and a few other things.
------------------------------------------------------------------
3 - build-vbox-module-ose Installs vbox OSE module, updates modules.
    NOTE: System must be fully dist-upgraded for this to work right before you run this!
4 - build-vbox-module-non-ose Will rebuild existing virtualbox non ose kernel module.
5 - build-vmplayer-module Rebuilds vmplayer kernel module. Requires vmplayer v. 2.5.x or greater.
------------------------------------------------------------------
6 - quit
------------------------------------------------------------------
Please type the appropriate number and hit enter                                                                             
------------------------------------------------------------------                                                           
1) virtualbox-options         4) build-vbox-module-non-ose                                                                   
2) vmware-options             5) build-vmplayer-module                                                                       
3) build-vbox-module-ose      6) quit                                        
If using apt-get /aptitude is too difficult for the OP, you should install and use Synaptic.

Detailed instruction can be found on the wiki:
VirtualBox - Debian Wiki - http://wiki.debian.org/VirtualBox
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

dzz
Posts: 257
Joined: 2007-02-05 20:39
Location: Devon, England

Re: how to install virtualbox perfectly

#12 Post by dzz »

Don't forget your user must be added to the group "vboxusers"

Regarding h2's scripts, they are for the lazy. I am lazy and h2's scripts "just work", svmi selects the right vbox version, handles any missing deps and builds the module for you.

jimdeb
Posts: 1
Joined: 2012-04-20 13:43

Re: how to install virtualbox perfectly

#13 Post by jimdeb »

I have had this kind of problem after clean installing Debian Wheezy with the experimental repo. So I googled it and found out this thread, luckily. Now I successfully installed Virtualbox by following vbrummond's instructions. Thank you,vbrummond, for your detailed explanation.

droopy4u
Posts: 11
Joined: 2013-01-14 07:18

guest additional == how to install virtualbox perfectly

#14 Post by droopy4u »

http://dedoimedo.com/computers/virtualb ... ddons.html
  • read intro welcome pop-up screen : HOST activation button, default RIGHT CTRL
  • devices : default RIGHT CTRL + HOME
http://virtualboxes.org/doc/installing- ... on-debian/
  • 1. apt-get update
  • 2. apt-get upgrade
  • 3. ► apt-get install build-essential module-assistant
  • 4. create kernel modules m-a prepare
  • 5. devices menu : install guest additions…, run mount /media/cdrom
  • 6. sh /media/cdrom/VBoxLinuxAdditions.run
  • 7. share : mount –t vboxsf share /mountpoint

Code: Select all

E: Package   build-essential   has no installation candidate

Code: Select all

sudo apt-cache policy build-essential
	candidate (none)
OR
sudo apt-cache search build-essential

sudo apt-config dump
https://answers.launchpad.net/ubuntu/+question/46770
https://help.ubuntu.com/community/AptCdrom

Code: Select all

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install build-essential
sudo apt-get clean
sudo apt-get autoremove
via the CD:

Code: Select all

        sudo apt-cdrom -d "your-cdrom-mount-point" -r 
http://packages.debian.org/squeeze/i386/acl/download
added in /etc/apt/sources.list

Code: Select all

   deb http://ftp.de.debian.org/debian squeeze main
THE LAST STEP WAS FOR ME THE SOLUTION.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: guest additional == how to install virtualbox perfectl

#15 Post by sunrat »

droopy4u wrote:•............
I have no idea what your post is about.
Uns wrote:nobody?!!! :(
What do you mean nobody? dilberts_left_nut has given you the perfect solution - install from backports.

craigevil's solution may work for most (lazy) people, but possibly not if the http://download.virtualbox.org repository is blocked in your country.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

dzz
Posts: 257
Joined: 2007-02-05 20:39
Location: Devon, England

Re: how to install virtualbox perfectly

#16 Post by dzz »

I'm mostly using wheezy now and today need virtualbox installed. Used official repos.

Code: Select all

# dpkg -l|grep virtualbox|awk '{print $1 " " $2 " " $3}'
ii virtualbox 4.1.18-dfsg-2
ii virtualbox-dkms 4.1.18-dfsg-2
ii virtualbox-fuse 4.1.18-dfsg-2
ii virtualbox-guest-additions-iso 4.1.18-1
ii virtualbox-source 4.1.18-dfsg-2
Kernel headers are installed. No errors noticed during installation. Module is apparently built.

Code: Select all

# lsmod|grep -i  vbox
vboxpci                18742  0 
vboxnetadp             25431  0 
vboxnetflt             23260  0 
vboxdrv               165027  3 vboxnetflt,vboxnetadp,vboxpci
User is in group "vboxusers". The machine has been rebooted.

Is it in the menu (xfce)? No. Sysv-rc-conf shows 2 virtualbox services active.

Code: Select all

:~$ virtualbox
bash: virtualbox: command not found

:~$ VirtualBox
bash: VirtualBox: command not found
AARGH! No wonder h2's scripts are popular.

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: how to install virtualbox perfectly

#17 Post by nadir »

probably:

Code: Select all

apt-get install virtualbox-qt
Such problems don't get solved by scripts via magic. In my humble experience. That is: I got a problem and describe it. Someone says: Ah, oh, uff... cool script; does everything. I use the script and it fails too (but when i failed, i usually -well: sometimes- remember what i did. I think i prefer that). That was a pointless rant, of curse. Give the *qt a try, it may succeed, it may fail. I am not sure.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

dzz
Posts: 257
Joined: 2007-02-05 20:39
Location: Devon, England

Re: how to install virtualbox perfectly

#18 Post by dzz »

Thanks nadir.. done that, it's in the menu now. But it's sure not my day today..

Code: Select all

:~$ VirtualBox
Floating point exception

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: how to install virtualbox perfectly

#19 Post by nadir »

dzz wrote:Thanks nadir.. done that, it's in the menu now. But it's sure not my day today..

Code: Select all

:~$ VirtualBox
Floating point exception
that is close to being funny. Wtf?
Sorry, i got no idea.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: how to install virtualbox perfectly

#20 Post by nadir »

the best i can offer:

Code: Select all

$ dpkg -l | grep virtualbox
ii  virtualbox                           4.1.18-dfsg-2                      i386         x86 virtualization solution - base binaries
ii  virtualbox-dkms                      4.1.18-dfsg-2                      all          x86 virtualization solution - kernel module sources for dkms
ii  virtualbox-qt                        4.1.18-dfsg-2                      i386         x86 virtualization solution - Qt based user interface
molloy@umbrella:~/Build/diaspora/build_subexec/ruby-subexec/ruby-subexec
which means i got much less installed than you, same version like you (as far i see). Perhaps remove some of the others?
Oh, and i am not part of vboxusers.

-
lol: what is going on with my PS1 ? oh my ... i will go sleeping ...
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

Post Reply