Configuring VMs
Another simple blueprint will just create a VM which you can use, without any software installed upon it:
name: simple-vm
services:
- type: brooklyn.entity.basic.EmptySoftwareProcess
name: VM
provisioning.properties:
minRam: 8192mb
minCores: 4
minDisk: 100gbWe’ve omitted the location section here and in many of the examples below;
add the appropriate choice when you paste your YAML. Note that the provisioning.properties will be
ignored if deploying to localhost or byon fixed-IP machines.
This will create a VM with the specified parameters in your choice of cloud.
In the GUI (and in the REST API), the entity is called “VM”,
and the hostname and IP address(es) are reported as sensors.
There are many more provisioning.properties supported here,
including:
- a
userto create (if not specified it creates the same username asbrooklynis running under) - a
passwordfor him or apublicKeyFileandprivateKeyFile(defaulting to keys in~/.ssh/id_rsa{.pub,}and no password, so if you have keys set up you can immediately ssh in!) machineCreateAttempts(for dodgy clouds, and they nearly all fail occasionally!)- and things like
imageIdanduserMetadataand disk and networking options (e.g.autoAssignFloatingIpfor private clouds)
For more information, see Operations: Locations.