Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KVM & Networking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Smoothhound
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2003
Posts: 149

PostPosted: Tue May 11, 2010 4:48 pm    Post subject: KVM & Networking Reply with quote

Hello

I'm having trouble getting KVM & networking configured to my liking, I've done the google dance and I can't quite figure it out.

My requirements:

* I have one guest and I would like for it to be able to connect to the local LAN & internet, this I can do :)
* I would also like network access from the host, this I cannot do :(
* In an ideal world I'd like to be able to connect to the guest from the LAN but as I will be mainly using a wireless interface on the host I gather that this is currently impossible

Has any anyone got a working config for this sort of setup?

Thanks
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16043

PostPosted: Wed May 12, 2010 1:59 am    Post subject: Reply with quote

Yes, this setup works. If your host network device supports bridging, you can satisfy all three points. Some wireless cards are deficient and cannot bridge. I am not aware of any wired cards which exhibit such a deficiency.

In any case, you should have no problems accessing the guest from the host. Please explain what you have done so far. Include the full command line used to start kvm, a description of how you have assigned it an address, and what, if any, iptables rules you are using on the host. If the guest has a firewall, be sure to set it to allow the host to connect.
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Fri May 14, 2010 4:39 pm    Post subject: Reply with quote

There is a gentoo doc that covers just that.
http://en.gentoo-wiki.com/wiki/KVM

This from it
Quote:


the bridge connects eth0 and your tuntap interfaces together, routing packets as if it were a real "old fashioned" hub


is key. Your kernel has to be equipped.

modprobe tun.

If it's not there, back to the kernel and get it set.

See also gentoo qemu how to.
_________________
idella4@aus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum