====== Virtual Machine Creation ====== Following your set up of a VM Server, log into the VM server as root using the command 'ssh root@vmserver02.student.lab' and the root password you created at set-up. =====Preparation===== ===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 [[notes:hpc0|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 [[notes:hpc0|HPC Fundamentals Notes]] page. * Use the command 'xen-create-image --hostname=vm## --mac=##:##:##:##:##:## --role=udev' * For example, vm24's command would be 'xen-create-image --hostname=vm24 --mac=00:16:3E:2E:C0:18 --role=udev' * The number in the hostname is in decimal. * The number in the MAC address is in Hexidecimal. * If you have no errors in /etc/xen/xend-config.sxp or /etc/xen-tools/xen-tools.conf it should proceed. * Watch for warnings! =====Booting your Virtual Machine===== If your Virtual Machine was created successfully you can now 'boot' it. When you are ready to boot your virtual machine use the following command: root@vmserver##:~# xm create -c /xen/conf/vm##.cfg * 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##:~# xm create /xen/conf/vm##.cfg *When the virtual machine has finished booting you can detach from the virtual machine, returning to the VMServer prompt, using the +<]> command. ====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##.student.lab 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. ===Ref:=== 24: T3hd00R 31: Li0p13ur0d0n 36: NaNaKiNg wm3: reader wm4: door