Hi all, Initially i tried to boot a xen virtual machine with network configuration vif = {bridge = xenbr0].. When the vm is running, some IP s ramdomly assigned to it.. Supposing if i want to set a static ip for the vm (if i give vif '' [ip 10.1.3.4, ]'' ), will this do?? Or should i have make any other modifications ?? Thank u all.. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Thanks for the reply.. I want to set a static ip for the vm..I wan to install a software and that i have to base it on this ip.. If my ip keeps on changing, it would be difficult to run my applications. I am a newbie to xen, so can u please tel me how to set my ip statically for my vm?? I tried editing the /etc/hosts file of the vm..but there was no route for this ip (as some other ip gt configured for the vm).. supposing if i want my vm''s ip to be some 172.16.10.59, how do i do that?? On Tue, Feb 15, 2011 at 6:27 PM, Bastian Mäuser <mephisto@mephis.to> wrote:> Hi there, > > if you want to set the IP from the "outside" you could run a dhcp somewhere > on the bridge (in dom0) / or on the network, that has a static assignment > for the mac= value.. > > otherweise configure ip''s statically.. > > so long > > Am 15.02.2011 13:19, schrieb Yamini L: > > Hi all, > > Initially i tried to boot a xen virtual machine with network configuration > vif = {bridge = xenbr0].. > > When the vm is running, some IP s ramdomly assigned to it.. > > Supposing if i want to set a static ip for the vm (if i give vif '' [ip > 10.1.3.4, ]'' ), will this do?? > > Or should i have make any other modifications ?? > > Thank u all.. > > > > _______________________________________________ > Xen-users mailing listXen-users@lists.xensource.comhttp://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 15, 2011 at 12:19 PM, Yamini L <lpyamini@gmail.com> wrote:> Hi all, > > Initially i tried to boot a xen virtual machine with network configuration > vif = {bridge = xenbr0].. > > When the vm is running, some IP s ramdomly assigned to it.. > > Supposing if i want to set a static ip for the vm (if i give vif '' [ip > 10.1.3.4, ]'' ), will this do?? > > Or should i have make any other modifications ?? >See here: http://xen.1045712.n5.nabble.com/domU-static-IP-td2607079.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
---------- Forwarded message ---------- From: Yamini L <lpyamini@gmail.com> Date: Tue, Feb 15, 2011 at 7:38 PM Subject: Re: [Xen-users] clarification regarding xen networking To: Todd Deshane <todd.deshane@xen.org> Hi Thanks for the quick response.. I am using centos 5.5 xen kernel and could find that my IP_PNP option is not.. Instead of recompiling the kernel , how do i cahnge that script file (can u please tell the location of the script file shown in the link??) On Tue, Feb 15, 2011 at 7:02 PM, Todd Deshane <todd.deshane@xen.org> wrote:> On Tue, Feb 15, 2011 at 12:19 PM, Yamini L <lpyamini@gmail.com> wrote: > > Hi all, > > > > Initially i tried to boot a xen virtual machine with network > configuration > > vif = {bridge = xenbr0].. > > > > When the vm is running, some IP s ramdomly assigned to it.. > > > > Supposing if i want to set a static ip for the vm (if i give vif '' [ip > > 10.1.3.4, ]'' ), will this do?? > > > > Or should i have make any other modifications ?? > > > > See here: > http://xen.1045712.n5.nabble.com/domU-static-IP-td2607079.html >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 15, 2011 at 2:08 PM, Yamini L <lpyamini@gmail.com> wrote:> > > ---------- Forwarded message ---------- > From: Yamini L <lpyamini@gmail.com> > Date: Tue, Feb 15, 2011 at 7:38 PM > Subject: Re: [Xen-users] clarification regarding xen networking > To: Todd Deshane <todd.deshane@xen.org> > > > Hi > Thanks for the quick response.. > I am using centos 5.5 xen kernel and could find that my IP_PNP option is > not.. > > Instead of recompiling the kernel , how do i cahnge that script file (can u > please tell the location of the script file shown in the link??) >Are you referring to this script: /etc/sysconfig/network-scripts/ifcfg-eth0> > On Tue, Feb 15, 2011 at 7:02 PM, Todd Deshane <todd.deshane@xen.org> wrote: >> >> On Tue, Feb 15, 2011 at 12:19 PM, Yamini L <lpyamini@gmail.com> wrote: >> > Hi all, >> > >> > Initially i tried to boot a xen virtual machine with network >> > configuration >> > vif = {bridge = xenbr0].. >> > >> > When the vm is running, some IP s ramdomly assigned to it.. >> > >> > Supposing if i want to set a static ip for the vm (if i give vif '' [ip >> > 10.1.3.4, ]'' ), will this do?? >> > >> > Or should i have make any other modifications ?? >> > >> >> See here: >> http://xen.1045712.n5.nabble.com/domU-static-IP-td2607079.html > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yeah, the xen virtual machine''s /etc/sysconfig/network-scripts/ifcfg-eth0 (has these contents) DEVICE=eth0 BOOTPRO=dhcp ONBOOT=yes HWADDR=mac address So, i should modify the script inside xen vm(dom U) or in the host OS ?? Also, can i set my ip here (statically) without including the above code in the script?? i mean rather than specifying inthe xen configuration file, can i set my static ip directly here ?? On Tue, Feb 15, 2011 at 7:53 PM, Todd Deshane <todd.deshane@xen.org> wrote:> On Tue, Feb 15, 2011 at 2:08 PM, Yamini L <lpyamini@gmail.com> wrote: > > > > > > ---------- Forwarded message ---------- > > From: Yamini L <lpyamini@gmail.com> > > Date: Tue, Feb 15, 2011 at 7:38 PM > > Subject: Re: [Xen-users] clarification regarding xen networking > > To: Todd Deshane <todd.deshane@xen.org> > > > > > > Hi > > Thanks for the quick response.. > > I am using centos 5.5 xen kernel and could find that my IP_PNP option is > > not.. > > > > Instead of recompiling the kernel , how do i cahnge that script file (can > u > > please tell the location of the script file shown in the link??) > > > > Are you referring to this script: > /etc/sysconfig/network-scripts/ifcfg-eth0 > > > > > On Tue, Feb 15, 2011 at 7:02 PM, Todd Deshane <todd.deshane@xen.org> > wrote: > >> > >> On Tue, Feb 15, 2011 at 12:19 PM, Yamini L <lpyamini@gmail.com> wrote: > >> > Hi all, > >> > > >> > Initially i tried to boot a xen virtual machine with network > >> > configuration > >> > vif = {bridge = xenbr0].. > >> > > >> > When the vm is running, some IP s ramdomly assigned to it.. > >> > > >> > Supposing if i want to set a static ip for the vm (if i give vif '' [ip > > >> > 10.1.3.4, ]'' ), will this do?? > >> > > >> > Or should i have make any other modifications ?? > >> > > >> > >> See here: > >> http://xen.1045712.n5.nabble.com/domU-static-IP-td2607079.html > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 15, 2011 at 2:44 PM, Yamini L <lpyamini@gmail.com> wrote:> Yeah, the xen virtual machine''s /etc/sysconfig/network-scripts/ifcfg-eth0 > (has these contents) > > > DEVICE=eth0 > BOOTPRO=dhcp > ONBOOT=yes > HWADDR=mac address > > > So, i should modify the script inside xen vm(dom U) or in the host OS ?? >You could that is one approach.> Also, can i set my ip here (statically) without including the above code in > the script?? i mean rather than specifying inthe xen configuration file, > can i set my static ip directly here ?? >Yes. Search google for centos static ip. It is very common.> On Tue, Feb 15, 2011 at 7:53 PM, Todd Deshane <todd.deshane@xen.org> wrote: >> >> On Tue, Feb 15, 2011 at 2:08 PM, Yamini L <lpyamini@gmail.com> wrote: >> > >> > >> > ---------- Forwarded message ---------- >> > From: Yamini L <lpyamini@gmail.com> >> > Date: Tue, Feb 15, 2011 at 7:38 PM >> > Subject: Re: [Xen-users] clarification regarding xen networking >> > To: Todd Deshane <todd.deshane@xen.org> >> > >> > >> > Hi >> > Thanks for the quick response.. >> > I am using centos 5.5 xen kernel and could find that my IP_PNP option is >> > not.. >> > >> > Instead of recompiling the kernel , how do i cahnge that script file >> > (can u >> > please tell the location of the script file shown in the link??) >> > >> >> Are you referring to this script: >> /etc/sysconfig/network-scripts/ifcfg-eth0 >> >> > >> > On Tue, Feb 15, 2011 at 7:02 PM, Todd Deshane <todd.deshane@xen.org> >> > wrote: >> >> >> >> On Tue, Feb 15, 2011 at 12:19 PM, Yamini L <lpyamini@gmail.com> wrote: >> >> > Hi all, >> >> > >> >> > Initially i tried to boot a xen virtual machine with network >> >> > configuration >> >> > vif = {bridge = xenbr0].. >> >> > >> >> > When the vm is running, some IP s ramdomly assigned to it.. >> >> > >> >> > Supposing if i want to set a static ip for the vm (if i give vif '' >> >> > [ip >> >> > 10.1.3.4, ]'' ), will this do?? >> >> > >> >> > Or should i have make any other modifications ?? >> >> > >> >> >> >> See here: >> >> http://xen.1045712.n5.nabble.com/domU-static-IP-td2607079.html >> > >> > >> > >> > _______________________________________________ >> > Xen-users mailing list >> > Xen-users@lists.xensource.com >> > http://lists.xensource.com/xen-users >> > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
---------- Forwarded message ---------- From: Yamini L <lpyamini@gmail.com> Date: Tue, Feb 15, 2011 at 8:39 PM Subject: Re: [Xen-users] clarification regarding xen networking To: Todd Deshane <todd.deshane@xen.org> Modification has to be done in the Dom U and not host OS, right?? Thanks for the response.. On Tue, Feb 15, 2011 at 8:21 PM, Todd Deshane <todd.deshane@xen.org> wrote:> On Tue, Feb 15, 2011 at 2:44 PM, Yamini L <lpyamini@gmail.com> wrote: > > Yeah, the xen virtual machine''s /etc/sysconfig/network-scripts/ifcfg-eth0 > > (has these contents) > > > > > > DEVICE=eth0 > > BOOTPRO=dhcp > > ONBOOT=yes > > HWADDR=mac address > > > > > > So, i should modify the script inside xen vm(dom U) or in the host OS ?? > > > > You could that is one approach. > > > Also, can i set my ip here (statically) without including the above code > in > > the script?? i mean rather than specifying inthe xen configuration file, > > can i set my static ip directly here ?? > > > > Yes. Search google for centos static ip. It is very common. > > > On Tue, Feb 15, 2011 at 7:53 PM, Todd Deshane <todd.deshane@xen.org> > wrote: > >> > >> On Tue, Feb 15, 2011 at 2:08 PM, Yamini L <lpyamini@gmail.com> wrote: > >> > > >> > > >> > ---------- Forwarded message ---------- > >> > From: Yamini L <lpyamini@gmail.com> > >> > Date: Tue, Feb 15, 2011 at 7:38 PM > >> > Subject: Re: [Xen-users] clarification regarding xen networking > >> > To: Todd Deshane <todd.deshane@xen.org> > >> > > >> > > >> > Hi > >> > Thanks for the quick response.. > >> > I am using centos 5.5 xen kernel and could find that my IP_PNP option > is > >> > not.. > >> > > >> > Instead of recompiling the kernel , how do i cahnge that script file > >> > (can u > >> > please tell the location of the script file shown in the link??) > >> > > >> > >> Are you referring to this script: > >> /etc/sysconfig/network-scripts/ifcfg-eth0 > >> > >> > > >> > On Tue, Feb 15, 2011 at 7:02 PM, Todd Deshane <todd.deshane@xen.org> > >> > wrote: > >> >> > >> >> On Tue, Feb 15, 2011 at 12:19 PM, Yamini L <lpyamini@gmail.com> > wrote: > >> >> > Hi all, > >> >> > > >> >> > Initially i tried to boot a xen virtual machine with network > >> >> > configuration > >> >> > vif = {bridge = xenbr0].. > >> >> > > >> >> > When the vm is running, some IP s ramdomly assigned to it.. > >> >> > > >> >> > Supposing if i want to set a static ip for the vm (if i give vif '' > >> >> > [ip > >> >> > 10.1.3.4, ]'' ), will this do?? > >> >> > > >> >> > Or should i have make any other modifications ?? > >> >> > > >> >> > >> >> See here: > >> >> http://xen.1045712.n5.nabble.com/domU-static-IP-td2607079.html > >> > > >> > > >> > > >> > _______________________________________________ > >> > Xen-users mailing list > >> > Xen-users@lists.xensource.com > >> > http://lists.xensource.com/xen-users > >> > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Feb 15, 2011 at 3:10 PM, Yamini L <lpyamini@gmail.com> wrote:> > > ---------- Forwarded message ---------- > From: Yamini L <lpyamini@gmail.com> > Date: Tue, Feb 15, 2011 at 8:39 PM > Subject: Re: [Xen-users] clarification regarding xen networking > To: Todd Deshane <todd.deshane@xen.org> > > > Modification has to be done in the Dom U and not host OS, right?? >Yes. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users