| 96 | |
| 97 | === Create the Additional VMs === |
| 98 | |
| 99 | You will now easily create the second VM using VM cloning. This VM is for your Web Server which will be used for hands-on tomorrow. |
| 100 | - First Power off/shutdown your VM |
| 101 | - Right click on the VM to select Clone option |
| 102 | - Assign new name as web."your domain".ws.ac.lk |
| 103 | - Check "Reinitialize the MAC address for all network cards |
| 104 | - And then click on Continue |
| 105 | - Select Full clone |
| 106 | This might take sometime to create the new virtual disk image (vdi) file. Note that your new VM is same as your previous one. You have to change host name, ip addresses, etc accordingly. |
| 107 | - When the cloning finished, start you new VM and do following to change the host name |
| 108 | - edit /etc/hostname file and change host name to web. You may use vi or nano editor. |
| 109 | - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 web."your domain".ws.ac.lk |
| 110 | |
| 111 | You can follow the same steps and create the third VM to use as the ldap Server. Note the following changes. |
| 112 | |
| 113 | - Assign new name as ldap."your domain".ws.ac.lk |
| 114 | - edit /etc/hostname file and change host name to web. You may use vi or nano editor. |
| 115 | - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 ldap."your domain".ws.ac.lk |
| 116 | |
| 117 | '''Note''': For this Hands-on you only need your pc(pc."your domain.ws.ac.lk") VM. Please shut down the additional VM's |
| 118 | |
| 119 | === Setting UP IP Addresses === |
| 120 | |
| 121 | Edit /etc/network/interfaces files to include your IP addresses in your PC |
| 122 | Get your IP address from the [wiki:ipallocation IP table] |
| 123 | {{{ |
| 124 | iface eth0 inet static |
| 125 | |
| 126 | |
| 127 | address 192.248.x.x |
| 128 | netmask 255.255.255.0 |
| 129 | network 192.248.6.0 |
| 130 | broadcast 192.248.6.255 |
| 131 | gateway 192.248.6.254 |
| 132 | dns-nameservers 192.248.1.161 |
| 133 | dns-search yourdmain |
| 134 | }}} |
| 135 | When you completed the IP settings of both VMs, restart them and then login to confirm correct IP settings. |
| 136 | |
| 137 | |