Pxdi: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
(Created page with '{{header}} = What? = '''PXDI'''; Pasik's Xen Dom0 Installer, is a tool to download, compile and install everything needed to get full Xen support on Red Hat Enterprise Linux 6.…')
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 12: Line 12:


If this program breaks your server though, [[Digimer|blame me]].
If this program breaks your server though, [[Digimer|blame me]].
= Source Code =
The mess [https://github.com/digimer/pxdi is here].


= Download =
= Download =
You can either [https://github.com/digimer/pxdi/raw/master/pxdi_rhel6.pl download] the script directly, or get it through <span class="code">git</span>.
* [https://github.com/digimer/pxdi/raw/master/pxdi_rhel6.pl pxdi_rhel6.pl] - Self-contained program
If you want to use <span class="code">git</span> but don't have it installed yet, please run:
<source lang="bash">
yum install git
</source>
Then you can pull <span class="code">pxdi</span> from source.


<source lang="bash">
<source lang="bash">
cd ~
git clone git://github.com/digimer/pxdi.git
</source>
</source>
= Requirements =
* Run as <span class="code">root</span>
* Internet connection
* The <span class="code">RHEL Server Optional</span> repository enabled for your server
* <span class="code">perl</span> (no special modules, just bare perl)
* 64-bit (<span class="code">x86_64</span>) environment


= Use =
= Use =


As <span class="code">root</span>, with an Internet connection and after having added the <span class="code">RHEL Server Optional</span> repository to your server, simply run:
To use default values, simply run the following.
 
<source lang="bash">
cd ~/pxdi
./pxdi_rhel6.pl
</source>
 
As of <span class="code">v0.7</span>, there is now a flag in the script called <span class="code">nodebug</span>. If you set this to <span class="code">1</span>, an alternative <span class="code">.config</span> will be used for the [[dom0]] that will build without <span class="code">DEBUG=n</span> options set. This should allow for more accurate benchmarks to be performed with respect to how final kernels will perform. The section to change is shown below.
 
<source lang="bash">
cd ~/pxdi
vim pxdi_rhel6.pl
</source>
<source lang="perl">
# Configuration stuff.
my $conf = {
        confirm        =>      1,
        nodebug        =>      1,
</source>
 
Save the change and then simply run the script.


<source lang="bash">
<source lang="bash">
Line 26: Line 72:
</source>
</source>


The install will take quite some time, depending on your Internet connection and processing power. In particular, the install will appear to pause while <span class="code">yum</span> is downloading. This is because <span class="code">yum</span> doesn't write download progress to <span class="code">STDOUT</span> and I've not yet worked around it. Just be patient. :)
= Warning =
 
This is a very young program, and likely has lots of bugs. '''''DO NOT''''' use this on a machine that matters. It ''should'' work, but I make no guarantee that it won't hose your machine. Please report success or failure.
 
= It Will Appear To Hang =
 
The install will take quite some time, depending on your Internet connection and processing power. In particular, the install will appear to pause while <span class="code">git</span> is cloning and decompressing the kernel as there is no output to <span class="code">STDOUT</span> during this step. It will also appear to hang while <span class="code">yum</span> is downloading. This is because <span class="code">yum</span> doesn't write download progress to <span class="code">STDOUT</span> and I've not yet worked around it. Just be patient. :)


{{footer}}
{{footer}}

Latest revision as of 00:42, 28 November 2010

 AN!Wiki :: Pxdi

What?

PXDI; Pasik's Xen Dom0 Installer, is a tool to download, compile and install everything needed to get full Xen support on Red Hat Enterprise Linux 6.

It's designed for developers, mainly. Once Pasi/Xen gets their RHEL 6 repository working, I would advise no longer using this program.

Credit and Blame

This program was written to automate Pasi Kärkkäinen's tutorial. Credit for getting Xen working belongs to him.

If this program breaks your server though, blame me.

Source Code

The mess is here.

Download

You can either download the script directly, or get it through git.

If you want to use git but don't have it installed yet, please run:

yum install git

Then you can pull pxdi from source.

cd ~
git clone git://github.com/digimer/pxdi.git

Requirements

  • Run as root
  • Internet connection
  • The RHEL Server Optional repository enabled for your server
  • perl (no special modules, just bare perl)
  • 64-bit (x86_64) environment

Use

To use default values, simply run the following.

cd ~/pxdi
./pxdi_rhel6.pl

As of v0.7, there is now a flag in the script called nodebug. If you set this to 1, an alternative .config will be used for the dom0 that will build without DEBUG=n options set. This should allow for more accurate benchmarks to be performed with respect to how final kernels will perform. The section to change is shown below.

cd ~/pxdi
vim pxdi_rhel6.pl
# Configuration stuff.
my $conf = {
        confirm         =>      1,
        nodebug         =>      1,

Save the change and then simply run the script.

./pxdi_rhel6.pl

Warning

This is a very young program, and likely has lots of bugs. DO NOT use this on a machine that matters. It should work, but I make no guarantee that it won't hose your machine. Please report success or failure.

It Will Appear To Hang

The install will take quite some time, depending on your Internet connection and processing power. In particular, the install will appear to pause while git is cloning and decompressing the kernel as there is no output to STDOUT during this step. It will also appear to hang while yum is downloading. This is because yum doesn't write download progress to STDOUT and I've not yet worked around it. Just be patient. :)

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.