Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   how easy to run multiple KVM guests networking with each other? (http://www.linux-archive.org/ubuntu-user/586440-how-easy-run-multiple-kvm-guests-networking-each-other.html)

"Robert P. J. Day" 10-11-2011 08:36 PM

how easy to run multiple KVM guests networking with each other?
 
i don't need a detailed recipe for this, i just want to know if it's
relatively simple. i've got a simple KVM guest that i can run and to
which i can have simple serial console access. my next two steps:

1) activate networking to that KVM guest, then

2) be able to run multiple KVM guests, with networking not just to
the host, but to each other

if there's a step-by-step tutorial for this, that's great, but for
now, i just want to know that it's doable. i'm assuming that TUN/TAP
networking is the obvious solution for the networking component.

thanks.

rday

--

================================================== ======================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
================================================== ======================

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

"compdoc" 10-11-2011 09:03 PM

how easy to run multiple KVM guests networking with each other?
 
> 1) activate networking to that KVM guest, then
>
> 2) be able to run multiple KVM guests, with networking not just to
>the host, but to each other
>
> if there's a step-by-step tutorial for this, that's great, but for
>now, i just want to know that it's doable. i'm assuming that TUN/TAP
>networking is the obvious solution for the networking component.

KVM makes a virtual lan for you, usually with the address range something
like 192.168.200.0/24.

This virtual lan exists only within the host, so no network traffic travels
to your network switch when the guests are sending to each other. To reach
the internet, they nat through the host.

To attach virtual guests directly to your actual LAN, you create a bridge
that attaches to a physical nic. Then the guests can obtain an ip address
from your LAN's dhcp server. I like using a separate nic for this purpose.

No need for TUN/TAP. I think Xen installs TUN/TAP connections for you, but
installing KVM will not. It creates the virtual network and names it virbr0.

You can also delete the virtual network if you don't want it.





--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 06:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.