![]() sy :~$ cat /etc/netplan/00-installer-config.yamlĪdd network bridge entries, remove IP from enp0s3 interface and assign the same IP to the network bridge(br0). To create a network bridge, we need edit the file “ /etc/netplan/00-installer-config.yaml” Following is the content of my server’s file before making the changes. Though a virtual bridge “ virbr0” is created automatically when we install KVM, but this is only used for testing purpose. In this step, we will configure a network bridge for KVM VMs so that VMs can be accessed from outside. In case libvirtd service is not started by any reason then run following command to start and enable it :~$ sudo systemctl enable libvirtd -now Step 4) Setup Network Bridge for KVM Virtual Machines Output above command would look like below, When we install KVM then libvirtd service get started automatically, run below command to verify its status, :~$ sudo systemctl status rvice :~$ Step 3) Start and verify libvirtd service Once all the packages have been installed successfully, verify whether KVM module is loaded into loaded or not using lsmod command, :~$ lsmod | grep -i kvm :~$ sudo apt install -y qemu qemu-kvm libvirt-daemon bridge-utils virt-manager virtinst Run the beneath apt command to install KVM, bridge-utils, virt-manager and other kvm dependencies. Step 2) Install KVM, virt-manager and bridge-utils Once the “ cpu-checker” package is installed, run “ kvm-ok” command and verify its output :~$ kvm-okĪbove output confirms that KVM based virtual machines can be installed on our server. If you wish to verify whether your server is capable of running KVM virtual machines then install “kvm-ok” utility using below apt command, :~$ sudo apt install -y cpu-checker ![]() If the output is not greater than zero then reboot your server, go to its bios settings and enable VT technology. :~$ grep -E -c "vmx|svm" /proc/cpuinfoĪbove output confirms that server supports hardware virtualization. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |