文章目录
- 准备工作
- 安装
- 启动
- 配置
- 牛刀小试
准备工作
- 检查硬件是否支持
lwk@qwfys:~$ egrep -c 'svm|vmx' /proc/cpuinfo
12
lwk@qwfys:~$
- 检查虚拟化有没有启用
lwk@qwfys:~$ sudo kvm-ok
[sudo] password for lwk:
INFO: /dev/kvm exists
KVM acceleration can be used
lwk@qwfys:~$
安装
lwk@qwfys:~$ apt install -y qemu-kvm libvirt-bin bridge-utils virt-manager gir1.2-spiceclientgtk-3.0 libspice-client-gtk-3.0-dev
启动
sudo systemctl status libvirtd.service
sudo systemctl restart libvirtd.service
sudo systemctl enable libvirtd.service
配置
sudo usermod -aG libvirt lwk
- 检验是否安装成功
virsh -c qemu:///system list
牛刀小试
启动Virtual Machine Manager程序,选择create a new virtual machine manage
参考文献
- https://vitux.com/how-to-install-kvm-to-create-and-manage-virtual-machines-in-ubuntu/
- https://www.linuxtechi.com/install-configure-kvm-ubuntu-18-04-server/
- https://linuxhint.com/install_kvm_ubuntu/
- https://linuxconfig.org/install-and-set-up-kvm-on-ubuntu-18-04-bionic-beaver-linux
- http://www.ubuntuboss.com/ubuntu-server-18-04-as-a-hypervisor-using-kvm-and-kimchi-for-vm-management/
- https://www.coolgeeks101.com/howto/infrastructure/installing-virtual-machine-manager/