bifrost/playbooks/roles/bifrost-create-vm-nodes
Markos Chandras d10abd26f1 roles: bifrost-create-vm-nodes: Randomize VM XML file
/tmp/vm.xml is not that uncommon to exist outside of bifrost and to
hold user's temporary VM definitions so make sure we don't wipe it
and use a random file instead.

Change-Id: I70088df744011b391a66ab2f98b67583c43dd0b2
2017-02-03 12:43:07 +00:00
..
defaults SuSE support for VM node creation 2016-09-21 17:33:32 +00:00
files roles: bifrost-create-vm-nodes: Randomize VM XML file 2017-02-03 12:43:07 +00:00
handlers Rearranging the repository 2015-04-16 15:22:30 -04:00
meta Added jessie under Debian versions 2015-12-09 19:05:59 +00:00
tasks Fix race in virbr0 startup 2017-01-13 21:20:07 +00:00
vars Rearranging the repository 2015-04-16 15:22:30 -04:00
README.md Introduce support for kvm acceleration 2016-08-16 10:21:16 +02:00

bifrost-create-vm-nodes

This role creates virtual machines for testing bifrost.

Requirements

The following packages are required and ensured to be present:

  • libvirt-bin
  • qemu-utils
  • qemu-kvm
  • sgabios

Role Variables

baremetal_csv_file: "/tmp/baremetal.csv"

test_vm_memory_size: Tunable setting to allow a user to define a specific amount of RAM in MB to allocate to guest/test VMs. Defaults to "3072". Note: if this setting is modified between test runs, you may need to undefine the test virtual machine(s) that were previously created.

test_vm_domain_type: Tunable setting to allow a user to chosee the domain type of the created VMs. The default is "qemu" and can be set to kvm to enable kvm acceleration.

test_vm_num_nodes: Tunable setting to allow a user to define the number of test VMs that will be created. They will all be created with same settings.

Dependencies

None at this time.

Example Playbook

  • hosts: localhost connection: local become: yes gather_facts: yes roles:
    • role: bifrost-create-vm-nodes

License

Copyright (c) 2015 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author Information

Ironic Developers