Skip to main content

Posts

Showing posts from January, 2021

Installing Ubuntu 20 on a VM with KVM and cloud init

Prerequisites First thing to do when preparing to install KVM on a new machine is to make sure that the machine supports virtualization. This is typically controlled from BIOS. For instance with my Intel NUC, the following settings need to be turned on or maximized: Performance >> Processor >> Hyper-Threading: enabled Performance >> Processor >> Intel Turbo Boost Technology: enabled Performance >> Processor >> Active Processor Cores: all Security >> Intel Virtualization Technology: enabled Security >> Intel VT for Directed I/O (VT-d): enabled Installation Fist install QEmu+kvm, which is the emulation for the KVM supervisor. Run the following bash command to install the command line KVM: sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst Next, quickly try it by running the command  virsh. It should look like this: $virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' fo