Skip to content

Conversation

efussi
Copy link

@efussi efussi commented Sep 3, 2025

When using the id option documented here like this

config.vm.synced_folder "C:/projects", "/projects", type: "smb", id: "projects", smb_username: ENV['SMB_USERNAME'], smb_password: ENV['SMB_PASSWORD'], mount_options: ["vers=3.0"]

I got this in my VM:

$ mount
//172.22.32.1/vgt-69a3aff238e79c45ffd1cd0472ccc0ad-35a2864c314e4367eb1684bfe126a967 on /projects type cifs (rw,relatime,vers=3.0,...
: 

Changing id to smb_id like this

config.vm.synced_folder "C:/projects", "/projects", type: "smb", smb_id: "projects", smb_username: ENV['SMB_USERNAME'], smb_password: ENV['SMB_PASSWORD'], mount_options: ["vers=3.0"]

yields the desired result:

$ mount
//172.22.32.1/projects on /projects type cifs (rw,relatime,vers=3.0,...
: 

@efussi efussi requested a review from a team as a code owner September 3, 2025 08:36
Copy link

hashicorp-cla-app bot commented Sep 3, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant