Changes

Jump to: navigation, search

OPS235 Lab 2 - CentOS6

174 bytes removed, 13:44, 31 December 2013
Investigation 5: Managing Virtual Machines from the Command Line
{{Admon/note|Manage virtual machines from the host|The commands used to manage virtual machines must be executed on the host (your disk pack) and not inside a virtual machine.}}
# Start the ''fedora1centos1'' virtual machine, and stop the ''fedora2centos2'' and ''fedora3centos3'' virtual machines.# Switch to the f19host c6host machine, and open a shell terminal.
# Enter these commands into your f19host machine and note the result:
#* <code>'''virsh list'''</code>
#* <code>'''virsh list --all'''</code>
#* <code>'''virsh list --inactive'''</code>
# Now, shut-down your fedora1 centos1 VM normally, and close the fedora1 centos1 VM window. Make certain NOT to close the Virtual Machine Manager main window.# Switch to your terminal and issue the command: <code>'''virsh start fedora1centos1'''</code># Check Using the appropriate command check to see if your fedora1 centos1 VM is now running.# Switch to the terminal and issue<code>'''virsh list --all'''</code> and confirm the status of the fedora1 VM.# There are other commands that can be used (such as suspend, or shutdown). The "shutdown" command may not always work since it sends relies on the guest handling a request to "shutdown virtual machine gracefully", but may not always workparticular ACPI event. Why do you think it is useful to have commands to manipulate VMs? {{Admon/note|Virtual Machine Does not Shutdown from Command|If the Virtual machine fails to shutdown from the <code>virsh shutdown</code> command, then you can go to the '''Virtual Machine manager''' and '''halt''' or '''shutdown''' within the VM itself, then you can click the '''PowerOff''' button in the VM window. You'll want to avoid a forced shutdown since those are equivalent to yanking the cord out of the wall on a physical machine!|}}
{{Admon/note|Virtual Machine Does not Shutdown from Command|If the Virtual machine fails to shutdown from the <code>virsh shutdown</code> command, then you can go to the '''Virtual Machine manager''' and '''halt''' or '''shutdown''' within the VM itself, then you can click the '''PowerOff''' button in the VM window. You'll want to avoid a forced shutdown since those are equivalent to yanking the power cord out of the wall on a physical machine!|}}
'''Answer the Investigation 5 observations / questions in your lab log book.'''

Navigation menu