Hi, Could you please let me know how configure a static IP address for the guest domains, in their config file, along with the NETMASK and GATEWAY parameters. In case if it is not possible to set in the config file, can we set in the ifcfg-eth0 file inside the guest? I am not sure of the syntax for that as well. I am facing this error when I try configuring the ifcfg-eth0 inside the guest domain. "FATAL: Could not load /lib/modules/2.6.18.8-xenU/modules.dep: No such file or directory" There are no such files in the /lib/modules folder in the guest. Whereas the same file exists in my dom0. How do i go about resolving this? Please guide me. Thank you Warm Regards Ananth _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-May-15 13:21 UTC
Re: [Xen-users] How to specify static IP in guest config file
On Fri, May 15, 2009 at 8:05 PM, Ananth <cbananth@gmail.com> wrote:> can we > set in the ifcfg-eth0 file inside the guest?That would be the prerefered method.> I am not sure of the syntax for > that as well.Do it like on any other linux server that you have (editing manually, run system-config-network, etc.)> I am facing this error when I try configuring the ifcfg-eth0 inside the > guest domain. > "FATAL: Could not load /lib/modules/2.6.18.8-xenU/modules.dep: No such file > or directory" > > There are no such files in the /lib/modules folder in the guest. Whereas the > same file exists in my dom0. How do i go about resolving this? > Please guide me.How did you install domU? When using virt-install, domU''s kernel and initrd will be inside domU''s filesystem (along with the corresponding /lib/modules) and it''s booted with pygrub. If you''re using a template, then you should ask the creator how to use that template properly. This might include compiling your own kernel, or copying some files from dom0 to domU. If it''s jailtime.org images, I wrote some steps some time ago to convert it to be able to boot with pygrub : http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ananth
2009-May-15 13:45 UTC
Re: [Xen-users] How to specify static IP in guest config file
Thank you so much for the instant reply. I have installed the guests using jailtime.org images only. I will take a look at the link you have sent. Do you have any pointers to install paravirtualized domU using our own kernel? or say using an Ubuntu or openSuse DVD? Also, how can I tarnsfer files between domains? I am able to ping dom1 and dom2 from each other and dom0 as well. But when I do ftp to dom1 from dom0, connection is refused. Should I mount a network file system? I have not done this even on linux systems. Please guide me. Thank you Warm Regards Ananth On Fri, May 15, 2009 at 6:51 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Fri, May 15, 2009 at 8:05 PM, Ananth <cbananth@gmail.com> wrote: > > can we > > set in the ifcfg-eth0 file inside the guest? > > That would be the prerefered method. > > > I am not sure of the syntax for > > that as well. > > Do it like on any other linux server that you have (editing manually, > run system-config-network, etc.) > > > I am facing this error when I try configuring the ifcfg-eth0 inside the > > guest domain. > > "FATAL: Could not load /lib/modules/2.6.18.8-xenU/modules.dep: No such > file > > or directory" > > > > There are no such files in the /lib/modules folder in the guest. Whereas > the > > same file exists in my dom0. How do i go about resolving this? > > Please guide me. > > How did you install domU? > > When using virt-install, domU''s kernel and initrd will be inside > domU''s filesystem (along with the corresponding /lib/modules) and it''s > booted with pygrub. > > If you''re using a template, then you should ask the creator how to use > that template properly. This might include compiling your own kernel, > or copying some files from dom0 to domU. > > If it''s jailtime.org images, I wrote some steps some time ago to > convert it to be able to boot with pygrub : > http://lists.xensource.com/archives/html/xen-users/2009-03/msg00372.html > > Regards, > > Fajar > > _______________________________________________ > 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
Fajar A. Nugraha
2009-May-15 13:57 UTC
Re: [Xen-users] How to specify static IP in guest config file
On Fri, May 15, 2009 at 8:45 PM, Ananth <cbananth@gmail.com> wrote:> Do > you have any pointers to install paravirtualized domU using our own kernel? > or say using an Ubuntu or openSuse DVD?If you use the distro''s tools, I believe they''d create pygrub-bootable domU. On RHEL it''s virt-install/virt-manager. Suse and Ubuntu might have their own tool (I''m not familiar with Xen on those platforms, sorry). If you want to do it manually you need certain knowledge to do it properly. The link I''ve sent in one of them. Here''s another link for Centos : http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU> > Also, how can I tarnsfer files between domains? I am able to ping dom1 and > dom2 from each other and dom0 as well. But when I do ftp to dom1 from dom0, > connection is refused. Should I mount a network file system? I have not done > this even on linux systems.In general, you should do what you usually do on normal linux system. Ask your local sysadmin for help if you need to. You''ll probably be able to use scp/sftp though, as ssh is usually available by default. You could also mount domU''s filesystem on dom0 (when domU is stopped). Again, ask your local sysadmin for help if you need to. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users