- Crowded Data Centers and Service-Rich Software
- Virtualization: The "New" Kid on the Block
- Step 1: Download a Virtual Image of Your Required Operating System
- Step 2: Download and Install VMware Player
- Step 3: Run the Operating System Image
- Step 4: Shut Down the Operating System Image
- Step 5: Configure the Virtual Image for Networking
Step 5: Configure the Virtual Image for Networking
VMware images have three network interface configuration options:
- NAT. This default setting allows for IP address conservation. With NAT, the virtual machine uses a non-routable IP address. In other words, the virtual machine can’t necessarily send IP packets to (or receive IP packets from) Internet addresses.
- Host only. This option effectively shuts off the virtual machine from the rest of the world. Use this setting if a machine is under attack, or if no external access is wanted for a time.
- Bridged. This option allows for directly routed inbound and outbound IP traffic.
To view or change the settings for the virtual machine, select the Ethernet drop-down control. You can restart the virtual machine, or stop and start the network interfaces, by using the following command from inside the virtual machine:
sudo /etc/init.d/networking stop
You’ll be prompted for the notroot password. Then restart the network interfaces by using the following command, as shown in Figure 6:
sudo /etc/init.d/networking start
Figure 6 Restarting the network interfaces.
Using these two commands avoids the need to restart the entire virtual machine. Clearly, the latter is a service-affecting operation!