Commit graph

185 commits

Author SHA1 Message Date
Christian Kotte
d52ce407d4 Add Vagrantfile and exclude .vagrant
Quickly test the box after creation to discover errors like missing
netctl. Better test the box in this project then in another project
that uses the box.
2020-08-13 15:53:08 -07:00
Christian Kotte
73cd66e492 Use output* in .gitignore
The folder output-virtualbox-iso will be created during box
configuration with VirtualBox.
2020-08-13 15:53:08 -07:00
Christian Kotte
213190a00d Remove VirtualBox module loading
The modules will be loaded automatically when vboxservice.service starts
2020-08-13 15:53:08 -07:00
Christian Kotte
0f137664aa Fix VirtualBox Guest Additions installation
- virtualbox-guest-modules-arch doesn't exist anymore and the installation
will fail.
- virtualbox-guest-utils was replaced by virtualbox-guest-utils-nox
because Xorg isn't used.
- linux-headers removed because it's not needed by virtualbox-guest-utils
2020-08-13 15:53:08 -07:00
Christian Kotte
8b1e489ff9 Update automation tools in documentation
Just because I use Ansible with Vagrant ;)
2020-08-13 15:53:08 -07:00
Christian Kotte
8fc98c876b Update documentation with base meta package 2020-08-13 15:53:08 -07:00
Christian Kotte
c5f85d09f3 Add linux, dhcpcd, and netctl to the base installation
The base group was changed to a base meta package and many packages were
removed: https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/

Therefore, it's necessary to add linux or linux-lts to install a Kernel.
Dhcpcd is needed to get an IP after the first reboot. Netctl is needed later when
using Vagrant.
2020-08-13 15:53:08 -07:00
Christian Kotte
072de4ba94 Remove hard tabs from install-base.sh
It's best practice to use soft tabs instead of hard tabs.
2020-08-13 15:53:08 -07:00
Christian Kotte
1225f6f1ee Add configured vCPUs
Just for completeness. One vCPU is the default anyway.
2020-08-13 15:53:08 -07:00
Christian Kotte
e96dd97f3d Increase memory from 512 to 768
The Arch Linux installation ISO cannot be booted with 512MB (default).
It needs to be increased to 768MB. Only tested with VirtualBox, most
probably it's the same with every hypervisor.
2020-08-13 15:53:08 -07:00
Hiroshi Hatake
b416b18bec
Merge pull request #69 from mxl/packer-fix
iso_checksum_url and iso_checksum_type are deprecated in favor of iso_checksum.
2020-07-09 14:51:28 +09:00
Michael Ledin
f2cbd420c3 Run packer fix 2020-07-08 12:55:39 +03:00
Boris-Chengbiao Zhou
ce539e2e6d Add workaround for slow CRNG initialization 2019-07-19 14:54:54 -07:00
appleby
b17c41b0c1
Merge pull request #65 from elcascador62/master
Update README packer build command to pass -only=qemu not -only=libvirt
2019-05-13 10:28:22 -05:00
elcascador62
11b6da29ba
Update README.md 2019-04-29 21:14:23 +02:00
Aaron Bull Schaefer
733d5d524b
Merge pull request #62 from appleby/appleby-arch-packer-bin-rename
Fix a handful of spooky wrapacker bugs
2018-10-31 17:59:19 +00:00
Mike Appleby
e54e34cda1 Check for existence of packer-io command before setting PACKER_BIN
In older versions of arch linux, the hashicorp packer package (and
binary) was named packer-io to avoid clashing with a pre-existing AUR
helper called packer. Recently, the AUR helper package was renamed to
packer-aur and the old packer-io (and corresponding binary) was
renamed to packer.

https://www.archlinux.org/packages/community/x86_64/packer/

Previously, the wrapacker script would unconditionally set PACKER_BIN
to "packer-io" if the file /etc/arch-release existed. We now instead
the check for the existence of a packer-io command, and fall back to
the default "packer" in case that doesn't exist.
2018-10-30 16:43:35 -06:00
Mike Appleby
1e25ccf7c6 Tell curl to follow redirects when fetching ISO_CHECKSUM_URL
mirrors.kernel.org is redirecting to mirrors.edge.kernel.org, causing
ISO_NAME to be set to an empty string. This resulted in ISO_URL being
set to the wrong value and packer failing to download the iso.
2018-10-30 16:31:57 -06:00
Mike Appleby
2a522c91c4 Don't call pacman-optimize in cleanup.sh
The pacman-optimize script has been removed from pacman.

https://git.archlinux.org/pacman.git/commit/?id=d590a45795b30a14cdb697754749c85907053570

This was causing the installer to complain "/usr/bin/pacman-optimize:
No such file or directory".
2018-10-30 16:28:00 -06:00
Aaron Bull Schaefer
72922ed830
Merge pull request #60 from jcf/install-open-vm-tools
Install Open VM Tools
2018-10-28 16:58:21 +00:00
Aaron Bull Schaefer
2ac568186c
Merge pull request #61 from tomswartz07/iso_fix
Use Packer Template feature to auto-populate ISOs
2018-10-03 16:17:25 -07:00
Tom Swartz
af9c4ce9af Use same format for output box name 2018-10-03 17:33:12 -04:00
Tom Swartz
f235e7b55b Use Packer Template feature to auto-populate ISOs
Packer template variables allow for dynamic integration of isodate
variables.
This commit leverages the isotime template engine to auto generate
the year and month values for the ISO url as well as the SHA checksum
fields.

This will allow for the ISO image to continuously remain up-to-date
without the need for continued monthly commits.

Additionally, it leverages this same template variable to ensure that
the resulting box filename matches the date it was created, for archival
purposes.
2018-10-02 19:05:30 -04:00
Tom Swartz
682c800dc8 Update to October 2018 ISO 2018-10-02 18:52:03 -04:00
James Conroy-Finn
6311877e6f Install VMware's Open VM Tools 2018-09-30 18:35:07 +01:00
Hiroshi Hatake
572b2d8c88 Update to September 2018 ISO 2018-09-02 13:25:20 +09:00
Hiroshi Hatake
1356679463 Update to August 2018 ISO 2018-08-03 13:47:16 +09:00
Hiroshi Hatake
7ecceb87ab Update to July 2018 ISO 2018-07-01 14:15:51 +09:00
Hiroshi Hatake
ba9d7bd90c Update to June 2018 ISO 2018-06-17 12:42:28 +09:00
Hiroshi Hatake
0a3608d569 Update to May 2018 ISO 2018-05-07 11:38:33 +09:00
Hiroshi Hatake
5088253a45 Update to March 2018 ISO 2018-03-16 14:06:03 +09:00
Hiroshi Hatake
d83848372a Revert "Update to May 2018 ISO"
This reverts commit ac0604c36a.
2018-03-16 14:05:42 +09:00
Hiroshi Hatake
ac0604c36a Update to May 2018 ISO 2018-03-02 12:08:33 +09:00
Nicolas Iooss
9bd828456d Merge pull request #59 from deathbeam/patch-1
Set expect_disconnect to "true" to fix build
2017-10-22 11:30:09 +02:00
Tomas Slusny
61dab773a1 Set expect_disconnect to "true" to fix build
Based on https://www.packer.io/docs/provisioners/shell.html#expect_disconnect and local test, expect_disconnect in shell provisioner is not true by default anymore, so when install-base tries to reboot machine, installation fails.
2017-10-19 17:26:58 +02:00
Tom Swartz
0522b12f9e Update ISO for Oct 2017 2017-10-02 11:56:46 -04:00
Hiroshi Hatake
b712096688 Update to September 2017 ISO 2017-09-16 16:29:06 +09:00
Hiroshi Hatake
f185199e1e Update to July 2017 ISO 2017-07-02 19:20:39 +09:00
Hiroshi Hatake
d14b3bea35 Update to June 2017 ISO 2017-06-05 10:56:50 +09:00
Tom Swartz
eecb5a7b4a Update to May 2017 ISO 2017-05-02 08:56:57 -04:00
Tom Swartz
02f2f5ea07 Merge pull request #58 from tomaspapan/master
Fix wrapper download iso url and update to April 2017 ISO
2017-04-12 08:38:32 -04:00
Tomas Papan
68e0c0d409
Update to April 2017 ISO 2017-04-12 10:05:30 +02:00
Tomas Papan
4915e58199
Fix wrapper download iso url
It seems the archlinux dropped support for dual iso.
According the official mirror (and many other which I have checked)
there is only -x86_64.iso file.
You can see it here: https://mirrors.kernel.org/archlinux/iso/latest/
This fix will ensure that the correct signature is read when the image
is parsed in sha1sum.txt file.
2017-04-12 09:53:58 +02:00
Tom Swartz
ee0e88f7c9 Update to March 2017 ISO 2017-03-06 10:01:57 -05:00
Michael Ledin
bb83901361 Add "headless" variable for vmware and qemu. 2017-03-05 09:56:31 -08:00
Aaron Bull Schaefer
f06bdf5359 Bump the Copyright date range to include 2017 2017-01-23 16:36:04 -08:00
Aaron Bull Schaefer
dc7fb0cdc8 Change boot wait time to 40 seconds
This splits the difference between 60 seconds (from [1]) and the
previous 20 seconds, which is no longer enough time to boot cleanly...

@tomswartz07, @mod, and I have all been experiencing mid-20 second boot
times, so 40 seconds seems like enough headroom without being excessive.

[1]: 443997f28c
2017-01-23 16:17:27 -08:00
Louis Bellet
e4bcd86a63 Fixing Guest Virtualbox tools
Archlinux wiki suggest for linux kernel using virtualbox-host-modules-arch
2017-01-23 15:40:03 -08:00
Tom Swartz
443997f28c January 2017 ISO + Boot Timeout increase
Update to Jan 2017 ISO (Happy New Year!)

It appears that the ISO startup boot time is slightly longer, recently.
Increase timeout before typing boot commands, to prevent initial parts
of the enable-ssh script from being cut off.
2017-01-09 09:22:45 -05:00
Tomas Papan
e628cd76a3 Add headless option into wrapacker script
Only works with virtualbox provider.
2016-11-20 11:14:50 -08:00