26 | | * tb-set-node-startcmd $cli "bash /proj/Virtual/script/eucalyptus_setup/install_cli.sh >& /tmp/cli.log" '''# set up the start command to run cli node ''' |
| 26 | * tb-set-node-startcmd $cli "bash /proj/Virtual/script/eucalyptus_setup/install_cli.sh >& /tmp/cli.log" '''# set up the start command to run cli node ''' |
| 27 | |
| 28 | * to example ns script is attached at the end of this page |
| 29 | |
| 30 | == Upload Image == |
| 31 | 1) Change directory to /proj/Virtual/script/eucalyptus_setup |
| 32 | 2) Switch user to root. |
| 33 | sudo (all the commands below all assume to be invoked by root user) |
| 34 | 3) Upload the os image by the command as the user of eucalyptus: |
| 35 | su eucalyptus –c “./upload_image.sh -i [image name] “[[br]] |
| 36 | a.the supported image name now are ubuntu9.04; centos5.3; debian5.0; fedora11; [[br]] |
| 37 | b.if user wants to upload the ubuntu9.04, the command should be: [[br]] |
| 38 | su eucalyptus –c “./upload.sh -i ubuntu9.04 “ [[br]] |
| 39 | 4) Set up environmental variables by the command: source /var/lib/eucalyptus/euca/eucarc |
| 40 | 5) check out the status of virtual node by the command: euca-describe-instances |
| 41 | a.if the status of the node is running instead of pending, it means the node is ready, you can login to this virtual node.[[br]] |
| 42 | b.login command: ssh -i /var/lib/eucalyptus/euca/mykey.private root@10.1.1.101 (you should change the IP address to the IP of the virtual node. In my case it was 10.1.1.101) [[br]] |