Skip to content
New issue

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

Make an image for Fedora 25 #728

Closed
Tcharl opened this issue Nov 28, 2016 · 1 comment
Closed

Make an image for Fedora 25 #728

Tcharl opened this issue Nov 28, 2016 · 1 comment

Comments

@Tcharl
Copy link
Contributor

Tcharl commented Nov 28, 2016

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" } }

build-tools.sh

#!/bin/bash -eux dnf -y install kernel-devel-$(uname -r) gcc perl

@Tcharl
Copy link
Contributor Author

Tcharl commented Nov 28, 2016

sorry, I did not saw #725

@Tcharl Tcharl closed this as completed Nov 28, 2016
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

No branches or pull requests

1 participant