So, I have decided to share with you how I installed my shared folder, as if you follow exactly this https://www.whonix.org/wiki/KVM#Shared_Folders it could not work.
So in our host OS we are going to run this:
mkdir /home/$USER/shared chmod 777 /home/$USER/shared
Remember that $USER is your own username of the host OS. Now we can do it in the GUI way or in CLI way.
In the GUI way is the same as in https://www.whonix.org/wiki/KVM#Shared_Folders
but in the target folder I wrote “/shareddata” instead of “shared”
Alternatively you can run
virt-xml "Whonix-Workstation" --add-device --filesystem source=home/$USER/shared,target=shareddata,type=mount,accessmode=mapped || true
Remember that if you have changed the name of your virtual machine, “Whonix-Workstation” may vary and you would have to put what you have set up.
Then inside the Whonix-Workstation OS, we are going to run the following (here I did a copy/paste with the output included):
user@host:~$ pwd /home/user user@host:~$ mkdir ~/shared user@host:~$ sudo mount -t 9p -o trans=virtio /shareddata ~/shared [sudo] password for user: user@host:~$
Basically we are mounting our shared folder.
And if you go to the file manager of your workstation, you should find in the section of DEVICES, bellow File System, the shared folder.
The thinks you create inside the whonix-workstation of the shared folder will be in home/$USER/shared
of your host OS, and you may access those files with root privileges.
Please, if you find any security issues, comment bellow, please.