issue 384: adding vbox - first admin vm launched on macosx

This commit is contained in:
Andrea 2011-09-08 07:50:36 +01:00
parent 8bb614bf72
commit 8fe01385ac

View File

@ -274,11 +274,11 @@ public class VirtualboxAdministrationKickstartLiveTest {
*/ */
void startupVboxWebServer() { void startupVboxWebServer() {
logger().debug("disabling password access"); logger().debug("disabling password access");
runScriptOnNode(hostId, "VBoxManage setproperty websrvauthlibrary null"); runScriptOnNode(hostId, "VBoxManage setproperty websrvauthlibrary null", runAsRoot(false).wrapInInitScript(false));
logger().debug("starting vboxwebsrv"); logger().debug("starting vboxwebsrv");
String vboxwebsrv = "vboxwebsrv -t 10000 -v -b"; String vboxwebsrv = "vboxwebsrv -t 10000 -v -b";
if (isOSX(hostId)) if (isOSX(hostId))
vboxwebsrv = "cd /Applications/VirtualBox.app/Contents/MacOS/&&" vboxwebsrv = "cd /Applications/VirtualBox.app/Contents/MacOS/ && "
+ vboxwebsrv; + vboxwebsrv;
// allow jclouds to background the process, this is why we don't specify // allow jclouds to background the process, this is why we don't specify
// -b; // -b;
@ -377,7 +377,6 @@ public class VirtualboxAdministrationKickstartLiveTest {
long size = 4L * 1024L * 1024L * 1024L - 4L; long size = 4L * 1024L * 1024L * 1024L - 4L;
IProgress progress = hd.createBaseStorage(new Long(size), new Long( IProgress progress = hd.createBaseStorage(new Long(size), new Long(
MediumVariant.STANDARD.ordinal())); MediumVariant.STANDARD.ordinal()));
progress.wait();
} }
ISession session = manager.getSessionObject(); ISession session = manager.getSessionObject();