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
From the course: Ubuntu Linux: Virtualization
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
-
-
-
Create a virtual machine with QEMU and KVM11m 25s
-
(Locked)
Modify a QEMU + KVM virtual machine2m 26s
-
(Locked)
Create a virtual machine with libvirt tools5m 15s
-
(Locked)
Control a virtual machine with virsh5m 20s
-
(Locked)
Create a virtual machine with Virtual Machine Manager6m 55s
-
(Locked)
Modify virtual machine memory6m 14s
-
(Locked)
Modify virtual machine storage4m 47s
-
(Locked)
Clone and snapshot a virtual machine4m 21s
-
(Locked)
Autostart virtual machines1m 43s
-
-
-