15
Networking In VirtualBox 2.2.2 MySQL Clustering Networking In VirtualBox 2.2.2 Objective To connect the guest VMs of VirtualBox to one another and connect these guest VMs to the host, thereby forming a network of Operating Systems. Pre-requisites 1. Install VirtualBox 2.2.2 in the Operating System of your choice. This Operating System becomes the host. Download VirtualBox 2.2.2 from http://www.virtualbox.org/wiki/Downloads/ 2. Install the various Operating Systems to be connected in VirtualBox. These Operating Systems become the guests. Assumptions 1. The host Operating System is Windows Vista – Business Edition 2. The guest Operating Systems are a. Windows Server 2003 b. OpenSolaris 2008.11 c. Fedora 10 3. However the following procedure can be applied to any combination of host and guests, with a few minor changes. Procedure 1. In order to connect the guest VMs to another, a network bridge is to be established. This network bridge is established between two LANs – Local Area Connection and VirtualBox Host- Only Network (obtained when VirtualBox is installed). 2. Navigate to Control Panel -> Network and Internet -> Network and Sharing Center -> Manage Network Connections. 3. The two LANs mentioned above will be available here, right click selecting both of them and select Bridge Connections option.

Networking in VirtualBox

Embed Size (px)

Citation preview

Page 1: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

Networking In VirtualBox 2.2.2

Objective

To connect the guest VMs of VirtualBox to one another and connect these guest VMs to the host, thereby forming a network of Operating Systems.

Pre-requisites

1. Install VirtualBox 2.2.2 in the Operating System of your choice. This Operating System becomes the host. Download VirtualBox 2.2.2 from http://www.virtualbox.org/wiki/Downloads/

2. Install the various Operating Systems to be connected in VirtualBox. These Operating Systems become the guests.

Assumptions

1. The host Operating System is Windows Vista – Business Edition 2. The guest Operating Systems are

a. Windows Server 2003 b. OpenSolaris 2008.11 c. Fedora 10

3. However the following procedure can be applied to any combination of host and guests, with a few minor changes.

Procedure

1. In order to connect the guest VMs to another, a network bridge is to be established. This network bridge is established between two LANs – Local Area Connection and VirtualBox Host-Only Network (obtained when VirtualBox is installed).

2. Navigate to Control Panel -> Network and Internet -> Network and Sharing Center -> Manage Network Connections.

3. The two LANs mentioned above will be available here, right click selecting both of them and select Bridge Connections option.

Page 2: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

4. A network bridge, Mac Bridge Miniport is created. This operation might take a little time and the Internet gets disconnected momentarily during this process.

Page 3: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

5. Start VirtualBox 2.2.2.

Page 4: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

6. Right-click the guest VM, which is to be a part of the network and select Settings and navigate to the Network tab. By default, Adapter 1 will be enabled, connected through NAT. This option allows the Guest VM to connect to the Host. Do not make any changes here.

7. Move on to Adapter 2. Enable it, attach it through a Bridged Adapter and select Mac Bridge Miniport from the name drop-down. This adapter will allow the Guest VMs to communicate with one another.

Page 5: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

8. Repeat steps 6 and 7 to all the Guest VMs which are to be a part of the network. 9. Start the Windows 2003 VM. 10. In the Windows 2003 VM, navigate to Control Panel -> Network Connections. There will be two

LANs – one obtained from NAT and the other from Bridged Adapter

Page 6: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

11. Both the LANs obtain their IP addresses automatically.

Page 7: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

12. Start the Fedora 10 VM. 13. Go to System -> Administration -> Network. The network configuration application opens up.

Page 8: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

14. Fedora will recognize two network devices – one from NAT and the other from Bridged Adapter. The NAT device obtains its IP dynamically. However for the bridged adapter, the IP address and the Subnet mask is specified.

Page 9: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

Page 10: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

Page 11: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

15. Activate the connections.

16. Start the OpenSolaris 2008.05 VM. 17. Go to System -> Administration -> Network. The network configuration application opens up.

Page 12: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

18. OpenSolaris will recognize two network devices – one from NAT and the other from Bridged Adapter. The NAT device obtains its IP dynamically. However for the bridged adapter, the IP address and the Subnet mask is specified.

Page 13: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

Page 14: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

19. Activate the connections.

20. Check the IP addresses in all the three Guest VMs and in the Host.

Page 15: Networking in VirtualBox

Networking In VirtualBox 2.2.2 MySQL Clustering

21. Ping the four Operating Systems to verify the integrity of the network.