Hi, im using a fedora core 8 domU and fedora core 8 as my dom0 on xen3.1.0-13, my config file reads: kernel = "/boot/vmlinuz-2.6.21-2950.fc8xen" ramdisk="/boot/initrd-2.6.21-2950.fc8xen-no-scsi.img" memory = 428 name = "fedora1.fc8" vif = [ ''mac=00:16:3e:00:00:03,ip=192.168.2.105'' ] dhcp = "off" netmask = "255.255.255.0" gateway = "192.168.2.102" disk = [''file:/xen/fedora1/fedora.fc8.img,sda1,w'', ''file:/xen/fedora1/fedora.swap,sda2,w''] root = "/dev/sda1 ro" vfb = [ ''type=vnc ,vncdisplay=12'' ] but the domU does not get the ip, it gets a xen- assigned dhcp ip-address. ive tried : extra = "eth0 =192.168.2.105,255.255.255.0" in the config file and that does not seem to improve the situation either.Help! -- Madhuri Venkatesh Fourth Year Undergraduate Student,Computer Science and Engineering,RVCE,Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Madhuri Venkatesh
2009-Feb-07 14:42 UTC
Re: [Xen-users] unable to assign ip from config file
hi, The situation has it that i need to boot-up around anywhere between 1-10 images, and i need to know the ip address of each one of them to communicate with them later, so i thought my best bet would be to assign the ip in the config file(passing a parameter to the config script)..,my other option is to use dhcp and later determine the ip which does not seem easy going by the threads in this forum...if there is an easy way to do this id be happy with the xen-assigned dhcp address.Please tell me if there is a good way to do this, Thanks On Sat, Feb 7, 2009 at 12:58 PM, Devdutt Patnaik <xendevid@gmail.com> wrote:> The way I would try it is to simply set dhcp="off" here and setup the eth0 > config in ifcfg-eth0 in /etc/... > > -Devdutt. > > On Wed, Feb 4, 2009 at 11:26 AM, Madhuri Venkatesh <madhureev@gmail.com>wrote: > >> >> Hi, >> im using a fedora core 8 domU and fedora core 8 as my dom0 on xen3.1.0-13, >> >> my config file reads: >> kernel = "/boot/vmlinuz-2.6.21-2950.fc8xen" >> ramdisk="/boot/initrd-2.6.21-2950.fc8xen-no-scsi.img" >> memory = 428 >> name = "fedora1.fc8" >> vif = [ ''mac=00:16:3e:00:00:03,ip=192.168.2.105'' ] >> dhcp = "off" >> netmask = "255.255.255.0" >> gateway = "192.168.2.102" >> disk = [''file:/xen/fedora1/fedora.fc8.img,sda1,w'', >> ''file:/xen/fedora1/fedora.swap,sda2,w''] >> root = "/dev/sda1 ro" >> vfb = [ ''type=vnc ,vncdisplay=12'' ] >> >> but the domU does not get the ip, it gets a xen- assigned dhcp ip-address. >> ive tried : >> extra = "eth0 =192.168.2.105,255.255.255.0" >> in the config file and that does not seem to improve the situation >> either.Help! >> >> -- >> Madhuri Venkatesh >> Fourth Year Undergraduate Student,Computer Science and >> Engineering,RVCE,Bangalore. >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > >-- Madhuri Venkatesh Fourth Year Undergraduate Student,Computer Science and Engineering,RVCE,Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Madhuri Venkatesh
2009-Feb-09 12:21 UTC
Re: [Xen-users] unable to assign ip from config file
hey, Thanks for the help..,initially what i wanted was to assign ips using the config file ...something like: name = "fedora%d" % (vmid ) vif = [ ''mac=00:16:3e:00:00:%d ,ip=192.168.2.%d'' ] % (vmid,vmid) but since that isnt working out ,il try assigning a static ip.It would be neat if there was a way to make it work using a parameter like the above line though,since i could mount many images..without having to configure each one,Thanks. On Sun, Feb 8, 2009 at 7:18 AM, Devdutt Patnaik <xendevid@gmail.com> wrote:> I have my DomUs running in bridged mode and have assigned them static IPs > by providing network settings in the ifcfg-eth0 files inside each DomU. You > could do the same by running all the guest domains in NAT mode too. > > On Sat, Feb 7, 2009 at 9:42 AM, Madhuri Venkatesh <madhureev@gmail.com>wrote: > >> hi, >> The situation has it that i need to boot-up around anywhere between 1-10 >> images, and i need to know the ip address of each one of them to communicate >> with them later, so i thought my best bet would be to assign the ip in the >> config file(passing a parameter to the config script)..,my other option is >> to use dhcp and later determine the ip which does not seem easy going by the >> threads in this forum...if there is an easy way to do this id be happy with >> the xen-assigned dhcp address.Please tell me if there is a good way to do >> this, >> Thanks >> >> >> On Sat, Feb 7, 2009 at 12:58 PM, Devdutt Patnaik <xendevid@gmail.com>wrote: >> >>> The way I would try it is to simply set dhcp="off" here and setup the >>> eth0 config in ifcfg-eth0 in /etc/... >>> >>> -Devdutt. >>> >>> On Wed, Feb 4, 2009 at 11:26 AM, Madhuri Venkatesh < >>> madhureev@gmail.com> wrote: >>> >>>> >>>> Hi, >>>> im using a fedora core 8 domU and fedora core 8 as my dom0 on >>>> xen3.1.0-13, >>>> >>>> my config file reads: >>>> kernel = "/boot/vmlinuz-2.6.21-2950.fc8xen" >>>> ramdisk="/boot/initrd-2.6.21-2950.fc8xen-no-scsi.img" >>>> memory = 428 >>>> name = "fedora1.fc8" >>>> vif = [ ''mac=00:16:3e:00:00:03,ip=192.168.2.105'' ] >>>> dhcp = "off" >>>> netmask = "255.255.255.0" >>>> gateway = "192.168.2.102" >>>> disk = [''file:/xen/fedora1/fedora.fc8.img,sda1,w'', >>>> ''file:/xen/fedora1/fedora.swap,sda2,w''] >>>> root = "/dev/sda1 ro" >>>> vfb = [ ''type=vnc ,vncdisplay=12'' ] >>>> >>>> but the domU does not get the ip, it gets a xen- assigned dhcp >>>> ip-address. >>>> ive tried : >>>> extra = "eth0 =192.168.2.105,255.255.255.0" >>>> in the config file and that does not seem to improve the situation >>>> either.Help! >>>> >>>> -- >>>> Madhuri Venkatesh >>>> Fourth Year Undergraduate Student,Computer Science and >>>> Engineering,RVCE,Bangalore. >>>> >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com >>>> http://lists.xensource.com/xen-users >>>> >>> >>> >> >> >> -- >> Madhuri Venkatesh >> Fourth Year Undergraduate Student,Computer Science and >> Engineering,RVCE,Bangalore. >> > >-- Madhuri Venkatesh Fourth Year Undergraduate Student,Computer Science and Engineering,RVCE,Bangalore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ricardo J. Barberis
2009-Feb-10 15:01 UTC
Re: [Xen-users] unable to assign ip from config file
El Lunes 09 Febrero 2009, Madhuri Venkatesh escribió:> hey, > Thanks for the help..,initially what i wanted was to assign ips using the > config file ...something like: > name = "fedora%d" % (vmid ) > vif = [ ''mac=00:16:3e:00:00:%d ,ip=192.168.2.%d'' ] % (vmid,vmid)Xen does not provide dhcp services, that''s why it''s not working for you. Those settiings are suppoosed to be related to ''kernel autoconfiguration'', which has to be enabled in the kernel to work. Here''s some info (though not much), hope it helps you: http://cateee.net/lkddb/web-lkddb/IP_PNP.html http://osdir.com/ml/linux.redhat.fedora.xen/2008-06/msg00044.html> but since that isnt working out ,il try assigning a static ip.Thats what everybody does, it seems :)> It would be neat if there was a way to make it work using a parameter like > the above line though,since i could mount many images..without having to > configure each one,Thanks.Certainly, let us know if you make it work! Cheers, -- Ricardo J. Barberis Senior SysAdmin - I+D Dattatec.com :: Soluciones de Web Hosting Su Hosting hecho Simple..! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users