Open main menu

CDOT Wiki β

Changes

OPS235 Lab 2 - CentOS7 - HD2

103 bytes added, 13:30, 31 January 2018
Part 1: Backing Up Virtual Machines
# Wreck <u>only</u> your centos3 system! Try this command inside the centos3 virtual machine:<b><code><span style="color:#3366CC;font-size:1.2em;">rm -rf /*</span></code></b> (ignore error messages).
# Shut down the centos3 VM. If you tried to start the centos3 VM, it would not boot since all system files have been removed!
# Make certain you are in your '''/var/lib/libvirt/images directory'''. Restore the original image from the backup in 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>
# Restart the VM. Is it working normally?
# Create compressed backups of your other virtual machines (ie. '''centos1''' and '''centos2''').
13,420
edits