Changes

Jump to: navigation, search

OPS235 Lab 3 - Fedora17

131 bytes added, 09:39, 30 September 2010
Investigation 6: How do I backup a virtual machine?
# Change to the directory <code>/var/lib/libvirt/images/</code>. Note the size of the files in this directory. What do these files contain?
# Make a compressed backup of the <code>fedora3.img</code> file with this command: <code>gzip <fedora3.img >fedora3.img.backup.gz</code>
{{Admon/caution|Make sure the backup is successful!|If there are any error messages, '''DO NOT''' proceed past this point.}}
# Compare the size of the compressed and original files.
# Start the ''fedora3'' VM.
# Wreck it! Try this command inside the fedora3 virtual machine ('''DO NOT ''' do this on your main Fedora system!): <code>rm -rf /*</code>
# Shut down the VM.
# Restore the original image from backup: <code>gunzip <fedora3.img.backup.gz >fedora3.img</code>

Navigation menu