Re: [gentoo-user] vde_switch cannot create tap

2010-04-15 Thread Albert Hopkins
On Thu, 2010-04-15 at 10:53 +0800, Xi Shen wrote:
 bridge allow your vm to connect to the internet directly. the vm will
 connect to the dhcp server as your host machine do.
 
 vde creates a vlan on your host, and your vms connect to that vlan.
 and your host machine will act like a gateway to your vm.
 
 people say vde is easier to config if you have many vms. i actually
 never tried bridge. maybe i should try it some time. 

Yeah, libvirt does the same thing.  It creates a virtual tap device
which you can put your vms on, then it runs dnsmasq on that interface
for dhcp/dns, and acts as a NAT/gateway for the vms.

It's pretty much the same thing AFAICT.  I'm sure there are differences
but they sound pretty similar to me.




Re: [gentoo-user] vde_switch cannot create tap

2010-04-14 Thread Albert W. Hopkins
On Wed, 2010-04-14 at 11:57 +0800, Xi Shen wrote:
 hi,
 
 i followed the instructions on
 http://en.gentoo-wiki.com/wiki/KVM_with_VDE to configure my system.
 the kvm and tun modules loaded fine. but when i run vde_switch
 --numports 4 --hub --mod 777 --group users --tap tap0, it will not
 return until i press ctrl+d, and after that, the tap0 interface is not
 created. there's no error messages.

I read this document, and it seems to be doing basically what you get
with libvirt, except libvirt does all that for you (but uses brctl
instead of vde (I'm not sure what the differences are)).

Anyway it seems like libvirt may be another alternative for you.  It
takes care of the bridging/dnsmasq/masquerading stuff for you and also
has some nice management features (and a gui).

-a






Re: [gentoo-user] vde_switch cannot create tap

2010-04-14 Thread Xi Shen
On Wed, Apr 14, 2010 at 9:36 PM, Albert W. Hopkins
mar...@letterboxes.org wrote:
 I read this document, and it seems to be doing basically what you get
 with libvirt, except libvirt does all that for you (but uses brctl
 instead of vde (I'm not sure what the differences are)).

 Anyway it seems like libvirt may be another alternative for you.  It
 takes care of the bridging/dnsmasq/masquerading stuff for you and also
 has some nice management features (and a gui).


bridge allow your vm to connect to the internet directly. the vm will
connect to the dhcp server as your host machine do.

vde creates a vlan on your host, and your vms connect to that vlan.
and your host machine will act like a gateway to your vm.

people say vde is easier to config if you have many vms. i actually
never tried bridge. maybe i should try it some time.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] vde_switch cannot create tap

2010-04-14 Thread Xi Shen
BTW, the issue i had have been resolved. the document did not mention
that i should add '-d' option to let the vde_switch run in daemon
mode.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/