Re: [CentOS-virt] custom Xen on custom kernel on CentOS 7
On 02/27/2018 07:50 AM, John Vetter wrote: > Hi, > I'm trying to run an arbitrary Xen version (4.7.x) on a recent kernel (say, > 4.13.x) on CentOS 7. > What is the recommended way for doing this? (I am new to Xen and > virtualization). > I tried the following: > 1. installed xen4centos. > 2. built linux kernel 4.13.x and installed it (using make install) > 3. built xen 4.7.x and installed it (using make install). > grub2-mkconfig and grub-bootxen.sh don't seem to be picking up the > combination > of new kernel and new xen and making an entry in the grub.cfg file. > It did make an entry for the new Xen with the kernel installed with > xen4centos. > I looked at the grub-bootxen.sh script but was unable to figure a way out. > How > do I get the installation scripts to make an entry for my new kernel and new > Xen? I would suggest one of 1. Run the scripts with -x to figure out where they're quitting early 2. Make an rpm for the kernel you're building, or 3. Manually edit the grub files and run dracut. It's not hard to do what those scripts do by hand. --Sarah ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] custom Xen on custom kernel on CentOS 7
Sorry reseding in text format. Hi, I'm trying to run an arbitrary Xen version (4.7.x) on a recent kernel (say, 4.13.x) on CentOS 7. What is the recommended way for doing this? (I am new to Xen and virtualization). I tried the following: 1. installed xen4centos. 2. built linux kernel 4.13.x and installed it (using make install) 3. built xen 4.7.x and installed it (using make install). grub2-mkconfig and grub-bootxen.sh don't seem to be picking up the combination of new kernel and new xen and making an entry in the grub.cfg file. It did make an entry for the new Xen with the kernel installed with xen4centos. I looked at the grub-bootxen.sh script but was unable to figure a way out. How do I get the installation scripts to make an entry for my new kernel and new Xen? Thanks, John ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] CentOS 7 / Xen 4.6 on UEFI system?
Wondering if anyone has managed to get Xen to boot from UEFI? We have a relatively new server with a Supermicro X11SSH-F mainboard with an M.2 SSD. If we switch the boot mode to Legacy in the BIOS no boot devices show up. The vendor says this is because M.2 SSD is only supported in UEFI mode. We even tried installing some spinning SATA drives and a USB thumb drive but those don't show up as bootable either in legacy mode. Trying to boot Xen 4.6 from the centos-release-xen repo results in: Loading Xen 4.6.6-8.el7 error: can't find command 'multiboot'. Loading Linux 4.9.75-29.el7.x86_64 ... error: can't find command 'module'. Loading initial ramdisk ... error: can't find command 'module'. Press any key to continue ... >From what I've read we need to compile xen.efi and boot it natively. I found this: https://wiki.xenproject.org/wiki/Xen_EFI#Compiling_Xen_as_EFI Which sugests binutils doesn't support PE (EFI), which looks to be the case with the stock version on CentOS 7, note missing i386pe from the list of supported emulations: # ld -V GNU ld version 2.25.1-32.base.el7_4.2 Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om I downloaded binutils 2.30 from http://ftp.gnu.org/gnu/binutils/ and built it with: yum -y groupinstall "Development Tools" tar xzf binutils-2.30.tar.gz cd binutils-2.30 ./configure --enable-targets=x86_64-pep make make install Now I have a version that supports i386pe: # /usr/local/bin/ld -V GNU ld (GNU Binutils) 2.30 Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe However at this point I guess I need to rebuild Xen from source in order to obtain the xen.efi binary, and I'm not sure how to do that. Am I on the right path? Any tips on how to recompile Xen to get xen.efi binary? Or am I barking up the wrong tree? Thanks in advance for any advice. Chris -- Chris Wik Anu Internet Services www.cwik.ch | www.anu.net ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] custom Xen on custom kernel on CentOS 7
Hi, I'm trying to run an arbitrary Xen version (4.7.x) on a recent kernel (say, 4.13.x) on CentOS 7. What is the recommended way for doing this? (I am new to Xen and virtualization). I tried the following: 1. installed xen4centos. 2. built linux kernel 4.13.x and installed it (using make install) 3. built xen 4.7.x and installed it (using make install). grub2-mkconfig and grub-bootxen.sh don't seem to be picking up the combination of new kernel and new xen and making an entry in the grub.cfg file. It did make an entry for the new Xen with the kernel installed with xen4centos. I looked at the grub-bootxen.sh script but was unable to figure a way out. How do I get the installation scripts to make an entry for my new kernel and new Xen? Thanks, John ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt