Thursday, February 27, 2025

VMware Workstation: configuring shared folders for Debian 11-12 and Ubuntu

 


1. Configure the shared folders.

- Before starting the virtual machine, set the VMware shared files config.
Example:



NOTE:
Debian 11 works with 6GB of memory.
Debian 12 works better with 8GB of memory.


2. Start the VM.
Ctrl+B


3. Download the following files:
- download from adrmob@gmail.com driver repo:
- anyone with this link:
https://drive.google.com/file/d/1e12RVnHXdLjRLOrxrja3oOHkrAtOKwae/view?usp=sharing
https://drive.google.com/file/d/1Kjjl0ZyKzmu7RNMQuGosLLVy_D22oswy/view?usp=sharing

cd ~/Downloads/
chmod 775 run_upgrader.sh 
chmod 777 -R vmware-tools-upgrader-64


5. Execute the configuration.

- Login as root.
NOTE: if Ubuntu, it is not necessary. Just use sudo.
If Debian and sudoers is not configured, do:
su

- The following command is not really necessary because debian 11 and 12 comes with this tool installed, but just in case, you may check:
apt-get install open-vm-tools open-vm-tools-desktop

apt-get install linux-headers-$(uname -r)
apt-get install linux-headers-generic
mkdir -p /usr/src/linux-headers-$(uname -r)/include/linux
ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
apt-get install build-essential
systemctl restart open-vm-tools


6. This step may be skipped.
cd ~/Downloads# ./run_upgrader.sh 
Ctrl+C
systemctl daemon-reexec


7. Mount the shared folder partitions.
mkdir /mnt/hgfs
mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
vim /etc/fstab
.host:/    /mnt/hgfs    fuse.vmhgfs-fuse    defaults,allow_other    0    0
systemctl daemon-reexec
mount -a
systemctl restart open-vm-tools

- Check:
ls /mnt/hgfs

The commmand shall return the shared files.
If it fails, execute step 6 and 7 again.


8. Restart the VM and login as root.
- Check:
ls /mnt/hgfs

The commmand shall return the shared files.


>ENV

Tested with VMware Workstation 17.



@SYNC:
/notes/viewinfo/67c0db93b31e29c39e74a685

No comments:

Post a Comment

VMware Workstation: configuring shared folders for Debian 11-12 and Ubuntu

  1. Configure the shared folders. - Before starting the virtual machine, set the VMware shared files config. Example: NOTE: Debian 11 works...