Meghanand Acharekar
2009-Jan-28 06:45 UTC
[Xen-users] Not able to assing static IP to domU
Hi, I am quite new to XEN :) , I have installed XEN on RHEL5.3 server (dom0 is RHEL5) having ip address say 123.234.1.11 After I installed domU on which is also RHEL5 server, assigned ip address 123.243.2.1.12 After rebooting domU the static address is automatically wiped out, found it was searching for DHCP, also the n/w configuration file i.e. ifcfg-eth0 PROTOCOL is set to dhcp, The static address works fine when manually assigned but after every reboot it automatically replaces with DHCP. No able to figure out the reason behind this -- Thanks & Regards, Meghanand N. Acharekar " A proud Linux User " Reg Linux User #397975 ------------------------------------------ I was born free! No Gates and Windows can restrict my Freedom !!! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi guys! Is possible to enable quota on the domU guest? I''m using Ubuntu 8.04 (64) as a host and have created a guest with the same Ubuntu 8.04 (64) on. I have installed Quota by "# apt-get install quota". I have entered the following into the domU "/etc/fstab": "/dev/hda1 / xfs relatime,errors=remount-ro,usrquota,grpquota 1 2" (Then reboot) Running the "quotacheck -avugm" command, gives me this error: "Cannot find filesystem to check or filesystem not mounted with quota option." Or isn''t Quota supported om domU''s...? /Peter _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ferreira, N. L. (Nuno)
2009-Jan-28 11:28 UTC
Re: [Xen-users] Not able to assing static IP to domU
Hi Meghanand How did you assigned the domU IP address? First, you need to be sure that the IP address is available and DNS registered. For this, talk with the network administrator. Second, after having a domU working, you must edit the following files: 1 - /etc/sysconfig/network 2 - /etc/sysconfig/network-scripts/ifcfg-eth0 Here''s an example: more /etc/sysconfig/network NETWORKING=yes HOSTNAME=hostname.your.domain GATEWAY=xxx.xxx.xxx.xxx more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static BROADCAST=xxx.xxx.xxx.xxx #HWADDRIPADDR=123.243.2.1.12 NETMASK=255.255.255.0 ONBOOT=yes Use the gateway and netmask as in your dom0. Hopefully, during domU installation, these values are taken from the dom0. Important, change the BOOTPROTO var to static (not dhcp). Also, take care of the Mac address (HWADDR var). If you want to use it, do not forget that it must match the one in your xen config file. Reboot machine. And that''s it. Nuno Meghanand Acharekar wrote:> Hi, > > I am quite new to XEN :) , > I have installed XEN on RHEL5.3 server (dom0 is RHEL5) having ip > address say 123.234.1.11 > After I installed domU on which is also RHEL5 server, assigned ip > address 123.243.2.1.12 > After rebooting domU the static address is automatically wiped out, > found it was searching for DHCP, also the n/w configuration file > i.e. ifcfg-eth0 PROTOCOL is set to dhcp, > The static address works fine when manually assigned but after every > reboot it automatically replaces with DHCP. > > No able to figure out the reason behind this > > > -- > Thanks & Regards, > > Meghanand N. Acharekar > " A proud Linux User " > Reg Linux User #397975 > ------------------------------------------ > I was born free! No Gates and Windows can restrict my Freedom !!! > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
El Miércoles 28 Enero 2009, Peter Privat escribió:> Hi guys!Hi!> Is possible to enable quota on the domU guest?Yes, it is. Quota is a filesystem feature, not a xen feature.> I''m using Ubuntu 8.04 (64) as a host and have created a guest with the > same Ubuntu 8.04 (64) on. > > I have installed Quota by "# apt-get install quota". > I have entered the following into the domU "/etc/fstab": > > "/dev/hda1 / xfs > relatime,errors=remount-ro,usrquota,grpquota 1 2" > > (Then reboot) > Running the "quotacheck -avugm" command, gives me this error: > > "Cannot find filesystem to check or filesystem not mounted with quota > option."You seem to be using xfs, so ''man 8 xfs_quota'' will give you the bits you need, like this one: QUOTA ADMINISTRATION The XFS quota system differs to that of other filesystems in a number of ways. Most importantly, XFS considers quota information as filesystem metadata and uses journaling to provide a higher level guarantee of consistency. As such, it is administered differently, in particular: 1. The quotacheck command has no effect on XFS filesystems. The first time quota accounting is turned on (at mount time), XFS does an automatic quotacheck internally; afterwards, the quota system will always be completely consistent until quotas are manually turned off.> Or isn''t Quota supported om domU''s...? > > /PeterCheers, -- 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
Meghanand Acharekar wrote:> Hi, > > I am quite new to XEN :) , > I have installed XEN on RHEL5.3 server (dom0 is RHEL5) having ip address > say 123.234.1.11 > After I installed domU on which is also RHEL5 server, assigned ip > address 123.243.2.1.12 > After rebooting domU the static address is automatically wiped out, > found it was searching for DHCP, also the n/w configuration file > i.e. ifcfg-eth0 PROTOCOL is set to dhcp, > The static address works fine when manually assigned but after every > reboot it automatically replaces with DHCP. > > No able to figure out the reason behind this >Do you have the service NetworkManager on ? If so, turn it off, and set the static ip address into your ifcfg-eth0 again. Vu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, What I do is pass the mac address in the config file after I boot up the domU and do an ifconfig ethX. Then I make sure the HWADDR= line in the /etc/sysconfig/network-scripts/ifcfg-ethX is what ifconfig tells me for that interface. For the domU config file it should be : vif= [‘bridge=bridgeInterface,mac=xx:xx:xx:xx:xx:xx’] for the networking interface line. The reason behind this is that (I think) Xen assigns random MAC addresses when the domU is started.. but others will have to verify that. Best, Tait From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Meghanand Acharekar Sent: Wednesday, January 28, 2009 1:46 AM To: xen-users@lists.xensource.com Subject: [Xen-users] Not able to assing static IP to domU Hi, I am quite new to XEN :) , I have installed XEN on RHEL5.3 server (dom0 is RHEL5) having ip address say 123.234.1.11 After I installed domU on which is also RHEL5 server, assigned ip address 123.243.2.1.12 After rebooting domU the static address is automatically wiped out, found it was searching for DHCP, also the n/w configuration file i.e. ifcfg-eth0 PROTOCOL is set to dhcp, The static address works fine when manually assigned but after every reboot it automatically replaces with DHCP. No able to figure out the reason behind this -- Thanks & Regards, Meghanand N. Acharekar " A proud Linux User " Reg Linux User #397975 ------------------------------------------ I was born free! No Gates and Windows can restrict my Freedom !!! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Meghanand Acharekar
2009-Jan-29 05:39 UTC
Re: [Xen-users] Not able to assing static IP to domU
Hello Tait, 2009/1/28 Tait Clarridge <Tait.Clarridge@lavalife.com>> Hello, > > What I do is pass the mac address in the config file after I boot up the > domU and do an ifconfig ethX.I need to check this out, currently I commented the HWADDR= line.> Then I make sure the HWADDR= line in the > /etc/sysconfig/network-scripts/ifcfg-ethX is what ifconfig tells me for that > interface. > > For the domU config file it should be : > > vif= [''bridge=bridgeInterface,mac=xx:xx:xx:xx:xx:xx''] > > for the networking interface line. > > The reason behind this is that (I think) Xen assigns random MAC addresses > when the domU is started.. but others will have to verify that. >Let me try ...> > Best, > Tait > > > > > From: xen-users-bounces@lists.xensource.com [mailto: > xen-users-bounces@lists.xensource.com] On Behalf Of Meghanand Acharekar > Sent: Wednesday, January 28, 2009 1:46 AM > To: xen-users@lists.xensource.com > Subject: [Xen-users] Not able to assing static IP to domU > > Hi, > > I am quite new to XEN :) , > I have installed XEN on RHEL5.3 server (dom0 is RHEL5) having ip address > say 123.234.1.11 > After I installed domU on which is also RHEL5 server, assigned ip address > 123.243.2.1.12 > After rebooting domU the static address is automatically wiped out, found > it was searching for DHCP, also the n/w configuration file > i.e. ifcfg-eth0 PROTOCOL is set to dhcp, > The static address works fine when manually assigned but after every reboot > it automatically replaces with DHCP. > > No able to figure out the reason behind this > > > -- > Thanks & Regards, > > Meghanand N. Acharekar > " A proud Linux User " > Reg Linux User #397975 > ------------------------------------------ > I was born free! No Gates and Windows can restrict my Freedom !!! > > >-- Regards, मेघानंद नं. आचरेकर Meghanand N. Acharekar " A proud Linux User " Reg Linux User #397975 ------------------------------------------ I was born free! No Gates and Windows can restrict my Freedom !!! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users