WordPress / meta-environment

A collection of scripts that provision the official WordPress.org websites into a Varying Vagrant Vagrants installation.
190 stars 69 forks source link

It seems that symbolic links don't work on windows #102

Closed pbearne closed 3 years ago

pbearne commented 7 years ago
    default: Updating wordpress-meta-environment...
    default: #
    default: # Provisioning buddypressorg.dev
    default: #
    default: ln:
    default: failed to create symbolic link ‘public_html’
    default: : Protocol error
    default: Error: Insufficient permission to create directory '/srv/www/wordpress-meta-environment/buddypressorg.dev/public_html/wordpress/'.

all for the link to the SVN folders don't work

https://stackoverflow.com/questions/24200333/symbolic-links-and-synced-folders-in-vagrant

there are some instructions to add and run the shell as admin I have tried that with no success v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]

I then found https://github.com/hashicorp/vagrant/issues/6024#issuecomment-165785632 which states config.vm.synced_folder "/projectfolder/www", "/var/www", type: "smb", mount_options: ["vers=3.02","mfsymlinks"] this then gave this error

 default: /srv/www => C:/Users/Paul/Documents/code/VVV.meta/www
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o dmode=775,fmode=774,vers=3.02,mfsymlinks,uid=33,gid=1000 srv_www_ /srv/www

The error output from the command was:

  fmode     =<arg> mode of all regular files
  umask     =<arg> umask of directories and regular files
  dmask     =<arg> umask of directories
  fmask     =<arg> umask of regular files

tried to update guest editions via

vagrant plugin install vagrant-vbguest this errored

Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Starting.
/etc/init.d/vboxadd: 255: /etc/init.d/vboxadd: cannot create : Directory nonexistent

Giving up, for now, need to real work !!

Does anybody else have this working or I am just dumb to be a windows user!!!

Paul

grappler commented 7 years ago

@pbearne It should work on windows. I installed it today on my windows laptop.

You should make sure you are using the latest version of Vagrant and Virtual Box. When everything is updated you should open Virtual Box and check that Guest Additions is also updated.

Make sure that vvv-custom.yml contains the following text

 wordpress-meta-environment:
  description: "An environment useful for contributions to the WordPress meta team."
  repo: https://github.com/WordPress/meta-environment.git
  hosts:
    - wp-meta.dev
  custom:
    provision_site:
      "buddypressorg.dev": true
      "jobs.wordpressnet.dev": true
      "wordcamp.dev": true
      "wordpressorg.dev": true
      "wordpresstv.dev": true

You can set sites to false that you do not need. Also, make sure to open up the console with admin privileges before running provision.

pbearne commented 7 years ago

ok will try again

tomjn commented 3 years ago

Symbolic links require you to use an elevated command prompt on Windows or they'll fail in shared/mounted folders. I'm closing this out as it's been almost 5 years but feel free to respond if there are any more questions or information