[Netkit.users] connettere una virtual machine a internet

Massimo Rimondini rimondin at dia.uniroma3.it
Sat Jun 27 16:12:04 CEST 2009


Dear Mauro,

please remember that messages on this mailing list must be posted in english
only. If you want to post in italian, please contact me directly or write to
our contact address (http://wiki.netkit.org/index.php/Contacts#Plain_Email).

About your problem, you are assigning the same address (and subnet) to both
the virtual machine and the wireless interface on your host. This is, in all
respects, a duplication of IP address which, of course, results in disrupted
connectivity.

What you should do is to use a completely different subnet (typically
10.0.0.0/8 is fine) where to place both the TAP-ADDRESS and the
GUEST-ADDRESS. This subnet must also be different from the one used in your
virtual network (let's call it NK_SUBNET), unless the tap-equipped virtual
machine is acting as a switch (which is most likely not the case). Let
TAP_SUBNET the subnet you picked for the TAP-ADDRESS and GUEST-ADDRESS.
Netkit scripts will take care of configuring proper routing between
TAP_SUBNET and the wireless interface on your host.
If you want to make the same Internet connection available to other virtual
machines, you have to at least perform the following operations:
1) set a static default route on all vms pointing to the Internet-connected
vm;
2) set a static route on your host for network NK_SUBNET, using
GUEST-ADDRESS as gateway and "nk_tap_$USER" as interface.

Regards,
Massimo.


From: netkit.users-bounces a list.dia.uniroma3.it
[mailto:netkit.users-bounces a list.dia.uniroma3.it] On Behalf Of
azzali.mauro a hotmail.com
Sent: Friday, June 26, 2009 5:46 PM
To: netkit.users a list.dia.uniroma3.it
Subject: [Netkit.users] connettere una virtual machine a internet

ciao a tutti.devo fare una semplice sottorete con un numero molto limitato
di macchine virtuale (massimo5 e tutte della stessa sottorete). Una di
queste macchine deve essere collegata ad internet in quanto sulle macchine
devo installare alcuni pacchetti.Ho provato a eseguire il comando 
"vstart v1 --eth0=tap,TAP-ADDRESS,GUEST-address -W --mem 256"
dove al posto di guest-address ho messo l'ip della macchina virtuale (es
192.168.1.5) mentre al posto di TAP-ADDRESS l'ip del mio computer (siccome
ho la connessione wireless è privato), 192.168.1.120. 
Ho eseguito il comando, modificato correttamente il file resolv.conf per i
dns ma non riesco a connettermi a internet, anzi, mentre è in esecuzione la
macchina virtuale anche  il pc non si connette piu. Secondo me sto
sbagliando a settare gli indirizzi,specialmente il TAP-ADDRESS. Ho provato
anche con ip pubblici ma niente..Come devo settare la macchina per fare in
modo che la rete virtuale vad su internet?
Grazie 
________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits. Check
it out.



More information about the Netkit.users mailing list