1 00:00:00,05 --> 00:00:03,08 - [Instructor] Deploying virtual machines or VMs 2 00:00:03,08 --> 00:00:07,06 in an Azure environment is relatively straightforward 3 00:00:07,06 --> 00:00:10,03 and out of scope for this course. 4 00:00:10,03 --> 00:00:13,00 However, there are some subtle things 5 00:00:13,00 --> 00:00:18,01 you need to keep in mind to avoid potential dead ends. 6 00:00:18,01 --> 00:00:20,07 In this course, I set up remote desktops 7 00:00:20,07 --> 00:00:24,03 for both windows and Ubuntu VMs. 8 00:00:24,03 --> 00:00:27,02 The Ubuntu VMs use the server version 9 00:00:27,02 --> 00:00:29,09 of the operating system or OS 10 00:00:29,09 --> 00:00:32,08 which doesn't provide graphical user interface 11 00:00:32,08 --> 00:00:36,08 or GUI by default. 12 00:00:36,08 --> 00:00:39,06 To enable remote desktop access, 13 00:00:39,06 --> 00:00:42,07 I had to install additional software 14 00:00:42,07 --> 00:00:48,07 including the XFCE for desktop environment. 15 00:00:48,07 --> 00:00:54,01 You can find step-by-step instructions on this website. 16 00:00:54,01 --> 00:00:57,06 Activating file rules on Ubuntu VMs 17 00:00:57,06 --> 00:01:01,05 can lead to losing a remote desktop connection. 18 00:01:01,05 --> 00:01:06,03 If that happens, don't panic, you still have console access. 19 00:01:06,03 --> 00:01:11,04 Click on the serial console option. 20 00:01:11,04 --> 00:01:16,04 I also had to create a virtual sub-net called DMZ 21 00:01:16,04 --> 00:01:22,03 who's subnet ID is 10.0.1.0/24. 22 00:01:22,03 --> 00:01:31,03 In addition to the default subnet 10.0.0.0/24. 23 00:01:31,03 --> 00:01:35,07 Another thing I had to do was to enable forwarding 24 00:01:35,07 --> 00:01:40,05 on each virtual network interface card as shown here. 25 00:01:40,05 --> 00:01:43,09 Also, I added a new route table 26 00:01:43,09 --> 00:01:46,09 to explicitly direct all the packets 27 00:01:46,09 --> 00:01:52,06 going from 10.0.1.0/24 28 00:01:52,06 --> 00:01:59,08 to the default subnet 10.0.0.0/24. 29 00:01:59,08 --> 00:02:04,05 To our gateway interface, 10.0.1.4 30 00:02:04,05 --> 00:02:08,01 on the Ubuntu router host. 31 00:02:08,01 --> 00:02:10,09 You can see my route setting here. 32 00:02:10,09 --> 00:02:12,09 This that may not be necessary 33 00:02:12,09 --> 00:02:15,06 if you're using different cloud platforms, 34 00:02:15,06 --> 00:02:20,04 such as VMware or proxmox. 35 00:02:20,04 --> 00:02:23,08 Whenever you restart your Ubuntu router VM, 36 00:02:23,08 --> 00:02:27,08 the forwarding option is disabled by default. 37 00:02:27,08 --> 00:02:30,02 Therefore you need to enable forwarding 38 00:02:30,02 --> 00:02:33,06 each time by issuing the command 39 00:02:33,06 --> 00:02:52,07 echo 1 > /proc/sys/net/ipv4/ip_forward. 40 00:02:52,07 --> 00:02:55,03 If you don't want to use a cloud 41 00:02:55,03 --> 00:02:58,05 to try out the hands-on exercises, 42 00:02:58,05 --> 00:03:01,00 you can download proxmox 43 00:03:01,00 --> 00:03:06,07 which allows you to install VMs on a local machine. 44 00:03:06,07 --> 00:03:11,02 Oracle VirtualBox is another such solution. 45 00:03:11,02 --> 00:03:12,03 That's it. 46 00:03:12,03 --> 00:03:14,09 Although there may be challenges 47 00:03:14,09 --> 00:03:17,08 while setting up your own VM environment, 48 00:03:17,08 --> 00:03:19,06 it's worth the trouble. 49 00:03:19,06 --> 00:03:23,08 Trying out what I demonstrate throughout this course 50 00:03:23,08 --> 00:03:26,04 will make the concept sink in 51 00:03:26,04 --> 00:03:30,00 and allow you to develop a deeper understanding.