1. Check if CPU support KVM
cpuinfo show's 12 times of vmx|svm, it means CPU supports KVM
2. Check if board support KVM acceleration
3. Install KVM
4. Check daemon and network
5. Install virtual machine
Firstly you need to get an image of OS. here is centOS7 as example.
6. Connet this virtual machine by VNC viewer
My VNC viewer is on my windows laptop. The VNC server is ip:port -- 'xx.xx.xx.xx:5911'
Here is VNC viewer window.
Select virtual disk to install as circled by red line.
After install, you need to reboot it.
7. Start the virtual machine
then you can use VNC viewer to connect to it again.
8. Install Ubuntu18.04 KVM
Use Virtual Machine Manager could easily install a new virtual machine.
Firstly you could download Ubuntu18.04 image(ISO format).
Then open Virtual Machine Manager:
Click '1' and you can see '2' pop out. And you select '3' and forward.
Then you will need to select you downloaded ISO image and follow the instructions by Virtual Machine Manager. It's very easy.
The only thing you need be careful is, after Ubuntu18.04 installed, it requires reboot the system. And after you click the reboot, the system will notify you to remove the ISO image(CD room). So you need to remove the ISO image and then keep reboot.
9.Use virsh console connect the virtual machine
Firstly enable ttyS0 from virtual machine as following:
Then connect the virtual machine from host by virsh console: