13,420
edits
Changes
no edit summary
'''Perform the following steps:'''
# Shut down all of the virtual machinesyour '''centos1''', '''centos2''', and '''centos3''' VMs.# Change In your '''c7host''' VM, change to the directory <b><code>/var/lib/libvirt/images/</code></b>. Note the size of the files in this directory. What do these files contain?
# Make a compressed backup of the '''centos3.qcow2''' file to your home directory with this command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">gzip < centos3.qcow2 > ~YourUserId/centos3.qcow2.backup.gz</span></code></b><br />(Note: Make certain to use the redirection signs "<" and ">" properly in the command!)
# Compare the size of the compressed and original files (hint: use '''ls -lh'''). If file is very large (like 15GB), you didn't compress it and you need to remove that file and perform the previous step until you get it right!
# Make certain ALL of your VMs are running.
# Switch to your '''centos2c7host''' VM, open a terminal, login as root, and change directory to '''/root/bin'''.
# Issue the Linux command: <b><code><span style="color:#3366CC;font-size:1.2em;">wget http://matrix.senecac.on.ca/~murray.saul/ops235/lab2-check-vm.bash</span></code></b>
# Give the '''lab2-check.bash''' file execute permissions (for the file owner).