Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Before running 'hosted-engine --deploy', Patch /usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml similar to below to add --machine pc-i440fx-rhel7.2.0
--- 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 --noautoconsole --rng /dev/random --graphics vnc --video vga --sound none --controller usb,model=none --memballoon none --boot hd,menu=off --clock kvmclock_present=yes
environment: "{{ CMD_LANG }}"
register: create_local_vm
changed_when: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.