Jump to: navigation, search

OPS235 Lab 2

240 bytes added, 15:44, 25 January 2019
Part 1: Backing Up Virtual Machines
# Execute the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">virsh dumpxml centos3 > centos3.xml</span></code></b>
# Examine the file <b><code><span style="color:#3366CC;font-size:1.2em;">centos3.xml</span></code></b>. What does it contain? What format is it in?<br><br>
=== Part 2: Restoring Virtual Machines ===
[[Image:Cinnamon-2.png|thumb|right|400px|Click on the cog icon to select different installed desktop environments.]]
[[Image:Cinnamon-4.png|thumb|right|400px|The Cinnamon desktop environment.]]
# We will now learn how to download a compressed image file and xml configuration file and add it as a VM to the virtual manager menu.
# Issue the following commands:<ul><li><b><code><span style="color:#3366CC;font-size:1.2em;">wget</span></code></b></li><li><b><code><span style="color:#3366CC;font-size:1.2em;">wget</span></code></b><br><br></li></ul>
{{Admon/important|Shutting Down the Host while Virtual Machines are Running|If you shut down your host system while virtual machines are running, they will be suspended, and will resume the next time you boot your host system.}}
<li value="2212">For the remainder of these labs, it is assumed that you will backup <u>'''both'''</u> the images and xml configuration files for <u>'''all'''</u> Virtual machines, when asked to backup your virtual machines. It is also highly recommended to backup these files to an external storage device (eg. USB key) in case the host machine gets "wiped" and you need to rebuild your HOST machine and then restore your Virtual Machines...</li>
<li>Answer this question in your log book:</li>

Navigation menu