tmatilai / packer-openbsd

OpenBSD Packer Templates
Apache License 2.0
57 stars 36 forks source link

No rsync shared folders as default? #4

Closed carletes closed 10 years ago

carletes commented 10 years ago

I just tried this minimal example:

Vagrant.configure("2") do |config|
  config.vm.box = "tmatilai/openbsd-5.5"
  config.vm.hostname = "node1"
end

with the current version (1.0.0) of tmatilai/openbsd-5.5 box from Vagrant Cloud:

$ vagrant --version
Vagrant 1.6.3
$ vagrant box list | grep tmatilai/openbsd-5.5
tmatilai/openbsd-5.5           (virtualbox, 1.0.0)
$

vagrant fails to bring up the box, complaining about VirtualBox sahred folders not being supported:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'tmatilai/openbsd-5.5'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'tmatilai/openbsd-5.5' is up to date...
==> default: Setting the name of the VM: openbsd_default_1407487870141_41164
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (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: Warning: Connection timeout. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default: 
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Setting hostname...
==> default: Mounting shared folders...
    default: /vagrant => /var/tmp/syv/src/openbsd
Vagrant attempted to execute the capability 'mount_virtualbox_shared_folder'
on the detect guest OS 'openbsd', but the guest doesn't
support that capability. This capability is required for your
configuration of Vagrant. Please either reconfigure Vagrant to
avoid this capability or fix the issue by creating the capability.
$ echo $?
1
$ 

Looks like the commit which addresses this did not make it to Vagrant Cloud:

$ cat ~/.vagrant.d/boxes/tmatilai-VAGRANTSLASH-openbsd-5.5/1.0.0/virtualbox/Vagrantfile

# The contents below were provided by the Packer Vagrant post-processor

Vagrant.configure("2") do |config|
  config.vm.base_mac = "080027941691"
end

# The contents below (if any) are custom contents provided by the
# Packer template during image build.
Vagrant.configure('2') do |config|
  config.ssh.shell = 'sh'
end

$

Coud you guys perhaps upload a new version to Vagrant Cloud?

No hurry at all, since users may add the config.vm.synced_folder ".", "/vagrant", type: "rsync" in their Vagrantfile and bypass the problem.

tmatilai commented 10 years ago

Yeah, that commit hasn't been released yet. Will do after we have resolved all these issues raised by you. =)

tmatilai commented 10 years ago

I'll close this as the issue is fixed in master.