Let's get through the steps and see what was accomplished in more details in the previous section.
In step 1, we create a directory and a file that we want to share with the guest OS. Then, on the stopped KVM instance, we added the new <filesystem> definition in step 2. We used the mount type because we are mounting a directory and specified the accessmode, which specifies the security mode for accessing the shared resource. There are three access modes:
- passthrough: This is the default mode, which accesses the shared directory using the permissions of the user inside the guest OS
- mapped: In this mode, the shared directory and its files are accessed using the permissions of the QEMU user, inherited from the host
- squash: This ...