简单介绍
webvirtmgr是虚拟机的web管理控制台对于不太熟悉命令的同学可以用web的方式创建管理kvm虚拟机链接: link.
1.安装基础环境
先配置一个yum源
[kvm]
name=kvm
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://dl.fedoraproject.org/pub/epel/7/x86_64/
enable=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
安装基础软件包
yum -y install git python-pip libvirt-python libxml2-python python-websockify supervisor nginx
yum -y install gcc python-devel
pip install numpy
2.安装python环境和Django环境
git clone git://github.com/retspen/webvirtmgr.git
cd webvirtmgr
pip install -r requirements.txt #安装
./manage.py syncdb #初始化数据库
./manage.py collectstatic #拷贝一些需要的js文件
You just installed Django's auth syste