Differences
This shows you the differences between two versions of the page.
— | centos_xen [2016/04/25 22:38] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CentOS Xen ====== | ||
+ | * [[CentOS]] | ||
+ | * [[Xen]] | ||
+ | |||
+ | ==== Installer ISO as Domain Guest ==== | ||
+ | |||
+ | Installing any OS as a Xen guest booting an ISO can be a bit of a pain. There' | ||
+ | |||
+ | Normally, when a Xen guest boots up, it will either use a GRUB emulator (pygrub, pvgrub, pvgrub2) or a kernel and initrd on the Xen domain filesystem directly. Since the ISO is booting using ISOLINUX, that means there needs to be an alternate option. | ||
+ | |||
+ | Here, we extract the kernel and initrd from the ISO, and use those to start the Xen guest, and then continue going through the ISO install as normal. | ||
+ | |||
+ | First, mount the ISO: | ||
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | mount -o mount,ro centos.iso / | ||
+ | </ | ||
+ | |||
+ | Get the kernel files needed: | ||
+ | |||
+ | < | ||
+ | cp / | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | You won't need anything else from the ISO, so you can unmount it if desired: | ||
+ | |||
+ | < | ||
+ | umount / | ||
+ | </ | ||
+ | |||
+ | Create a Xen config file for the new guest. Located here in ''/ | ||
+ | |||
+ | < | ||
+ | kernel = "/ | ||
+ | ramdisk = "/ | ||
+ | disk = [ ' | ||
+ | boot = ' | ||
+ | </ | ||
+ | |||
+ | Those are the bare basics. It doesn' | ||
+ | |||
+ | < | ||
+ | disk = [ ' | ||
+ | </ | ||
+ | |||
+ | That right there is enough to add into your Xen guest config file to get you booted into your ISO. Once you're finished, remove the '' | ||
+ | |||
+ | Then boot as normal: | ||
+ | |||
+ | < | ||
+ | bootloader = " | ||
+ | </ | ||
+ | |||
+ | That's it! | ||
+ | |||
+ | === Using a Kickstarter File === | ||
+ | |||
+ | You can use a [[CentOS Kickstart|kickstarter file]] if you'd like. In the simplest case, you'd normally rebuild an ISO with the '' | ||
+ | |||
+ | < | ||
+ | extra = " | ||
+ | </ |