usr/lib/chromium-browser system_u:object_r:bin_t:s0 This file is auto-generated by libsemanage The appended line may look like this: $ cat /etc/selinux/targeted/contexts/files/file_contexts.local home/sk/KVM_Share in our case.Īfter you running the above command, it appends a line to the /etc/selinux/targeted/contexts/files/file_contexts.local file which makes the change persistent. This command sets the default file context for anything under and including the shared folder i.e. Next set the correct SELinux type for the KVM shared folder: $ sudo semanage fcontext -a -t svirt_image_t "/home/sk/KVM_Share(/.*)?" I wanted to edit and modify the contents of this shared folder from my guest virtual machines, so I gave full permissions to the shared folder. Next, set up required permissions for the shared folder. Create Shared Folders In KVM HostĬreate a new shared folder in your KVM host system that you want to share to the guest machines.įor the purpose of this guide, I created a shared folder named " KVM_Share" in my $HOME directory. We need to create shared folder in our KVM host. It is very straight-forward and easy! Don't start the VM yet. Otherwise, you may need to install it as shown in the above link.Ĭreate a new Virtual machine from Virt-manager interface. Virt-manager is part of the KVM virtualization package group. If you already have installed complete KVM Virtualization Package group, you don't need to install Virt-manager separately.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |