how to install virtualbox perfectly

If none of the more specific forums is the right place to ask

how to install virtualbox perfectly

Postby Uns » 2012-06-07 23:08

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 :?:
Uns
 
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran

Re: how to install virtualbox perfectly

Postby vbrummond » 2012-06-08 01:34

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
Debian cd image FAQ: https://www.debian.org/CD/faq/ | Always back up your data.
vbrummond
 
Posts: 4221
Joined: 2010-03-02 01:42
Location: USA

Re: how to install virtualbox perfectly

Postby kmathern » 2012-06-08 02:18

@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.
kmathern
 
Posts: 484
Joined: 2011-02-05 19:20

Re: how to install virtualbox perfectly

Postby vbrummond » 2012-06-08 02:22

Sorry I am used to using wheezy where it is called virtualbox and virtualbox-ose is deprecated.
Debian cd image FAQ: https://www.debian.org/CD/faq/ | Always back up your data.
vbrummond
 
Posts: 4221
Joined: 2010-03-02 01:42
Location: USA

Re: how to install virtualbox perfectly

Postby Uns » 2012-06-08 10:17

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?
Uns
 
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran

Re: how to install virtualbox perfectly

Postby vbrummond » 2012-06-08 18:19

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
Debian cd image FAQ: https://www.debian.org/CD/faq/ | Always back up your data.
vbrummond
 
Posts: 4221
Joined: 2010-03-02 01:42
Location: USA

Re: how to install virtualbox perfectly

Postby Uns » 2012-06-09 10:58

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:
Uns
 
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran

Re: how to install virtualbox perfectly

Postby dilberts_left_nut » 2012-06-09 11:09

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...
User avatar
dilberts_left_nut
 
Posts: 3073
Joined: 2009-10-05 07:54
Location: enzed

Re: how to install virtualbox perfectly

Postby Uns » 2012-06-10 10:08

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

Re: how to install virtualbox perfectly

Postby Uns » 2012-06-11 11:46

nobody?!!! :(
Uns
 
Posts: 16
Joined: 2012-06-02 16:46
Location: Iran

Re: how to install virtualbox perfectly

Postby craigevil » 2012-06-11 12:00

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
Debian Sid KDE 4.8 Kernel 3.7 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5149
Joined: 2006-09-17 03:17
Location: down the rabbit hole

Re: how to install virtualbox perfectly

Postby dzz » 2012-06-11 13:36

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.
dzz
 
Posts: 225
Joined: 2007-02-05 20:39
Location: Devon, England

Re: how to install virtualbox perfectly

Postby jimdeb » 2012-11-29 02:19

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.
jimdeb
 
Posts: 1
Joined: 2012-04-20 13:43

guest additional == how to install virtualbox perfectly

Postby droopy4u » 2013-01-14 07:40

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.
droopy4u
 
Posts: 11
Joined: 2013-01-14 07:18

Re: guest additional == how to install virtualbox perfectl

Postby sunrat » 2013-01-15 08:01

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!
User avatar
sunrat
 
Posts: 1245
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable