<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0">

    <channel>

        <title>Install VirtualBox Guest Additions</title>
        <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions</link>
        <description>Quick step how-to for installing VirtualBox Guest Additions on Cyn.in development environment. This is mostly useful only for developers running buildout from source on a Debian / Ubuntu / Cyn.in running inside a VirtualBox on a host operating system like Windows or Mac.</description>

        <generator>basesyndication</generator>

        <image>
            <title>Install VirtualBox Guest Additions</title>
            <url>http://www.cynapse.com/community/logo.jpg</url>
            <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions</link>
        </image>

        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1305248777</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1305248777</link>
                <description>Solved!&lt;br /&gt;1- add deb &lt;a href="http://ftp.pt.debian.org/debian/" rel="nofollow"&gt;http://ftp.pt.debian.org/debian/&lt;/a&gt; lenny main contrib non-free to /etc/apt/sources.list&lt;br /&gt;2- aptitude update&lt;br /&gt;3- follow dhiraj's instructions, except that I my case I had to use /dev/cdrom1 /media/cdrom&lt;br /&gt;4- restart and.. you can verify that GuestAdditions is installed!&lt;br /&gt;</description>
                <author>Emanuel R Woiski</author>


                <pubDate>Fri, 13 May 2011 01:06:20 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title>Install VirtualBox Guest Additions</title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions</link>
                <description>
&lt;h2&gt;A quick note on Virtualization&lt;/h2&gt;
&lt;p&gt;For people who do not want to or are unable run Cyn.in on a physically dedicated server machine, virtualization is the way to go. Virtualization platforms are also very useful for debugging and problem solving where repeated testing of operating system altering use-cases is to be done - you can snapshot a particular state of the virtual machine and restore it at will for quickly reverting to the target case.&lt;/p&gt;
&lt;p&gt;For simple and easy virtualization, and especially for Cyn.in developers, I recommend usage of &lt;a class="external-link" href="http://www.virtualbox.org/"&gt;Oracle's VirtualBox&lt;/a&gt;. VirtualBox provides the maximum simplicity and feature to cost ratio, especially for common development tasks. We use it quite effectively for the actual installer CD building and testing process as well.&lt;/p&gt;
&lt;h2&gt;Guest Additions&lt;/h2&gt;
&lt;p&gt;In VirtualBox, on-guest improvements are provided by installing VirtualBox guest additions through the Devices menu in the running virtual machine's window. Usually this is only installed by users in an X Windows environment like Gnome / KDE for getting basic amenities like Clipboard Copy Paste and pass-through mouse handling. We've seen substantial performance improvements when the VirtualBox Guest Additions are installed on non-GUI VMs as well. The installation of guest additions on Cyn.in from the installer CD (which is essentially meant to be a headless debian 5.0 lenny setup at the base linux distro level) can get a bit tricky. Let's walk through the finer points:&lt;/p&gt;
&lt;h2&gt;Enable and Mount the Guest Additions CD&lt;/h2&gt;
&lt;p&gt;Switch to the console window of the running Cyn.in virtual machine and select Install Guest Additions from the Devices menu, as shown. Note: Nothing will appear to happen, when you do this.&lt;/p&gt;
&lt;p&gt;&lt;a title="Enable VirtualBox Guest Additions CD" class="internal-link" href="/community/home/cyn.in-developers/virtualboxenableguestadditionscd8bit.png"&gt;&lt;img class="image-inline" src="/community/home/cyn.in-developers/virtualboxenableguestadditionscd8bit.png/image_mini" alt="Enable VirtualBox Guest Additions CD" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Next, we &lt;em&gt;&lt;strong&gt;verify&lt;/strong&gt; that &lt;/em&gt;VirtualBox has actually loaded the CD into the drive, by looking at Devices -&amp;gt; CD/DVD devices -&amp;gt; VBoxGuestAdditions.iso. The entry should have a check-mark next to it, indicating that it is succefully loaded, as shown in the screenshot. Note that this can sometimes fail if you have a badly configured drive or something similar wrong, in your setup. Usually VirtualBox &lt;em&gt;will &lt;/em&gt;prompt you with an alert when such a failure happens.&lt;/p&gt;
&lt;p&gt;&lt;a title="Verify VirtualBox Guest Additions CD is loaded" class="internal-link" href="/community/home/cyn.in-developers/virtualboxverifyguestadditionscdmounted8bit.png"&gt;&lt;img class="image-inline image-inline" src="/community/home/cyn.in-developers/virtualboxverifyguestadditionscdmounted8bit.png/image_mini" alt="Verify VirtualBox Guest Additions CD is loaded" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Install the build dependencies&lt;/h2&gt;
&lt;p&gt;Right, now for the tricky parts. :)&lt;/p&gt;
First, we need to install the development dependencies of the VirtualBox guest additions kernel modules. To do that, you have to first &lt;em&gt;determine&lt;/em&gt; what kernel version you're using. We usually combine all of this into a single apt-get command, like so. First, become root with the su command and type your root password. Then run:
&lt;pre&gt;apt-get install build-essential linux-headers-`uname -r`&lt;/pre&gt;
&lt;div class="attention"&gt;&lt;strong&gt;Note: The reverse quotes in above command are &lt;em&gt;not&lt;/em&gt; a typo - we're taking the output of one command and replacing it into our main command.&lt;/strong&gt;&lt;/div&gt;
&lt;h2&gt;Mounting the Virtualbox guest additions CD, &lt;em&gt;manually&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;If you were running in X Windows, the Virtualbox guest additions CD would typically get auto-mounted and you would proceed to directly run the shell script. Not so, when you're running headless (at least with the default setup). So you have to manually mount the cdrom device, at /media/cdrom, with the following command:&lt;/p&gt;
&lt;pre&gt;mount /dev/cdrom /media/cdrom&lt;/pre&gt;
&lt;p&gt;and then cd to the mounted directory and see the files, you should see something like this in your console:&lt;/p&gt;
&lt;pre&gt;dkgLennyi386:/home/dhiraj/svn/odn/cynintrunk# cd /media/cdrom
dkgLennyi386:/media/cdrom# ls -lh
total 30M
dr-xr-xr-x 3 root root 2.0K 2009-12-17 19:07 32Bit
dr-xr-xr-x 2 root root 2.0K 2009-12-17 19:07 64Bit
-r-xr-xr-x 1 root root  217 2009-12-04 15:36 AUTORUN.INF
-r-xr-xr-x 1 root root 4.4K 2009-12-17 19:03 autorun.sh
-r-xr-xr-x 1 root root 2.8M 2009-12-17 18:59 VBoxLinuxAdditions-amd64.run
-r-xr-xr-x 1 root root 2.4M 2009-12-17 19:06 VBoxLinuxAdditions-x86.run
-r-xr-xr-x 1 root root  13M 2009-12-17 17:54 VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 root root 5.9M 2009-12-17 18:54 VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 root root 467K 2009-12-17 18:51 VBoxWindowsAdditions.exe
-r-xr-xr-x 1 root root 5.3M 2009-12-17 18:52 VBoxWindowsAdditions-x86.exe&lt;/pre&gt;
&lt;h2&gt;Run the installation shell script from CD&lt;/h2&gt;
&lt;p&gt;All that's remaining now is the running of the installer script. You will typically want to run VBoxLinuxAdditions.x86.run, like this:&lt;/p&gt;
&lt;pre&gt;./VBoxLinuxAdditions-x86.run&lt;/pre&gt;
&lt;p&gt;The shell script should now proceed to build the guest additions and will usually complain that there's no X Server found, or about no OpenGL support and so on, all this is normal in our case. When it completes, you can see if you get a noticeable performance boost by restarting your virtual machine using the reboot command or whatever other restart mechanism you're happy with. Restarting is &lt;em&gt;required&lt;/em&gt;. Also, every time you install a kernel upgrade, you'll have to repeat the above procedure, because the VirtualBox guest additions kernel modules will no longer be in sync with the current kernel and thus, not load.&lt;/p&gt;
</description>
                <author>Dhiraj Gupta</author>

                
                    <category>performance</category>
                
                
                    <category>virtualization</category>
                
                
                    <category>virtualbox</category>
                

                <pubDate>Fri, 13 May 2011 01:06:18 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1304286461</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1304286461</link>
                <description>I acknowledge exactly the same problem here!</description>
                <author>Emanuel R Woiski</author>


                <pubDate>Sun, 01 May 2011 21:47:43 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1301398686</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1301398686</link>
                <description>Hmm... requires some apt-cache / apt-get investigation using depends / rdepends. The problem is possibly missing dependencies for updated kernels / build essentials etc. The worst case scenario would require comparing and adding changed or missing apt-get repositories from the standard Debian 5.0 lenny distro.</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Tue, 29 Mar 2011 11:38:07 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1301388523</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1301388523</link>
                <description>@dhiraj: Any update?</description>
                <author>fern</author>


                <pubDate>Tue, 29 Mar 2011 08:48:45 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1299652459</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1299652459</link>
                <description>@dhiraj: Any updates on this one? The problem still persists as stated above by @Chrisfield</description>
                <author>fern</author>


                <pubDate>Wed, 09 Mar 2011 06:34:28 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1298275947</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1298275947</link>
                <description>@dhiraj: You are right. This is happening on a latest Cyn.in Community Edition ISO. Any solution? We love cyn.in and we are currently evaluating it. Please help.</description>
                <author>fern</author>


                <pubDate>Mon, 21 Feb 2011 08:12:28 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1297841884</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1297841884</link>
                <description>chrisfield, @fernkb2: Is this happening on a Cyn.in Community Edition ISO built machine? Or is this on a standard linux distro? Please tell us your distro and version, if so.</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Wed, 16 Feb 2011 07:38:06 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1297841296</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1297841296</link>
                <description>same problem with chrisfield using the latest community edition. Any Solution?</description>
                <author>fern</author>


                <pubDate>Wed, 16 Feb 2011 07:28:20 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1286902508</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1286902508</link>
                <description>I'm having trouble installing the linux headers. When I run apt-get install linux-headers-2.6.26-2-686 I get an error &amp;quot;Some packages caould not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The folowing infformation may help to resolve the situation: Linux-headers-2.6.26-2-686: Depends: linux-kbuild-2.6.26 but it is not installable Depends: gcc-4.1 but it is not installable. Can anyone hlep? &amp;quot;</description>
                <author>Chris Field</author>


                <pubDate>Tue, 12 Oct 2010 16:55:09 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1276505645</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1276505645</link>
                <description>@nourse: What OS are you on? build-essential is available on both Debian and Ubuntu. The instructions for other distros will possibly be radically different.</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Mon, 14 Jun 2010 08:54:05 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1275582014</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1275582014</link>
                <description>I've run into the following issue, using the latest community edition appliance:&lt;br /&gt;&lt;br /&gt;cynin:/# apt-get install build-essential linux-headers-`uname -r`&lt;br /&gt;Reading package lists... Done&lt;br /&gt;Building dependency tree       &lt;br /&gt;Reading state information... Done&lt;br /&gt;Package build-essential is not available, but is referred to by another package.&lt;br /&gt;This may mean that the package is missing, has been obsoleted, or&lt;br /&gt;is only available from another source&lt;br /&gt;E: Package build-essential has no installation candidate&lt;br /&gt;&lt;br /&gt;I was able to install the vbox additions, but it  fails to load on boot &amp;quot;(modprobe vboxguest failed)....&amp;quot;&lt;br /&gt;&lt;br /&gt;Any ideas on what might be going on?</description>
                <author> scott</author>


                <pubDate>Thu, 03 Jun 2010 16:20:15 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1270155564</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1270155564</link>
                <description>Thanks for the explanations. Up to now, the system in VBox acts pretty well. If the installation VBox extensions (should do it by correcting the typo you pointed above), it should go even better!</description>
                <author>Dom Derrien</author>


                <pubDate>Thu, 01 Apr 2010 20:59:24 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1270155450</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1270155450</link>
                <description>Good catch Dhiraj!&lt;br /&gt;&lt;br /&gt;Because of the text in italic, I thought a space was inserted between the dash and the back-quote. I'm going to repeat it soon.&lt;br /&gt;&lt;br /&gt;Thanks, Dom</description>
                <author>Dom Derrien</author>


                <pubDate>Thu, 01 Apr 2010 20:57:30 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1270153831</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/install-virtualbox-guest-additions/view/#1270153831</link>
                <description>You typed a space between linux-headers- and `uname -r` (probably because you did not read the warning below the command).&lt;br /&gt;&lt;br /&gt;That made linux think that you wanted to install 2 things, whereas the command actually installs only 1. Please copy paste the command from the instructions instead of typing it and it will work.&lt;br /&gt;&lt;br /&gt;To *be able* to copy paste, you will probably have to SSH into the appliance in the first place (using a client like putty if you're on windows).</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Thu, 01 Apr 2010 20:30:32 +0000</pubDate>

                
            </item>
        

    </channel>
</rss>
