initial updated for ubuntu 18.04
added apparmor utils fixed libvirtd.conf and qemu.conf to disable use of polkit changed to groupadd instead of addgroup Change-Id: Ia274cb0e7d8536e6d805605f5185906d7a22eb33
This commit is contained in:
parent
0e4bced551
commit
17457090ed
|
@ -17,6 +17,15 @@ For more information, refer to the `DevStack Documentation`__, and the
|
|||
* Source: http://git.openstack.org/cgit/devstack-plugin-libvirt-qemu/devstack-plugin-libvirt-qemu
|
||||
* Bugs: http://bugs.launchpad.net/devstack-plugin-libvirt-qemu
|
||||
|
||||
|
||||
Known Issues:
|
||||
to disable apparmor before stacking run
|
||||
sudo ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/usr.sbin.libvirtd
|
||||
then reboot for it to take effect.
|
||||
|
||||
TODO: fix apparmor support automatically.
|
||||
TODO: update support for ubuntu 18.04
|
||||
|
||||
__ https://docs.openstack.org/devstack/latest/plugins.html
|
||||
__ https://libvirt.org/
|
||||
__ http://www.qemu.org/
|
||||
|
|
|
@ -150,11 +150,16 @@ unix_sock_group = "$LIBVIRT_GROUP"
|
|||
unix_sock_ro_perms = "0660"
|
||||
unix_sock_rw_perms = "0660"
|
||||
unix_sock_admin_perms = "0660"
|
||||
auth_unix_ro = "none"
|
||||
auth_unix_rw = "none"
|
||||
auth_tcp = "none"
|
||||
auth_tls = "none"
|
||||
EOF
|
||||
echo 'security_driver="none"' | sudo tee -a /etc/libvirt/libvirtd.conf
|
||||
}
|
||||
|
||||
function configure_groups_users {
|
||||
getent group libvirt > /dev/null || sudo addgroup -f -r libvirt
|
||||
getent group libvirt > /dev/null || sudo groupadd -f -r libvirt
|
||||
sudo usermod -G libvirt -a root
|
||||
getent group kvm > /dev/null || sudo groupadd -f -r kvm
|
||||
getent group qemu > /dev/null || sudo groupadd -f -r qemu
|
||||
|
@ -174,7 +179,7 @@ function install_libvirt_qemu_src {
|
|||
add_repositories
|
||||
install_build_deps libvirt-bin
|
||||
install_build_deps qemu-kvm
|
||||
install_package libnuma-dev gcc make build-essential autopoint
|
||||
install_package libnuma-dev gcc make build-essential autopoint apparmor-utils
|
||||
else
|
||||
if [ rpm -qa | grep libvirtd > /dev/null ]; then
|
||||
stop_service libvirtd
|
||||
|
|
Loading…
Reference in New Issue