Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
vps:pv-grub_centos [2010-10-03 18:30:46] garrett.plasky Approved |
vps:pv-grub_centos [2011-05-14 00:04:56] garrett.plasky Approved |
||
---|---|---|---|
Line 3: | Line 3: | ||
You first need to install the following packages as root using yum, below shows the command to do this. | You first need to install the following packages as root using yum, below shows the command to do this. | ||
- | <code console># yum install wget perl python python-devel python-setuptools gcc make patch</code> | + | <sxh bash>yum install wget perl python python-devel python-setuptools gcc make patch</sxh> |
Next you need to install mercurial, you can do this using the command below | Next you need to install mercurial, you can do this using the command below | ||
- | <code console># easy_install mercurial</ | + | <sxh bash> |
In order for your VPS to boot you must build a kernel that already has Xen support and is new enough that pv-grub support is there. If you know your kernel already has support for both of these, you can skip this next step. | In order for your VPS to boot you must build a kernel that already has Xen support and is new enough that pv-grub support is there. If you know your kernel already has support for both of these, you can skip this next step. | ||
Line 14: | Line 14: | ||
Downloading the latest release from Xen will ensure this. Go to [[http:// | Downloading the latest release from Xen will ensure this. Go to [[http:// | ||
- | <code console># cd /usr/src | + | <sxh bash>cd /usr/src |
- | # hg clone http:// | + | hg clone http:// |
- | # cd linux-2.6.18-xen.hg# | + | cd linux-2.6.18-xen.hg# |
You can now build your kernel as you normally would, Xen+PV-Grub require a few options, as long as you don't disable these you should be OK, the options required are below: | You can now build your kernel as you normally would, Xen+PV-Grub require a few options, as long as you don't disable these you should be OK, the options required are below: | ||
- | <q> | + | <sxh plain> |
CONFIG_XEN=y | CONFIG_XEN=y | ||
CONFIG_PARAVIRT=y | CONFIG_PARAVIRT=y | ||
Line 28: | Line 28: | ||
CONFIG_HVC_XEN=y | CONFIG_HVC_XEN=y | ||
CONFIG_XEN_BALLOON=y | CONFIG_XEN_BALLOON=y | ||
- | CONFIG_XEN_SCRUB_PAGES=y</ | + | CONFIG_XEN_SCRUB_PAGES=y</ |
Another option is to use our config as a starting point, that way you know you have whats required and can add what you need. To go this route do the following inside the Linux source directory: | Another option is to use our config as a starting point, that way you know you have whats required and can add what you need. To go this route do the following inside the Linux source directory: | ||
- | <code console># zcat / | + | <sxh bash>zcat / |
- | # make oldconfig | + | make oldconfig |
- | # make menuconfig | + | make menuconfig |
- | # make | + | make |
- | # make modules | + | make modules |
- | # make modules_install | + | make modules_install |
- | # make install</ | + | make install</ |
==== Setting Up Grub ==== | ==== Setting Up Grub ==== | ||
You also need to setup Grub. Edit the menu.lst file which is located in / | You also need to setup Grub. Edit the menu.lst file which is located in / | ||
- | <q>default 0timeout 5title XenU kernel 2.6.xx-xxroot (hd0)kernel / | + | <sxh plain>default 0timeout 5title XenU kernel 2.6.xx-xxroot (hd0)kernel / |
Last thing you need to do is go into the manager and edit your server profile, change the kernel to pv-grub-32, shutdown your VPS, and then start it back up. You will want to make sure you're connected to your console so you can make sure the kernel boots properly. If you need assistance doing this you can always contact us http:// | Last thing you need to do is go into the manager and edit your server profile, change the kernel to pv-grub-32, shutdown your VPS, and then start it back up. You will want to make sure you're connected to your console so you can make sure the kernel boots properly. If you need assistance doing this you can always contact us http:// | ||
{{tag> | {{tag> |