Running Linux VMs on Windows

If you are using Windows, please make sure that Git is configured to use “Checkout as-is”. This can be accomplished during the setup by selecting the second or third option from the screen depicted below. Also, if you do not have SSH installed, please make sure that [PATH_TO_GIT]\bin is added to your PATH.

"Checkout as-is" option should be selected during the Git setup

Vagrant tends to create problems with file permissions when linux VMs are created from a Windows host. If you are a Windows user, please follow the following instructions.

After cloning the code to a Windows host, open the Vagrantfile in your text editor (I tend to use NotePad++). Inside, you’ll find the following two lines:

config.vm.synced_folder ".", "/vagrant"
# config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700,fmode=600"]

Please comment the first and uncomment the second line. The end result should be as follows.

# config.vm.synced_folder ".", "/vagrant"
config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700,fmode=600"]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s