We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fedora 25 has been released, lets have a newer image!
Here's the quick diff that works, at least with Virtualbox (I'm not a packer expert, so excuse me for ):
fedora-25-x86_64.json
{ "builders": [ { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user ks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user disk_size}}", "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", "guest_os_type": "Fedora_64", "hard_drive_interface": "sata", "headless": "{{ user headless}}", "http_directory": "http", "iso_checksum": "{{useriso_checksum}}", "iso_checksum_type": "{{user iso_checksum_type}}", "iso_url": "{{user mirror}}/{{user mirror_directory}}/{{user iso_name}}", "output_directory": "packer-{{user template}}-virtualbox", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "virtualbox-iso", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "{{ user memory}}" ], [ "modifyvm", "{{.Name}}", "--cpus", "{{ usercpus}}" ] ], "virtualbox_version_file": ".vbox_version", "vm_name": "{{ usertemplate}}" }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{userks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user disk_size}}", "guest_os_type": "fedora-64", "headless": "{{ user headless}}", "http_directory": "http", "iso_checksum": "{{useriso_checksum}}", "iso_checksum_type": "{{user iso_checksum_type}}", "iso_url": "{{user mirror}}/{{user mirror_directory}}/{{user iso_name}}", "output_directory": "packer-{{user template}}-vmware", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "tools_upload_flavor": "linux", "type": "vmware-iso", "vm_name": "{{ user template}}", "vmx_data": { "cpuid.coresPerSocket": "1", "ethernet0.pciSlotNumber": "32", "memsize": "{{ usermemory}}", "numvcpus": "{{ usercpus}}" } }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{userks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user disk_size}}", "guest_os_type": "fedora-core", "http_directory": "http", "iso_checksum": "{{user iso_checksum}}", "iso_checksum_type": "{{user iso_checksum_type}}", "iso_url": "{{user mirror}}/{{user mirror_directory}}/{{user iso_name}}", "output_directory": "packer-{{user template}}-parallels", "parallels_tools_flavor": "lin", "prlctl": [ [ "set", "{{.Name}}", "--memsize", "{{ user memory}}" ], [ "set", "{{.Name}}", "--cpus", "{{ usercpus}}" ] ], "prlctl_version_file": ".prlctl_version", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "parallels-iso", "vm_name": "{{ usertemplate}}" }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{userks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user disk_size}}", "headless": "{{ user headless}}", "http_directory": "http", "iso_checksum": "{{useriso_checksum}}", "iso_checksum_type": "{{user iso_checksum_type}}", "iso_url": "{{user mirror}}/{{user mirror_directory}}/{{user iso_name}}", "output_directory": "packer-{{user template}}-qemu", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "qemu", "vm_name": "{{ user template}}" } ], "post-processors": [ { "output": "builds/{{userbox_basename}}.{{.Provider}}.box", "type": "vagrant" } ], "provisioners": [ { "destination": "/tmp/bento-metadata.json", "source": "{{user metadata}}", "type": "file" }, { "environment_vars": [ "HOME_DIR=/home/vagrant", "http_proxy={{user http_proxy}}", "https_proxy={{user https_proxy}}", "no_proxy={{user no_proxy}}" ], "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "scripts": [ "scripts/common/metadata.sh", "scripts/fedora/fix-slow-dns.sh", "scripts/fedora/build-tools.sh", "scripts/fedora/yum.sh", "scripts/common/sshd.sh", "scripts/common/virtualbox.sh", "scripts/common/vmware.sh", "scripts/common/parallels.sh", "scripts/common/vagrant.sh", "scripts/fedora/cleanup.sh", "scripts/common/minimize.sh" ], "type": "shell" } ], "variables": { "arch": "64", "box_basename": "fedora-25", "build_timestamp": "{{isotime \"20060102150405\"}}", "cpus": "1", "disk_size": "40960", "git_revision": "__unknown_git_revision__", "headless": "", "http_proxy": "{{env http_proxy}}", "https_proxy": "{{env https_proxy}}", "iso_checksum": "524bd959dae09ad6fc8e0476ea478700d89f82ec5795d0b1a7b873613f3f26ac", "iso_checksum_type": "sha256", "iso_name": "Fedora-Server-dvd-x86_64-25-1.3.iso", "ks_path": "fedora-latest/ks.cfg", "memory": "512", "metadata": "floppy/dummy_metadata.json", "mirror": "http://download.fedoraproject.org/pub/fedora/linux", "mirror_directory": "releases/25/Server/x86_64/iso", "name": "fedora-25", "no_proxy": "{{env no_proxy}}", "template": "fedora-25-x86_64", "version": "2.0.TIMESTAMP" } }
{ "builders": [ { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user
}}", "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", "guest_os_type": "Fedora_64", "hard_drive_interface": "sata", "headless": "{{ user
}}", "http_directory": "http", "iso_checksum": "{{user
}}", "iso_checksum_type": "{{user
}}", "iso_url": "{{user
}}/{{user
}}", "output_directory": "packer-{{user
}}-virtualbox", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "virtualbox-iso", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "{{ user
}}" ], [ "modifyvm", "{{.Name}}", "--cpus", "{{ user
}}" ] ], "virtualbox_version_file": ".vbox_version", "vm_name": "{{ user
}}" }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
}}", "guest_os_type": "fedora-64", "headless": "{{ user
}}-vmware", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "tools_upload_flavor": "linux", "type": "vmware-iso", "vm_name": "{{ user
}}", "vmx_data": { "cpuid.coresPerSocket": "1", "ethernet0.pciSlotNumber": "32", "memsize": "{{ user
}}", "numvcpus": "{{ user
}}" } }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
}}", "guest_os_type": "fedora-core", "http_directory": "http", "iso_checksum": "{{user
}}-parallels", "parallels_tools_flavor": "lin", "prlctl": [ [ "set", "{{.Name}}", "--memsize", "{{ user
}}" ], [ "set", "{{.Name}}", "--cpus", "{{ user
}}" ] ], "prlctl_version_file": ".prlctl_version", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "parallels-iso", "vm_name": "{{ user
}}", "headless": "{{ user
}}-qemu", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "qemu", "vm_name": "{{ user
}}" } ], "post-processors": [ { "output": "builds/{{user
}}.{{.Provider}}.box", "type": "vagrant" } ], "provisioners": [ { "destination": "/tmp/bento-metadata.json", "source": "{{user
}}", "type": "file" }, { "environment_vars": [ "HOME_DIR=/home/vagrant", "http_proxy={{user
}}", "https_proxy={{user
}}", "no_proxy={{user
}}" ], "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "scripts": [ "scripts/common/metadata.sh", "scripts/fedora/fix-slow-dns.sh", "scripts/fedora/build-tools.sh", "scripts/fedora/yum.sh", "scripts/common/sshd.sh", "scripts/common/virtualbox.sh", "scripts/common/vmware.sh", "scripts/common/parallels.sh", "scripts/common/vagrant.sh", "scripts/fedora/cleanup.sh", "scripts/common/minimize.sh" ], "type": "shell" } ], "variables": { "arch": "64", "box_basename": "fedora-25", "build_timestamp": "{{isotime \"20060102150405\"}}", "cpus": "1", "disk_size": "40960", "git_revision": "__unknown_git_revision__", "headless": "", "http_proxy": "{{env
}}", "https_proxy": "{{env
}}", "iso_checksum": "524bd959dae09ad6fc8e0476ea478700d89f82ec5795d0b1a7b873613f3f26ac", "iso_checksum_type": "sha256", "iso_name": "Fedora-Server-dvd-x86_64-25-1.3.iso", "ks_path": "fedora-latest/ks.cfg", "memory": "512", "metadata": "floppy/dummy_metadata.json", "mirror": "http://download.fedoraproject.org/pub/fedora/linux", "mirror_directory": "releases/25/Server/x86_64/iso", "name": "fedora-25", "no_proxy": "{{env
}}", "template": "fedora-25-x86_64", "version": "2.0.TIMESTAMP" } }
build-tools.sh
#!/bin/bash -eux dnf -y install kernel-devel-$(uname -r) gcc perl
The text was updated successfully, but these errors were encountered:
sorry, I did not saw #725
Sorry, something went wrong.
No branches or pull requests
Fedora 25 has been released, lets have a newer image!
Here's the quick diff that works, at least with Virtualbox (I'm not a packer expert, so excuse me for ):
fedora-25-x86_64.json
{ "builders": [ { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
ks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user
disk_size}}", "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", "guest_os_type": "Fedora_64", "hard_drive_interface": "sata", "headless": "{{ user
headless}}", "http_directory": "http", "iso_checksum": "{{user
iso_checksum}}", "iso_checksum_type": "{{user
iso_checksum_type}}", "iso_url": "{{user
mirror}}/{{user
mirror_directory}}/{{user
iso_name}}", "output_directory": "packer-{{user
template}}-virtualbox", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "virtualbox-iso", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "{{ user
memory}}" ], [ "modifyvm", "{{.Name}}", "--cpus", "{{ user
cpus}}" ] ], "virtualbox_version_file": ".vbox_version", "vm_name": "{{ user
template}}" }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
ks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user
disk_size}}", "guest_os_type": "fedora-64", "headless": "{{ user
headless}}", "http_directory": "http", "iso_checksum": "{{user
iso_checksum}}", "iso_checksum_type": "{{user
iso_checksum_type}}", "iso_url": "{{user
mirror}}/{{user
mirror_directory}}/{{user
iso_name}}", "output_directory": "packer-{{user
template}}-vmware", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "tools_upload_flavor": "linux", "type": "vmware-iso", "vm_name": "{{ user
template}}", "vmx_data": { "cpuid.coresPerSocket": "1", "ethernet0.pciSlotNumber": "32", "memsize": "{{ user
memory}}", "numvcpus": "{{ user
cpus}}" } }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
ks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user
disk_size}}", "guest_os_type": "fedora-core", "http_directory": "http", "iso_checksum": "{{user
iso_checksum}}", "iso_checksum_type": "{{user
iso_checksum_type}}", "iso_url": "{{user
mirror}}/{{user
mirror_directory}}/{{user
iso_name}}", "output_directory": "packer-{{user
template}}-parallels", "parallels_tools_flavor": "lin", "prlctl": [ [ "set", "{{.Name}}", "--memsize", "{{ user
memory}}" ], [ "set", "{{.Name}}", "--cpus", "{{ user
cpus}}" ] ], "prlctl_version_file": ".prlctl_version", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "parallels-iso", "vm_name": "{{ user
template}}" }, { "boot_command": [ "<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
ks_path}}<enter><wait>" ], "boot_wait": "10s", "disk_size": "{{user
disk_size}}", "headless": "{{ user
headless}}", "http_directory": "http", "iso_checksum": "{{user
iso_checksum}}", "iso_checksum_type": "{{user
iso_checksum_type}}", "iso_url": "{{user
mirror}}/{{user
mirror_directory}}/{{user
iso_name}}", "output_directory": "packer-{{user
template}}-qemu", "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_username": "vagrant", "ssh_wait_timeout": "10000s", "type": "qemu", "vm_name": "{{ user
template}}" } ], "post-processors": [ { "output": "builds/{{user
box_basename}}.{{.Provider}}.box", "type": "vagrant" } ], "provisioners": [ { "destination": "/tmp/bento-metadata.json", "source": "{{user
metadata}}", "type": "file" }, { "environment_vars": [ "HOME_DIR=/home/vagrant", "http_proxy={{user
http_proxy}}", "https_proxy={{user
https_proxy}}", "no_proxy={{user
no_proxy}}" ], "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "scripts": [ "scripts/common/metadata.sh", "scripts/fedora/fix-slow-dns.sh", "scripts/fedora/build-tools.sh", "scripts/fedora/yum.sh", "scripts/common/sshd.sh", "scripts/common/virtualbox.sh", "scripts/common/vmware.sh", "scripts/common/parallels.sh", "scripts/common/vagrant.sh", "scripts/fedora/cleanup.sh", "scripts/common/minimize.sh" ], "type": "shell" } ], "variables": { "arch": "64", "box_basename": "fedora-25", "build_timestamp": "{{isotime \"20060102150405\"}}", "cpus": "1", "disk_size": "40960", "git_revision": "__unknown_git_revision__", "headless": "", "http_proxy": "{{env
http_proxy}}", "https_proxy": "{{env
https_proxy}}", "iso_checksum": "524bd959dae09ad6fc8e0476ea478700d89f82ec5795d0b1a7b873613f3f26ac", "iso_checksum_type": "sha256", "iso_name": "Fedora-Server-dvd-x86_64-25-1.3.iso", "ks_path": "fedora-latest/ks.cfg", "memory": "512", "metadata": "floppy/dummy_metadata.json", "mirror": "http://download.fedoraproject.org/pub/fedora/linux", "mirror_directory": "releases/25/Server/x86_64/iso", "name": "fedora-25", "no_proxy": "{{env
no_proxy}}", "template": "fedora-25-x86_64", "version": "2.0.TIMESTAMP" } }
build-tools.sh
#!/bin/bash -eux dnf -y install kernel-devel-$(uname -r) gcc perl
The text was updated successfully, but these errors were encountered: