[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] DHCP server on Dom-0: guests fail to connect



On Thu, Jun 4, 2009 at 10:39 PM, Siddharth Wagh
<siddharth.wagh@xxxxxxxxx> wrote:

> vif = [ "mac=00:16:3e:3d:2c:fa,bridge=xenbr0" ]
> ======================================
>
> 2. Then, I set out to remove their static addressing and assign the same VMs
> new IPs using DHCP. So, I made following changes:
> a. Installed DHCP on Dom-0
> b. Changed dhcpd.conf file as given above (I am attempting to give range of
> private addresses to VMs, I am not sure how to connect them to Dom-0 or how
> to create interface on Dom-0 for same)
> c. Changed guest VM file as follows:
> ==================================

> dhcp = "dhcp"
> vif = [ '' ]

> CAN YOU TELL ME HOW DO I GO ABOUT HOW TO ASSIGN IPs TO GUEST VMs ON THE RUN
> AND NOT STATICALLY? THANKS A LOT FOR YOUR REPLY.

Your main problem is that you misunderstood how Xen networking works.
In short, when you use bridging (the default on most distros), you'll
essentially have a domU that behaves just like any other machine on
the network. That means you don't need to alter domU config. At all.
It wouldn't matter as the OS on domU can change it anyway.

What you should do is you should return the domU config to the
original one, and learn how to setup DHCP properly. Since the bridge
is xenbr0, the process would be the same as setting DHCP server where
clients are connected to DHCP server's eth0.

-- 
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.