macOS Sierra

Samba Connection

First to know that it's too difficult to share folder and files between host OS windows with macOS guest in virtualbox using default sharing feature in virtualbox consider macos is non-free or non-community stuff. I do second option that is using samba.

  • Change connection on virtualbox into Bridge mode
  • Activate your sharing folder on windows host os, use default folder (Public) locate on C:\Users\Public
  • Go to macOS and open Finder app
  • Click menu Go and choose connect to server
  • Check the windows ip address
  • Insert samba url smb://<ip_address>/Users/Public
  • Insert credential access like username and password (windows account)

Second option using bash command to mount the Public folder into specific path on macOS. Make sure you already create folder as mount point.

#!/bin/bash
mount_smbfs //<username>@<ip_address>/Users/Public </path/to/folder>

# example:
# make mount point folder
## mkdir /Users/mymacOS/Desktop/shared
# connect
## mount_smbfs //mypc@192.168.1.70/Users/Public /Users/mymacOS/Desktop/shared
#!/bin/bash
umount </path/to/folder>

# example
## umount /Users/mymacOS/Desktop/shared

Change the variable with your own.

Tidak ada komentar:

Posting Komentar