Open main menu

CDOT Wiki β

Changes

Lab 2 Warnings / Debrief

135 bytes added, 10:49, 21 September 2015
no edit summary
Failure to follow instructions can lead to loss of backups!
There are two general processes in order to back up your images:<ol><li>'''Compressing your images''' (also recommended to backup up to external storage USB Key) using the '''gzip''' command.<br><br>eg. '''gzip < centos3.img > ~YourUserId/centos3.img.backup.gz''' (Use the redirect symbols!!!!)</li><li>'''Backup the VM xml configuration file''' (preferably to USB key) using '''virsh''' shell command to add VM to virtual machine manager list (in the event that the HOST machine is "wiped" and re-installed, but VM images and xml configuration files have been backed up external storage).<br><br>eg. '''virsh dumpxml centos3 > centos3.xml'''<br><br></li></ol><br />Taking the time to backup the image of the Operating System's file system allows the user to return to a '''"restoration point"''' using the '''gunzip''' command in case something bad occurs to the OS during a lab.<br>There are three general processes to restore your backed-up VMs:<ul><brli>eg. Copy '''centos3.img.backup.gz''' to <u>images</u> diretory, </li><li>Issue command in image directory: '''gunzip < ~YourUserId/centos3.img.backup.gz > centos3.img''', copy </li><li>Copy '''centos3.xml''' to <u>images</u> directory, </li><li> in images directory issue command: '''virsh define centos3.xml'''</li><</ul><br><br>Failure to take the time to make and confirm backups can result in loss of lab work for the student!
13,420
edits