Permalink
Browse files

Commants added to sample configuration.

  • Loading branch information...
1 parent 47ac2e6 commit 739280df4b63d9ffb022845e24a45404aa12de7a Colin Leavett-Brown committed Oct 2, 2012
Showing with 35 additions and 4 deletions.
  1. +2 −2 bin/vm-run
  2. +33 −2 etc/vm-run.conf
View
4 bin/vm-run
@@ -40,8 +40,8 @@ Options:
[-R|--repomanimage] - eg. crlb/testimage (use either -i or -R but not both)
[-r|--ram nnn] - MB, default: 1024
[-s|--sshpub ccc] - eg. ~/.ssh/id_rsa.pub
-[-t|--httpsproxy ccc] - eg. /tmp/x509up_u`id -u`
-[-u|--userproxy ccc] - eg. /tmp/x509up_u`id -u`
+[-t|--httpsproxy ccc] - eg. /tmp/x509up_u1000
+[-u|--userproxy ccc] - eg. /tmp/x509up_u1000
@igable
igable Oct 2, 2012

Did you mean to hardcode the UIDs?

@igable
igable Oct 2, 2012

Opps code was actually in a long comment.

[-v|--verbose] - toggle the verbosity flag.
[-w|--lifetime nnn] - minutes.
[-z|--authkeys ccc] - eg. ~/root/authorized_keys"
View
35 etc/vm-run.conf
@@ -1,14 +1,45 @@
+
+# The following value specifies the architecture of the VM.
ARCH='x86'
+
+# The following value specifies the path of the authorized keys file within the VM. It is only required if the target is NOT ~SSHUSER/.ssh/authorized_keys.
@igable
igable Oct 2, 2012

All these long comments should be broken into 80 char lines ( or similar) to make it more readable. Also 'The following value' is implied in configuration file comments.

AUTHKEYS=''
+
+# The following value specifies the amount of additional disk space in megabytes (MiB) that should be attched to the VM as a secondary drive. The ext2 filesystem will have a label of "blankspace".
BLANKSPACE=102400
+
+# The following value specifies the attachment point within the VM of the device containing the bootable image, eg. /dev/vda1.
BOOTDEVICE=''
+
+# The following value specifies the name of the default cloud to be used. The command "vm-run -L" will list all configured clouds.
CLOUD='nrc'
+
+# The following value specifies the number of virtual processors to be allocated to the image.
CPUS=1
+
+# The following value allows the retrieval of private images through the https protocol. To use your grid proxy, specify something like HTTPSPROXY=/tmp/x509up_u`id -u`
HTTPSPROXY=''
+
+# The following value specifies the URL location of the image.
IMAGE=''
-LIFETIME=2880
+
+# The following value specifies the number of minutes before the VM is automatically shutdown. The default is equivalent to 7 days.
+LIFETIME=10080
+
+# The following value specifies the network pool to be used for the VM. Public networks are provided by the "interactive" pool. Private networks are provided by the "private" pool.
NETWORK='interactive'
+
+# The following value specifies the amount of RAM in Megabytes (MiB) to be allocated to the VM.
RAM=1024
-SSHPUB=''
+
+# The following value specifies the target login ID to recieve specific authorization values during iamge contectualization.
SSHUSER='root'
+
+# The following value allows passwordless access to the VM using the login ID specified by SSHUSER. To use your SSL public key, specify something like SSHPUB=~/.ssh/id_rsa.pub
+SSHPUB=''
+
+# The following value allows the VM to access grid services. To use your grid proxy, specify something like USERPROXY=/tmp/x509up_u`id -u`
USERPROXY=''
+
+# The following value specifies how much output the command should produce; 0 for terse and 1 for verbose. The value is toggled by the commands -v paramater.
+VERBOSE=0

0 comments on commit 739280d

Please sign in to comment.