wang zhihao
2012-Feb-21 02:18 UTC
How to merge the Xen kernel with modules into one single file ?
Hi all, To boot a Xen from grub, we normally use a Xen kernel and a domain0 kernel & initrd.img as its modules. Now, I want to merge these three files into one single kernel file, then I can boot it without modules. I am doing this because a simulator environment only has one file entry for the kernel. Do you guys have some hints on how to do that? BTW, I can merge the domain0 kernel & initrd.img into one file. But I don''t know how to merge the xen kernel file with the other two files. Wang zhihao Best regards
Fajar A. Nugraha
2012-Feb-21 03:23 UTC
Re: How to merge the Xen kernel with modules into one single file ?
On Tue, Feb 21, 2012 at 9:18 AM, wang zhihao <accept.acm@gmail.com> wrote:> Hi all, > > To boot a Xen from grub, we normally use a Xen kernel and a domain0 kernel & initrd.img as its modules. Now, I want to merge these three files into one single kernel file, then I can boot it without modules.Why?> I am doing this because a simulator environment only has one file entry for the kernel.What kind of simulator is that? even qemu should work fine with xen.>Do you guys have some hints on how to do that? BTW, I can merge the domain0 kernel & initrd.img into one file.with what?> But I don''t know how to merge the xen kernel file with the other two files.If your environment boots from network, you could probably use mboot: syslinux.org/wiki/index.php/Mboot.c32 Another option is to chainload grub4dos by using grub.exe as the "kernel", and have grub4dos loads other components (xen, kernel, and initrd) afterwards. -- Fajar
Denny Schierz
2012-Feb-21 07:17 UTC
Re: How to merge the Xen kernel with modules into one single file ?
hi, Am 21.02.2012 um 04:23 schrieb Fajar A. Nugraha:> Do you guys have some hints on how to do that? BTW, I can merge the domain0 kernel & initrd.img into one file.build or take the normal initrd you need (/boot/initrd*): ------------ mkdir -p /usr/src/initramfs cd /usr/src/initramfs zcat /boot/initrd.img-$(uname -r) | cpio -i ------------ your initrd is now extracted to /usr/src/initramfs now, build you own kernel (howtos on Google) with option: CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs" You can also choose, which compress tool you want to use (gzip, bzip2...). After that, build your kernel. In the end, you one file, with kernel and initrd inside. But, for every change in the initram fs, you have to execute "make" in the kernel source. cu denny _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org lists.xensource.com/xen-users
Niall Fleming
2012-Feb-21 10:18 UTC
Re: How to merge the Xen kernel with modules into one single file ?
You can compile all required modules into the Linux kernel, but you cannot compile Xen hypervisor into the Linux kernel. *Niall Fleming BSc. (Hons)* Systems Administrator Webanywhere Limited Phone: 0800 862 0131 Ext: 203 Web: webanywhere.co.uk Aire Valley Business Centre, Lawkholme Lane, Keighley, BD21 3BB Registered in England with company number 4881346 On 21/02/2012 02:18, wang zhihao wrote:> Hi all, > > To boot a Xen from grub, we normally use a Xen kernel and a domain0 kernel& initrd.img as its modules. Now, I want to merge these three files into one single kernel file, then I can boot it without modules. I am doing this because a simulator environment only has one file entry for the kernel. Do you guys have some hints on how to do that? BTW, I can merge the domain0 kernel& initrd.img into one file. But I don''t know how to merge the xen kernel file with the other two files. > > Wang zhihao > Best regards > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org lists.xensource.com/xen-users
Reasonably Related Threads
- Package Distribution Server?
- How to test my patch before I post it to public?
- How to select a rootfs to test job test-amd64-amd64-xl on my own machine ?
- How to avoid this error "bits/predefs.h No such file or directory" when compiling XEN?
- fatal error if Flex and Bison is not configured