-o hopper—Defines the name of the origin or source VM
-n knuth—Defines the name of the new VM
-f—Defines the path to the file, partition, or logical volume that the new
VM will use
—connect—Defines the hypervisor to use
To start a virtual machine, use the following:
Click here to view code image
matthew@seymour:~$ virsh -c qemu:///system start hopper
To stop a virtual machine, use this:
Click here to view code image
matthew@seymour:~$ virsh -c qemu:///system shutdown hopper
When a VM is installed and running, you can connect to it by using the
configured IP address and a utility like ssh. You can also use a GUI with the
following:
Click here to view code image
matthew@seymour:~$ virt-viewer -c qemu:///system hopper
You may use a GUI to manage your VMs by connecting to the following:
Click here to view code image
matthew@seymour:~$ virt-manager -c qemu:///system
VirtualBox
VirtualBox is much easier to use than KVM, especially if all you want to do is
run a second operating system on top of Ubuntu. It was created by innotek
GmbH, purchased by Sun Microsystems, and is now owned and developed by
Oracle (which purchased Sun). VirtualBox is installed on top of another
operating system, so it isn’t ideal for processing intensive activity where
every processor cycle counts. However, for testing or running another
operating system because you need specific applications, it is great.
VirtualBox runs on top of most UNIX-type operating systems, such as Linux,
BSD, and macOS (as well as on Windows).
There is a version of VirtualBox in the Ubuntu software repositories, but in
general downloading the one from the VirtualBox website is a better idea. Go
to www.virtualbox.org/wiki/Downloads. From there, you can download a
version for any operating system you are likely to use, including on the Linux
page an Ubuntu DEB file that installs using the Advanced Packing Tool