Skip to main content

Posts

Recent posts

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

Intel NUC dev machine for home

Here is my newest Linux dev machine I put together recently. It is an  Intel NUC BXNUC10I7FNK1 ,  2 x Samsung 32GB DDR4 2666MHz    and a fast Samsung 970 EVO Plus 500GB NVMe M.2 Internal SSD.  I do not need a monitor or a keyboard, since this machine will run headless and I will only SSH into it from my Mac. Took very little time to put it together. Just opened the NUC case, installed the SSD and the memory sticks. I installed Ubuntu server on it. Downloaded the image from ubuntu.com , then created a boot image on a memory stick and used it to install the OS. This new machine is powerful enough to run few VMs, many Docker containers and Kubernetes. And all was about $900 which is quite affordable.