I'd like to start with the question I have in mind:
How can a diskless VM (boots from network) access the Internet?
Here's the setup I have:
1. Router (WAN IP is dynamic, LAN IP 192.168.1.1)
2. Windows XP host (local IP 192.168.1.2)
3. Server VM is Ubuntu. It has two network interfaces:
4. Client VM is diskless. It boots from the Server VM. I got it to work by following this guide (Setting Up A Diskless-boot Kerrighed 2.3.0 Cluster in Ubuntu 8.04) and some suggestions in the corresponding forum. Note that I'm NOT doing a Kerrighed boot yet, just an Ubuntu base system. It has one network interface.eth0 is a VirtualBox Bridged Adapter. LAN IP 192.168.1.3
eth1 is a VirtualBox Internal Network Adapter. LAN IP 192.168.100.1
Okay, so now everything is up and running.eth0 is a VirtualBox Internal Network Adapter. LAN IP 192.168.100.100. This is a fixed address as I have set it up with the DHCP Server at the Server VM.
1. At the Server VM, I chroot into the bootable file system, edit /etc/apt/sources.list as necessary and execute
Code: Select all
sudo aptitude update2. Then I login to the Client VM. When I try the following command, for example:
Code: Select all
sudo apt-get install nano3. Another test for outside access:
Code: Select all
ping 192.168.100.1Code: Select all
ping 192.168.1.3Code: Select all
ping 192.168.1.24. Now I return to the Server VM, and check its routing tables
Code: Select all
route -vnCode: Select all
Destination 0.0.0.0
Gateway 192.168.1.1
Genmask 0.0.0.0
Flags UG
Metric 0
Ref 0
Use 0
Iface eth0
How can a diskless VM (boots from network) access the Internet?
I'm doing this as a practice setup for a Beowulf cluster (eventually) before I get my hands on the actual hardware.
I'm sorry if the post is too long, I just want to provide as many details as possible.
Thanks in advance for your help!