Sun xVM Virtual Box - the Killer Virtualization Tool? Second Smoke Test with Ubuntu

 I had to test some stuff under Linux (I'm still running Vista :-(), and installed Ubuntu "under" Sun xVM Virtual Box instead of VMWare Workstation. During my first test I installed opensolaris - now I had to map virtual drives and exchange some files. The whole installation again went without any problems - surprisingly smoothly (very comparable to VMWare Workstation). Even the installation of the additional Virtual Box tools was really simple - then I was able to set up higher screen resolution. The only, little bit tricky thing, was the access to the virtual drive. Instead of reading the help I googled for this - and lost about 1 hour. However the help is helpful in this case:

"In a Linux guest, use the following command:

mount -t vboxsf [-o OPTIONS] sharename mountpoint

Replace sharename with the share name specified with VBoxManage, and mountpoint with the path where you want the share to be mounted (e.g. /mnt/share). The usual mount rules apply, that is, create this directory first if it does not exist yet.

Beyond the standard options supplied by the mount command, the following are available"


Virtual Box is really amazing, you can suspend, restart, "store" images, take snapshots, even configure the "seemless" mode - I'm still searching for shortcoming / caveats :-). Perhaps a small issue: I just tried to setup the ubuntu's fancy 3D stuff - but it didn't worked inside the Virtual Box....

NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: and newsletter:

A book about rethinking Java EE Patterns


Hi Adam,

did you install NB 6.1 on your guest OS? If yes, can you use shared folder? Try clean and build a project and let me know.


Posted by Stephan Bardubitzki on May 29, 2008 at 12:17 AM CEST #

Hi Stephan,

not NB 6.1. Just plain Ant-Script with JDK 1.6 (not JDK 1.6u10). It worked well so far - the built ran in the shared folder. Netbeans 6.1 should work as well - but I didn't tried it yet,



Posted by Adam Bien on May 29, 2008 at 01:32 AM CEST #

I've been using Virtual Box for a while now with no issues. And yes you can run NB6.1 in VB then open the same project on the host and build it. In my case I'm on Linux(Ubuntu) running XP in VB use XP for my VPN acces to work grab what I need from the work Repo and save to a share (in my case I use a samba share as the built in share in VB has some issues on linux) Any ways after code check out (using NB6.1) I open NB on the linux side and do my work when done switch back to VB and check my changes in.

Posted by Richard Jackson on May 29, 2008 at 07:44 AM CEST #

I've been using VB for sometime on Ubuntu and XP as guest OS. In my case NB and shared folder doesn't work. It seem to be that the build.xml can't find files in the shared folder. It happens with any kind of Java app, here is the critical output when I try to clean and build a Java ME project:

Created dir: E:\Mobile\MobileStreaming\build\preprocessed
Pre-processing 5 file(s) into E:\Mobile\MobileStreaming\build\preprocessed directory.
Pre-processing file: E:\Mobile\MobileStreaming\src\ca\mobitec\mobile\streaming\
org.netbeans.mobility.antext.preprocessor.PreprocessorException: IOException during write
at org.netbeans.mobility.antext.preprocessor.CommentingPreProcessorTask.execute(
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
E:\Mobile\MobileStreaming\src\ca\mobitec\mobile\streaming\ (The system cannot find the file specified)
at Method)
at org.netbeans.mobility.antext.preprocessor.CommentingPreProcessorTask$FileDestination.createWriter(
... 16 more
BUILD FAILED (total time: 4 seconds)

Any ideas on how to solve the problem?

BTW, one boring thing with Ubuntu is when you update the kernel VB doesn't work anymore unless you compile it against the new kernel.


Posted by Stephan Bardubitzki on May 29, 2008 at 09:18 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments