Tom80112
2010-Jan-28 21:40 UTC
[Xen-users] How do I configure Virtual machines to DHCP from network instead of Dom0 ??
I have a XEN Dom0 set up with CentOS5.4 # xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 2048 1 r----- 43564.6 Guest1_CentOS5.3 3 511 1 -b---- 1153.4 Guest2_CentOS5.3 5 511 1 -b---- 1189.9 Guest3_CentOS5.3 8 511 1 -b---- 1245.0 Guest4_CentOS5.3 13 511 1 -b---- 888.2 Dom0 grabbed an IP address from our network using DHCP. Great! But the 4 virtual Guest machines did not grab a DHCP address from our network. I think these 4 virtual Guest machines grabbed their DHCP addresses from Dom0. The 4 virtual Guest machines DHCP''d addresses as: 192.168.122.xxx How do I get these 4 virtual Guest machines to DHCP from the network like Dom0 did?? Thanks Tom -- View this message in context: http://old.nabble.com/How-do-I-configure-Virtual-machines-to-DHCP-from-network-instead-of-Dom0----tp27362803p27362803.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Feb-01 12:57 UTC
Re: [Xen-users] How do I configure Virtual machines to DHCP from network instead of Dom0 ??
On Fri, Jan 29, 2010 at 4:40 AM, Tom80112 <nezwek@yahoo.com> wrote:> Dom0 grabbed an IP address from our network using DHCP. Great! > > But the 4 virtual Guest machines did not grab a DHCP address from our > network. > I think these 4 virtual Guest machines grabbed their DHCP addresses from > Dom0. > The 4 virtual Guest machines DHCP''d addresses as: 192.168.122.xxx > > How do I get these 4 virtual Guest machines to DHCP from the network like > Dom0 did??assuming your dom0 is connected using eth0, you simply need to set domU to use "eth0" or "xenbr0" bridge instead of "virbr0" bridge that you''re using now. However, if your dom0 is connected using wireless, then bridging domUs there won''t work. In this case you''re stuck with your current setup. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tom80112
2010-Feb-01 16:26 UTC
Re: [Xen-users] How do I configure Virtual machines to DHCP from network instead of Dom0 ??
Thanks.. That worked.. Fajar A. Nugraha-3 wrote:> > On Fri, Jan 29, 2010 at 4:40 AM, Tom80112 <nezwek@yahoo.com> wrote: >> Dom0 grabbed an IP address from our network using DHCP. Great! >> >> But the 4 virtual Guest machines did not grab a DHCP address from our >> network. >> I think these 4 virtual Guest machines grabbed their DHCP addresses from >> Dom0. >> The 4 virtual Guest machines DHCP''d addresses as: 192.168.122.xxx >> >> How do I get these 4 virtual Guest machines to DHCP from the network like >> Dom0 did?? > > assuming your dom0 is connected using eth0, you simply need to set > domU to use "eth0" or "xenbr0" bridge instead of "virbr0" bridge that > you''re using now. > > However, if your dom0 is connected using wireless, then bridging domUs > there won''t work. In this case you''re stuck with your current setup. > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >-- View this message in context: http://old.nabble.com/How-do-I-configure-Virtual-machines-to-DHCP-from-network-instead-of-Dom0----tp27362803p27406981.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users