O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required