一键安装脚本
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 KVM1
$ 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 |
手动安装
1 |
|
1 | LIBVIRTD_ARGS="--listen" |
取消注释1
2
3```
listen_tls = 0
listen_tcp = 1
启动1
2service 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/