Adding Software virtualbox tools in SUSE Studio

From openSUSE

    Portal Start   FAQ FAQ   Tour Tour   Howto Howto    API API   Feddback, bugs and known issues Bugs   Support and information channels Support   Download appliances and other things Download    Display index of "Category: SUSE Studio"   How to edit this documentation


You can add virtualbox tools by going to the Software Tab and adding the package virtualbox-ose-guest-tools.

Alternatively, if the previous option does not work, you can try the following if you are using the PUEL VirtualBox (PUEL = Personal Use and Evaluation License ). When running the appliance with VirtualBox, go to Devices->Install Guest Additions. This will mount a virtual CD from the image VBoxGuestAdditions.iso. Copy the file VBoxLinuxAdditions-x86.run into a local folder. Write a script that will execute that file (as root) the first time the machine boots (and after all the services have been loaded)--if you are only interested in being able to share folders, you can run VBoxLinuxAdditions-x86.run vfs-module instead. Keep in mind that you will have to reboot the machine at the end of the installation. Upload the script and the VBoxLinuxAdditions-x86.run file to your appliance in SUSE Studio using the Overlay files section. Before building your appliance, make sure to include the following packages: kernel-source, linux-kernel-headers, make, gcc, and gcc-c++.

To set up a folder to share, run the following command as root:

  mount -t vboxsf name -o uid=1000 mountpoint  

where 1000 is the user id of tux (see /etc/passwd), and name is the name given to the shared folders when you set them up in the VirtualBox shared folder settings dialog.



Are you ready to build? Then go to Building_Appliances_in_SUSE_Studio .

Maybe before you would like to add some script to be run on boot time. Then go to Configuring_Boot_Scripts_in_SUSE_Studio.

Boot time scripts are a very good idea, however you just want them to be run once, so what you want are firstboot scripts. If so, go to Configuring_First_Boot_Scripts_in_SUSE_Studio.