Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 141

Thread: Howto: VirtualBox without opening the shell.

  1. #1
    Join Date
    Jul 2006
    Beans
    Hidden!

    Howto: VirtualBox without opening the shell.

    What will this guide do?
    This guide will take you through the steps of setting up VirtualBox, an application similar to Qemu and VMWare.

    Unlike Qemu and VMWare, you can install VirtualBox without ever opening up the terminal, making it one of the easiest pieces of software to install on Linux ever.

    Despite the ease, however, VirtualBox still merits a guide due to some "gotchas" when installing.

    Who can use VirtualBox?
    Anybody that is running Ubuntu Edgy Eft and wants to use VirtualBox for PERSONAL use.

    Alright already! Let's do it!
    1. Downloading
    The first step, of course, is to download VirtualBox. They've been nice enough to give us a deb package, so installation will be a snap.

    You can go to the download page here: http://www.virtualbox.org/wiki/Downloads.

    You will want to download "VirtualBox 1.3.2 for Linux Hosts." Choose the Edgy Eft Ubuntu link.

    You will be asked (assuming you are using Firefox) if you would like to open the package with the default application or save it to disk. You want to save to disk.

    2. Installing
    This will be the easiest thing to install ever. Promised.

    Go onto your desktop, or where you have Firefox set to download things, and right click on the .deb file. In the menu, go to Open With -> GDebi. Then, click the "install" button. What did I tell you? Easy. Almost like... a Mac or something...

    EDIT (by bodhi.zazen): Virtualbox has been in fairly heavy development and there was a number of How-to's on the web, including this one, outlining how to install VirtualBox. Many have not been maintained.

    FYI: Innotek now maintains a repo for VirtualBox and you might want to consider adding it. See this link for information :


    http://www.virtualbox.org/wiki/Downloads

    Another gotcha: During the installation you need to read and accept the license. To navigate this part of the install, use the <tab> key to select "OK" and the <enter> key to continue the install. If you abort the install you will break apt-get/synaptic.

    The fix to this is to remove Virtualbox, from a terminal, with this command:


    Code:
    sudo dpkg --remove --force-remove-reinstreq virtualbox
    "noob friendly virtualbox install instructions" ~ Thank you Dr Small.

    3. Configuring
    Ha! You thought you where done. However, it would not be Linux if you had to do something bizarre to get it to work.

    The first thing you should do after the installation is logout and back in again. This might not be needed, but I did it.

    When you installed VirtualBox, it created a group called vboxusers. For whatever reason, the installer was unable to automatically add you to the group, so you will have to do it yourself.

    However, as promised, no shell.

    Go to System -> Administration -> Users and Groups. On the right, you will see a button labeled "Manage Groups." Click on it. Scroll down the list to "vboxusers." The last item for me. Double click on it. You will see a list of users. Check your name, and press "OK." Then close "Groups settings." Then close "Users settings."

    Setup your first VM
    Time for the good stuff. I've always been a little curios about Xubuntu, but never curios enough to actually download and try a live CD. VirtualBox presented the opportunity to try Xubuntu without burning an ISO.

    First, download the Xubuntu CD ISO. You can do this from the download page on xubuntu.com.

    Once the ISO has finished downloading, open InnoTek VirtualBox from your Applications -> System Tools menu.

    Next, click on the "New" button in the upper left corner of the window. A new window will appear. Click the "Next" button.

    On the next screen, you will be asked for a name and an OS type. I entered "Xubuntu" and selected "Linux 2.6." Click "Next."

    In this window, you will be allowed to choose the memory size for the OS. To be on the safe side, I set mine to 400 MB. Click "Next."

    You will be asked to choose a "boot hard disk." Because this is the first time you've ran VirtualBox, you will have to click on the "New" button.

    In the window that appears, click on "Next."

    This screen will allow you to choose to have a dynamically expanding image, or a fixed-size. A dynamic image will expand as you fill it, using the least amount of hard disk space possible. The fixed-size option will use all of the space, but will be faster. I went with dynamic.

    Make your choice, and click "Next."

    In this window, you will name and set the size of the image file. I named mine "Xubuntu" and set it's size to 3 GB.

    Click "Next," and then "Finish."

    Make sure your new hard drive is selected in the popup, and then click next. Then click "Finish."

    Almost there! Next, select your new VM in the VM sidebar on the left side of the main window and click the settings button at the top. Go down to the "CD/DVD-ROM" section and check the "Mount CD/DVD Drive" checkbox.

    Select the ISO image file option, and locate your Xubuntu image.

    Press "OK."

    So close! Go to File -> Global Settings in the main window, and click on "Input." Click inside of the host key field and press "F1."

    Press "OK."

    Select your new VM and press "Start."

    The VM will now boot from your Xubuntu live CD, which you can use to install Xubuntu.

    If you click in the VM and want to get the mouse back, just press "F1."

    I hope this guide helped, feel free to comment/flame.

    Troubleshooting
    1. You get a apt-get error the next time you try to get a package.
    You probably did not install the package correctly, or perhaps you have installed some strange packages. I don't claim to be an expert, but it seems some applications require an old version of the libcln4 package, and VirtualBox installs a new one. This causes some things to not install properly. Maybe VirtualBox requires the older version... I'm not sure. However, GDebi should handle this for you. However, for shell junkies who just have to break there machines in at least one way, you can solve the problem using these steps (once again, without using a shell):

    1. Go to System -> Administration -> Synaptic Package Manager
    2. Wait for the GUI to load (the toolbar items will become enabled.)
    3. Click on the "Search" toolbar item.
    4. Enter "virtualbox" and make sure the "Look in:" popup is set to "Name."
    5. Click the search button.
    6. You will see the single virtualbox package. Right click on it, and select "Mark for Complete Removal."
    7. Click the "Apply" button in the toolbar, symbolized by a check mark.
    8. Reboot your system.
    9. Go back through this HowTo, and follow it exactly. If you open terminal, you are doing something wrong.

    2. When you open GDebi, you get a dependency (libc6-dev) error.
    1. Make sure the universe and multiverse are enabled. To do this, go to System -> Administration -> Software Sources, and make sure all the boxes except "Source Code" are checked.
    2. Close Software Sources, if you opened it.
    3. Open Synaptic Package Manager, from System -> Administration -> Synaptic Package Manager.
    4. Click on the "search" button and type in "libc6-dev."
    5. The package list will contain two entries, libc6-dev and libc6-dev-amd. Right click on the first one (the NON amd one) and mark it for installation.
    6. Click "apply." Close Synaptic and try again.

    If you don't see the "libc6-dev" package, you could try this alternative, which I was told works, but have not tested myself. Go back through the above 6 steps, but instead install the package "qemu". After the package installs, you can try installing VirtualBox again. If it works, you can uninstall Qemu. If it does not, you may also uninstall Qemu, unless you'd like to try it.

    One of the best ways to keep your Linux system in shape is by using the GUI tools provided by the Ubuntu team. They are designed not to break your system, and will provide a better overall experience then diving into the shell every 5 minutes. It has been proven that users who use GUIs when available are much more productive and effective then hard-core CLine users. The GUI is designed to serve and protect your work, as well as enable you to do it as effectively as possible.
    Last edited by bodhi.zazen; October 13th, 2007 at 07:31 AM. Reason: Maintance

  2. #2
    Join Date
    Nov 2005
    Beans
    185
    Distro
    Ubuntu 6.06

    Re: Howto: VirtualBox without opening the shell.

    wether i try to install the dapper package from shell or not i get an error with the vboxdrv where it doesnt create it, this is with root privleges, i also tried building from source and have the same issue

  3. #3
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Howto: VirtualBox without opening the shell.

    I did not mean for this guide to be used by Dapper users. It is met for Edgy users, as stated in the guide.

  4. #4
    Join Date
    Jun 2006
    Location
    Texas, USA
    Beans
    59
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: VirtualBox without opening the shell.

    i had it installed and working two hours after they released it for free the other day. but hey thanks for posting this anyways

  5. #5
    Join Date
    Sep 2006
    Beans
    178

    Re: Howto: VirtualBox without opening the shell.

    Here is what I am getting when I install virtualbox:

    ~/download$ sudo dpkg --install VirtualBox_1.3.2_Ubuntu_Edgy_x86.deb
    Selecting previously deselected package virtualbox.
    (Reading database ... 81420 files and directories currently installed.)
    Unpacking virtualbox (from VirtualBox_1.3.2_Ubuntu_Edgy_x86.deb) ...
    dpkg: dependency problems prevent configuration of virtualbox:
    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

    Any ideas what is wrong? Do I not have the libraries installed?

    --Kevin

  6. #6
    Join Date
    Jun 2006
    Beans
    31

    Re: Howto: VirtualBox without opening the shell.

    You need to install dependencies: Go to System > Administration > Synaptic Package Manager and search for and install libxalan110 and libxerces27 then try it again.

  7. #7
    Join Date
    Nov 2005
    Beans
    127
    Distro
    Ubuntu 5.10

    Re: Howto: VirtualBox without opening the shell.

    This looks interesting. How is the speed compared to vmware or qemu with the accelerator module?

    And it's GPL now so I guess it won't be long until it reaches debian (and after that ubuntu) repositories...

  8. #8
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Howto: VirtualBox without opening the shell.

    It runs about as fast (little faster) as Qemu with Kqemu. I've never tried VMWare.

    Also, if you just double click on the debian package, it should install the needed packages by itself.

  9. #9
    Join Date
    Sep 2006
    Beans
    178

    Re: Howto: VirtualBox without opening the shell.

    Sweet, I got Vritualbox installed. And following the steps to get Windows installed under it, I am having a permission problem.

    When I click my XP Virtual Box, to launch it, and launch the setup CD, I get t windows with the following error:


    VirtualBox kernel driver not accessible, permission problem.
    At '/home/vbox/vbox/src/VBox/VMM/VM.cpp' (303) in int VMR3Create(void (*)(VM*, void*, int, const char*, unsigned int, const char*, const char*, char*), void*, int (*)(VM*, void*), void*, VM**).
    VBox status code: -1909 VERR_VM_DRIVER_NOT_ACCESSIBLE
    .


    Result Code:
    0x80004005
    Component:
    Console
    Interface:
    IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

    ---------------------------------

    I set the permissions per the above steps, then even went in to the official readme and tried those. Nada.

    Any help?

    --Kevin

  10. #10
    Join Date
    Jan 2006
    Location
    Denmark
    Beans
    530
    Distro
    Ubuntu Development Release

    Unhappy Re: Howto: VirtualBox without opening the shell.

    Quote Originally Posted by myname View Post
    VirtualBox kernel driver not accessible, permission problem.
    At '/home/vbox/vbox/src/VBox/VMM/VM.cpp' (303) in int VMR3Create(void (*)(VM*, void*, int, const char*, unsigned int, const char*, const char*, char*), void*, int (*)(VM*, void*), void*, VM**).
    VBox status code: -1909 VERR_VM_DRIVER_NOT_ACCESSIBLE
    .


    Result Code:
    0x80004005
    Component:
    Console
    Interface:
    IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}
    I get the exact same message , could it have anything to do with the Nvidia driver I'm using ????

Page 1 of 15 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •