![]() |
Figure 14: Newly created virtual host object ![]() |
When the host object is first created, it is assumed to represent the architecture of the physical machine on which it resides. You must tell Legion that the host object will actually represent a machine of a different architecture. The legion_set_varch command sets a virtual architecture for a host object.
Continuing the previous example, then, you must set the virtual architecture for host object NPACI-T3E to t3e:
Figure 15: Virtual host object scripts ![]() |
When legion_run and other commands make use of a virtual host object to start native jobs, they require a mechanism for starting and managing jobs on the virtual host. To fill this need, there are three scripts that the virtual host object can call on the physical host to make use of the virtual host: legion_vrun_run, legion_vrun_status, and legion_vrun_kill. These, and the virtual host object, are on the physical host (Figure 15).
Examples of these scripts are in the following locations:
These versions use simple Unix fork/exec to demonstrate the required interface. | |
These versions are configured for the t3e.npaci.edu system. |
To configure the host with its required scripts, use the legion_set_vrun command, indicating the path at which the physical host can find the scripts. Continuing the above example:
The virtual host can be used normally for native jobs by registering programs for the (virtual host's) appropriate architecture and running them on the virtual host object. Only native jobs can be run on a virtual host. You can not run remote programs, because virtual hosts have no Legion binaries.
From the user's perspective, virtual and physical host objects are indistinguishable. For example, here we register a program for the T3E and run it on t3e.npaci.edu:
Notice that the program was registered and run from the physical host. In this case, there was no need to specify which host executes my_program, but you can use legion_run's -h flag to specify a virtual host, if necessary.
[Home] [General] [Documentation] [Software] [Testbeds] [Et Cetera] [Map/Search]
|
legion@Virginia.edu
http://legion.virginia.edu/