Give all users full control over all files and subdirs in a directory:
cacls.exe target_dir /t /e /g Users:f
cacls.exe target_dir /t /e /g Users:f
fatal error C1902: Program database manager mismatch; please check your installationBut strangely, if I connected over RDP and ran exactly the same command in a windows shell...it worked. This email led me to the solution so I'm giving it a signalboost. It turns out that if you authenticate to the SSH server with a key you run as a different user and in a login environment that somehow messes up the visual studio build process. You can see the difference by running whoami as below.
$ /cygdrive/c/WINDOWS/system32/whoami.exe build-pc\vagrantBut if you authenticate with a key, you'll see something like this:
$ /cygdrive/c/WINDOWS/system32/whoami.exe grr-build-pc\cyg_server
$ wget http://localhost:5985/wsman --2015-03-23 13:25:00-- http://localhost:5985/wsman Resolving localhost (localhost)... ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:5985... failed: Connection refused. Connecting to localhost (localhost)|127.0.0.1|:5985... connected. HTTP request sent, awaiting response... 405 2015-03-23 13:25:00 ERROR 405: (no description).You should get a successful connection, but an error as above because this isn't a valid winrm call. If that doesn't work make sure you followed the vagrant instructions for enabling winrm. Try running this inside the VM:
winrm quickconfig -qIn my case quickconfig complained that:
WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.But when I looked at network connections in the network connection manager I couldn't change the VirtualBox host networking adapter type as advised. This is a known problem where Windows 7 network connections get stuck in public, I fixed it with this tool from Microsoft. You can verify your winrm configuration is functioning correctly by installing pywinrm and running a command:
In [33]: import winrm
In [34]: s = winrm.Session('127.0.0.1', auth=('vagrant', 'vagrant'))
In [35]: s.run_cmd('ver').std_out
Out[35]: '\r\nMicrosoft Windows [Version 6.1.7601]\r\n'
$ git clone https://github.com/google/gxui.git Cloning into 'gxui'... remote: Counting objects: 906, done. remote: Total 906 (delta 0), reused 0 (delta 0), pack-reused 905 Receiving objects: 100% (906/906), 477.53 KiB | 0 bytes/s, done. Resolving deltas: 100% (548/548), done. Checking connectivity... done. $ cd gxui/ $ git remote -v origin https://github.com/google/gxui.git (fetch) origin https://github.com/google/gxui.git (push)But later on I might want to push code, which is more convenient over SSH since I have a github key added. Switch the remote like this:
git remote set-url origin git@github.com:google/gxui.git $ git remote -v origin git@github.com:google/gxui.git (fetch) origin git@github.com:google/gxui.git (push)
hdiutil attach GPG_Suite-2015.02-b5-1161.dmgThen install it:
sudo installer -pkg /Volumes/GPG\ Suite/Install.pkg -target /
$ VBoxManage list vms
"ubuntu-lucid64" {aaaabbbb-cccc-dddd-1234}
"CentOS build" {aaaabbbb-cccc-dddd-1234}
Package up the vagrant VM with:
$ vagrant package --base "CentOS build" --output centos_5.11_64 $ vagrant box add centos_5.11_64 --name centos_5.11_64
The private key you're attempting to use with this Vagrant box uses an unsupported encryption type. The SSH library Vagrant uses does not support this key type. Please use `ssh-rsa` or `ssh-dss` instead. Note that sometimes keys in your ssh-agent can interfere with this as well, so verify the keys are valid there in addition to standard file paths.You can try clearing out some keys from ssh agent with:
$ ssh-add -D All identities removed.Except ssh is probably lying if you're running goobuntu, the keys are still there. There's all sorts of confusion about this behaviour, which seems to be the fault of gnome-keyring, which allegedly only allows you to delete manually added keys. If your SSH certs are automatically loaded it seems like you're out of luck.
SSH_AUTH_SOCK="" vagrant up