#!/usr/bin/env python3 # libvirt_schema.py - Libvirt schema elements # Part of the Parallel Virtual Cluster (PVC) system # # Copyright (C) 2018-2021 Joshua M. Boniface # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # ############################################################################### # File header, containing default values for various non-device components # Variables: # * vm_name # * vm_uuid # * vm_description # * vm_memory # * vm_vcpus # * vm_architecture libvirt_header = """ {vm_name} {vm_uuid} {vm_description} {vm_memory} {vm_vcpus} hvm destroy restart restart """ # File footer, closing devices and domain elements libvirt_footer = """ """ # Default devices for all VMs devices_default = """ /usr/bin/kvm /dev/random """ # Serial device # Variables: # * vm_name devices_serial = """ """ # VNC device # Variables: # * vm_vncport # * vm_vnc_autoport # * vm_vnc_bind devices_vnc = """ """ # VirtIO SCSI device devices_scsi_controller = """ """ # Disk device header # Variables: # * ceph_storage_secret # * disk_pool # * vm_name # * disk_id devices_disk_header = """ """ # Disk device coordinator element # Variables: # * coordinator_name # * coordinator_ceph_mon_port devices_disk_coordinator = """ """ # Disk device footer devices_disk_footer = """ """ # vhostmd virtualization passthrough device devices_vhostmd = """ """ # Network interface device # Variables: # * eth_macaddr # * eth_bridge devices_net_interface = """ """