public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] KVM networking help
@ 2013-07-17 18:28 Nilesh Govindrajan
  2013-07-17 18:31 ` Alon Bar-Lev
  2013-07-18  4:04 ` William Kenworthy
  0 siblings, 2 replies; 3+ messages in thread
From: Nilesh Govindrajan @ 2013-07-17 18:28 UTC (permalink / raw
  To: Gentoo User Mailing List

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

Hi,

I need some help settling up networking with KVM machines.

I have one public interface with four publicly accessible IPs.

I want to run a private virtual network for the VMs, such that every VM can
access every other VM and host, also host can access every VM (required for
NAT).

So far I tried this:

Create two tap interfaces.
Add them to a bridge
Assign IP to bridge
Set different MACs for VMs' NICs.

This let's me access one VM to another also VM to host (not sure about
this, ping works).
But I'm not able to use host to VM (ping works), I'm not able to connect to
sshd running inside VM from host.

[-- Attachment #2: Type: text/html, Size: 758 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] KVM networking help
  2013-07-17 18:28 [gentoo-user] KVM networking help Nilesh Govindrajan
@ 2013-07-17 18:31 ` Alon Bar-Lev
  2013-07-18  4:04 ` William Kenworthy
  1 sibling, 0 replies; 3+ messages in thread
From: Alon Bar-Lev @ 2013-07-17 18:31 UTC (permalink / raw
  To: gentoo-user

On Wed, Jul 17, 2013 at 9:28 PM, Nilesh Govindrajan <me@nileshgr.com> wrote:
>
> Hi,
>
> I need some help settling up networking with KVM machines.
>
> I have one public interface with four publicly accessible IPs.
>
> I want to run a private virtual network for the VMs, such that every VM can access every other VM and host, also host can access every VM (required for NAT).
>
> So far I tried this:
>
> Create two tap interfaces.
> Add them to a bridge
> Assign IP to bridge
> Set different MACs for VMs' NICs.
>
> This let's me access one VM to another also VM to host (not sure about this, ping works).
> But I'm not able to use host to VM (ping works), I'm not able to connect to sshd running inside VM from host.

See if the following[1] helps.

[1] http://alonbl.tropicalwikis.com/wiki/Gentoo/VM_Tap_Networking


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] KVM networking help
  2013-07-17 18:28 [gentoo-user] KVM networking help Nilesh Govindrajan
  2013-07-17 18:31 ` Alon Bar-Lev
@ 2013-07-18  4:04 ` William Kenworthy
  1 sibling, 0 replies; 3+ messages in thread
From: William Kenworthy @ 2013-07-18  4:04 UTC (permalink / raw
  To: gentoo-user

have a look at openvswitch ... gives more flexibility and is relatively
easy to use.  I am using fake-bridges with vlans for something like this
(mythbackend running in a vm on a media vlan with a hdhomerun and other
frontends, and a public vlan for other traffic)

BillK

On 18/07/13 02:28, Nilesh Govindrajan wrote:
>
> Hi,
>
> I need some help settling up networking with KVM machines.
>
> I have one public interface with four publicly accessible IPs.
>
> I want to run a private virtual network for the VMs, such that every
> VM can access every other VM and host, also host can access every VM
> (required for NAT).
>
> So far I tried this:
>
> Create two tap interfaces.
> Add them to a bridge
> Assign IP to bridge
> Set different MACs for VMs' NICs.
>
> This let's me access one VM to another also VM to host (not sure about
> this, ping works).
> But I'm not able to use host to VM (ping works), I'm not able to
> connect to sshd running inside VM from host.
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-18  4:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17 18:28 [gentoo-user] KVM networking help Nilesh Govindrajan
2013-07-17 18:31 ` Alon Bar-Lev
2013-07-18  4:04 ` William Kenworthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox