From the course: Ubuntu Linux: Virtualization

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Control a virtual machine with virsh

Control a virtual machine with virsh

From the course: Ubuntu Linux: Virtualization

Start my 1-month free trial

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…

Contents