Difference between revisions of "Automated generation of Xen VMs"

From PDP/Grid Wiki
Jump to navigationJump to search
 
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)

Revision as of 16:45, 23 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)