Sunday, June 18, 2017

More tips - Vagrant on windows

These tips are about Vagrant on Windows, coupled with NFS using VirtualBox NFS plugin.

#1 If Vagrant ssh terminal is getting stuck
If your Vagrant ssh terminal is getting stuck all the time, check if you have multiple running vagrants: vagrant global-status and then halt / destroy them by id.

If NFS Enabled and plugin updated , but Vagrant still running slow:
Stop  it(vagrant halt)
Remove winnfsd.exe from memory (using Task manager)
Reload Vagrant machine (vagrant reload)
Try to access VM via IP

#2 If Vagrant VM is slow
Any wrong flag or option in Vagrantfile shared folder settings can degrade your VM's performance by 10x! For example, this is a valid synced folder entry for windows host using NFS:

config.vm.synced_folder ".", "/vagrant", type: "nfs"

Be careful when modifying this basic line, as any extra option can be the cause of slowliness of your VM.

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...