This shows you the differences between two versions of the page.
|
isc:info:virtualmachine [2025/10/07 14:28] vlad_iulius.nastase [OpenStack] |
isc:info:virtualmachine [2025/10/11 16:41] (current) florin.stancu [Local VM] |
||
|---|---|---|---|
| Line 49: | Line 49: | ||
| * Go to [[https://cloud.grid.pub.ro/]]. Click Compute -> Instances -> Launch Instance button! | * Go to [[https://cloud.grid.pub.ro/]]. Click Compute -> Instances -> Launch Instance button! | ||
| * Fill the Instance Name (use //your name + lab number// for law & order); | * Fill the Instance Name (use //your name + lab number// for law & order); | ||
| - | * Go to the **Source** page, search the Available section for ''ISC 2024 rev2'' then click the //up arrow// icon to select it; | + | * Go to the **Source** page, search the Available section for ''ISC 2025'' (choose the latest version) then click the //up arrow// icon to select it; |
| * From **Flavor**, choose ''m1.small'' (1GB RAM, 10GB disk should be enough); | * From **Flavor**, choose ''m1.small'' (1GB RAM, 10GB disk should be enough); | ||
| * From **Networks**, choose ''vlan9'' (click the //up arrow// icon); | * From **Networks**, choose ''vlan9'' (click the //up arrow// icon); | ||
| Line 64: | Line 64: | ||
| Our institution provides some rather limited resources at our disposal (mainly, a limit of 40 VMs). \\ | Our institution provides some rather limited resources at our disposal (mainly, a limit of 40 VMs). \\ | ||
| **Please delete the instance** after you're done with your lab / assignment to allow others to use the infrastructure without any hurdles! | **Please delete the instance** after you're done with your lab / assignment to allow others to use the infrastructure without any hurdles! | ||
| + | </note> | ||
| + | |||
| + | ===== Local VM ===== | ||
| + | |||
| + | You can find a downloadable VM for the ISC labs, together with the source code, on GitHub: | ||
| + | https://github.com/cs-pub-ro/ISC-lab-vm/releases | ||
| + | |||
| + | Download either [[https://www.virtualbox.org/wiki/Downloads|VirtualBox]] or [[https://archive.org/download/vmwareworkstationarchive/17.x/|VMWare Workstation]] in order to readily use it! | ||
| + | |||
| + | <spoiler Running the Virtual Machine using VMware> | ||
| + | * Download the VM's project and open the ''.vmx'' file; | ||
| + | * Note: it is **highly recommended** to use a SSH terminal from the physical system to work with the virtual machine. This way, we can use copy-paste in the terminal, we can customize the font, have scrollback and many other conveniences. To do this, follow the steps below: | ||
| + | * Log in to the virtual machine console (the black screen) using the ''student'' account with the password ''student''. | ||
| + | * Find out the IP address of the virtual machine on the ''eth0'' interface:<code bash> | ||
| + | root@host:~# ip addr sh eth0 | ||
| + | </code> | ||
| + | * From the physical system, open a terminal and initiate an SSH session using:<code bash> | ||
| + | student@PC:~$ ssh student@<VM_IP_ADDRESS> | ||
| + | </code>where ''<VM_IP_ADDRESS>'' is the IP address of the virtual machine as obtained above. | ||
| + | * Aaand that's it! | ||
| + | </spoiler> | ||
| + | |||
| + | <spoiler Running the Virtual Machine using VirtualBox> | ||
| + | * Download the VM's project and open the ''.vbox'' file; | ||
| + | * //Don’t start it yet, we still have a few settings to configure!// | ||
| + | * It is **highly recommended** to use a SSH terminal from the physical system to work with the virtual machine. This way, we can use copy-paste in the terminal, we can customize the font, have scrollback and many other conveniences. To do this, follow the steps below: | ||
| + | * For VirtualBox, we must manually add a port forwarding rule so we can access the machine via SSH from the host; | ||
| + | * With the virtual machine turned off, open **Settings -> Network -> Advanced -> Port Forwarding** and add the following rule: | ||
| + | {{ :isc:info:port_forward_virtual_box.png?600 | Port forwarding for SSH access from host machine }} | ||
| + | * From the physical system, open a terminal and initiate an SSH session using:<code bash> | ||
| + | student@PC:~$ ssh -p 10022 student@localhost | ||
| + | </code> | ||
| + | </spoiler> | ||
| + | |||
| + | <note> | ||
| + | The access credentials for the local virtual machine (the ''host'' station) are (//syntax: ''username:password''//): | ||
| + | * ''student:student'' | ||
| + | * ''root:student'' | ||
| + | By default, you can connect via SSH only using the ''student'' user; you can then switch to ''root'' using the command ''sudo su''. | ||
| </note> | </note> | ||