Mito
2006-Jun-15 01:31 UTC
[Xen-users] FW: [Fedora-xen] Multiple Xens with static IP addresses
Forwarded to the list as was apparently intended by the sender (he had replied to just me) _____ From: Chris Vaughan [mailto:supercomputer@gmail.com] Sent: Wednesday, June 14, 2006 5:24 PM To: Mito Subject: Re: [Fedora-xen] Multiple Xens with static IP addresses I found some more info it appears you can use ipaddr to specify the ip but CONFIG_IP_PNP needs to be compiled into the kernel. http://lists.xensource.com/archives/html/xen-users/2005-06/msg00131.html Is this something that could be added to future releases of the xen kernel rpm? Thanks On 6/13/06, Mito wrote: I''ve ran into this problem a few times, and was able to fix it once (but regrettably I don''t remember the details, maybe someone else here who knows more could fill in the blanks better). Anyways, in my case, I was able to assign IP addresses via the xen config file for a while, and then it stopped working at some point. I found out that if you remove all knowledge that the domU has about an IP address, then it will take the one from the xen config. Something like that at least. as I said, I''ve ran into this problem multiple times, but only been able to fix it once. _____ From: fedora-xen-bounces@redhat.com [mailto: <mailto:fedora-xen-bounces@redhat.com> fedora-xen-bounces@redhat.com] On Behalf Of Chris Vaughan Sent: Tuesday, June 13, 2006 6:08 PM To: Fedora-xen@redhat.com Subject: [Fedora-xen] Multiple Xens with static IP addresses I am wanting to boot multiple xen images but I was wondering if there is an easier way to set it''s ip address than mounting the image and editing /etc/sysconfig/network-scripts/ifcfg-eth0 every time. I''ve tried putting this in my xen.cfg file vif=[''192.168.0.3''] and it doesn''t appear to do anything. Is this the correct way to boot a xen image and assign it a static ip address? Thanks, -- ------------------------------ Christopher Vaughan -- ------------------------------ Christopher Vaughan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maxim Rozin
2006-Jun-15 08:12 UTC
RE: [Xen-users] FW: [Fedora-xen] Multiple Xens with static IP addresses
Another option is to set a static mac address to each vm using this statement: vif = [ 'mac=00:16:3E:6C:54:FE, bridge=xenbr0' ] And to set up a dhcp server that assigns static ip address to each vm (according to the mac address, which does't change). Maxim Rozin BenefIT-technologies Mobile: +972-54-5409444 Tel: +972-3-9238888 ________________________________ From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mito Sent: Thursday, June 15, 2006 3:32 AM To: xen-users@lists.xensource.com Subject: [Xen-users] FW: [Fedora-xen] Multiple Xens with static IP addresses Forwarded to the list as was apparently intended by the sender (he had replied to just me) ________________________________ From: Chris Vaughan [mailto:supercomputer@gmail.com] Sent: Wednesday, June 14, 2006 5:24 PM To: Mito Subject: Re: [Fedora-xen] Multiple Xens with static IP addresses I found some more info it appears you can use ipaddr to specify the ip but CONFIG_IP_PNP needs to be compiled into the kernel. http://lists.xensource.com/archives/html/xen-users/2005-06/msg00131.html Is this something that could be added to future releases of the xen kernel rpm? Thanks On 6/13/06, Mito wrote: I've ran into this problem a few times, and was able to fix it once (but regrettably I don't remember the details, maybe someone else here who knows more could fill in the blanks better). Anyways, in my case, I was able to assign IP addresses via the xen config file for a while, and then it stopped working at some point. I found out that if you remove all knowledge that the domU has about an IP address, then it will take the one from the xen config. Something like that at least… as I said, I've ran into this problem multiple times, but only been able to fix it once. ________________________________ From: fedora-xen-bounces@redhat.com [mailto: fedora-xen-bounces@redhat.com <mailto:fedora-xen-bounces@redhat.com> ] On Behalf Of Chris Vaughan Sent: Tuesday, June 13, 2006 6:08 PM To: Fedora-xen@redhat.com Subject: [Fedora-xen] Multiple Xens with static IP addresses I am wanting to boot multiple xen images but I was wondering if there is an easier way to set it's ip address than mounting the image and editing /etc/sysconfig/network-scripts/ifcfg-eth0 every time. I've tried putting this in my xen.cfg file vif=['192.168.0.3'] and it doesn't appear to do anything. Is this the correct way to boot a xen image and assign it a static ip address? Thanks, -- ------------------------------ Christopher Vaughan -- ------------------------------ Christopher Vaughan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users