Coder Social home page Coder Social logo

packer-freebsd's People

Contributors

brd avatar bryson avatar logicalchaos avatar robinlehrmann avatar sean- avatar wca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

packer-freebsd's Issues

Freebsd 11 is no longer CURRENT

If I run ./automatic-11.0-stable-zfs.sh -only=virtualbox-iso output will be:

virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/11.0/FreeBSD-11.0-CURRENT-amd64-20170210-r313553-disc1.iso
    virtualbox-iso: Error downloading: checksums didn't match expected: 0978e7ce63cdbb676a265e6745302e45c847b1f29d71be9fcc4a39922d180369
==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: ISO download failed.

==> Builds finished but no artifacts were created.

Pull-request already exists: #19

Old releases like 7.0

I have some legacy, 7.0 freebsd box.

Is it possible to get or build vagrant image for it?

firstboot_pkgs_list will not work if behind a proxy

Trying to make this work behind a corporate proxy, I finally figured out that the box can't work because sudo will never be installed.

I can boot by CTR-C in the console, but will never be able to sudo in this box.

Note that I could work around that by using the root password "vagrant"

ISO hash mismatch due to dead ISO URLs

When vmware-iso tries to download the FreeBSD ISO's, it reports hash mismatch errors, which is hiding dead URL errors. Example:

$ make 11.0-20170510-zfs 
`go env GOPATH`/bin/packer build -only=vmware-iso -var boot_wait=35s  11.0-amd64-20170510-zfs.json
vmware-iso output will be in this color.

==> vmware-iso: Downloading or copying ISO
    vmware-iso: Downloading or copying: http://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/11.0/FreeBSD-11.0-STABLE-amd64-20170510-r318134-disc1.iso
    vmware-iso: Error downloading: checksums didn't match expected: 257d4fa23d4b0d6f3dbe5e1ffce2f834eecee92d2102911993346a663bd377037a10ca451bb4048eed67a4ed4fe3328b106eda647c5fb3a28414b6e306eb4a64
==> vmware-iso: ISO download failed.
Build 'vmware-iso' errored: ISO download failed.

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: ISO download failed.

==> Builds finished but no artifacts were created.
make[1]: *** [_build] Error 1
make: *** [11.0-20170510-zfs] Error 2

Unfortunately, both the main FreeBSD ISO FTP repository and its mirrors delete snapshots after a few weeks, so any URLs and packer configuration targeting snapshots become broken quite soon. And after 11.1 was released, all 11.1-BETA1 snapshots were deleted. So it would be safest to target only RELEASE and STABLE ISO's, no snapshots.

I'm using packer v1.0.4, by the way.

Weird message

I'm getting a weird messaging when I'm building the machine.

virtualbox-iso: PACKER_BUILD_NAME=virtualbox-iso: Command not found.

I'm on a Windows host.

No idea if that could affect.

VMware incompatible with EFI

FreeBSD fails to load when vmx_data has firmware set to efi. This appears to be either a bug in VMware Fusion (8.5.7 is still exhibiting this problem) or FreeBSD (11.0 snapshot as of amd64-20170510-r318134).

password retyping fails

Hi,

if I run the automatic scripts with version 11.0, it fails on password retype for root and vagrant user.
It didn't match.

Do you have any ideas to resolve the problem ?

(My suggestion would be to use only ssh-key authorization without typing a password.)

Cheers,
Robin

unknown configuration key: "ssh_disable_agent"

When I try to generate a Vagrant box for FreeBSD 11.0-20170510-zfs, packer complains of an unknown configuration key: "ssh_disable_agent". Trace:

$ make 11.0-20170510-zfs 
exec /Applications/Xcode.app/Contents/Developer/usr/bin/make _build PROVIDER=vmware-iso EXTRA_OPTS="" TEMPLATE=11.0-amd64-20170510-zfs.json
`go env GOPATH`/bin/packer build -only=vmware-iso -var boot_wait=35s  11.0-amd64-20170510-zfs.json
vmware-iso output will be in this color.

1 error(s) occurred:

* unknown configuration key: "ssh_disable_agent"
make[1]: *** [_build] Error 1
make: *** [11.0-20170510-zfs] Error 2

Based on hashicorp/packer#3261 , I think that the packer configuration has unfortunately introduced a breaking change, so any projects that want to target the latest version of packer need to use ssh_private_key_file instead.

As a workaround, one can specify an earlier version of packer for installation. For example:

$ cd $GOPATH/src/github.com/hashicorp/packer
$ git checkout -b v1.0.4 v1.0.4
$ go install
$ packer -v
1.0.4

Avoid path constraints to packer binary

Please drop the GOPATH-relative path to packer and just runpacker instead. That way, the packer-freebsd configuration integrates better with multiple ways that packer can be installed, such as via brew install packer. Currently, packer-freebsd requires that packer be installed specifically by go get github.com/hashicorp/packer, which is unnecessarily restrictive.

stock 'freebsd/FreeBSD-11.0-CURRENT' box provision failure, sudo unable to load libpam.so.6

vagrant up --no-destroy-on-error

==> default: Setting hostname...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

# Set the hostname
hostname 'openafs-freebsd-dev'
sed -i '' 's/^hostname=.*$/hostname="openafs-freebsd-dev"/' /etc/rc.conf

# Remove comments and blank lines from /etc/hosts
sed -i'' -e 's/#.*$//' /etc/hosts
sed -i'' -e '/^$/d' /etc/hosts

# Prepend ourselves to /etc/hosts
grep -w 'openafs-freebsd-dev' /etc/hosts || {
  echo -e '127.0.0.1\topenafs-freebsd-dev\topenafs-freebsd-dev' | cat - /etc/hosts > /tmp/tmp-hosts
  mv /tmp/tmp-hosts /etc/hosts
}


Stdout from the command:



Stderr from the command:

sudo: error in /usr/local/etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: unable to load /usr/local/libexec/sudo/sudoers.so: Shared object "libpam.so.6" not found, required by "sudoers.so"
sudo: fatal error, unable to load plugins

vagrant ssh

vagrant@:~ % sudo
sudo: error in /usr/local/etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: unable to load /usr/local/libexec/sudo/sudoers.so: Shared object "libpam.so.6" not found, required by "sudoers.so"
sudo: fatal error, unable to load plugins
vagrant@:~ % su root
...
root@:/home/vagrant # sudo
sudo: error in /usr/local/etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: unable to load /usr/local/libexec/sudo/sudoers.so: Shared object "libpam.so.6" not found, required by "sudoers.so"
sudo: fatal error, unable to load plugins

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.