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

Comments:

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.

Thanks.
Stephan

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,

thanks!,

adam

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\RTPPacket.java
org.netbeans.mobility.antext.preprocessor.PreprocessorException: IOException during write
at org.netbeans.mobility.antext.preprocessor.CommentingPreProcessor.run(CommentingPreProcessor.java:156)
at org.netbeans.mobility.antext.preprocessor.CommentingPreProcessorTask.execute(CommentingPreProcessorTask.java:203)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
E:\Mobile\MobileStreaming\src\ca\mobitec\mobile\streaming\RTPPacket.java (The system cannot find the file specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.netbeans.mobility.antext.preprocessor.CommentingPreProcessorTask$FileDestination.createWriter(CommentingPreProcessorTask.java:268)
at org.netbeans.mobility.antext.preprocessor.CommentingPreProcessor.run(CommentingPreProcessor.java:151)
... 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.

Stephan

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

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