Install KVM on Ubuntu 20

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:

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值