cloud:kvm_localhost
Table of Contents
KVM as Localohost and NAT Only
The target of this HowTo is to create a KVM host enviroment on a hardware using workstation operating system. The default network created after this procedure uses NAT (Network Address Translation). VMs get private IP addresses from the 192.168.122.0/24 subnet and can reach the internet through the host, but are not directly reachable from the network.
Virtualization Pre-Checks
Detect virtualization flags from CPU
lscpu | grep Virtualization
Install KVM and Corresponding Tools
apt-get install qemu-kvm libvirt-daemon-system libvirt-clients -y
Check KVM Installation
lsmod | grep kvm
Add Current User to KVM Admins
usermod -aG libvirt $USER
Virtual Machine Adminsitration Portal
To create/remove/modify virtual machines, Cockpit is recommended.
View Default NAT Config (if required)
virsh net-dumpxml default
Install Cockpit and Corresponding VM Tools
apt-get install cockpit cockpit-machines -y
Access Administration Portal
Start virtually working: COCKPIT
cloud/kvm_localhost.txt · Last modified: by Todopoderoso
