rocks add host vm {host...} {membership} [cpus=string] [disk=string] [disksize=string] [ip=string] [mac=string] [mem=string] [membership=string] [name=string] [num-macs=string] [slice=string] [subnet=string]
Add a VM specification to the database.
arguments
One or more physical host names.
The membership to assign to the VM.
parameters
The number of CPUs to assign to this VM. The default is: 1.
A disk specification for this VM. The default is: file:/<largest-partition-on-physical-node>/xen/disks/<vm-name>.hda,hda,w
The amount of disk space in gigabytes to assign to the disk specification. The default is: 36.
The IP address to assign to the VM. If no IP address is provided, then one will be automatically assigned.
A MAC address to assign to this VM. If no MAC address is specified, the next free MAC address will be selected.
The amount of memory in megabytes to assign to this VM. The default is: 1024.
Can be used in place of the membership argument.
The name to assign to the VM (e.g., 'compute-0-0-0').
The number of MAC addresses to automatically assign to this VM. The default is 1.
The 'slice' id on the physical node. Each VM on a physical node has a unique slice number The default is the next available free slice number.
The subnet to associate to this VM. The default is: private.
examples
Create a default VM.
Create a VM and allocate 4 GB of memory to it.