Jump to: navigation, search

OPS235 Lab 2

105 bytes removed, 10:08, 25 September 2019
Part 1: Backing Up Virtual Machines
<li> Make certain you are in your '''/var/lib/libvirt/images directory'''. Restore the original image from the backup from your home directory to your '''images''' directory by typing this command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">gunzip < ~YourUserId/centos3.qcow2.backup.gz > centos3.qcow2'''</span></code></b></li>
<li> Restart the VM. Is it working normally?</li>
<li> Create compressed backups of your other virtual machines (ie. '''centos1''' and '''centos2''').</li><li> You should make a copy of the xml XML configuration file in case you "wipe" and re-install the host machine, and want to add a restored VM backups to the virtual machine manager list. We will demonstrate using the centos3 xml XML configuration file, and prove that a "clone" can be added to your list.Please perform the following step:</li>
<li> Execute the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">virsh dumpxml centos3 > centos3.xml</span></code></b></li>
<li> 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></li></ol>
=== Part 2: Restoring Virtual Machines ===

Navigation menu