4.12. set

4.12.1. set host vm

rocks set host vm {host} [disk=string] [disksize=string] [mem=string] [physnode=string] [slice=string] [virt-type=string]

Change the VM configuration for a specific VM.

arguments

host

One or more VM host names.

parameters

[disk=string]

A VM disk specification. More than one disk can be supplied. Each disk specification must separated by a space.

[disksize=string]

The size of the VM disk.

[mem=string]

The amount of memory in megabytes to assign to this VM.

[physnode=string]

The physical machine this VM should run on.

[slice=string]

The slice ID for this VM.

[virt-type=string]

Set the virtualization type for this VM. This can be 'para' or 'hardware'.

examples

# rocks set host vm compute-0-0-0 mem=4096

Change the memory allocation for VM compute-0-0-0 to 4 GB.

4.12.2. set host vm boot

rocks set host vm boot {host...} [installprofile=string] [runprofile=string]

Set the install/run bootprofile for a vm host. This bootprofile defines what configuration is used to boot a vm in its running and/or installing configuration

arguments

host

One or more host names.

parameters

[installprofile=string]

The label name for the bootprofile to use when installing a node. For a list of available bootprofiles, execute: 'rocks list host vm bootprofile <hostname>'. It is an error to set the install profile to None.

[runprofile=string]

The label name for the bootprofile to use when a node is running' normally. Usually this is empty, and the kernel defined inside of the VM will be used for booting. For a list of bootprofiles, execute: 'rocks list host vm bootprofile <hostname>'. Set this string to 'None' to clear the run profile

examples

# rocks set host vm boot compute-0-0-0 installprofile=install

Set the 'install' bootprofile for compute-0-0-0, when installing it.

# rocks set host vm boot compute-0-0-0 runprofile=None

clear the 'run' runprofile for compute-0-0-0, and use the kernel defined in the VM image,

4.12.3. set host vm bootprofile

rocks set host vm bootprofile [host...] [args=string] [kernel=string] [profile=string] [ramdisk=string]

Add a boot profile for virtual a host.

arguments

[host]

List of hosts to add profile definitions. If no hosts are listed, then the global definition for 'profile=name' is added.

parameters

[args=string]

The second line for a pxelinux definition (e.g., append ks initrd=initrd.img ramdisk_size=150000 lang= devfs=nomount pxe kssendmac selinux=0)

[kernel=string]

URL for the kernel associated with this profile (e.g., 'file:///boot/kickstart/xen/vmlinuz')

[profile=string]

Label name for the boot profile. You can see the profile label names by executing: 'rocks list host vm bootprofile [host(s)]'.

[ramdisk=string]

URL for the kernel associated with this profile (e.g., 'file:///boot/kickstart/xen/initrd-xen.iso.gz')

examples

# rocks set host vm bootprofile profile=install kernel="file:///boot/kickstart/xen/vmlinuz-experimental"

Change the kernel to vmlinuz-experimental for the global install profile