X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=vmdk.mdwn;h=ea205e07df92096e9d0ab3e264c063759ddac952;hb=4c49f0f7ec2888ce35be5bae65874feebee310da;hp=180041026c92d8301f267bf059fd28753534cdc0;hpb=643bdacf6749b587600836c8e8c0bc9433e646db;p=devwiki.git diff --git a/vmdk.mdwn b/vmdk.mdwn index 1800410..ea205e0 100644 --- a/vmdk.mdwn +++ b/vmdk.mdwn @@ -1,17 +1,19 @@ [[!meta title="VM images"]] [[!toc]] -There is a Moonshot test VM image that contains a complete development environment for Moonshot. In particular it contains: +There is a Moonshot test VM image that contains a complete development +environment for Moonshot. In particular it contains: * compiler, debugger * Sources for moonshot, Shibboleth, libradsec and the like * All dependencies mentioned [[here|building]] * A build of the [MIT Kerberos](http://web.mit.edu/kerberos/) gss-sample applications + * Includes patches from the moonshot-mechglue branch for gss_userok support * A configured freeradius server + * Generates SAML assertions on authentication + * Exposes user name for legacy GSS applications + -The image is based off Debian squeeze Until a reasonable mechanism to -distribute Debian source media to comply with the GPL is made, contact -Sam Hartman for a copy of the image. It is around 1.7G in size. ## What it works with @@ -21,7 +23,19 @@ The Image should work with: * Virtualbox (tested) * qemu (tested) * Vmware +## Configuration of the VM + +The VM is distributed as a disk image. +You will need to create a virtual machine in your VM software of choice. Unless you're using Xen in paravirtualized mode, you will need to attach a first serial port to the virtual machine. This serial port may be disabled. The image requires at least 512m of memory. + +If the image has no eth0 but has an eth1, do the following and reboot. + +$ sudo rm /etc/udev/rules.d/70-persistent-net.rules +The image expects: + +* PAE to be enabled +* An ioapic to be enabled ## Consoles @@ -34,6 +48,32 @@ There is one account; user moonshot with password moonshot. ## testing Moonshot * cd krb5-1.9/src/appl/gss-sample -* ./gss-server host@moonshot-test.project-moonshot.org -* ./gss-client -mech "{1 3 6 1 4 1 5322 22 1 18}" \ - -user steve@local -pass testing 127.0.0.1 host@localhost bar +* ./gss-server host@moonshot-test.project-moonshot.org & +* ./gss-client -mech "{1 3 6 1 4 1 5322 22 1 18}" + -user steve@local -pass testing 127.0.0.1 host@localhost bar +For a perhaps more interesting test try: ssh moonshot@127.0.0.1 + +# Security + +Note that this VM image is not appropriate for an open network. In particular: + +* There is a well known ssh host key compiled into the image; this is done because it makes it easier for your to test Moonshot ssh, but is not appropriate for a secure system +* There are well-known passwords +* The test account steve@local is permitted to log into the moonshot account with a trivial password +* A known Kerberos key could potentially be used for ssh access + +This is about exploring software not about secure deployments. + +# Obtaining Images + +Sources to the GPL items included in the image can be found in Debian +squeeze's source repository. One way to get these sources is to +download the source 1 +[DVD](http://moonshot-image.s3.amazonaws.com/debian-6.0.0-source-DVD-1.iso) + +* + [moonshot-test-20110404.vmdk](http://moonshot-image.s3.amazonaws.com/moonshot-test-20110404.vmdk) + +# TODO + +* Copy the dictionary.ukerna file from mech_eap to /usr/share/freeradius, and include this file within /usr/share/freeradius/dictionary.