Skip to content

Conversation

@ptomulik
Copy link

@ptomulik ptomulik commented May 10, 2016

This PR provides FreeBSD support. It continues work initiated in PR #32 by @apenney.

It works quite smoothly, with just the following issues:

  • requires fpm with workaround for fpm/1107 (it may be available in fpm 1.5.1) or fpm 1.5.0 plus rubygems with rubygems/1608 fixed; there are PRs (fpm/1108, and rubygems/1612) which address these issues, but they're not merged at the moment and not included in publicly available releases (yet), update: fpm 1.6.0 is out and includes necessary fixes, update: rubygems/1612 is merged too,
  • I'm not sure how the packer is run in production, I had problems when tried to run it as root directly doing a sequence of sudo packer/script/packager_freebsd.sh + logout/login + sudo package/package.sh /path/to/substrate.zip; for some reason the rvm-installed version of ruby (system-wide) is not used from the root account (it requires rvm use ruby-x.y.z after each and every login),
  • depends on puppet-bootstrap/52, which is not merged yet, update: puppet-bootstrap/52 is merged now
  • need to provide image_id's in packer/packager.json for FreeBSD (help needed),
  • need to provide image_id's in packer/substrate.json for FreeBSD (help needed),

Tested manually on FreeBSD 10.3, x86_64 VM (created with the following Vagrantfile):

Vagrant.configure(2) do |config|
  config.vm.guest = :freebsd
  config.vm.base_mac = "5CA1AB1E0001"
  config.vm.network "private_network", :bridge => 'enp4s0', :mac => "5CA1AB1E0001", :ip => "10.0.1.11"
  config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
  config.vm.provider :virtualbox do |vb, override|
    vb.customize ["modifyvm", :id, "--memory", "512"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
    vb.customize ["modifyvm", :id, "--audio", "none"]
    vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
    vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
  end
 # config.vm.synced_folder "../../", "/vagrant", type: "nfs",  id: "vagrant-root"
 # config.vm.synced_folder "./vagrant-substrate", "/vagrant-substrate", type: "nfs", :nfs_version => 3, :linux__nfs_options => ['async,insecure,no_subtree_check,no_acl,no_root_squash,rw'], id: "vagrant-substrate"
  config.ssh.shell = "/bin/sh"
end

Not tested with packer yet. See also comments in code.

Continues work initiated in PR hashicorp#32 by @apenney.
"name": "freebsd-10-x32",
"type": "digitalocean",
"client_id": "{{user `do_client_id`}}",
"api_key": "{{user `do_api_key`}}",
Copy link
Author

@ptomulik ptomulik May 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any help with image_id?

@apenney
Copy link

apenney commented Aug 24, 2016

2.5 years later @ptomulik and we still can't get a "no" or ack that this PR even exists. Not a fun experience.

@ptomulik
Copy link
Author

that makes me sad... looks like @mitchellh became a businessman and abandoned some of his projects...

@ptomulik
Copy link
Author

@sethvargo could you help here?

@hashicorp-cla
Copy link

hashicorp-cla commented Dec 6, 2019

CLA assistant check
All committers have signed the CLA.

@soapy1 soapy1 changed the base branch from master to main October 19, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants