Answers: <p>If you're into RHEL you could look into running oVirt ( <a href="https://ovirt.org/" rel="nofollow noreferrer">https://ovirt.org/</a> ). This will enable you to manage host machines, VMs and virtually anything in between through Ansible. </p>
  
  <p>What you need is oVirt on top of CentOS or similar, on a baremetal machine. This/these machine(s) will host your new VMs and your so-called Hosted Engine (i.e. the oVirt virtualization management engine run from within a VM running on the hosts themselves to ensure high availability and flexibility), and then you just need Ansible and the oVirt Python SDK.</p>
  
  <p>Once you have this, it's "as simple as" creating Ansible playbooks and using the oVirt Ansible modules <a href="https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#ovirt" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#ovirt</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2019-11-27T21:08:14.707Z
Answers: Ps: the oVirt mailing list is very active (tens of emails daily) and helpful.
Answers: Birb
Answers: CC BY-SA 4.0
Answers: 2019-12-03T23:27:47.030Z
Answers: I appreciate the recommendation. We're going to be looking at oVirt--and other solutions--in our next sprint to see what's viable. I apologize for the long delay. I know "weeks" is a long time to wait on Stack Exchange!
Answers: John Kugelman
Answers: CC BY-SA 4.0
Answers: 2019-11-27T21:05:27.927Z
Answers: 2019-11-27T21:05:27.927Z
Answers: Birb
Body: <p>We're trying to develop CI/CD processes to automate testing and installing our builds. Ya know, as one does in DevOps.</p>
  
  <p>The end result of our build process are ISOs that use Red Hat Kickstart to install RHEL + our software. Today we burn the ISOs to DVD and install them on bare metal hardware. I would like to some how install and test these ISOs on virtual machines as part of our CI process. Something like:</p>
  
  <ol>
  <li>Push commit to GitLab.</li>
  <li>GitLab CI process runs.</li>
  <li>Generates an ISO.</li>
  <li>Creates a half dozen VMs via Ansible/Vagrant/something else??</li>
  <li>Installs ISO in each VM.</li>
  <li>Runs a smoke test on each VM to verify that it boots and our software runs.</li>
  </ol>
  
  <p>I'm not really sure how to do 4, 5, and 6. What tools should we be using? Welcome any tips or advice... even just names of automation tools to look into.</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-12-03T23:06:41.337Z
Comments: Hi John, if you found that the answer did not fully address all your questions, or you have further questions, please update the questions and I will try to update my answer.
Comments: Birb
Comments: CC BY-SA 4.0
Comments: 2022-11-29T23:20:52.737Z
Comments: It's been 3 years - how is your virtualization journey going?
Comments: Birb
Tags: <continuous-integration><gitlab><gitlab-ci-runner><virtualization>
Title: How to automate installing an ISO in a VM?
UserDisplayName: John Kugelman
ThreadText: # How to automate installing an ISO in a VM?
  
  (Asked by: username_0 on 2019-11-27)
  
  We're trying to develop CI/CD processes to automate testing and installing our builds. Ya know, as one does in DevOps.
  
  The end result of our build process are ISOs that use Red Hat Kickstart to install RHEL + our software. Today we burn the ISOs to DVD and install them on bare metal hardware. I would like to some how install and test these ISOs on virtual machines as part of our CI process. Something like:
  
  1. Push commit to GitLab.
  2. GitLab CI process runs.
  3. Generates an ISO.
  4. Creates a half dozen VMs via Ansible/Vagrant/something else??
  5. Installs ISO in each VM.
  6. Runs a smoke test on each VM to verify that it boots and our software runs.
  
  I'm not really sure how to do 4, 5, and 6. What tools should we be using? Welcome any tips or advice... even just names of automation tools to look into.
  
  **Tags:** continuous-integration, gitlab, gitlab-ci-runner, virtualization
  
  > **Comments:**
  > **username_1**: Hi username_0, if you found that the answer did not fully address all your questions, or you have further questions, please update the questions and I will try to update my answer.  
  > **username_1**: It's been 3 years - how is your virtualization journey going?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-27. Score: 1
  
  If you're into RHEL you could look into running oVirt ( <https://ovirt.org/> ). This will enable you to manage host machines, VMs and virtually anything in between through Ansible.
  
  What you need is oVirt on top of CentOS or similar, on a baremetal machine. This/these machine(s) will host your new VMs and your so-called Hosted Engine (i.e. the oVirt virtualization management engine run from within a VM running on the hosts themselves to ensure high availability and flexibility), and then you just need Ansible and the oVirt Python SDK.
  
  Once you have this, it's "as simple as" creating Ansible playbooks and using the oVirt Ansible modules <https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#ovirt>
  
  > **Comments:**
  > **username_1**: Ps: the oVirt mailing list is very active (tens of emails daily) and helpful.  
  > **username_0**: I appreciate the recommendation. We're going to be looking at oVirt--and other solutions--in our next sprint to see what's viable. I apologize for the long delay. I know "weeks" is a long time to wait on Stack Exchange!  
  
  ---
  
  