LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-08-2010, 12:23 PM   #1
dagrundy
LQ Newbie
 
Registered: Jun 2008
Location: Victoria,BC
Distribution: Ubuntu 8.04
Posts: 6

Rep: Reputation: 0
setting hostname in xen config .xml file


Hello All:

I have posted this as well to

http://lists.xensource.com/archives/.../msg00158.html

and figured I would try here.

I am trying to set the hostname of VMs at boot time and banging my head against the wall. I am using

virsh create xen-config.xml

to boot a Scientific Linux 5.5 image. I have gone through the libvirt domain xml format at

http://libvirt.org/formatdomain.html#elementsResources

and I don't see anywhere to set the hostname in there. I am using pygrub for the bootloader and noticed the "bootloader_args" element. Can I pass an argument to the kernel at boot to set the hostname? Nothing I have tried seems to work. I have looked in /proc/cmdline after the image boots and it doesn't appear that the arguments are even being passed. Any help would be appreciated.

Cheers,

David
 
Old 10-10-2010, 02:02 PM   #2
Manas-Linux
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Hello,
I think you may want to boot the xen guest first and then edit the file /etc/sysconfig/network to set your hostname. According to your changes in /etc/sysconfig/network made an entry in /etc/hosts file too.

Thanks...
Manas
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I configure this file "config.xml" elonge Fedora 1 10-01-2009 07:38 AM
Location of screensaver xml config file masuter Linux - Desktop 1 05-21-2009 07:18 PM
postfix with /etc/hosts, /etc/hostname file setting taiwf Linux - Newbie 1 05-24-2006 10:56 AM
Which config file do I set the hostname in (RH9)? anachron Linux - Newbie 8 06-02-2004 07:48 PM
redhat8, changed hostname by editing config file, X no longer recognizes it infamous41md Linux - Newbie 2 03-31-2004 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration