Skip to contentSkip to conversation

Questions/Help with network/IP setup

DISCUSSION Roland Paterson-Jones 2 participants 2 messages Feb 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi again

I'd ideally like to let my vm's/non-0 domains use DHCP (so I can reuse root-fs images etc), but I would also ideally like to specify the IP address when launching (xm create'ing) the domain.

Is there an easy way to do this? I see that I can specify the MAC address in the set-up script, so I could presumably fiddle the 'normal' DHCP server to serve up the appropriate IP address according to the MAC address. However, I'd prefer the Xen/domain-0 to intercept the DHCP request or something, so that I can keep things local.

I'm also a little confused as to the exact semantics of the network settings in the xm create config files. I see there are fields to enable/disable (some level of) dhcp, and supply a gateway, net mask and host name, but I haven't been able to nail down exactly what these do and how they interact with the normal DHCP process within the vm.

Thanks again for any help
Roland

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

You should be able to just create a wrapper script that updates your dhcpd3.conf and rehups dhcpd...

Cheers
Arthur

-----
CTO @ Fotango Ltd
+447834716919
http://www.fotango.com/

Quoted 14 lines · Roland Paterson-Jones

Hi again

I'd ideally like to let my vm's/non-0 domains use DHCP (so I can reuse root-fs images etc), but I would also ideally like to specify the IP address when launching (xm create'ing) the domain.

Is there an easy way to do this? I see that I can specify the MAC address in the set-up script, so I could presumably fiddle the 'normal' DHCP server to serve up the appropriate IP address according to the MAC address. However, I'd prefer the Xen/domain-0 to intercept the DHCP request or something, so that I can keep things local.

I'm also a little confused as to the exact semantics of the network settings in the xm create config files. I see there are fields to enable/disable (some level of) dhcp, and supply a gateway, net mask and host name, but I haven't been able to nail down exactly what these do and how they interact with the normal DHCP process within the vm.

Thanks again for any help
Roland

Quoted 9 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click