<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div> <div> </div> <div>I'm trying to run an arbitrary Xen version (4.7.x) on a recent kernel (say, 4.13.x) on CentOS 7.</div> <div> </div> <div>What is the recommended way for doing this? (I am new to Xen and virtualization).</div> <div> </div> <div>I tried the following:</div> <div>1. installed xen4centos.</div> <div>2. built linux kernel 4.13.x and installed it (using make install)</div> <div>3. built xen 4.7.x and installed it (using make install).</div> <div> </div> <div>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.</div> <div> </div> <div>It did make an entry for the new Xen with the kernel installed with xen4centos.</div> <div> </div> <div>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?</div> <div> </div> <div>Thanks,</div> <div>John</div></div></body></html>
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
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
On Tue, Feb 27, 2018 at 3:50 PM, John Vetter <john.vetter at mail.com> 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.On systems with grub2, grub-bootxen.sh is tweaking the global grub2 config -- making sure Xen runs first, and adding some default configuration. Even without that, grub2-mkconfig should be creating entries if the binaries exist. Are you sure: 1. That your new kernel & hypervisor have installed binaries in /boot? 2. That grub2-mkconfig is writing the config to the proper directory? (i.e., that, you're using the correct '-o' argument?) -George
Thanks Sarah. Your suggestions 2) and 3) appear to have solved my problem. John ? ? Sent:?Tuesday, February 27, 2018 at 12:48 PM From:?"Sarah Newman" <srn at prgmr.com> To:?"John Vetter" <john.vetter at mail.com> Cc:?"Discussion about the virtualization on CentOS" <centos-virt at centos.org> Subject:?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
Yes, the binaries were correctly installed in /boot, but grub2-mkconfig wasn't creating an entry in grub.cfg for the particular combination of linux kernel and xen that I was looking for. Manually editing the grub.cfg appeared to work okay, but it was a pain because it gets over-written everytime grub2-mkconfig gets run. Thanks George, John ? ? Sent:?Wednesday, February 28, 2018 at 7:05 AM From:?"George Dunlap" <dunlapg at umich.edu> To:?"Discussion about the virtualization on CentOS" <centos-virt at centos.org> Subject:?Re: [CentOS-virt] custom Xen on custom kernel on CentOS 7 On systems with grub2, grub-bootxen.sh is tweaking the global grub2 config -- making sure Xen runs first, and adding some default configuration. Even without that, grub2-mkconfig should be creating entries if the binaries exist. Are you sure: 1. That your new kernel & hypervisor have installed binaries in /boot? 2. That grub2-mkconfig is writing the config to the proper directory? (i.e., that, you're using the correct '-o' argument?) -George _______________________________________________ CentOS-virt mailing list CentOS-virt at centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Reasonably Related Threads
- custom Xen on custom kernel on CentOS 7
- custom Xen on custom kernel on CentOS 7
- Re: [PATCH 2/2] v2v: ilnux: detect name of grub2-mkconfig
- Automate running grub-bootxen.sh for kernel installs in Xen4CentOS
- [PATCH v3 2/2] v2v: ilnux: detect name of grub2-mkconfig