Mount - Virtual Machine On Host Directory
Link the host directory to Virtual Machine
Example of UTM:
-
Setup Shared Directory in UTM setting of the virtual machine
-
Create a directory which will link to host directory
sudo mkdir /mnt/shared_directory
-
Link the host directory to Virtual machine
sudo mount -t 9p -o trans=virtio share /mnt/shared_directory
-
Enter directory and the mounted directory will link to host directory
cd /mnt/shared_directory && ls -al
-
Unmount the host directory after used
unmount /mnt/shared_directory