Skip to main content

Windows 10 with Hyper-V Role and Vagrant Setup

I have been working on a  Udacity project which uses vagrant box for project implementation. I was trying to resolve an issue with vagrant sync folder.

When using the "vagrant up" on a network based on Microsoft Active Directory with MicrosoftAccount\email@outlook.com, one can use the rsync default type of "smb" but when using a regular network, one has to use the rsync folder type of "rsync" as the "MicrosoftAccount\email@outlook.com" does not allow the folders to be synced, even if the folders are in public documents folder on the host machine. The “smb” type will always reject the mapping even though it ask you for the “Windows account” username and password when mounting to guest linux machine.

The reverse was the case when using the non-fully qualified domain Active Directory based network. The active directory has moved away from non-fully qualified domains long ago but I just happen to use one which still has the same old implementation.

#wired network with active directory network but system login with microsoft account#config.vm.synced_folder ".", "/vagrant", rsync__exclude: ".git/"

#wired network with no active directory network but system login with microsoft accountconfig.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"

Hope it helps those who are trying to make this work with Hyper-V.