1. You need to list the IP addresses that VMs can be assigned in:
"$GLOBUS_LOCATION/etc/nimbus/workspace-service/network-pools/public"
2. You need to have VMM hostnames listed in:
"$GLOBUS_LOCATION/etc/nimbus/workspace-service/vmm-pools/pool1"
3. Making alias for DHCP for the VMM
ifconfig eth0:0 192.168.0.254
4. I am adding the subnet to DHCPd.conf (be aware on space between the
0 and the left bracket.
subnet 192.168.0.0 netmask 255.255.255.0 {
}
5. In "/opt/workspace/worksp.conf" make sure the line looks like this:
association_0: public; eth0; eth0 ; none;
192.168.0.0/246. After:
magg@gobo:~/nimbus$ sh test-create.sh
Workspace Factory Service:
https://127.0.0.1:8443/wsrf/services/WorkspaceFactoryService
Read metadata file: "/home/magg/nimbus/autocontainer/gt/ws-core-4.0.8/share/nimbus-clients/sample-workspace.xml"
Created deployment request soley from arguments.
Creating workspace "http://example1/localhost/image"... done.
Workspace created: id 11
eth0
Association: public
IP address: 192.168.0.2
Hostname: host2.com
Gateway: 192.168.0.1
Start time: Mon May 11 18:00:59 EDT 2009
Duration: 30 minutes.
Shutdown time: Mon May 11 18:30:59 EDT 2009
Termination time: Mon May 11 18:40:59 EDT 2009
Wrote EPR to "test.epr"
Waiting for updates.
"http://example1/localhost/image" state change: Unstaged --> Propagated
"http://example1/localhost/image" state change: Propagated --> Corrupted
Problem with http://example1/localhost/image: Problem with workspace driver, error executing request operation (but validation succeeded)
STDERR: 2009-05-11 18:01:05,070 - ERROR - workspace (557) - Problem running:
Traceback (most recent call last):
File "worksp.py", line 529, in main
File "worksp.py", line 110, in addWorkspace
File "./workspace/vms/xen/xen_v2.py", line 801, in addWorkspace
RuntimeProblem: Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n')
"http://example1/localhost/image": Corrupted, calling destroy for you.
"http://example1/localhost/image" was terminated.
magg@gobo:~/nimbus$
----------------------------------------
And in the workspace:
WORKSPACE INSTANCE CREATED:
- Name: 'http://example1/localhost/image'
- Start time: May 11, 2009 6:00:59 PM
- Shutdown time: May 11, 2009 6:30:59 PM
- Resource termination time: May 11, 2009 6:40:59 PM
- Creator: /C=f5d71601-1c38-404f-9ee0-0cdd89ed2f7e/CN=ms
- ID: 11, VMM: gobo.mathcs.emory.edu
2009-05-11 18:00:59,106 INFO impls.InstanceResourceImpl [Timer-0,setOpsEnabled:457] [NIMBUS-EVENT][id-11]: WS-operations enabled
2009-05-11 18:00:59,112 INFO workspace.WorkspaceUtil [Thread-9_WorkspTaskThrd,runCommand:148] [NIMBUS-EVENT][id-11]: ssh -n -T -o BatchMode=yes magg@gobo.mathcs.emory.edu /opt/workspace/bin/workspace-control --create --name wrksp-11 --memory 256 --networking 'eth0;public;A2:AA:BB:AD:27:51;Bridged;Static;192.168.0.2;192.168.0.1;192.168.0.255;255.255.255.0;170.140.150.1;host2.com;null;null;null;null' --images 'file://hello-cloud.img' --imagemounts 'sda1'
2009-05-11 18:01:05,091 INFO workspace.WorkspaceUtil [Thread-9_WorkspTaskThrd,runCommand:225] [NIMBUS-EVENT][id-11]: Return code is 3
2009-05-11 18:01:05,092 ERROR workspace.WorkspaceUtil [Thread-9_WorkspTaskThrd,runCommand:253] [NIMBUS-EVENT][id-11]: system command FAILURE
STDERR:
2009-05-11 18:01:05,070 - ERROR - workspace (557) - Problem running:
Traceback (most recent call last):
File "worksp.py", line 529, in main
File "worksp.py", line 110, in addWorkspace
File "./workspace/vms/xen/xen_v2.py", line 801, in addWorkspace
RuntimeProblem: Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n')
2009-05-11 18:01:05,093 INFO xen.XenTask [Thread-9_WorkspTaskThrd,execute:115] [NIMBUS-EVENT][id-11]: Start failed
2009-05-11 18:01:05,093 ERROR async.ResourceMessage [Thread-9_WorkspTaskThrd,message:99] Problem moving [id-11] to state 'Started'
org.globus.workspace.WorkspaceException: Problem with workspace driver, error executing request operation (but validation succeeded)
STDERR: 2009-05-11 18:01:05,070 - ERROR - workspace (557) - Problem running:
Traceback (most recent call last):
File "worksp.py", line 529, in main
File "worksp.py", line 110, in addWorkspace
File "./workspace/vms/xen/xen_v2.py", line 801, in addWorkspace
RuntimeProblem: Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n')
at org.globus.workspace.xen.XenUtil.throwErr(XenUtil.java:686)
at org.globus.workspace.xen.XenUtil.translateReturnException(XenUtil.java:658)
at org.globus.workspace.xen.XenTask._execute(XenTask.java:240)
at org.globus.workspace.xen.XenTask.execute(XenTask.java:91)
at org.globus.workspace.service.impls.async.WorkspaceThread.run(WorkspaceThread.java:47)
2009-05-11 18:01:05,100 INFO impls.InstanceResourceImpl [Thread-9_WorkspTaskThrd,setOpsEnabled:457] [NIMBUS-EVENT][id-11]: WS-operations disabled
2009-05-11 18:01:05,109 WARN impls.StateTransition [Thread-9_WorkspTaskThrd,corrupted:307] Workspace was corrupted (when moving to state Started): can not change state anymore unless workspace is going to be destroyed
2009-05-11 18:01:05,602 INFO manager.DelegatingManager [ServiceThread-6,_opIntake:656] [NIMBUS-EVENT][id-11]: TRASH called by '/C=f5d71601-1c38-404f-9ee0-0cdd89ed2f7e/CN=ms'
2009-05-11 18:01:05,603 INFO impls.InstanceResourceImpl [ServiceThread-6,remove:739] [NIMBUS-EVENT][id-11]: destroy begins
2009-05-11 18:01:05,608 INFO workspace.WorkspaceUtil [ServiceThread-6,runCommand:148] [NIMBUS-EVENT][id-11]: ssh -n -T -o BatchMode=yes magg@gobo.mathcs.emory.edu /opt/workspace/bin/workspace-control --remove --deleteall --name wrksp-11
2009-05-11 18:01:06,309 INFO workspace.WorkspaceUtil [ServiceThread-6,runCommand:225] [NIMBUS-EVENT][id-11]: Return code is 0
2009-05-11 18:01:06,310 INFO xen.XenTask [ServiceThread-6,execute:108] [NIMBUS-EVENT][id-11]: Shutdown-Trash succeeded
2009-05-11 18:01:06,321 INFO defaults.ResourcepoolUtil [ServiceThread-6,retireMem:424] [NIMBUS-EVENT][id-11]: 'pool1' resource pool entry 'gobo.mathcs.emory.edu': 256 MB given back, now has 1024 MB available
2009-05-11 18:01:06,369 INFO dbdefault.DBAccountingAdapter [ServiceThread-6,destroy:319] [NIMBUS-EVENT][id-11]: accounting: ownerDN = '/C=f5d71601-1c38-404f-9ee0-0cdd89ed2f7e/CN=ms', minutesElapsed = 1, real usage = 1, uuid = '84a83873-55c9-453a-8dcd-b22560a3604a'
2009-05-11 18:01:06,379 INFO defaults.Util [ServiceThread-6,retireEntry:154] [NIMBUS-EVENT][id-11]: 'public' network lease is over, ip=192.168.0.2
2009-05-11 18:01:06,413 INFO impls.InstanceResourceImpl [ServiceThread-6,remove:748] [NIMBUS-EVENT][id-11]: destroyed ('http://example1/localhost/image')