Changes between Version 1 and Version 2 of Testing_Networks
- Timestamp:
- Mar 19, 2007 4:58:25 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Testing_Networks
v1 v2 1 = = Creating testbed networks of virtual machines, host Windows XP, guest Redhat Enterprise Linux ==1 = Creating testbed networks of virtual machines, host Windows XP, guest Redhat Enterprise Linux = 2 2 3 = Scenario = 3 Contributed by Gary Griffin, 2007/03/17 4 5 == Scenario == 4 6 5 7 You have a host Windows XP system and a master Virtual image that is Redhat Enterprise Linux that you are regularly updating and want to create multiple instances and connect them in a private test network. An example would be a testbed MySQL Cluster which has a management node and two data nodes. Since the master image is regularly updated, we need a process for quickly cloning and creating a test environment. 6 8 7 8 - Clone the master Virtual image 9 * Clone the master Virtual image 9 10 10 11 {{{ … … 14 15 }}} 15 16 16 -Attach the vdi's to the already created VMs.17 * Attach the vdi's to the already created VMs. 17 18 18 19 {{{ … … 22 23 }}} 23 24 24 -Create the network25 * Create the network 25 26 26 Now reset the network for the new VMs to use an internal private network. This will allow the 3 guest VMs to communicate with each other, but not with the host. The intnet network type is not available from the GUI, and is reset by the GUI if any of the VM settings are changed. So this has to be performed from the command line. We choose to use a network name of 'testnet' just for convenience. It is an arbitrary name but must be consistent.27 Now reset the network for the new VMs to use an internal private network. This will allow the 3 guest VMs to communicate with each other, but not with the host. The intnet network type is not available from the GUI, and is reset by the GUI if any of the VM settings are changed. So this has to be performed from the command line. We choose to use a network name of 'testnet' just for convenience. It is an arbitrary name but must be consistent. 27 28 28 29 {{{ … … 35 36 }}} 36 37 37 -Customization of individual VMs38 * Customization of individual VMs 38 39 39 Since these VMs will be in a private network, each has a fixed IP address. And they should use the host IP address as the gateway IP address. And example of the ifcfg.eth0 file where the host IP address is 192.168.1.101 and the guest IP address is 192.168.10.200 is:40 Since these VMs will be in a private network, each has a fixed IP address. And they should use the host IP address as the gateway IP address. And example of the ifcfg.eth0 file where the host IP address is 192.168.1.101 and the guest IP address is 192.168.10.200 is: 40 41 41 42 {{{