Difference between revisions of "Automated generation of Xen VMs"
From PDP/Grid Wiki
Jump to navigationJump to searchm |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This stuff is still a bit rough at the edges, it will take a bit more effort to put it in an RPM package. So until that time, here's the recipe to configure it manually. | This stuff is still a bit rough at the edges, it will take a bit more effort to put it in an RPM package. So until that time, here's the recipe to configure it manually. | ||
− | Draw the scripts from | + | Draw the scripts from [https://gforge.vl-e.nl/plugins/scmcvs/cvsweb.php/nl.vl-e.poc.ctb.xen/?cvsroot=build the VLeForge CVS repository]. They will need some tailoring. |
You need the following other stuff: | You need the following other stuff: | ||
Line 16: | Line 16: | ||
/var/local/hostkeys | /var/local/hostkeys | ||
The former will have almost all the stuff we need, the latter will have ssh host keys (possibly also SSL certs+keys) | The former will have almost all the stuff we need, the latter will have ssh host keys (possibly also SSL certs+keys) | ||
+ | |||
+ | |||
+ | ===Apache=== | ||
+ | |||
+ | You want to serve /var/local/xen, so add | ||
+ | <Directory /var/local/xen> | ||
+ | Options Indexes FollowSymLinks | ||
+ | AllowOverride None | ||
+ | </Directory> | ||
+ | Alias /xen /var/local/xen | ||
+ | |||
+ | to your Apache configuration (e.g. /etc/httpd/conf.d/xen.conf) | ||
+ | |||
+ | ===NFS=== | ||
+ | |||
+ | To distribute keys to hosts, make the xen and key directories NFS mountable. | ||
+ | Add this line to /etc/exports. | ||
+ | /var/local/xen 10.0.0.0/8(ro,async,no_root_squash,insecure) | ||
+ | /var/local/hostkeys 10.0.0.0/8(ro,async,no_root_squash,insecure) |
Latest revision as of 09:38, 24 April 2008
This stuff is still a bit rough at the edges, it will take a bit more effort to put it in an RPM package. So until that time, here's the recipe to configure it manually.
Draw the scripts from the VLeForge CVS repository. They will need some tailoring.
You need the following other stuff:
- Apache web server
- Xen DomU installation kernels
- LVM volume group with plenty of free space
- plenty of free space in /var/local/xen
- NFS server
Preparation
Create the directories
/var/local/xen /var/local/hostkeys
The former will have almost all the stuff we need, the latter will have ssh host keys (possibly also SSL certs+keys)
Apache
You want to serve /var/local/xen, so add
<Directory /var/local/xen> Options Indexes FollowSymLinks AllowOverride None </Directory> Alias /xen /var/local/xen
to your Apache configuration (e.g. /etc/httpd/conf.d/xen.conf)
NFS
To distribute keys to hosts, make the xen and key directories NFS mountable. Add this line to /etc/exports.
/var/local/xen 10.0.0.0/8(ro,async,no_root_squash,insecure) /var/local/hostkeys 10.0.0.0/8(ro,async,no_root_squash,insecure)