Virsh Provider#
You can provision virsh virtual machines (VMs) to work with the ICE ClusterWare ™ platform. Complete the required configuration steps to set up a virsh provider, then you can provision VMs and they will function like regular ClusterWare compute nodes.
Configure virsh Provider#
On the virsh host, add
/opt/scyld/clusterware/.ssh/id_rsa.clusterware.pubtoauthorized_keys.Create the virsh provider in ClusterWare:
cw-clusterctl providers mk name=<name> type=virsh spec='{ # interfaces on the hypervisor "interfaces": [ "<bridge name>=<IP>", "<bridge2 name>=<IP>" ], # (OPTIONAL, default=["br0": spec.server]) # IP for the hypervisor "server": "<IP>", "server_username": "<username>", (OPTIONAL, default="root") }'For example, the following command creates a virsh provider that attempts to use a remote machine as a virsh host by using SSH to log in as root:
cw-clusterctl providers mk name=my-provider type=virsh spec='{ "server": "10.1.1.1" }'
Work with virsh Virtual Machines#
To allocate and attach a VM using the provider name specified during virsh provider creation:
cw-clusterctl providers -i<provider name> alloc --count 1 --attach
To view the VM node status:
cw-nodectl status
To list the provider VMs:
cw-clusterctl providers -i<provider name> resources
To remove the associated compute node and delete the VM:
cw-nodectl rm <node name> --release