Skip to main content

VirtualBox additions

I got everything working from with in virtual box, except for the additions. I was able to run VBoxLinuxAdditions.run (from the Guest additions iso) and it ran to completion without producing any errors. It compiled some modules and modified my xorg.conf file. But there were several problems with the additions.

First the script changed the video device driver from vesa to vboxvideo which gets me a maximum resolution of 1024x768. All other higher resolutions complained about "vrefresh out of range" or "hsync out of range". I do not understand how that can be given that I gave a wide range of hsync and vrefresh for my monitor. Finding little help from /var/log/Xorg.0.log, I decided to go back to my old vesa driver which at least gives be a slightly higher resolution of 1152x864. I was wishing the vbox driver could give me 1440x900 but that did not happen. Setting modelines also did not help so I gave up pretty quickly.

My next issue is that I am not able to mount my shared folder. I created a shared folder in VirtualBox > Settings. Which I should be able to mount from the guest OS using "mount -t vboxsf ". But when I try that I am getting "/sbin/mount.vboxsf: mounting failed with the error: No such device". I figured that the module for the vboxsf did not load properly. So I did a lsmod and indeed there is no vboxvfs. Trying to do "modprobe vboxvfs" yeilded "FATAL: Error inserting vboxcvfs: Protocol error". What ever that means. There were no messages in dmesg. I did not bother to find out what caused the problem. Don't want to waste too much time since I may not even be needing any sharing if I can just ssh to all the machines.

There was another problem however. I cannot ssh from my master OS to the guest OS. After googling for a few minutes I found out that I need to set up port forwarding rules. Not sure how to do it from virtualbox. Another option is to use "Host attached" for the network instead of "NAT", but alas, I only have NAT option available in my VirtualBox beta3 for mac. Not sure how I can enable bridge networking. So I skipped that as well.

The good news is that I don't need all the above things. They were just good to have options that I could have used.

Comments

Anonymous said…
Ever find any solutions here? I think that bridged networking is simply disabled, but that error that pops up when trying to modprobe the vboxvfs... I've been looking for a fix everywhere, and have yet to find anything.
Unknown said…
i had the same problem with the mount command for a shared folder. Try these:

Open the linux guest OS
Go to menu-> Devices -> Install Guest Additions.
This mounts a cd image named VBOXADDITIONS...something_else.
Inside the cd image there is a script called VBoxLinuxAdditions.run, run this script, reboot the virtual machine and then give the mount command (eg. mount -t vboxsf shared /media/shared).
This worked for me and probably works for everyone!

You may also need to change a little the command in order to view inside the folder as a normal user and not only as root.
Re-ynd said…
The mount problem is resolved with the latest 1.6 version of VirtualBox. See my blog about it http://chandan-pitta.blogspot.com/2008/05/virtualbox-16-is-out.html
Anonymous said…
Just for anyone out there coming to this page and still having this problem (as I was), I think I might have caused the problem in the first place by updating VirtualBox to 2.1.4 and not re-installing the guest additions. Mounting failed to work on an Ubuntu guest with a Vista host after upgrading to VirtualBox 2.1.4. Going through the 'install guest additions' process again resolved everything.
Unknown said…
Ditto for me. I had a similar problem after my vbox did an update – I had to reinstall vboxadditions using the auto install. After that, it worked fine again
Unknown said…
This comment has been removed by the author.

Popular posts from this blog

Attesting General Power of Attorney in SF

Recently I had to go through the motions of getting a General Power of Attorney (GPA) document attested in San Francisco. I am an Indian by birth. My parents were trying to buy a house back in India for me. Since I did not want to travel to India they needed a GPA so that they can act on my behalf to sign all the documents required to buy the house. The problem however is that they needed it urgently because the seller lives in UK and wants to get all the things done quickly so he can go back. My parents send me a GPA document that they obtained from a lawyer. This is a document that will give the power to my parents to buy the said property in the document on my behalf. The lawyer said that I will have to get the document attested at an Indian Consulate in USA. The closest one for me is in SF and I can drive there in about an hour from where I live. So I though it will be like a day's work to get all the things done. I looked up at their  website  for the procedure to att

XBMC / Boxee remote control android app

I have been writing a few android apps over weekends at home and during 20% time at Google. However I never actually released any of them in the android market mainly because they were quick and dirty apps that fit my needs but perhaps would not be appealing to the general public. One such app that I quickly wrote over a couple of weekends is a XBMC remote. The media center that I use at home is XBMC and I have always wanted to have more control and faster access to my media. Using my remote to navigate through the menus is not as fast. Especially when I wanted to queue a lot of music it is very slow. So I wrote this nice little app called "XBMC remote" for my android phone to control XBMC from anywhere :). Give it a try. Search for "xbmc" in android market and install it if you use XBMC as your media center. When you first launch the app you will start with this screen. You will have to setup your web server address, username and password (if required) by

gtkdocize not found

If you are ever configuring an app and see the message "gtkdocize not found" in Gentoo, then you need to emerge gtk-doc. I had some hard time figuring this out so I am writing it in my blog for the next time. When I saw that error message I did an "emerge -s gtkdocize". Usually it is that simple in Gentoo. But not this time. The emerge command returned no results at all. Then I searched for gtkdoc and still no luck. After searching in Google, I still did not have a solution. After thinking for a while I decided to try to search for gtk-doc. Bingo! That worked! Interestingly, this is my first post from my Virtual machine :-)