基于 KVM 的开发环境搭建

创建虚拟机

首先下载 ubuntu cloud image 使用 virsh 参考这个教程创建虚拟机:

Using Cloud Images With KVM [2021-02-07].html

固定 IP

KVM libvirt assign static guest IP addresses using DHCP on the virtual machine - nixCraft [2021-02-07].html

SSH

如果 sshd 启动失败,报错 sshd: no hostkeys available -- exiting,需要执行:

1
ssh-keygen -A

sshd_ no hostkeys available – exiting [2021-02-07].html

克隆虚拟机

How to clone existing KVM virtual machine images on Linux - nixCraft [2021-02-07].html

Read more
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×