Difference between revisions of "Virtual machine host"

From Livedoc - The Documentation Repository
Jump to: navigation, search
(Remove obsolete information, add information about qemuconfig repo)
(Tag: [[MediaWiki:Visualeditor-descriptionpagelink|Visual edit: Switched]])
 
Line 4: Line 4:
 
== Setting up a virtual machine host ==
 
== Setting up a virtual machine host ==
 
=== Initial setup ===
 
=== Initial setup ===
Follow the [[Gentoo Server Install|Gentoo installation guide]], then [[Salt/Setup|install Salt]]. Specify the host role in <code>/etc/salt/grains</code>:
+
Follow the [[Gentoo Server Install|Ubuntu installation guide]], and then run the Ansible playbook for VM servers to update the host.
  
<pre>
+
=== XML File Managment ===
role: vmserver
+
We use a Git repository to manage the configuration files for all of the VMs.  The repository is stored in <code>/qemuconfig</code>, and <code>/etc/libvirt/qemu</code> is just a symbolic link to the host's folder in the Git repository. Whenever you change the configuration of a VM, remember to commit and push your changes!
</pre>
 
 
 
Restart the <code>salt-minion</code> service, then run <code>salt-call state.highstate</code> to pull in VM server packages and initial configuration.
 
=== Access to the storage array ===
 
Start the <code>iscsid</code> service (it is not automatically started by Salt). After this, you may need to restart the <code>multipath</code> service and the <code>libvirt</code> service. You should then be able to use the <code>virsh</code> tool and create virtual machines.
 

Latest revision as of 17:52, 9 March 2018

This page is a stub. Please consider expanding the article so it is complete.

Machines which provide this service

{{#ask:

 Page describes type::Machine
 Service provided::Virtual machine host
 |?Machine type
 |?Hardware type
 |?Contact person

}}

Setting up a virtual machine host

Initial setup

Follow the Ubuntu installation guide, and then run the Ansible playbook for VM servers to update the host.

XML File Managment

We use a Git repository to manage the configuration files for all of the VMs. The repository is stored in /qemuconfig, and /etc/libvirt/qemu is just a symbolic link to the host's folder in the Git repository. Whenever you change the configuration of a VM, remember to commit and push your changes!