Webvirtmgr-Host端安装

一键安装脚本

Supported Linux distributions

CentOS 6.3, RedHat 6.3 and above

Fedora 18 and above

Debian Testing, Ubuntu 12.04 and above

Setup libvirt and KVM

1
$ curl http://retspen.github.io/libvirt-bootstrap.sh | sudo sh

or if have not curl

1
$ wget -O - http://retspen.github.io/libvirt-bootstrap.sh | sudo sh

手动安装

install kvm libvirt```
1
2

取消注释```/etc/sysconfig/libvirtd
1
LIBVIRTD_ARGS="--listen"

取消注释

1
2
3
```
listen_tls = 0
listen_tcp = 1

启动

1
2
service libvirtd start
chkconfig libvirtd on

Tcp认证

添加一个用户并设置密码

1
2
3
# saslpasswd2 -a libvirt fred
Password: xxxxxx
Again (for verification): xxxxxx

生成libvirt的用户数据库

1
2
3
```
# sasldblistusers2 -f /etc/libvirt/passwd.db
fred@webvirtmgr.net: userPassword

参考

https://github.com/retspen/webvirtmgr/wiki/Setup-Host-Server
https://www.webvirtmgr.net/docs/

坚持原创技术分享,您的支持将鼓励我继续创作!