Debian Admin - Your way to Debian World

January 25, 2007

Create virtual Machines Using Virtualbox in Debian

by @ 8:28 am. Filed under General

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.

Install Virtualbox in Debian Etch

If you want to install Virtualbox in Debian Etch you need to download the latest .deb package from here.

Preparing Your system

First you need to install the following packages

apt-get install libqt3-mt libxalan110 libxerces27

wget http://www.virtualbox.org/download/1.3.2/VirtualBox_1.3.2_Debian_Etch_x86.deb

Once you download the package you have VirtualBox_1.3.2_Debian_Etch_x86.deb file

Install.deb file using the following command

dpkg -i VirtualBox_1.3.2_Debian_Etch_x86.deb

At the time of installation if you have any dependency problems like the following errors

Selecting previously deselected package virtualbox.
(Reading database … 174459 files and directories currently installed.)
Unpacking virtualbox (from VirtualBox_1.3.2_Debian_Etch_x86.deb) …
dpkg: dependency problems prevent configuration of virtualbox:
virtualbox depends on libqt3-mt (>= 3:3.3.7); however:
Package libqt3-mt is not installed.
virtualbox depends on libxalan110; however:
Package libxalan110 is not installed.
virtualbox depends on libxerces27; however:
Package libxerces27 is not installed.
dpkg: error processing virtualbox (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
virtualbox

If you see the above error message you can use the following command to install all the required dependencies

sudo apt-get -f install

This will complete the installation

Starting the VirtualBox Graphical User Interface

If you want to start Virtualbox GUI use the following command from your terminal(Applications—>Accessories—>Termianl)

VirtualBox

Once it opens you should see the following screen

VirtualBox Version Details

Creating a Virtual machine

If you want to create a Virtual machine you need to click on “New” button in the user interface will guide you through the new virtual machine

Now the following wizard will appear click next

In the next screen You needs to select VMname and OS Type and click next

Now you need to select the memory for your VM

Here you need to select the Virtual hard disk details and click next

Summary of your Virtual Machine and click finish

This is virtualbox installation in Debian Etch and also explains how to create a new virtual machine now you can install whatever OS you want to test.If you want more information on virtualbox check User Manual

If you want to use GPLed version of VirtualBox (i.e. the version that will eventually make it into distro repos), you need to check out the code from svn with this command

svn co http://virtualbox.org/svn/vbox/trunk vbox

and build the binary via the instructions available from here

You may also be interested in...

7 Responses to “Create virtual Machines Using Virtualbox in Debian”

  1. Nick Says:

    Your precedure lacks some information, as my installation fails and I am somewhat a t a loss here. I use sid and a generic kernel. I installed
    the kernel module under /usr/src/modules/vbox. I copied vboxdrv.ko module to /lib/modules/2.6.19.2M2K8/misc/vboxdrv.ko
    I run depmod -ae. It appears that this did not take as the module does not show up upon reboot.
    But here is the message I get when I install the .deb package:
    Setting up virtualbox (1.3.2-17408_Debian_etch) …

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

    Starting VirtualBox kernel moduleFATAL: Error inserting vboxdrv (/lib/modules/2.6.19.2M2K8/misc/vboxdrv.ko): Invalid argument
    (modprobe vboxdrv failed)…fail!
    invoke-rc.d: initscript virtualbox, action “start” failed.
    dpkg: error processing virtualbox (–configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    virtualbox
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    any suggestions?

  2. Admin Says:

    here is the solution for this

    Debian packages: If the installation of the VirtualBox_*.deb package was not successful because the compilation of the kernel module fails, it might not be possible to remove the package nor to install other packages as the pre-remove (prerm) script of the package (which is executed prior to package removing or upgrading) aborts with an error “(Kernel module not found)…fail!”. In that case do the following:

    Edit /etc/init.d/virtualbox and change line 129 from ‘exit 1′ to ‘exit 0′

    Reinstall the virtualbox package by ‘dpkg -i ‘. An installation failure of this package is expected.

    Edit /var/lib/dpkg/info/virtualbox.postinst and change line 39 from ‘exit 1′ to ‘exit 0′

    Execute ‘dpkg --configure --pending

    The package should now be installed successfully. However, the kernel module is still not compiled. Before you will be able to execute VirtualBox you have to create a kernel module for your current kernel, as described in the User Manual(check the link provided at the end of the article)

  3. Eugene Says:

    This is more of a question. Can any Linux variant be installed and accessed from windows while windows is running without creating a unix partition and installing some variant of it. It might be a simulator or something like that. The reason why I ask is I thought this was it and a friend mentioned something like that some years back which he claimed he was using.

    Any help and links to pages on learning shellscripts would be appreciated.

    Thanks

  4. trungkiensmile Says:

    @Eugene:
    Seems there’s a project on installing ubuntu in Windows. You might want to start from this link: http://www.ubuntuforums.org/showthread.php?t=338279
    Hope it helps.
    Trung Kien.

  5. fedex Says:

    Buenas, sabe alguien como habilitar el virtualbox para que lo puedan usar los usuarios?

  6. bug-me-not Says:

    I installed 1.3.8_Debian_Etch_x86.deb on debian lenny but removed and purged every file I can…
    Sound is gone now. I did every thing possible to recover sound without any success.

  7. bug-me-not Says:

    Hi again! I am back to tell you that Virtualbox had just remove every host user from the audio group so I won’t have to print my crown for today !
    By the way… it removed every user from every group !

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

WidgetBucks - Trend Watch - WidgetBucks.com

Related Links:


WidgetBucks - Trend Watch - WidgetBucks.com

Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.