Eagle-Enterprises / development-environment

MIT License
1 stars 0 forks source link

Synced Folders not working #3

Open Cybower opened 6 months ago

Cybower commented 6 months ago

Describe the bug The Virtual Machine is unable to sync the VagrantFile host directory with /vagrant.

To Reproduce Steps to reproduce the behavior:

  1. Pull box version 0.0.2
  2. Run Vagrant Up
  3. See error

Expected behavior Command completes and logs that /vagrant was synced

Screenshots Error Logs: `vagrant reload ==> default: Attempting graceful shutdown of VM... ==> default: Checking if box 'devc3100/ubuntu-24.10-desktop' version '0.2.0' 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: dev-box default: SSH auth method: private key ==> default: Machine booted and ready! [default] A Virtualbox Guest Additions installation was found but no tools to rebuild or start them. Reading package lists... Building dependency tree... Reading state information... linux-headers-6.5.0-21-generic is already the newest version (6.5.0-21.21). linux-headers-6.5.0-21-generic set to manually installed. build-essential is already the newest version (12.10ubuntu1). dkms is already the newest version (3.0.11-1ubuntu10). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso Mounting Virtualbox Guest Additions ISO to: /mnt mount: /mnt: WARNING: source write-protected, mounted read-only. Installing Virtualbox Guest Additions 7.0.8 - guest version is 6.0.0 Verifying archive integrity... 100% MD5 checksums are OK. All good. Uncompressing VirtualBox 7.0.8 Guest Additions for Linux 100% VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Starting. VirtualBox Guest Additions: Setting up modules VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. VirtualBox Guest Additions: To build modules for other installed kernels, run VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup VirtualBox Guest Additions: or VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all VirtualBox Guest Additions: Building the modules for kernel 6.5.0-21-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted or 'rcvboxadd reload' triggered VirtualBox Guest Additions: reloading kernel modules and services currently loaded module vboxguest version () does not match to VirtualBox Guest Additions installation version (7.0.8 r156879) The log file /var/log/vboxadd-setup.log may contain further information.`

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Cybower commented 6 months ago

Will be fixed with box release 0.0.3, working on uploading it now

Cybower commented 6 months ago

Bug fixed with box v0.0.3 and VagrantFiles have been merged into main

Cybower commented 6 months ago

vagrant up shows that it syncs the folder & /vagrant exists on the VM, but the files /folders are not synced across. Vboxadd.service throws this error

× vboxadd.service Loaded: loaded (/opt/VBoxGuestAdditions-7.0.8/init/vboxadd; enabled; preset: enabled) Active: failed (Result: timeout) since Thu 2024-02-29 18:10:39 MST; 32s ago Process: 771 ExecStart=/opt/VBoxGuestAdditions-7.0.8/init/vboxadd start (code=killed, signal=TERM) Main PID: 771 (code=killed, signal=TERM) CPU: 19.268s

Feb 29 18:05:56 dev-box useradd[2338]: failed adding user 'vboxadd', exit code: 9 Feb 29 18:05:56 dev-box vboxadd[2355]: VirtualBox Guest Additions: Running kernel modules will not be replaced until Feb 29 18:05:56 dev-box vboxadd[2355]: the system is restarted or 'rcvboxadd reload' triggered Feb 29 18:05:56 dev-box vboxadd[771]: VirtualBox Guest Additions: reloading kernel modules and services Feb 29 18:10:39 dev-box systemd[1]: vboxadd.service: start operation timed out. Terminating. Feb 29 18:10:39 dev-box systemd[1]: vboxadd.service: Main process exited, code=killed, status=15/TERM Feb 29 18:10:39 dev-box systemd[1]: vboxadd.service: Failed with result 'timeout'. Feb 29 18:10:39 dev-box systemd[1]: vboxadd.service: Unit process 2861 (systemctl) remains running after unit stopped. Feb 29 18:10:39 dev-box systemd[1]: Failed to start vboxadd.service. Feb 29 18:10:39 dev-box systemd[1]: vboxadd.service: Consumed 19.268s CPU time.