Hi, I''m trying to assign a dynamic hostname to a xen instance as follows: Cfg file === = kernel = "/root/vmlinuz-2.6.18-128.1.14.el5xen" ramdisk = "/root/initrd-2.6.18-128.1.14.el5xen.img" memory = 512 hostname = "uniquehostname" #hostname = " uniquehostname.xen.org" name = "my-vm-name" . . . . . In both the cases, the instance is unable to get the correct hostname.. Kindly advice on the same. - regards Pallab _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Aug-03 07:15 UTC
Re: [Xen-users] assign a hostname to a xen instance
On Mon, Aug 3, 2009 at 1:11 PM, Pallab Chakrabarty<pchakrabarty@spikesource.com> wrote:> > I’m trying to assign a dynamic hostname to a xen instance as follows:> Cfg file > > === = > hostname = "uniquehostname" > #hostname = " uniquehostname.xen.org"> In both the cases, the instance is unable to get the correct hostname..>From "xm create --help_config" :hostname=NAME Set the kernel IP hostname. interface=INTF Set the kernel IP interface name. dhcp=off|dhcp Set the kernel dhcp option. On most LInux distros, kernel hostname and IP address is ignored, making it somewhat useless. You need to use your normal distro method to set hostname on domU (/etc/sysconfig/network on RHEL) -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pallab Chakrabarty
2009-Aug-03 10:04 UTC
RE: [Xen-users] assign a hostname to a xen instance
Thanks Fajar.. I would also like to know if windows VMs has this problem too ? - regards Pallab -----Original Message----- From: Fajar A. Nugraha [mailto:fajar@fajar.net] Sent: Monday, August 03, 2009 12:45 PM To: Pallab Chakrabarty Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] assign a hostname to a xen instance On Mon, Aug 3, 2009 at 1:11 PM, Pallab Chakrabarty<pchakrabarty@spikesource.com> wrote:> > Im trying to assign a dynamic hostname to a xen instance as follows:> Cfg file > > === = > hostname = "uniquehostname" > #hostname = " uniquehostname.xen.org"> In both the cases, the instance is unable to get the correct hostname..>From "xm create --help_config" :hostname=NAME Set the kernel IP hostname. interface=INTF Set the kernel IP interface name. dhcp=off|dhcp Set the kernel dhcp option. On most LInux distros, kernel hostname and IP address is ignored, making it somewhat useless. You need to use your normal distro method to set hostname on domU (/etc/sysconfig/network on RHEL) -- Fajar No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.42/2278 - Release Date: 08/02/09 17:56:00 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Aug-04 08:14 UTC
Re: [Xen-users] assign a hostname to a xen instance
On Mon, Aug 3, 2009 at 5:04 PM, Pallab Chakrabarty<pchakrabarty@spikesource.com> wrote:> > Thanks Fajar.. > > I would also like to know if windows VMs has this problem too ?Sort of. Windows can only run as HVM guest. For HVM guests those settings are ignored completely. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users