- Install VirtualBox on your machine
- Disable login credential: $ VBoxManage setproperty websrvauthlibrary null
- Download and uncompress the following image https://s3.amazonaws.com/vmfest-images/ubuntu-10-10-64bit-server.vdi.gz
- Clone the image to the directory where you want it to be permanently stored:
$ VBoxManage clonehd /path/to/downloaded/ubuntu-10-10-64bit-server.vdi /path/to/permanent/location/ubuntu...-server.vdi
- This should produce a uuid for your new image. Keep it around
- Start VirtualBox (the GUI) and:
- Create an new image Linux - Ubuntu (64bit)
- Select "Use existing hard disk" and if your newly cloned image doesn't appear in the drop-down list, click on the folder icon and find the image in your hard disk (the one you just cloned)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error executing script : | |
:cmd echo "Check LDAP server is configured for monitoring..." | |
{ ldapsearch -w fred -D "cn=Manager,dc=gogrid,dc=com" -x -l 10 -s base -b cn=Monitor "(objectClass=*)" "@monitorServer"; } || { echo "Check LDAP server is configured for monitoring" failed; exit 1; } >&2 | |
echo "...done" | |
echo "Load LDIF into LDAP server..." | |
{ { | |
ldapadd -h localhost -p 389 -w fred -D "cn=Manager,dc=gogrid,dc=com" -x <<'EOF' | |
dn: [email protected],ou=people,dc=external,dc=gogrid,dc=com | |
objectClass: top | |
objectClass: gogridObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pause for ldap startup... | |
...done | |
Directory /home/tbatchelli/ldifs... | |
...done | |
remote-file /home/tbatchelli/ldifs/countries.ldif... | |
MD5 sum is d7f02d0fd511cf23aaec47f39d935f9b /home/tbatchelli/ldifs/countries.ldif | |
...done | |
Conditionally load LDIF into LDAP server... | |
...done | |
remote-file /home/tbatchelli/ldifs/base-structure.ldif... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tbatchelli@29785_1_103 ~]$ ldapsearch -w fred -D "cn=Manager,dc=gogrid,dc=com" -x -l 10 -s base -b cn=Monitor "(objectClass=*)" "@monitorServer" | |
# extended LDIF | |
# | |
# LDAPv3 | |
# base <cn=Monitor> with scope baseObject | |
# filter: (objectClass=*) | |
# requesting: @monitorServer | |
# | |
# Monitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /tmp/hadoop-site.xml.new <<EOFpallet | |
<?xml version="1.0" encoding="UTF-8"?><configuration><property><name>dfs.datanode.du.reserved</name><value>1073741824</value><final>true</final></property><property><name>mapred.child.ulimit</name><value>1126400</value><final>true</final></property><property><name>mapred.local.dir</name><value>/tmp/hadoop//hadoop/hdfs/mapred/local</value><final>true</final></property><property><name>dfs.name.dir</name><value>/tmp/hadoop//hadoop/hdfs/name</value><final>true</final></property><property><name>dfs.permissions</name><value>true</value><final>true</final></property><property><name>io.file.buffer.size</name><value>65536</value></property><property><name>mapred.child.java.opts</name><value>-Xmx550m</value></property><property><name>ndfs.block.size</name><value>134217728</value></property><property><name>dfs.replication</name><value></value></property><property><name>dfs.data.dir</name><value>/tmp/hadoop//hadoop/hdfs/data</value><final>true</final></property><property><name>t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WELCOME TO SQUID 2.7.STABLE9 | |
# ---------------------------- | |
# | |
# This is the default Squid configuration file. You may wish | |
# to look at the Squid home page (http://www.squid-cache.org/) | |
# for the FAQ and other documentation. | |
# | |
# The default Squid config file shows what the defaults for | |
# various options happen to be. If you don't need to change the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# register-vm.sh <path-to-vm> [<dest-dir>] (default dest-dir is ~/vmfest) | |
models_dir={$2-~/vmfest}/models | |
nodes_dir={$2-~/vmfest}/nodes | |
mkdir -p $models_dir | |
mkdir -p $nodes_dir | |
echo "Registering image $1" | |
source_path=$1 | |
file_name=$(basename $source_path) | |
dest_path=$models_dir/$file_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns example.core | |
(:use [pallet.core :only (defnode converge lift)] | |
[pallet.resource :only (phase)] | |
[pallet.compute :as compute] | |
[pallet.resource.remote-file :as remote-file] | |
[pallet.crate.automated-admin-user :only (automated-admin-user)] | |
clojure.pprint) | |
(:require [pallet.parameter :as parameter] | |
[pallet.resource :as resource])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn debug [req comment & [key-vec]] | |
(println "***" comment (or key-vec "(full request)")) | |
(if key-vec | |
(pprint (get-in req key-vec)) | |
(pprint req)) | |
req) | |
(defn add-slave [req] | |
(let [target-node (:target-node req) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:vmfest-Ubuntu-10-10-64bit | |
{:uuid | |
"/Users/tbatchelli/.vmfest/models/vmfest-Ubuntu-10-10-64bit.vdi", | |
:description "hello", | |
:os-type-id "Ubuntu_64"}, | |
:vmfest-ubuntu-10-10-64bit-server | |
{:os-type-id "Ubuntu_64", | |
:sudo-password "superduper", | |
:no-sudo false, | |
:username "user", |