🟢Ubuntu安装webvirtcloud
安装过程
检查先决条件
grep -E -c "vmx|svm" /proc/cpuinfo
apt-get install cpu-checker -y
kvm-ok正常输出应为:
INFO: /dev/kvm exists
KVM acceleration can be used安装KVM
apt-get install qemu-system qemu-kvm libvirt-daemon bridge-utils virt-manager virtinst -y
lsmod | grep -i kvm
systemctl status libvirtd安装nginx
apt-get install git virtualenv python3-virtualenv python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev nginx supervisor libsasl2-modules gcc pkg-config python3-guestfs libsasl2-dev libldap2-dev libssl-dev -y安装webvirtcloud
从仓库中克隆最新的代码,并生成配置文件
git clone https://github.com/retspen/webvirtcloud
cd webvirtcloud
cp webvirtcloud/settings.py.template webvirtcloud/settings.py生成一个密钥
编辑配置文件
复制配置文件到系统配置
下载项目依赖并运行
运行Web服务
配置KVM和Libvirt
Configuring Compute SSH connection
You need to upload webvirtcloud public key into authorized keys on the compute node.
For Local KVM Node:
For a remote compute node you can use ssh tool from the webvirtcloud server:
Test connection as nginx user:
From the WebVirtCloud KVM Management web console navigate to Computes

Choose SSH connection method to add your KVM Nodes and input KVM node details — Name, IP/FQDN, Login username:

If all goes well the Status of the new node should show “Connected“
安装新虚拟机
1、存储池新建 storage 池
2、新建 iso 池(目录创建完成后先放入 iso 文件,然后再到页面上创建池)
Last updated