Working with basic KVM commands
One of the first commands that you will use when working with KVM is the one used for creating a VM. Other commands, as shown in the following sections, are the ones used to start, stop, delete, or pause an already existing VM.
Creating a VM using the command line
Before creating our first VM using libvirt
, we must check and see whether our default bridge network configuration was created. We can verify this by using the following command:
sudo virsh net-list
This command shows if the default bridge configuration was created and if it is running. In our case, the bridge connection is not running, thus we will need to set it up ourselves. The command used to start the default bridge network is as follows:
sudo virsh net-start default
Once it has been started, the network bridge is not set up for automatic start, thus we will use the following command to set it for automatic start:
sudo virsh net-autostart default
Now, the output is...