View bootstrap_local_vm.yml.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- bootstrap_local_vm.yml 2018-04-26 18:19:12.000000000 -0400 | |
+++ bootstrap_local_vm.yml.new 2018-04-27 10:58:01.000000000 -0400 | |
@@ -138,7 +138,7 @@ | |
environment: "{{ CMD_LANG }}" | |
changed_when: True | |
- name: Create local VM | |
- command: virt-install -n {{ VM_NAME }}Local --os-variant rhel7 --virt-type kvm --memory {{ MEM_SIZE }} --vcpus {{ VCPUS }} --network network=default,mac={{ VM_MAC_ADDR }},model=virtio --disk {{ local_vm_disk_path }} --import --disk path={{ LOCAL_VM_DIR }}/seed.iso,device=cdrom --noautoconsole --rng /dev/random --graphics vnc --video vga --sound none --controller usb,model=none --memballoon none --boot hd,menu=off --clock kvmclock_present=yes | |
+ command: virt-install -n {{ VM_NAME }}Local --machine pc-i440fx-rhel7.2.0 --os-variant rhel7 --virt-type kvm --memory {{ MEM_SIZE }} --vcpus {{ VCPUS }} --network network=default,mac={{ VM_MAC_ADDR }},model=virtio --disk {{ local_vm_disk_path }} --import --disk path={{ LOCAL_VM_DIR }}/seed.iso,device=cdrom -- |
View qemu-wrapper.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash - | |
i=0 | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
-machine) | |
shift 2;; | |
-cpu) | |
shift 2;; | |
*) |
View watchdir.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import sys | |
import inotify.adapters | |
_DEFAULT_LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
_LOGGER = logging.getLogger(__name__) | |
def _configure_logging(): |
View hosted_engine_custom.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LIBGUESTFS_HV=<LOCATION OF QEMUWRAPPER>/qemu-wrapper.sh |
View 51_nested_in_vmware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import hooking | |
from ovirt_hosted_engine_setup import constants as ohostedcons | |
class NestedInVMWareHook(object): |