Open main menu

CDOT Wiki β

Changes

OPS235 Lab 3 - Fedora17

251 bytes added, 12:47, 20 January 2010
no edit summary
#* Why does it take longer in some VMs than others?
=== Investigation 5: How do I backup a virtual machine? ===
# Shut down all of the virtual machines.# 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># Compare the size of the compressed and original files.# Start the ''fedora3'' VM.# Wreck it! Try this command: <code>rm -rf /</code># Shut down the VM.# Restore the original image from backup: <code>gunzip <fedora3.img.backup.gz >fedora3.img</code># Restart the VM. Is it working normally?# Create compressed backups of your other virtual machines.# Write the answer to the Investigation 5 question in your lab book. === Investigation 6: Kickstart Files === When you perform a non-Kickstart installation, the installation program creates a Kickstart file in the <code>/root</code> directory for reference. # Obtain the kickstart files for all four of your installations.# Compare these files. What are the differences? Similarities? (Tip: you may want to use tools such as <code>sdiff</code> to help with the comparison).# How could you use the kickstart file produced by the installation program to perform additional, identical installations? === Investigation 75: Managing Virtual Machines from the Command Line ===
# Start the ''fedora1'' virtual machine, and stop the ''fedora2'' and ''fedora3'' virtual machines.
# Issue the command: <code>virsh undefine fedora3a</code>
# List all of the virtual machines again, and note any changes.
 
=== Investigation 6: How do I backup a virtual machine? ===
 
# Shut down all of the virtual machines.
# 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>
# Compare the size of the compressed and original files.
# Start the ''fedora3'' VM.
# Wreck it! Try this command: <code>rm -rf /</code>
# Shut down the VM.
# Restore the original image from backup: <code>gunzip <fedora3.img.backup.gz >fedora3.img</code>
# Restart the VM. Is it working normally?
# Create compressed backups of your other virtual machines.
# Answer this question in your log book:
#* In order to fully back up a virtual machine, what information should be saved in addition to the virtual machine image?
# Write the answer to the Investigation 5 question in your lab book.
 
=== Investigation 7: Kickstart Files ===
 
When you perform a non-Kickstart installation, the installation program creates a Kickstart file in the <code>/root</code> directory for reference.
 
# Obtain the kickstart files for all four of your installations (your disk pack, plus the ''fedora1'', ''fedora2'', and ''fedora3'' virtual machines).
# Compare these files. What are the differences? Similarities? (Tip: you may want to use tools such as <code>sdiff</code> to help with the comparison).
# How could you use the kickstart file produced by the installation program to perform additional, identical installations?
== Preparing for the Quizzes ==