VirtualBox Howto文档

Jump to: navigation, search

Susemini.png 本文处于需要翻译的文章的状态,欢迎您积极参与翻译与修订。 翻译人员:无,修订人员:无。

<< SUSE_Studio

Dister doc.png

VirtualBox can run vmdk discs so the vmware build can work for VirtualBox as well. However, the vmware tools will not, so you may want to add the virtualbox tools instead.

How to add a vmx to virtualbox

As said, Virtual Box can run vmdks natively so you can run the vmware images on it.

How to add virtualbox tools

Add 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 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 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 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.