Open main menu

CDOT Wiki β

Changes

OPS235 Lab 2

270 bytes added, 14:32, 25 January 2019
Part 1: Backing Up Virtual Machines
# We will now learn how to download a compressed image file and xml configuration file and add it as a VM to the virtual manager menu.
# Issue the following commands:<ul><li><b><code><span style="color:#3366CC;font-size:1.2em;">wget http://cs.senecacollege.ca/~ops235/lab2/centos4.qcow2.backup.gz</span></code></b></li><li><b><code><span style="color:#3366CC;font-size:1.2em;">wget http://cs.senecacollege.ca/~ops235/lab2/centos4.xml</span></code></b><br><br></li></ul>
<ol><li value="17"># Copy these files to the '''/var/lib/libvirt/images''' directory and decompress the qcow2 image file.</li><li># Make certain your present working directory is: '''/var/lib/libvirt/images'''</li><li># Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">virsh define centos4.xml</span></code></b></li><li># What happened in the virtual manager window? To remove a VM entry in the Virtual Manager window, simply issue the command: '''virsh undefine vm_name''' (without the '''.xml''' file extension)</li><li># Start up your new centos4 VM.# Click on the user OPS235, and click the cog icon.# Notice Cinnamon (Software Rendering) is selected. The Cinnamon desktop environment has been installed on this VM. From this menu, you can select other installed desktop environments. This is how you switch between them. Write it down.# Prior to your practical test, you will be required to perform a similar operation to download, unzip and run a VM image for your practical test.<br><br></li></ol>
{{Admon/important|Shutting Down the Host while Virtual Machines are Running|If you shut down your host system while virtual machines are running, they will be suspended, and will resume the next time you boot your host system.}}
<ol>