Resuming virtual machine after laptop hibernate

Setup: a Windows laptop with a VirtualBox (Ubuntu) guest machine,  running Open ESB, for developing WS-Notification demos.

A use-case: Moving the laptop from one location to another, requiring: pausing, hibernating, waking, switching from wireless to LAN connection, and resuming the virtual machine (which works, yay!).

A problem: However, when resuming the guest machine, it had the wrong date and time.  Then trying the ntpdate command failed to fix this, due to the laptop’s different network setup.

A solution: create a script, for example in:

/usr/local/bin/myresume.sh

to compensate for this, with two commands:

#/bin/sh
dhclient
ntpdate ntp.ubuntu.com

(After running this, as root, the resumed guest machine was all set to go.)

Category: virtualbox

Posted by: Mike Wright on: September 10, 2008

Tags:

upload vs. copy during JBI Component install

step 1 radio buttons

(install step 1; radio buttons)

 I was asked today about the difference between upload and copy when using the GlassFish v2 web admin console to install a JBI component into Open ESB.


Case 1. The JBI archive is on the “client” system. Use the default “File to Upload:” radio button.

browser's file upload dialog

(browser upload dialog)


opens the web-browser’s file upload dialog to select the file to be uploaded from the client file system to the remote GlassFish Domain Admin Server (DAS).  uploads the selected file.

Case 2. The JBI archive is on the “server” system. Use the “File to Copy:” radio button.

woodstock chooser

woodstock file chooser

opens a  Woodstock file chooser in a pop-up window, showing only files on the system running the GlassFish DAS.  copies the selected file.

Case 3. The web browser and the DAS are running on the same system. Either upload or copy would work, since the JBI archive is accessible by both the web browser and the DAS.

Category: glassfish, jbi, open-esb, web admin console

Posted by: Mike Wright on: August 28, 2008

Tags: