geerlingguy / drupal-vm

A VM for Drupal development
https://www.drupalvm.com/
MIT License
1.37k stars 647 forks source link

host entries not being added can't access site #2175

Closed emb03 closed 2 years ago

emb03 commented 3 years ago

Issue Type

Your Environment

Vagrant 2.2.17
VirtualBox 6.1.22r144080
ansible [core 2.11.2] 
  config file = None
  configured module search path = ['/Users/CR228410/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/4.2.0/libexec/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/CR228410/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.6 (default, Jun 29 2021, 05:25:02) [Clang 12.0.5 (clang-1205.0.22.9)]
  jinja version = 3.0.1
  libyaml = True

Your OS

Full console output

❯ vagrant up --provision
Bringing machine 'default' up with 'virtualbox' provider... ==> default: [vagrant-hostsupdater] Checking for host entries ==> default: Checking if box 'geerlingguy/drupal-vm' version '2.0.12' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key ==> default: Machine booted and ready! [default] GuestAdditions 6.1.22 running --- OK. ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => /Users/CR228410/Sites/mysite

Summary

I am not able to get the host entries added, it just completely skips that step and sites are added to /etc/hosts. I am using Drupalvm "install with composer as a dependency to an existing site" method. I have this plugin installed: vagrant plugin install vagrant-vbguest and as far as I can tell it doesn't make a drupal sync(?) folder. Where is that folder supposed to be created if I do need it? I also tried the following sync folder options: nfs, smb and virtual box, no luck

Also came across this: Virtualbox - Can't install guest additions (Big Sur) Is this an issue?

My file structure: file_structure file_structure_vagrantfile Screen Shot 2021-07-18 at 5 16 46 PM

When I ssh in with vagrant, I am not seeing a drupalvm folder to access docroot:

vagrant@drupalvm:/var/www$ ls -la
total 16
drwxr-xr-x  4 root root 4096 Jun 16 15:12 .
drwxr-xr-x 12 root root 4096 Jun 16 15:08 ..
drwxr-xr-x  2 root root 4096 Jun 16 15:12 dashboard
drwxr-xr-x  2 root root 4096 Jun 16 15:08 html
stale[bot] commented 2 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 2 years ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.