Ver Fonte

Support for Citrix XenServer 6.5 Creedence and Dundee

Antony Messerli há 9 anos atrás
pai
commit
c602b86503
5 ficheiros alterados com 75 adições e 2 exclusões
  1. 4 0
      README.md
  2. 4 0
      docs/index.md
  3. 22 0
      src/hypervisor.ipxe
  4. 3 2
      src/menu.ipxe
  5. 42 0
      src/xenserver.ipxe

+ 4 - 0
README.md

@@ -51,6 +51,10 @@ Full documentation is at ReadTheDocs:
 * [TinyCoreLinux](http://distro.ibiblio.org/tinycorelinux/)
 * [Ubuntu](http://www.ubuntu.com/)
 
+#### Hypervisors
+
+* [Citrix XenServer](http://xenserver.org)
+
 #### Utilities
 
 * [AVG Rescue CD](http://www.avg.com/us-en/avg-rescue-cd)

+ 4 - 0
docs/index.md

@@ -55,6 +55,10 @@ You'll need to make sure to have [DOWNLOAD_PROTO_HTTPS](https://github.com/ipxe/
 * [TinyCoreLinux](http://distro.ibiblio.org/tinycorelinux/)
 * [Ubuntu](http://www.ubuntu.com/)
 
+#### Hypervisors
+
+* [Citrix XenServer](http://xenserver.org)
+
 #### Utilities
 
 * [AVG Rescue CD](http://www.avg.com/us-en/avg-rescue-cd)

+ 22 - 0
src/hypervisor.ipxe

@@ -0,0 +1,22 @@
+#!ipxe
+
+goto ${menu} ||
+
+:hypervisor_menu
+menu Hypervisor Installers - [ ${arch} ]
+item --gap Citrix XenServer
+item xenserver ${space} Citrix XenServer
+choose menu || goto hypervisor_exit
+
+echo ${cls}
+goto ${menu} ||
+chain ${menu}.ipxe || goto error
+goto hypervisor_exit
+
+:hypervisor_exit
+clear menu
+exit 0
+
+:xenserver
+chain xenserver.ipxe
+goto hypervisor_menu

+ 3 - 2
src/menu.ipxe

@@ -31,6 +31,7 @@ item --gap Installers:
 item linux ${space} Linux Installers
 item bsd ${space} BSD Installers
 item freedos ${space} FreeDOS Installers
+item hypervisor ${space} Hypervisor Installers
 item --gap Tools:
 item utils ${space} Utilities
 item shell ${space} iPXE shell
@@ -100,8 +101,8 @@ goto main_menu
 chain freedos.ipxe
 goto main_menu
 
-:hypervisors
-chain hypervisors.ipxe
+:hypervisor
+chain hypervisor.ipxe
 goto main_menu
 
 :utils

+ 42 - 0
src/xenserver.ipxe

@@ -0,0 +1,42 @@
+#!ipxe
+
+# Citrix XenServer Hypervisor
+# http://xenserver.org
+
+goto ${menu} ||
+
+:xenserver
+clear osversion
+set os Citrix XenServer
+menu ${os} 
+item --gap Stable Releases
+item 6.5.0 ${space} ${os} 6.5 (creedence)
+item --gap Test Releases
+item dundee/beta2 ${space} ${os} Beta 2 (dundee)
+item dundee/beta1 ${space} ${os} Beta 1 (dundee)
+choose xs_version || goto hypervisor_menu
+goto determine_type
+
+:determine_type
+set xs_mirror downloadns.citrix.com.edgesuite.net/11419/pxe
+set xs_type release/${xs_version}
+iseq ${xs_version} dundee/beta2 && set xs_type prerelease/${xs_version} ||
+iseq ${xs_version} dundee/beta1 && set xs_type prerelease/${xs_version} ||
+goto boot_xs
+
+:boot_xs
+imgfree
+echo When prompted for the repo to install from, 
+echo choose http and use the following repo:
+echo
+echo http://${xs_mirror}/${xs_type}
+echo
+kernel http://${xs_mirror}/${xs_type}/boot/xen dom0_max_vcpus=1-2 dom0_mem=752M,max:752M com1=115200,8n1 console=com1,vga
+module http://${xs_mirror}/${xs_type}/boot/vmlinuz xencons=hvc console=hvc0 console=tty0 install 
+module http://${xs_mirror}/${xs_type}/install.img
+boot
+goto hypervisor_menu
+
+:hypervisor_menu
+clear menu
+exit 0