UEFI Boot Install of XenServer Close but no Cigar
-
@dangbird Ok I can pxe boot it using my menu in bios mode, but in uefi mode it fails. I did this on a ESXi VM. The only thing that changed between fail and working is UEFI -> BIOS change.
If under linux I run
file xen
I get thisfile xen xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, BuildID[sha1]=562b9323885fffea752a2e4f1308833a8fbcf8e0, stripped
for vmlinuz I get
vmlinuz: Linux kernel x86 boot executable bzImage, version 4.19.0+1 (mockbuild@a50e0282e69b) #1 SMP Fri Apr 12 12:44:47 UT, RO-rootFS, swap_dev 0x6, Normal VGA
Notable that these are both 32 bit kernels and I’m suspecting not UEFI compatible. iPXE rejects both xen and vmlinuz in uefi mode. Basically saying it doesn’t know the file format.
Do you have an installer image that is UEFI format?
-
@dangbird I’m thinking that we need grub to do the magic here. I have a few ideas, let me work with it for a bit. I need to go and grab a few more files from the file share.
-
@george1421
Yes if you just burn the files I provided to USB, and install on a system that is EFI / UEFI only it will pull
/EFI/xenserver/grubx64.efi then /boot/vmlinuz then /install.imgI THINK the magic file is grubx65.efi OR /boot/efiboot.img that it pulls…
So by the system being in UEFI boot Only mode it will boot and load from that same USB…
In otherwords the files I provided burned to USB with rufus etc will boot EFI USB…According to Citrix Xenserver people they insist the TFTP boot magic for UEFI boot is Here:
https://support.citrix.com/article/CTX217680 But I cannot get it to go with Fog…
I set my DHCP to provide grubx64.efi and can get a Grub menu from FOG but think I am barking up the wrong tree.I placed a USB Image file ready to UEFI Boot in the same Shared Google Folder as before to try to make it easier.
“UEFIUSBINSTALLER.IMG”
I appreciate the effort. -
@dangbird said in UEFI Boot Install of XenServer Close but no Cigar:
I set my DHCP to provide grubx64.efi and can get a Grub menu from FOG but think I am barking up the wrong tree.
Actually this is the tree I’m climbing at the moment.
No problem on the burn of files. I don’t need them post working/giving up.
-
@dangbird Ok got it to boot in uefi mode.
I didn’t play around any and test different options once I decided to ‘follow’ the instructions.
This is just phase 1 but I can get it to boot. Phase 2 is making it a single menu to boot both bios and uefi. But lets make sure we can get uefi running on your campus.
This is what I have for my FOG iPXE menu parameter
chain tftp://${fog-ip}/EFI/xenserver/grubx64.efi
Now the path MUST BE EXACT as I defined in the /tftpboot directory. You can play with getting http working on your own dime.
So in the tftpboot directory create the /EFI/xenserver and move these files into there.
grub.cfg grubx64.efi install.img vmlinuz xen.gz
You will have to create grub.cfg from the web site you lined. I just pasted this into that file
menuentry "XenServer Install (serial)" { multiboot2 /EFI/xenserver/xen.gz dom0_mem=1024M,max:1024M watchdog dom0_max_vcpus=4 com1=115200,8n1 console=com1,vga module2 /EFI/xenserver/vmlinuz console=hvc0 module2 /EFI/xenserver/install.img }
pxe booted into the FOG iPXE menu and selected Xen installer menu.
When it loads the VM went dark for about 8 seconds then started booting vmlinuz. It was a long enough pause that I went “crap it didn’t work again”, but then the linux kernel started up.
-
@george1421 and for the bonus round bringing the two configurations together to give you one menu for both bios and uefi booting.
Note: I did not test this only glued the code together. YMMV
iseq ${platform} efi goto os.xen.uefi kernel tftp://${fog-ip}/EFI/xenserver/xen.gz dom0_max_vcpus=1-16 dom0_mem=max:8192M com1=115200,8n1 console=com1,vga module tftp://${fog-ip}/EFI/xenserver/vmlinuz xencons=hvc console=hvc0 console=tty0 module tftp://${fog-ip}/EFI/xenserver/install.img boot || goto MENU :os.xen.uefi chain tftp://${fog-ip}/EFI/xenserver/grubx64.efi || goto MENU
-
@george1421
WOW - Thats great. I am getting the Boot to Fog Menu, then Selecting the new item with the chain, it starts the boot flashes REAL Fast “syntax error” then kicks to grub> prompt. So I am sure I missed a step…I even dos2unix 'ed the grub.cfg file.
Anyhow, I am guessing its all on my end now. I appreciate it very much. IF I get this working I will do a write up on what I am doing to help others. I did start with trying to get the http working but swapped to direct TFTP and followed your instructions. So I will grab another beverage and start again to see if I can make your magic work. -
@dangbird When I created the grub.cfg file I used putty to connect to the FOG server and used
vi
and pasted the text directly in from copying it from the web page. I didn’t change anything. Just watch your case on the file path, because case is important.As for grub you may not have luck switching to http if grub wasn’t compiled with http support. tftp may be your only option. Just saying.
Now also be aware, while I was playing I also placed a grub.cfg in a directory called /grub because I was testing a number of paths. Being thrown into the grub shell means that it can’t find the grub.cfg file. But if you are getting a syntax error that means it must be finding the grub.cfg script.
Lastly all of my testing was done on an ESXi VM. I did not try on real hardware.
-
@george1421
FOR SURE your way works PERFECTLY.
I forgot I cannot use $ inside grub.cfg for any variables…
SO you got it working for me.
I APPRECIATE you very much. Let me know any specifics of how I can contribute in return.
I will work on a “Load XenServer from Scratch using FOG” write up at a minimum.PROBLEM SOLVED after I took out my variables and used your Copy and Paste VI etc.
THANK YOU!
-
@dangbird said in UEFI Boot Install of XenServer Close but no Cigar:
Let me know any specifics of how I can contribute in return.
I will work on a “Load XenServer from Scratch using FOG” write up at a minimum.This is perfect payment in kind. Thank you