Feature #12962
closedXenserver unattended Template
Description
Hi All,
It will be great that if we have Citrix Xenserver kickstart unattended.
Reference of Kickstart Method
https://blogsprod.s3.amazonaws.com/blogs/wp-content/uploads/2013/08/XenServer_unattended_installation_v10.pdf
Below is unattended xenserver syntax.
<installation mode="fresh" srtype="lvm">
<bootloader>extlinux</bootloader>
<primary-disk gueststorage="no">/dev/cciss/c0d0</primary-disk>
<keymap>en</keymap>
<hostname>xxxxxxx</hostname>
<root-password>xxxxx</root-password>
<source type="url">http://10.3.5.100/Xen-65/</source>
<script stage="filesystem-populated" type="url">http://10.3.5.100/kickstarter/post-script.sh</script>
<admin-interface name="eth0" proto="static">
<ip>10.3.5.112</ip>
<subnet-mask>255.255.255.0</subnet-mask>
<gateway>10.3.5.1</gateway>
</admin-interface>
<name-server>8.8.8.8</name-server>
<name-server>8.8.4.4.</name-server>
<timezone>America/Los_Angeles</timezone>
<time-config-method>ntp</time-config-method>
<ntp-server>ntp1.com</ntp-server>
<ntp-server>ntp2.com</ntp-server>
</installation>
I really have no clue how to add this syntax into the current Template Provisioning
Updated by Anonymous about 10 years ago
Hi,
for this to work one would need to implement XenServer as an operating system into Foreman. I did start this:
https://github.com/mmoll/foreman/tree/xenserver_os
https://github.com/mmoll/community-templates/tree/xenserver
However, I lack the time finishing this. If you want to pick this up, it would be greatly appreciated!
Updated by Keerthiraja SJ about 10 years ago
I tried today with this but there seems to be some issue.
First when I provided the kickstart the token prepared but the kernel and the image file copied to /var/lib/tftpd is empty its not copying from the url I gave.
After I copied the xen.gz and the kernel / image manually to /var/lib/tftpd then it started to kicktstart but it fails because the anwserfile seems to be issue.
Below is from the foreman
/unattended/provision?token=15a27f21-07c6-41c2-b23f-df3bafae61c9
append xen.gz(copied manually) dom0_max_vcpus=4 dom0_mem=752M com1=115200,8n1 console=com1,vga --- boot/XenServer-6.5-x86_64-vmlinuz xencons=hvc console=hvc0 console=tty0 answerfile=http://kickboxer.las.collab.net:80/unattended/provision?token=15a27f21-07c6-41c2-b23f-df3bafae61c9 install --- boot/XenServer-6.5-x86_64-initrd.img
<installation mode="fresh" srtype="lvm">
<primary-disk gueststorage="yes">sda</primary-disk>
<keymap>en</keymap>
<hostname>xenserver001</hostname>
<root-password type="hash">$5$CQ0R4MM7$qdZvQ.cRPAhzLnCcBR8WeHZmdYvuhyk2ai.krcqm479</root-password>
<source type=""></source> (Its not appending the source file path)
<admin-interface name="xenserver001.xx.xx.net" proto="static">
<ip>10.202.200.101</ip>
<subnet-mask>255.255.255.0</subnet-mask>
<gateway>10.202.200.1</gateway>
</admin-interface>
<name-server>8.8.8.8</name-server>
<name-server>8.8.4.4</name-server>
<ntp-server>pool.ntp.org</ntp-server>
<timezone>Europe/Berlin</timezone>
<time-config-method>ntp</time-config-method>
<script stage="installation-complete" type="url">
http://foreman.xx.net:80/unattended/finish?token=15a27f21-07c6-41c2-b23f-df3bafae61c9
</script>
</installation>
Updated by Keerthiraja SJ about 10 years ago
I find some clue after a troubleshoot.
On foreman while creating the Installation Media and Operating system Which Operating system family should I have to choose if I choose redhat / debian family it looks the file on that order.
E, [2016-01-04T22:19:58.560662 #4968] ERROR -- : TFTP: Failed to fetch boot file: Permission denied - /var/lib/tftpboot/boot/XenServer-6.5-x86_64-linux
E, [2016-01-04T22:20:53.414445 #4968] ERROR -- : [6610] http://opsyum.collab.net/Xen65/dists//main/installer-amd64/current/images/netboot/debian-installer/amd64/linux:
Because of the family it checking the file on that particular location of file.
Updated by Keerthiraja SJ about 10 years ago
Keerthiraja SJ wrote:
I find some clue after a troubleshoot.
On foreman while creating the Installation Media and Operating system Which Operating system family should I have to choose if I choose redhat / debian family it looks the file on that order.
E, [2016-01-04T22:19:58.560662 #4968] ERROR -- : TFTP: Failed to fetch boot file: Permission denied - /var/lib/tftpboot/boot/XenServer-6.5-x86_64-linux
E, [2016-01-04T22:20:53.414445 #4968] ERROR -- : [6610] http://192.168.1.1/Xen65/dists//main/installer-amd64/current/images/netboot/debian-installer/amd64/linux:Because of the family it checking the file on that particular location of file.
Updated by The Foreman Bot almost 10 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3331 added
Updated by Kyle Flavin almost 10 years ago
I've added a pull request to add Xenserver OS family support, based on mmoll's original work: https://github.com/theforeman/foreman/pull/3331
I didn't add any default Xen templates, but I can if that's desirable.
Updated by Dominic Cleal almost 10 years ago
- Assignee set to Kyle Flavin
- Translation missing: en.field_release set to 136
Updated by Anonymous almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 7cac0899f5c747292e875502eb3f18aa4c9fc920.
Updated by Anonymous over 9 years ago
- Has duplicate Support #12992: Add xenserver Operating system family added
Updated by Anonymous over 9 years ago
- Has duplicate Feature #11243: Unattended installation of XenServer added