Control a virtual machine with virsh

- [Instructor] Unlike with using the QEMU tool directly,…I can work with this machine pretty easily…in the virsh shell,…and because this machine is described with domain XML,…I don't have to tell it how much memory it has…or which disk file to use every time I start it up.…And while we can work with the guest…from this graphical console here,…we can also take advantage of the virsh shell…to manage the system from the outside.…I'll rearrange my screen a little bit…so we can see what's going on in two different places.…Move that over.…

I'll open up another terminal here…and I'll type virsh to open up the libvirt shell.…Virsh has a huge number of options available within it,…which you can see by writing help,…and I'm not going to cover them all here,…but there are a few tasks that we'll explore…so you can get accustomed to working…with virsh if you choose to dig deeper into…what it offers.…First and foremost, let's take a look at managing…the state of domains.…For that, we have the commands start, stop,…suspend, resume, and shutdown.…

Resume Transcript Auto-Scroll

Author

Released

10/23/2017

Virtual machines (VMs) are critical to modern computing. VMs are used for enterprise resource management, software testing, user training, and experimentation. That's why virtualization is a major component of the Linux Foundation Certified System (LFCS) Administrator exam. LFCS Certification opens new doors in your career and your understanding of Linux. Join Scott Simpson for this course, as he shows various methods for creating, controlling, and configuring virtual machines in Linux. Learn essential techniques for cloning a virtual machine, snapshotting your system state for easy recovery, and migrating hosts. Scott also explores LXC containers and virtualized guests.