close

1) Install packages
# yum install -y kvm libvirt qemu-kvm virt-manager

2)
# chkconfig libvirtd on
# service libvirtd restart

3) Add a user account to kvm group.
# usermod -a -G kvm <USERNAME>

4) Create libvirt group, and add a user account to libvirt group.
# groupadd libvirt
# usermod -a -G libvirt <USERNAME>

5) You can use PolicyKit to manage libvirt with a non-root account.
# vim /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla
-------------------------------------------------------------
[libvirt Management Access]
# For allowing access to specific user only:
#Identity=unix-user:<USERNAME>
# For allowing access to a group (like this guide):
Identity=unix-group:libvirt
Action=org.libvirt.unix.manage
ResultAny=yes
ResultInactive=yes
ResultActive=yes
-------------------------------------------------------------

6)
# service libvirtd restart


Reference: https://www.howtoforge.com/how-to-install-kvm-and-libvirt-on-centos-6.2-with-bridged-networking

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()