Skip to content

Synced folder created in vm but no files synced and no error nor warning #13579

Open
@polocto

Description

Debug output

https://gist.github.com/polocto/b6b8e3a2ccd7fa8d7033df332ad00a79

Expected behavior

Expected behavior is to have my local folder synced into my vm

drwxr-xr-x 2 vagrant vagrant 4096 Jan 17 15:25 data

Actual behavior

The folder is created and logged as sync but the files inside the shared folder are not synced into the vm

drwxr-xr-x 2 root root 4096 Jan 17 15:25 data

Reproduction information

Vagrant version

Vagrant 2.4.3

Host operating system

Chip : Apple M2
Ram : 8Go
macOs Sequoia 15.2

uname -r
24.2.0

Guest operating system

Static hostname: ubuntu
Icon name: computer-vm
Chassis: vm
Machine ID: fef9c27f1bb74f5c81d1e799f5941e9c
Boot ID: 5f8e6e81beee49a0b036e253726a45c8
Virtualization: qemu
Operating System: Ubuntu 22.04.5 LTS
Kernel: Linux 5.15.0-76-generic
Architecture: arm64

Steps to reproduce

Vagrantfile

require 'rbconfig'

def os
  @os ||= (
    host_os = RbConfig::CONFIG['host_os']
    case host_os
    when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
      :windows
    when /darwin|mac os/
      :macosx
    when /linux/
      :linux
    when /solaris|bsd/
      :unix
    else
      raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
    end
  )
end


Vagrant.configure("2") do |config|

  config.vm.define "mypi.server.local"
  
  if os == :macosx
    config.vm.box = "perk/ubuntu-2204-arm64"
    config.vm.provider "qemu" do |qe|
      qe.ssh_port = "50022"
      qe.memory = 2048
    end
  else
    config.vm.box = "bento/ubuntu-24.04"
    config.vm.provider "virtualbox" do |vb|
      vb.name = "raspberrypi.server.local"
      vb.memory=2048
      vb.cpus = 2
    end
  end

  config.vm.box_check_update = false

  config.vm.network "private_network", ip: "192.168.56.10"

  config.vm.synced_folder "./data", "/home/vagrant/data", type: "smb", smb_host: "127.0.0.1"

  config.vm.provision "ansible" do |ansible|
    ansible.playbook = "playbook/run.yml"
    ansible.compatibility_mode = "2.0"
  end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions