This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
user:ccornair:portfolio:hpc0project4 [2013/05/06 02:31] – created ccornair | user:ccornair:portfolio:hpc0project4 [2013/05/06 02:33] (current) – [Objectives] ccornair | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Project: | ||
+ | |||
+ | Following your set up of a VM Server, log into the VM server as root using the command 'ssh root@vmserver02.student.lab' | ||
+ | |||
+ | =====Objectives===== | ||
+ | |||
+ | to create a virtual machine for the server created | ||
+ | |||
+ | |||
+ | |||
+ | =====Procedure===== | ||
+ | |||
+ | |||
+ | __**VM Server check**__ | ||
+ | |||
+ | |||
+ | Once you have access to the VM Server: | ||
+ | |||
+ | Check the number of running virtual machines using the 'xm list' command. | ||
+ | |||
+ | If there are more than 8 virtual machines running, use a different VM Server. | ||
+ | |||
+ | |||
+ | __**VM Resource management**__ | ||
+ | |||
+ | |||
+ | Now go to a separate web-browser window to choose your virtual machine hostname. | ||
+ | |||
+ | Look at the chart located under “VM Server User Lists” on the HPC Fundamentals Notes page. | ||
+ | |||
+ | Claim an open VM by editing the table. | ||
+ | |||
+ | Enter the name of the VM server you are using in the second column of the table for the appropriate virtual machine. | ||
+ | |||
+ | Enter your name in the last column of the appropriate virtual machine. | ||
+ | |||
+ | Note the MAC addresses of the virtual machine you've claimed on the chart (You will use it shortly.) | ||
+ | |||
+ | __**Creation**__ | ||
+ | |||
+ | |||
+ | Returning to the terminal window, which is logged into the VM Serrver you're going to use. | ||
+ | |||
+ | While inserting the hostname and MAC address noted from the chart on HPC Fundamentals Notes page. | ||
+ | |||
+ | Use the command ' | ||
+ | |||
+ | For example, vm24's command would be ' | ||
+ | |||
+ | The number in the hostname is in decimal. | ||
+ | |||
+ | The number in the MAC address is in Hexidecimal. | ||
+ | |||
+ | If you have no errors in / | ||
+ | |||
+ | Watch for warnings! | ||
+ | |||
+ | __**Booting your Virtual Machine**__ | ||
+ | |||
+ | If your Virtual Machine was created successfully you can now ' | ||
+ | root@vmserver##: | ||
+ | |||
+ | Where ## is the number of the virtual machine you created in the creation section. | ||
+ | To boot the vm without viewing it use the following command: | ||
+ | |||
+ | root@vmserver##: | ||
+ | |||
+ | When the virtual machine has finished booting you can detach from the virtual machine, returning to the VMServer prompt, using the < | ||
+ | |||
+ | __**Accessing Your Virtual Machine**__ | ||
+ | |||
+ | You can now access your virtual machine from any lab46 terminal window using SSH. The command to connect to your virtual machine is: | ||
+ | lab46:~$ ssh root@vm | ||
+ | |||
+ | |||
+ | Managing your virtual machine can be done utilizing the XM tool on the VMServer you created the virtual machine on. | ||
+ | |||
+ | The command 'xm help' will show you a list of actions you can take. | ||
+ | |||
+ | |||