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? Can I pass anything to the kernel at boot time? Nothing I have tried seems to work. I have tried sifting through the pygrub code (for lack of documentation) and no luck yet. I think my challenge is with pygrub but any help would be appreciated. I have also posted this at http://lists.xensource.com/archives/html/xen-users/2010-10/msg00143.html and http://www.linuxquestions.org/questions/linux-virtualization-90/setting-hostname-in-xen-config-xml-file-836993/ but still waiting... Cheers, David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20101012/76cf3157/attachment.htm>
On Tue, Oct 12, 2010 at 10:14:23AM -0700, David Grundy wrote:> 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.I have had no success using bootloader_args for anything, under Xen PV with pygrub. It seems to cause my domains to not boot if I put that into the libvirt XML, even simple stuff like single-user mode. YMMV. --Igor -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20101012/dc8a5264/attachment.sig>
Apparently Analagous Threads
- setting hostname in xen config .xml file
- PV DomU stopped responding, won't boot, stuck in paused state
- Error: Boot loader didn't return any data [pygrub boot debian wheezy alpha1 netinst ISO]
- [Q] VmError: Disk isn''t accessible with tap2:tapdisk:vhd
- Bug#644100: pygrub error if the root disk value is not the first in the list.