diff --git a/.gitignore b/.gitignore index b8c21bb1..e5a932a7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,9 @@ setup.json # dogus containers/ -!containers/.gitkeep \ No newline at end of file +!containers/.gitkeep + +images/prod/build +images/prod/output-* +images/dev/build +images/dev/output-* diff --git a/CHANGELOG.md b/CHANGELOG.md index ca7ec4b9..1e824125 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,9 +10,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Changed +- Upgrade to Ubuntu 24.04; #461 +- Upgrade fail2ban to 1.1.0 +- Upgrade terraform to 1.9.1 +- Convert Packer templates to HCL format +- You need to specify a VirtualBox version below 7 on Packer image build - Update images in docs to improve compliance +### Removed +- Removed ctop +- Removed libreadline-gplv2-dev + ## [v20.04.6-1] - 2024-07-09 +### Changed - Upgrade to Docker 26.1.4 - Upgrade to Ubuntu 20.04.6 diff --git a/Jenkinsfile b/Jenkinsfile index 6bd52655..1609fecc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,17 +27,28 @@ node('docker') { shellCheck("./install/setup-message.sh") shellCheck("./install/sync-files.sh") shellCheck("./install.sh") + shellCheck("./images/scripts/commons/ces_apt.sh") shellCheck("./images/scripts/commons/cleanup.sh") shellCheck("./images/scripts/commons/dependencies.sh") shellCheck("./images/scripts/commons/docker.sh") shellCheck("./images/scripts/commons/etcd.sh") + shellCheck("./images/scripts/commons/fail2ban.sh") + shellCheck("./images/scripts/commons/grub.sh") shellCheck("./images/scripts/commons/guestadditions.sh") shellCheck("./images/scripts/commons/minimize.sh") shellCheck("./images/scripts/commons/networking.sh") shellCheck("./images/scripts/commons/sshd.sh") shellCheck("./images/scripts/commons/subvolumes.sh") + shellCheck("./images/scripts/commons/terraform.sh") shellCheck("./images/scripts/commons/update.sh") shellCheck("./images/scripts/dev/dependencies.sh") + shellCheck("./images/scripts/dev/vagrant.sh") + shellCheck("./images/scripts/prod/sshd_security.sh") + } + + stage('Packer validate') { + sh 'cd images/dev && packer init . && packer validate dev.pkr.hcl' + sh 'cd images/prod && packer init . && packer validate -var "timestamp=$(date +%Y%m%d)" prod.pkr.hcl' } } } diff --git a/docs/development/building_basebox_en.md b/docs/development/building_basebox_en.md index c69c2d61..1379860a 100644 --- a/docs/development/building_basebox_en.md +++ b/docs/development/building_basebox_en.md @@ -18,20 +18,21 @@ new development instance via Vagrant. git clone https://github.com/cloudogu/k8s-ecosystem.git ``` -If you are using VirtualBox 7, check out the `feature/virtualbox7` branch! +**2. Build image** ```bash -git checkout feature/virtualbox7 +cd /images/dev/ +packer init . +packer build dev.pkr.hcl ``` -**2. Build image** +If you are using a VirtualBox version below 7, you need to set a build variable: ```bash -cd /images/ -packer build template.dev.json +packer build -var virtualbox-version-lower-7=true dev.pkr.hcl ``` **3. Wait** The image building process takes about 15 minutes, depending on your hardware and internet connection. Packer should -create a resulting basebox named `ecosystem-basebox.box` in the `image/build` folder. +create a resulting basebox named `ecosystem-basebox.box` in the `images/dev/build` folder. diff --git a/docs/development/image-build_de.md b/docs/development/image-build_de.md index 316f3699..cf22f3df 100644 --- a/docs/development/image-build_de.md +++ b/docs/development/image-build_de.md @@ -7,20 +7,23 @@ ## 1. Schauen Sie sich das ecosystem-Repository an * `git clone https://github.com/cloudogu/ecosystem.git` ## 2. Bauen Sie das/die Image(s) mit Packer -* `cd /images/` -* `packer build -var "timestamp=$(date +%Y%m%d)" template.prod.json` +* `cd /images/prod/` +* `packer init .` +* `packer build -var "timestamp=$(date +%Y%m%d)" prod.pkr.hcl` * Baut alle Images für die Produktion - * Um nur einen bestimmten Build für einen der Hypervisoren zu erhalten, verwenden Sie den Parameter `--only=`. Mit ihm kann der Image-Typ auf `ecosystem-virtualbox`, `ecosystem-vmware` oder `ecosystem-qemu` konfiguriert werden + * Um nur einen bestimmten Build für einen der Hypervisoren zu erhalten, verwenden Sie den Parameter `--only=`. Mit ihm kann der Image-Typ auf `virtualbox-iso.ecosystem-virtualbox`, `qemu.ecosystem-qemu` oder `vmware-iso.ecosystem-vmware` konfiguriert werden * Der Standardbenutzer ist `ces-admin` mit dem Passwort `ces-admin` (wird im Setup-Prozess geändert) -* `packer build template.dev.json` +* `cd /images/dev/ && packer init . && packer build dev.pkr.hcl` * Erzeugt ein Image für die Entwicklung - * Fügt Entwicklungswerkzeuge wie `htop` und `jq` zum vm hinzu. + * Fügt Entwicklungswerkzeuge wie `htop` und `jq` zur VM hinzu. Eine vollständige Liste ist in den folgenden Dateien zu finden: * [dependencies.sh](https://github.com/cloudogu/ecosystem/blob/develop/images/scripts/dev/dependencies.sh) * [vagrant.sh](https://github.com/cloudogu/ecosystem/blob/develop/images/scripts/dev/vagrant.sh) * Der Standardbenutzer ist `vagrant` mit dem Passwort `vagrant`. +* Sollte eine VirtualBox-Version kleiner als 7 zum Bauen benutzt werden, muss der zusätzliche Parameter `virtualbox-version-lower-7` benutzt werden, bspw. so: `packer build -var virtualbox-version-lower-7=true dev.pkr.hcl` ## 3. Warten -* Der Image-Erstellungsprozess dauert etwa 45 Minuten, abhängig von Ihrer Hardware +* Der Image-Erstellungsprozess dauert etwa 20 Minuten, abhängig von Ihrer Hardware und der Geschwindigkeit ihres Internetanschlusses. + ## 4. Beenden -* Das/die Image(s) finden Sie in `/images/output-*`. +* Das/die Image(s) finden Sie in `/images/dev/build` bzw. `/images/prod/output-*`. diff --git a/docs/development/image-build_en.md b/docs/development/image-build_en.md index d710b26c..aa6925ac 100644 --- a/docs/development/image-build_en.md +++ b/docs/development/image-build_en.md @@ -7,20 +7,23 @@ ## 1. Check out the ecosystem repository * `git clone https://github.com/cloudogu/ecosystem.git` ## 2. Build the image(s) with packer -* `cd /images/` -* `packer build -var "timestamp=$(date +%Y%m%d)" template.prod.json` +* `cd /images/prod/` +* `packer init .` +* `packer build -var "timestamp=$(date +%Y%m%d)" prod.pkr.hcl` * Builds all images for production - * To get only a specific build for one of the hypervisors, use the`--only=` parameter. With it, the image type can be configured to `ecosystem-virtualbox`, `ecosystem-vmware` or `ecosystem-qemu` + * To get only a specific build for one of the hypervisors, use the`--only=` parameter. With it, the image type can be configured to `virtualbox-iso.ecosystem-virtualbox`, `qemu.ecosystem-qemu` or `vmware-iso.ecosystem-vmware`. * The default user is `ces-admin` with password `ces-admin` (will be changed in setup process) -* `packer build template.dev.json` +* `cd /images/dev && packer init . && packer build dev.pkr.hcl` * Builds an image for development * Adds development tools like `htop` and `jq` to the the vm. A full list can be found in the following files: * [dependencies.sh](https://github.com/cloudogu/ecosystem/blob/develop/images/scripts/dev/dependencies.sh) * [vagrant.sh](https://github.com/cloudogu/ecosystem/blob/develop/images/scripts/dev/vagrant.sh) * The default user is `vagrant` with password `vagrant` +* If you are using a VirtualBox version below 7 to build the images, you have to set the additional build parameter `virtualbox-version-lower-7`, e.g.: `packer build -var virtualbox-version-lower-7=true dev.pkr.hcl` ## 3. Wait -* The image build process lasts around 45 minutes, depending on your hardware +* The image build process lasts around 20 minutes, depending on your hardware and internet connection speed. + ## 4. Finish -* The image(s) can be found in `/images/output-*` +* The image(s) can be found in `/images/dev/build` and `/images/prod/output-*`. diff --git a/docs/development/releasing_basebox_en.md b/docs/development/releasing_basebox_en.md index 39362695..fcb94e22 100644 --- a/docs/development/releasing_basebox_en.md +++ b/docs/development/releasing_basebox_en.md @@ -3,14 +3,14 @@ 0. Make a release of ecosystem, if not already existent, as described in [Release the ecosystem](release_ecosystem_en.md) 1. Build a basebox as described in [Building Basebox](building_basebox_en.md) 2. Add a version to the basebox - - Change the basebox name from `images/build/ecosystem-basebox.box` to `images/build/basebox-virtualbox-v20.04.X-Y.box` -3. Create a new folder `v20.04.X-Y` in the `basebox/virtualbox` folder in the [Google Cloud Bucket](https://console.cloud.google.com/storage/browser/cloudogu-ecosystem?project=cloudogu-backend) + - Change the basebox name from `images/dev/build/ecosystem-basebox.box` to `images/dev/build/basebox-virtualbox-v24.04.X-Y.box` +3. Create a new folder `v24.04.X-Y` in the `basebox/virtualbox` folder in the [Google Cloud Bucket](https://console.cloud.google.com/storage/browser/cloudogu-ecosystem?project=cloudogu-backend) 4. Upload the box to the corresponding versioned folder - - e.g. upload the `images/build/basebox-virtualbox-v20.04.X-Y.box` into the `basebox/virtualbox/v20.04.X-Y` folder + - e.g. upload the `images/dev/build/basebox-virtualbox-v24.04.X-Y.box` into the `basebox/virtualbox/v24.04.X-Y` folder 5. Edit the file's access permissions - Add an entry "Public/allUsers" and grant it "Reader" permissions 6. Adapt the Vagrantfile to match the newly released box - - Adapt the basebox_version (to `v20.04.X-Y`) - - Adapt the basebox_checksum (get it via `sha256sum images/build/basebox-virtualbox-v20.04.X-Y.box`) + - Adapt the basebox_version (to `v24.04.X-Y`) + - Adapt the basebox_checksum (get it via `sha256sum images/dev/build/basebox-virtualbox-v24.04.X-Y.box`) - Test it via `vagrant up` - Commit and push diff --git a/docs/operations/ubuntu_upgrade_de.md b/docs/operations/ubuntu_upgrade_de.md index 75d2efa7..e844b779 100644 --- a/docs/operations/ubuntu_upgrade_de.md +++ b/docs/operations/ubuntu_upgrade_de.md @@ -1,24 +1,22 @@ -# Upgrade von Ubuntu 18.04 auf 20.04 +# Upgrade von Ubuntu 20.04 auf 24.04 -## 1. Upgrade von Ubuntu 18.04 auf 20.04 +## 1. Upgrade von Ubuntu 20.04 auf 24.04 -Sie können die Ubuntu-Distribution, auf der das Cloudogu EcoSystem aufgebaut ist, wie jedes andere Ubuntu-basierte System aktualisieren. Eine gute Referenz über die zu unternehmenden Schritte finden Sie hier: https://www.linuxcloudvps.com/blog/how-to-update-your-server-from-ubuntu-18-04-to-ubuntu-20-04/ +Sie können die Ubuntu-Distribution, auf der das Cloudogu EcoSystem aufgebaut ist, wie jedes andere Ubuntu-basierte System aktualisieren. ## 2. Anpassen der apt-Konfiguration -Nachdem Sie Ihr EcoSystem auf Ubuntu 20.04 aktualisiert haben, müssen Sie einige der EcoSystem-spezifischen apt-Konfiguration anpassen: +Nachdem Sie Ihr EcoSystem auf Ubuntu 24.04 aktualisiert haben, müssen Sie einige der EcoSystem-spezifischen apt-Konfiguration anpassen: -- Passen Sie die Datei `/etc/apt/sources.list.d/ces.list` von 18.04 (bionic) auf 20.04 (focal) an - - Fügen Sie diese Zeile ein: `deb [arch=amd64] https://apt.cloudogu.com/ces/ focal main` - - Entfernen Sie alte Zeilen wie `deb [arch=amd64] https://apt.cloudogu.com/ces/ bionic main` +- Passen Sie die Datei `/etc/apt/sources.list.d/docker.list` von 20.04 (focal) auf 24.04 (noble) an + - Fügen Sie diese Zeile ein: `deb [arch=amd64] https://download.docker.com/linux/ubuntu noble stable` + - Entfernen Sie alte Zeilen wie `deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable` -- Passen Sie die Datei `/etc/apt/sources.list.d/docker.list` von 18.04 (bionic) auf 20.04 (focal) an - - Fügen Sie diese Zeile ein: `deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable` - - Entfernen Sie alte Zeilen wie `deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable` +- Passen Sie die Datei `/etc/apt/sources.list.d/hashicorp.list` von 20.04 (focal) auf 24.04 (noble) an + - Fügen Sie diese Zeile ein: `deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com noble main` + - Entfernen Sie alte Zeilen wie `deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com focal main` -- Passen Sie die Datei `/etc/apt/sources.list.d/hashicorp.list` von 18.04 (bionic) auf 20.04 (focal) an - - Fügen Sie diese Zeile ein: `deb [arch=amd64] https://apt.releases.hashicorp.com focal main` - - Entfernen Sie alte Zeilen wie `deb [arch=amd64] https://apt.releases.hashicorp.com bionic main` +- Belassen Sie die `/etc/apt/sources.list.d/ces.list` auf dem `focal`-Codename. - Überprüfen Sie Ihre Arbeit, indem Sie `sudo apt update` ausführen. Es sollte keine Fehler melden. diff --git a/docs/operations/ubuntu_upgrade_en.md b/docs/operations/ubuntu_upgrade_en.md index c709d050..b4c8357b 100644 --- a/docs/operations/ubuntu_upgrade_en.md +++ b/docs/operations/ubuntu_upgrade_en.md @@ -1,24 +1,22 @@ -# Upgrading from Ubuntu 18.04 to 20.04 +# Upgrading from Ubuntu 20.04 to 24.04 -## 1. Upgrade Ubuntu 18.04 to 20.04 +## 1. Upgrade Ubuntu 20.04 to 24.04 -You can upgrade the Ubuntu distribution the Cloudogu EcoSystem is built on just like in any other Ubuntu based system. A good reference about the steps to take can be found here: https://www.linuxcloudvps.com/blog/how-to-update-your-server-from-ubuntu-18-04-to-ubuntu-20-04/ +You can upgrade the Ubuntu distribution the Cloudogu EcoSystem is built on just like in any other Ubuntu based system. ## 2. Adjust apt configuration -After you have upgraded your EcoSystem to Ubuntu 20.04, you have to adapt some of the EcoSystem-specific apt configuration: +After you have upgraded your EcoSystem to Ubuntu 24.04, you have to adapt some of the EcoSystem-specific apt configuration: -- Adjust the file `/etc/apt/sources.list.d/ces.list` from 18.04 (bionic) to 20.04 (focal) - - Insert this line: `deb [arch=amd64] https://apt.cloudogu.com/ces/ focal main` - - Remove old lines like `deb [arch=amd64] https://apt.cloudogu.com/ces/ bionic main` +- Adjust the file `/etc/apt/sources.list.d/docker.list` from 20.04 (focal) to 24.04 (noble) + - Insert this line: `deb [arch=amd64] https://download.docker.com/linux/ubuntu noble stable` + - Remove old lines like `deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable` -- Adjust the file `/etc/apt/sources.list.d/docker.list` from 18.04 (bionic) to 20.04 (focal) - - Insert this line: `deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable` - - Remove old lines like `deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable` +- Adjust the file `/etc/apt/sources.list.d/hashicorp.list` from 20.04 (focal) to 24.04 (noble) + - Insert this line: `deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com noble main` + - Remove old lines like `deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com focal main` -- Adjust the file `/etc/apt/sources.list.d/hashicorp.list` from 18.04 (bionic) to 20.04 (focal) - - Insert this line: `deb [arch=amd64] https://apt.releases.hashicorp.com focal main` - - Remove old lines like `deb [arch=amd64] https://apt.releases.hashicorp.com bionic main` +- Keep the `focal` codename in the `/etc/apt/sources.list.d/ces.list` file. - Check your work by running `sudo apt update`. It should report no errors. diff --git a/docs/operations/unattended_upgrades_de.md b/docs/operations/unattended_upgrades_de.md index 070f5390..fe638712 100644 --- a/docs/operations/unattended_upgrades_de.md +++ b/docs/operations/unattended_upgrades_de.md @@ -31,14 +31,14 @@ Um zu überprüfen, ob automatische Updates aktiviert sind, führen Sie den Befe Die Ausgabe sollte lauten: `APT::Periodic::Unattended-Upgrade "1";` # Troubleshooting -## Ubuntu-Versionen <= 16.04 erhalten keine apt-Updates mehr -Seit April 2021 wird die LTS-Version von [Ubuntu 16.04 nicht mehr mit Updates versorgt](https://ubuntu.com/about/release-cycle). -Aus diesem Grund unterstützt auch das Cloudogu Ecosystem (CES) die Ubuntu-Version 16.04 nicht weiter. Zusätzlich wurde auch das apt-Repository von Cloudogu geändert, aus dem die apt-Pakete des Cloudogu EcoSystem gezogen werden. -Sollten Sie nun eine ältere Cloudogu-Version nutzen, legen wir Ihnen nahe Ihre Ubuntu-Version auf mindestens 18.04 zu updaten. Bitte führen Sie zuerst ein Update mit folgenden Befehlen aus: +## Ubuntu-Versionen <= 18.04 erhalten keine apt-Updates mehr +Seit April 2023 wird die LTS-Version von [Ubuntu 18.04 nicht mehr mit Updates versorgt](https://ubuntu.com/about/release-cycle). +Aus diesem Grund unterstützt auch das Cloudogu Ecosystem (CES) die Ubuntu-Version 18.04 nicht weiter. Zusätzlich wurde auch das apt-Repository von Cloudogu geändert, aus dem die apt-Pakete des Cloudogu EcoSystem gezogen werden. +Sollten Sie nun eine ältere Cloudogu-Version nutzen, legen wir Ihnen nahe Ihre Ubuntu-Version auf mindestens 20.04 zu updaten. Bitte führen Sie zuerst ein Update mit folgenden Befehlen aus: ```shell apt-get update apt-get upgrade ``` Das Paket `ces-commons` sollte nun in mindestens Version `0.8.0` installiert sein. Dies lässt sich mit dem Befehl `apt list | grep ces-commons` überprüfen. -Erhalten Sie weiterhin keine Updates für CES-Pakete empfehlen wir die Datei `/etc/apt/sources.list.d/ces.list` zu überprüfen. Diese sollte eine Zeile der Form `deb [arch=amd64] https://apt.cloudogu.com/ces/ bionic main` enthalten. +Erhalten Sie weiterhin keine Updates für CES-Pakete empfehlen wir die Datei `/etc/apt/sources.list.d/ces.list` zu überprüfen. Diese sollte eine Zeile der Form `deb [arch=amd64] https://apt.cloudogu.com/ces/ focal main` enthalten. diff --git a/docs/operations/unattended_upgrades_en.md b/docs/operations/unattended_upgrades_en.md index 8a12bd8d..e44d5d4f 100644 --- a/docs/operations/unattended_upgrades_en.md +++ b/docs/operations/unattended_upgrades_en.md @@ -31,14 +31,14 @@ To validate that automatic updates are activated, run the command `apt-config du The output should be: `APT::Periodic::Unattended-Upgrade "1";` ## Troubleshooting -## Ubuntu versions <= 16.04 no longer receive apt updates. -As of April 2021, the LTS version of [Ubuntu 16.04 will no longer receive updates](https://ubuntu.com/about/release-cycle). -For this reason, the Cloudogu Ecosystem (CES) will also no longer support Ubuntu version 16.04. In addition, Cloudogu's apt repository, from which the Cloudogu EcoSystem apt packages are pulled, has also been changed. -If you are now using an older Cloudogu version, we suggest you update your Ubuntu version to at least 18.04. Please run an update with the following commands first: +## Ubuntu versions <= 18.04 no longer receive apt updates. +As of April 2023, the LTS version of [Ubuntu 18.04 will no longer receive updates](https://ubuntu.com/about/release-cycle). +For this reason, the Cloudogu Ecosystem (CES) will also no longer support Ubuntu version 18.04. In addition, Cloudogu's apt repository, from which the Cloudogu EcoSystem apt packages are pulled, has also been changed. +If you are now using an older Cloudogu version, we suggest you update your Ubuntu version to at least 20.04. Please run an update with the following commands first: ```shell apt-get update apt-get upgrade ``` The package `ces-commons` should now be installed in at least version `0.8.0`. This can be checked with the command `apt list | grep ces-commons`. -If you still do not receive updates for CES packages we recommend to check the file `/etc/apt/sources.list.d/ces.list`. This should contain a line of the form `deb [arch=amd64] https://apt.cloudogu.com/ces/ bionic main`. +If you still do not receive updates for CES packages we recommend to check the file `/etc/apt/sources.list.d/ces.list`. This should contain a line of the form `deb [arch=amd64] https://apt.cloudogu.com/ces/ focal main`. diff --git a/images/dev/dev.pkr.hcl b/images/dev/dev.pkr.hcl new file mode 100644 index 00000000..d0868d6e --- /dev/null +++ b/images/dev/dev.pkr.hcl @@ -0,0 +1,127 @@ +packer { + required_plugins { + vagrant = { + source = "github.com/hashicorp/vagrant" + version = "~> 1" + } + virtualbox = { + source = "github.com/hashicorp/virtualbox" + version = "~> 1" + } + } +} + +variable "cpus" { + type = number + default = 4 +} + +variable "disk_size" { + type = number + default = 100000 +} + +variable "iso_checksum" { + type = string + default = "sha256:8762f7e74e4d64d72fceb5f70682e6b069932deedb4949c6975d0f0fe0a91be3" +} + +variable "iso_url" { + type = string + default = "https://releases.ubuntu.com/noble/ubuntu-24.04-live-server-amd64.iso" +} + +variable "memory" { + type = number + default = 8192 +} + +variable "password" { + type = string + default = "vagrant" +} + +variable "username" { + type = string + default = "vagrant" +} + +variable "vm_name" { + type = string + default = "ces" +} + +variable "virtualbox-version-lower-7" { + type = bool + description = "This flag indicates that the local virtualbox version you are using is older than version 7. It is used to create the modifyvm option list, because some options are not available with virtualbox < 7" + default = false +} + +locals { + common_vboxmanage = [["modifyvm", "${var.vm_name}", "--memory", "${var.memory}"], ["modifyvm", "${var.vm_name}", "--cpus", "${var.cpus}"], ["modifyvm", "${var.vm_name}", "--vram", "10"]] + vboxmanage = var.virtualbox-version-lower-7 ? local.common_vboxmanage : concat(local.common_vboxmanage, [["modifyvm", var.vm_name, "--nat-localhostreachable1", "on"]]) +} + +source "virtualbox-iso" "ecosystem-basebox" { + boot_command = [ + "c", + "set gfxpayload=keep", + "linux /casper/vmlinuz ", + "autoinstall fsck.mode=skip noprompt ", + "ds=\"nocloud;s=http://{{.HTTPIP}}:{{.HTTPPort}}/\"", + "initrd /casper/initrd", + "boot" + ] + boot_wait = "5s" + disk_size = var.disk_size + guest_os_type = "Ubuntu_64" + hard_drive_interface = "sata" + headless = false + http_directory = "http" + iso_checksum = var.iso_checksum + iso_url = var.iso_url + shutdown_command = "echo ${var.username} | sudo -S -E shutdown -P now" + ssh_handshake_attempts = "10000" + ssh_password = var.password + ssh_timeout = "20m" + ssh_username = var.username + vboxmanage = local.vboxmanage + vm_name = "${var.vm_name}" +} + +build { + sources = ["source.virtualbox-iso.ecosystem-basebox"] + + provisioner "shell" { + environment_vars = ["INSTALL_HOME=/vagrant", "HOME_DIR=/home/${var.username}"] + execute_command = "echo ${var.password} | {{ .Vars }} sudo -S -E /bin/bash -eux '{{ .Path }}'" + expect_disconnect = true + scripts = ["../scripts/commons/ces_apt.sh", "../scripts/commons/update.sh"] + } + + provisioner "shell" { + environment_vars = ["INSTALL_HOME=/vagrant", "HOME_DIR=/home/${var.username}"] + execute_command = "echo ${var.password} | {{ .Vars }} sudo -S -E /bin/bash -eux '{{ .Path }}'" + pause_before = "5s" + scripts = [ + "../scripts/commons/dependencies.sh", + "../scripts/commons/sshd.sh", + "../scripts/commons/grub.sh", + "../scripts/commons/subvolumes.sh", + "../scripts/commons/guestadditions.sh", + "../scripts/dev/vagrant.sh", + "../scripts/dev/dependencies.sh", + "../scripts/commons/docker.sh", + "../scripts/commons/terraform.sh", + "../scripts/commons/fail2ban.sh", + "../scripts/commons/etcd.sh", + "../scripts/commons/networking.sh", + "../scripts/commons/cleanup.sh", + "../scripts/commons/minimize.sh" + ] + } + + post-processor "vagrant" { + output = "build/{{ .BuildName }}.box" + } +} diff --git a/images/dev/http/meta-data b/images/dev/http/meta-data new file mode 100644 index 00000000..7c0217b4 --- /dev/null +++ b/images/dev/http/meta-data @@ -0,0 +1 @@ +# This file needs to be present for Ubuntu installer diff --git a/images/http/dev/user-data b/images/dev/http/user-data similarity index 100% rename from images/http/dev/user-data rename to images/dev/http/user-data diff --git a/images/http/dev/meta-data b/images/http/dev/meta-data deleted file mode 100644 index 4a57790c..00000000 --- a/images/http/dev/meta-data +++ /dev/null @@ -1 +0,0 @@ -# This file needs to be present for Ubuntu 20.04 installer \ No newline at end of file diff --git a/images/http/preseed.origin.cfg b/images/http/preseed.origin.cfg deleted file mode 100644 index 1493251e..00000000 --- a/images/http/preseed.origin.cfg +++ /dev/null @@ -1,1333 +0,0 @@ -# locale -d-i localechooser/help/locale note -# Loop-mounted file systems already present -partman-auto-loop partman-auto-loop/unclean_host error -# Name of the volume group for the new system: -partman-auto-lvm partman-auto-lvm/new_vg_name string ces-vg -# Volume group name already in use -partman-auto-lvm partman-auto-lvm/vg_exists error -# Continue without a default route? -netcfg netcfg/no_default_route boolean -# Select a location in your time zone: -# Choices: Guayaquil, Galapagos, Select from worldwide list -tzsetup-udeb tzsetup/country/EC select -# -# Choices: Belgium, Germany, Liechtenstein, Luxembourg, Austria, Switzerland, other -d-i localechooser/shortlist/de select -# -# Choices: British Indian Ocean Territory, Christmas Island, Cocos (Keeling) Islands, Comoros, French Southern Territories, Heard Island and McDonald Islands, Madagascar, Maldives, Mauritius, Mayotte, Réunion, Seychelles -d-i localechooser/countrylist/Indian_Ocean select -# Use software from the "universe" component? -apt-mirror-setup apt-setup/universe boolean true -# No physical volumes selected -partman-lvm partman-lvm/vgreduce_nosel error -# Write the changes to disks? -partman-base partman/confirm_nooverwrite boolean false -# for internal use -d-i keyboard-configuration/store_defaults_in_debconf_db boolean true -# Keep current partition layout and configure RAID? -partman-md partman-md/confirm_nochanges boolean false -# Country to base default locale settings on: -# Choices: Antigua and Barbuda${!TAB}-${!TAB}en_AG, Australia${!TAB}-${!TAB}en_AU.UTF-8, Botswana${!TAB}-${!TAB}en_BW.UTF-8, Canada${!TAB}-${!TAB}en_CA.UTF-8, Hong Kong${!TAB}-${!TAB}en_HK.UTF-8, India${!TAB}-${!TAB}en_IN, Ireland${!TAB}-${!TAB}en_IE.UTF-8, New Zealand${!TAB}-${!TAB}en_NZ.UTF-8, Nigeria${!TAB}-${!TAB}en_NG, Philippines${!TAB}-${!TAB}en_PH.UTF-8, Singapore${!TAB}-${!TAB}en_SG.UTF-8, South Africa${!TAB}-${!TAB}en_ZA.UTF-8, United Kingdom${!TAB}-${!TAB}en_GB.UTF-8, United States${!TAB}-${!TAB}en_US.UTF-8, Zambia${!TAB}-${!TAB}en_ZM, Zimbabwe${!TAB}-${!TAB}en_ZW.UTF-8 -d-i localechooser/preferred-locale select en_US.UTF-8 -# Key size for this partition: -# Choices: -partman-crypto partman-crypto/keysize select -# Unreachable gateway -netcfg netcfg/gateway_unreachable error -# PCMCIA resource range options: -d-i hw-detect/pcmcia_resources string -# Failed to open checksum file -d-i cdrom-checker/md5file_failed error -# -# Choices: Antarctica -d-i localechooser/countrylist/Antarctica select -# Write previous changes to disk and continue? -partman-partitioning partman-partitioning/confirm_copy boolean -# No physical volumes selected -partman-lvm partman-lvm/vgextend_nosel error -# for internal use only -d-i cdrom-detect/usb-hdd boolean false -# Write the changes to the storage devices and configure RAID? -partman-md partman-md/confirm boolean false -# Devices to remove from the volume group: -# Choices: -partman-lvm partman-lvm/vgreduce_parts multiselect -# Interactive shell -d-i di-utils-shell/do-shell note -# No physical volumes selected -partman-lvm partman-lvm/vgcreate_nosel error -# Select your time zone: -# Choices: Eastern, Central, Mountain, Pacific, Alaska, Hawaii, Arizona, East Indiana, Samoa, Select from worldwide list -tzsetup-udeb tzsetup/country/US select US/Eastern -# Manually select a CD-ROM module and device? -d-i cdrom-detect/manual_config boolean true -# Country, territory or area: -# Choices: Antigua and Barbuda, Australia, Botswana, Canada, Hong Kong, India, Ireland, New Zealand, Nigeria, Philippines, Singapore, South Africa, United Kingdom, United States, Zambia, Zimbabwe, other -d-i localechooser/shortlist select US -# NTP server to use: -clock-setup clock-setup/ntp-server string ntp.ubuntu.com -# Invalid input -partman-auto-lvm partman-auto-lvm/bad_guided_size error -# Keep current keyboard options in the configuration file? -d-i keyboard-configuration/unsupported_config_options boolean true -# Failed to remove conflicting files -partman-target partman-target/clear_partitions_failed error -# Is the system clock set to UTC? -clock-setup clock-setup/utc boolean true -# Network configuration method: -# Choices: Retry network autoconfiguration, Retry network autoconfiguration with a DHCP hostname, Configure network manually, , Do not configure the network at this time -netcfg netcfg/dhcp_options select Configure network manually -# -# Choices: Africa, Antarctica, Asia, Atlantic Ocean, Caribbean, Central America, Europe, Indian Ocean, North America, Oceania, South America, other -d-i localechooser/continentlist select -# Select disk to partition: -# Choices: SCSI3 (0\,0\,0) (sda) - 21.5 GB ATA VBOX HARDDISK -partman-auto partman-auto/select_disk select /var/lib/partman/devices/=dev=sda -# Active devices for the RAID0 array: -# Choices: -partman-md partman-md/raid0devs multiselect -# Activate MDADM containers (Intel/DDF RAID)? -disk-detect disk-detect/activate_mdadm boolean true -# for internal use; can be preseeded -network-preseed auto-install/enable boolean false -# Ubuntu archive mirror directory: -choose-mirror-bin mirror/ftp/directory string /ubuntu/ -# Patterns for language packs to install -d-i pkgsel/language-pack-patterns string -pkgsel pkgsel/language-pack-patterns string -# -partman-base partman/exception_handler_note note -# Select your time zone: -# Choices: --- Africa ---, Abidjan, Accra, Addis Ababa, Algiers, Asmara, Bamako, Bangui, Banjul, Bissau, Blantyre, Brazzaville, Bujumbura, Cairo, Casablanca, Ceuta, Conakry, Dakar, Dar es Salaam, Djibouti, Douala, El Aaiun, Freetown, Gaborone, Harare, Johannesburg, Juba, Kampala, Khartoum, Kigali, Kinshasa, Lagos, Libreville, Lome, Luanda, Lubumbashi, Lusaka, Malabo, Maputo, Maseru, Mbabane, Mogadishu, Monrovia, Nairobi, Ndjamena, Niamey, Nouakchott, Ouagadougou, Porto-Novo, Sao Tome, Tripoli, Tunis, Windhoek, , --- America ---, Adak, Anchorage, Anguilla, Antigua, Araguaina, Argentina/Buenos Aires, Argentina/Catamarca, Argentina/Cordoba, Argentina/Jujuy, Argentina/La Rioja, Argentina/Mendoza, Argentina/Rio Gallegos, Argentina/Salta, Argentina/San Juan, Argentina/San Luis, Argentina/Tucuman, Argentina/Ushuaia, Aruba, Asuncion, Atikokan, Bahia, Bahia Banderas, Barbados, Belem, Belize, Blanc-Sablon, Boa Vista, Bogota, Boise, Cambridge Bay, Campo Grande, Cancun, Caracas, Cayenne, Cayman, Chicago, Chihuahua, Costa Rica, Creston, Cuiaba, Curacao, Danmarkshavn, Dawson, Dawson Creek, Denver, Detroit, Dominica, Edmonton, Eirunepe, El Salvador, Fortaleza, Glace Bay, Godthab, Goose Bay, Grand Turk, Grenada, Guadeloupe, Guatemala, Guayaquil, Guyana, Halifax, Havana, Hermosillo, Indiana/Indianapolis, Indiana/Knox, Indiana/Marengo, Indiana/Petersburg, Indiana/Tell City, Indiana/Vevay, Indiana/Vincennes, Indiana/Winamac, Inuvik, Iqaluit, Jamaica, Juneau, Kentucky/Louisville, Kentucky/Monticello, Kralendijk, La Paz, Lima, Los Angeles, Lower Princes, Maceio, Managua, Manaus, Marigot, Martinique, Matamoros, Mazatlan, Menominee, Merida, Metlakatla, Mexico City, Miquelon, Moncton, Monterrey, Montevideo, Montreal, Montserrat, Nassau, New York, Nipigon, Nome, Noronha, North Dakota/Beulah, North Dakota/Center, North Dakota/New Salem, Ojinaga, Panama, Pangnirtung, Paramaribo, Phoenix, Port-au-Prince, Port of Spain, Porto Velho, Puerto Rico, Rainy River, Rankin Inlet, Recife, Regina, Resolute, Rio Branco, Santa Isabel, Santarem, Santiago, Santo Domingo, Sao Paulo, Scoresbysund, Shiprock, Sitka, St Barthelemy, St Johns, St Kitts, St Lucia, St Thomas, St Vincent, Swift Current, Tegucigalpa, Thule, Thunder Bay, Tijuana, Toronto, Tortola, Vancouver, Whitehorse, Winnipeg, Yakutat, Yellowknife, , --- Antarctica ---, Casey, Davis, DumontDUrville, Macquarie, Mawson, McMurdo, Palmer, Rothera, South Pole, Syowa, Vostok, , --- Arctic ---, Longyearbyen, , --- Asia ---, Aden, Almaty, Amman, Anadyr, Aqtau, Aqtobe, Ashgabat, Baghdad, Bahrain, Baku, Bangkok, Beirut, Bishkek, Brunei, Choibalsan, Chongqing, Colombo, Damascus, Dhaka, Dili, Dubai, Dushanbe, Gaza, Harbin, Hebron, Ho Chi Minh, Hong Kong, Hovd, Irkutsk, Jakarta, Jayapura, Jerusalem, Kabul, Kamchatka, Karachi, Kashgar, Kathmandu, Kolkata, Krasnoyarsk, Kuala Lumpur, Kuching, Kuwait, Macau, Magadan, Makassar, Manila, Muscat, Nicosia, Novokuznetsk, Novosibirsk, Omsk, Oral, Phnom Penh, Pontianak, Pyongyang, Qatar, Qyzylorda, Rangoon, Riyadh, Sakhalin, Samarkand, Seoul, Shanghai, Singapore, Taipei, Tashkent, Tbilisi, Tehran, Thimphu, Tokyo, Ulaanbaatar, Urumqi, Vientiane, Vladivostok, Yakutsk, Yekaterinburg, Yerevan, , --- Atlantic ---, Azores, Bermuda, Canary, Cape Verde, Faroe, Madeira, Reykjavik, South Georgia, St Helena, Stanley, , --- Australia ---, Adelaide, Brisbane, Broken Hill, Currie, Darwin, Eucla, Hobart, Lindeman, Lord Howe, Melbourne, Perth, Sydney, , --- Europe ---, Amsterdam, Andorra, Athens, Belgrade, Berlin, Bratislava, Brussels, Bucharest, Budapest, Chisinau, Copenhagen, Dublin, Gibraltar, Guernsey, Helsinki, Isle of Man, Istanbul, Jersey, Kaliningrad, Kiev, Lisbon, Ljubljana, London, Luxembourg, Madrid, Malta, Mariehamn, Minsk, Monaco, Moscow, Oslo, Paris, Podgorica, Prague, Riga, Rome, Samara, San Marino, Sarajevo, Simferopol, Skopje, Sofia, Stockholm, Tallinn, Tirane, Uzhgorod, Vaduz, Vatican, Vienna, Vilnius, Volgograd, Warsaw, Zagreb, Zaporozhye, Zurich, , --- Indian ---, Antananarivo, Chagos, Christmas, Cocos, Comoro, Kerguelen, Mahe, Maldives, Mauritius, Mayotte, Reunion, , --- Pacific ---, Apia, Auckland, Chatham, Chuuk, Easter, Efate, Enderbury, Fakaofo, Fiji, Funafuti, Galapagos, Gambier, Guadalcanal, Guam, Honolulu, Johnston, Kiritimati, Kosrae, Kwajalein, Majuro, Marquesas, Midway, Nauru, Niue, Norfolk, Noumea, Pago Pago, Palau, Pitcairn, Pohnpei, Port Moresby, Rarotonga, Saipan, Tahiti, Tarawa, Tongatapu, Wake, Wallis, , --- None of the above ---, UTC -tzsetup-udeb tzsetup/select_all select -# Failed to partition the selected disk -partman-auto-lvm partman-auto-lvm/unusable_recipe error -# Debian archive mirror country: -# Choices: enter information manually -choose-mirror-bin mirror/https/countries select GB -# Error while setting up RAID -partman-auto-raid partman-auto-raid/error error -# Go back to the menu and resume partitioning? -partman-efi partman-efi/no_efi boolean -# for internal use; can be preseeded -partman-base partman/early_command string -# Set the clock using NTP? -clock-setup clock-setup/ntp boolean true -# iSCSI initiator username for : -partman-iscsi partman-iscsi/login/username string -# for internal use; can be preseeded -partman-ext3 partman-ext3/lazy_itable_init boolean false -# for internal use only -d-i anna/retriever string cdrom-retriever -# Unusable free space -partman-auto partman-auto/unusable_space error -# for internal use; can be preseeded -d-i preseed/interactive boolean false -# Encryption configuration actions -# Choices: Activate existing encrypted volumes, Create encrypted volumes, Finish -partman-crypto partman-crypto/mainmenu select -# Encryption method for this partition: -# Choices: -partman-crypto partman-crypto/crypto_type select -# Required programs missing -partman-crypto partman-crypto/tools_missing note -# Select your time zone: -# Choices: Moscow-01 - Kaliningrad, Moscow+00 - west Russia, Moscow+01 - Samara, Moscow+02 - Urals, Moscow+03 - west Siberia, Moscow+03 - Novosibirsk, Moscow+04 - Yenisei River, Moscow+05 - Lake Baikal, Moscow+06 - Lena River, Moscow+07 - Amur River, Moscow+07 - Sakhalin Island, Moscow+08 - Magadan, Moscow+09 - Kamchatka, Moscow+10 - Bering Sea, Select from worldwide list -tzsetup-udeb tzsetup/country/RU select Europe/Moscow -# LVM configuration action: -# Choices: Display configuration details, Create volume group, Finish -partman-lvm partman-lvm/mainmenu select -# Keyfile creation failure -partman-crypto partman-crypto/keyfile-problem error -# for internal use; can be preseeded -base-installer base-installer/kernel/linux/extra-packages-2.6 string -# Invalid username -user-setup-udeb passwd/username-bad error -# No iSCSI targets discovered -partman-iscsi partman-iscsi/login/no_targets error -# No LUKS devices found -partman-crypto partman-crypto/activate/no_luks error -# Volume group name overlaps with device name -partman-lvm partman-lvm/vgcreate_devnameused error -# Waiting time (in seconds) for link detection: -netcfg netcfg/link_wait_timeout string 3 -# Select a location in your time zone: -# Choices: Madrid, Ceuta, Canary Islands, Select from worldwide list -tzsetup-udeb tzsetup/country/ES select -# Select a city in your time zone: -# Choices: Jakarta, Pontianak, Makassar, Jayapura, Select from worldwide list -tzsetup-udeb tzsetup/country/ID select -# Invalid WEP key -netcfg netcfg/invalid_wep error -# Wireless ESSID for : -netcfg netcfg/wireless_essid_again string -# No volume group found -partman-lvm partman-lvm/lvcreate_nofreevg error -# Download language support? -d-i pkgsel/install-language-support boolean false -pkgsel pkgsel/install-language-support boolean false -# Location of initial preconfiguration file: -network-preseed preseed/url string -# for internal use; can be preseeded -pkgsel pkgsel/ignore-incomplete-language-support boolean false -# Keymap to use: -# Choices: American English, Belarusian, Belgian, Brazilian (ABNT2 layout), Brazilian (EUA layout), British English, Bulgarian, Bulgarian (phonetic layout), Canadian French, Canadian Multilingual, Croatian, Czech, Danish, Dutch, Dvorak, Estonian, Finnish, French, German, Greek, Hebrew, Hungarian, Icelandic, Italian, Japanese, Kirghiz, Latin American, Latvian, Lithuanian, Macedonian, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian (Cyrillic), Slovakian, Slovene, Spanish, Swedish, Swiss French, Swiss German, Thai, Turkish (F layout), Turkish (Q layout), Ukrainian -d-i keyboard-configuration/xkb-keymap select us -# -# Choices: Bouvet Island, Falkland Islands (Malvinas), Saint Helena\, Ascension and Tristan da Cunha, South Georgia and the South Sandwich Islands -d-i localechooser/countrylist/Atlantic_Ocean select -# for internal use; can be preseeded -partman-auto partman-auto/method string -# Continue the install without loading kernel modules? -d-i anna/no_kernel_modules boolean false -# Devices to add to the volume group: -# Choices: -partman-lvm partman-lvm/vgextend_parts multiselect -# Logical volume size: -partman-lvm partman-lvm/lvcreate_size string -# Logical Volume Manager not available -partman-lvm partman-lvm/nolvm error -# How to use this free space: -# Choices: -partman-base partman/free_space select -# Translations temporarily not available -d-i localechooser/translation/none-yet note -# This is an overview of your currently configured partitions and mount points. Select a partition to modify its settings (file system, mount point, etc.), a free space to create partitions, or a device to initialize its partition table. -# Choices: Guided partitioning, Configure software RAID, Configure the Logical Volume Manager, Configure encrypted volumes, Configure iSCSI volumes, , LVM VG ces-vg\, LV root - 19.1 GB Linux device-mapper (linear),   ${!TAB}${!ALIGN=RIGHT}#1${!TAB}${!TAB}${!ALIGN=RIGHT}19.1 GB${!TAB}${!TAB}f${!TAB}btrfs${!TAB}${!TAB}/${!TAB}, LVM VG ces-vg\, LV swap_1 - 2.1 GB Linux device-mapper (linear),   ${!TAB}${!ALIGN=RIGHT}#1${!TAB}${!TAB}${!ALIGN=RIGHT}2.1 GB${!TAB}${!TAB}f${!TAB}swap${!TAB}${!TAB}swap${!TAB}, SCSI3 (0\,0\,0) (sda) - 21.5 GB ATA VBOX HARDDISK,   ${!TAB}${!ALIGN=RIGHT}#1${!TAB}primary${!TAB}${!ALIGN=RIGHT}254.8 MB${!TAB}${!TAB}f${!TAB}ext2${!TAB}${!TAB}/boot${!TAB},   ${!TAB}${!ALIGN=RIGHT}#5${!TAB}logical${!TAB}${!ALIGN=RIGHT}21.2 GB${!TAB}${!TAB}K${!TAB}lvm${!TAB}${!TAB}${!TAB}, , Undo changes to partitions, Finish partitioning and write changes to disk -partman-base partman/choose_partition select 90finish__________finish -# Use a network mirror? -apt-mirror-setup apt-setup/use_mirror boolean true -# Ubuntu archive mirror: -# Choices: us.archive.ubuntu.com -choose-mirror-bin mirror/http/mirror select us.archive.ubuntu.com -# Write the changes to disk and configure encrypted volumes? -d-i partman-crypto/confirm_nooverwrite boolean false -# Is this information correct? -netcfg netcfg/confirm_static boolean true -# Wireless ESSID for : -netcfg netcfg/wireless_essid string -# for internal use only -user-setup-udeb user-setup/allow-password-weak boolean false -# Write the changes to disks? -partman-base partman/confirm boolean false -# Invalid passphrase -netcfg netcfg/invalid_pass error -# No root file system -partman-target partman-target/no_root error -# Go back to the menu? -partman-basicmethods partman-basicmethods/method_only boolean -# No boot loader installed -nobootloader nobootloader/confirmation_common note -# Invalid hostname -netcfg netcfg/invalid_hostname error -# for internal use; can be preseeded -d-i preseed/file/checksum string -# Error while creating a new logical volume -partman-lvm partman-lvm/lvcreate_exists error -# The resize operation is impossible -partman-partitioning partman-partitioning/impossible_resize error -# for internal use -base-installer base-installer/kernel/linux/initramfs-tools/driver-policy string most -# Invalid ESSID -netcfg netcfg/invalid_essid error -# Separate file system not allowed here -partman-target partman-target/must_be_on_root error -# Partition settings: -# Choices: Use as:${!TAB}btrfs journaling file system, , Mount point:${!TAB}/, Mount options:${!TAB}defaults, Label:${!TAB}none, , Copy data from another partition, Erase data on this partition, Done setting up the partition -partman-base partman/active_partition select 15method__________method -# No volume group found -partman-lvm partman-lvm/vgdelete_novg error -# System locale: -# Choices: en_US.UTF-8, en_US.UTF-8 -d-i debian-installer/locale select en_US.UTF-8 -# Bad archive mirror -choose-mirror-bin mirror/bad error -# for internal use; can be preseeded -d-i debian-installer/country string US -# Scan another CD or DVD? -apt-cdrom-setup apt-setup/cdrom/set-next boolean false -# for internal use; can be preseeded -live-installer live-installer/enable boolean true -# Select a city in your time zone: -# Choices: Ulaanbaatar, Hovd, Choibalsan, Select from worldwide list -tzsetup-udeb tzsetup/country/MN select -# Use software from the "partner" repository? -apt-mirror-setup apt-setup/partner boolean false -# Use contrib software? -apt-mirror-setup apt-setup/contrib boolean false -# Continue with partitioning? -partman-partitioning partman-partitioning/unsupported_label boolean false -# Logical volume: -# Choices: -partman-lvm partman-lvm/lvdelete_lvnames select -# Use proposed updates? -apt-mirror-setup apt-setup/proposed boolean false -# -# Choices: Russian Federation, Ukraine, other -d-i localechooser/shortlist/ru select -# Use an overlay archive? -apt-mirror-setup apt-setup/use_overlay boolean true -# Services to use: -# Choices: security updates (from ), release updates -apt-setup-udeb apt-setup/services-select multiselect security -# -# Choices: Jordan, United Arab Emirates, Bahrain, Algeria, Syrian Arab Republic, Saudi Arabia, Sudan, Iraq, Kuwait, Morocco, India, Yemen, Tunisia, Oman, Qatar, Lebanon, Libya, Egypt, other -d-i localechooser/shortlist/ar select -# Directory in which to save debug logs: -d-i save-logs/directory string /mnt -# for internal use; can be preseeded -grub-installer grub-installer/grub2_instead_of_grub_legacy boolean true -# Keyboard model: -# Choices: -d-i keyboard-configuration/model select -# Use software from the "extras" repository? -apt-mirror-setup apt-setup/extras boolean false -# Use unrecommended JFS /boot file system? -partman-jfs partman-jfs/jfs_boot boolean false -# No network interfaces detected -netcfg netcfg/no_interfaces error -# for internal use; can be preseeded -network-preseed preseed/url/checksum string -# HTTP proxy information (blank for none): -d-i mirror/https/proxy string -# Ubuntu version to install: -# Choices: trusty -choose-mirror-bin mirror/suite select bionic -# for internal use; can be preseeded -apt-mirror-setup apt-setup/overlay_host string ppa.launchpad.net -# Point-to-point address: -netcfg netcfg/get_pointopoint string -# Device for boot loader installation: -grub-installer grub-installer/bootdev string -# Installation complete -finish-install finish-install/reboot_in_progress note -# Encryption configuration failure -partman-crypto partman-crypto/crypto_root_needs_boot error -# Go back to the menu and correct this problem? -partman-partitioning partman-partitioning/no_bootable_gpt_biosgrub boolean -# Ubuntu archive mirror: -# Choices: -d-i mirror/https/mirror select CC.archive.ubuntu.com -# for internal use; can be preseeded -d-i debian-installer/allow_unauthenticated_ssl boolean false -# Volume group name: -partman-lvm partman-lvm/vgcreate_name string -# Invalid network link detection waiting time -netcfg netcfg/bad_link_wait_timeout error -# Malformed IP address -netcfg netcfg/bad_ipaddress error -# -# Choices: Serbia, Montenegro, other -d-i localechooser/shortlist/sr select -# Installation step failed -d-i debian-installer/main-menu/item-failure error -# for internal use only -base-installer base-installer/kernel/linux/link_in_boot boolean false -# for internal use only -d-i debian-installer/consoledisplay string console-setup -# No partitions to encrypt -partman-crypto partman-crypto/nothing_to_setup note -# Encrypt your home directory? -user-setup-udeb user-setup/encrypt-home boolean false -# The size entered is too large -partman-partitioning partman-partitioning/big_new_size error -# Go back to the menu and correct this problem? -partman-ext3 partman/boot_not_first_partition boolean -# Cannot install kernel -base-installer base-installer/kernel/no-kernels-found error -# for internal use; can be preseeded -base-installer base-installer/install-recommends boolean true -# Go back to the menu and correct errors? -partman-basicfilesystems partman-basicfilesystems/check_failed boolean -# Reserved username -user-setup-udeb passwd/username-reserved error -# Are you sure you want to use a random key? -partman-crypto partman-crypto/use_random_for_nonswap boolean false -# Continue with the installation? -partman-base partman/confirm_nochanges boolean false -# Integrity test successful -d-i cdrom-checker/passed note -# Do you want to return to the partitioning menu? -partman-basicfilesystems partman-basicfilesystems/no_swap boolean true -# for internal use only -d-i cdrom-detect/hybrid boolean false -# Check CD-ROM integrity? -d-i cdrom-checker/start boolean false -# Continue with partitioning? -partman-partitioning partman-partitioning/unknown_label boolean true -# Key to function as AltGr: -# Choices: The default for the keyboard layout, No AltGr key, Right Alt (AltGr), Right Control, Right Logo key, Menu key, Left Alt, Left Logo key, Keypad Enter key, Both Logo keys, Both Alt keys -d-i keyboard-configuration/altgr select The default for the keyboard layout -# iSCSI login failed -partman-iscsi partman-iscsi/login/failed error -# Select your time zone: -# Choices: Tarawa (Gilbert Islands), Enderbury (Phoenix Islands), Kiritimati (Line Islands), Select from worldwide list -tzsetup-udeb tzsetup/country/KI select -# Dummy template for preseeding unavailable questions -d-i debian-installer/quiet string false -# for internal use; can be preseeded -grub-installer grub-installer/make_active boolean true -# Name server addresses: -netcfg netcfg/get_nameservers string -# CD-ROM detected -d-i cdrom-detect/success note -# No physical volume defined in volume group -partman-auto-lvm partman-auto-lvm/no_pv_in_vg error -# Empty password -partman-iscsi partman-iscsi/login/empty_password error -# for internal use only -user-setup-udeb user-setup/allow-password-empty boolean false -# Install the GRUB boot loader to the master boot record? -grub-installer grub-installer/only_debian boolean true -# Web server started -d-i save-logs/httpd_running note -# Choose software to install: -# Choices: OpenSSH server, DNS server, LAMP server, Mail server, PostgreSQL database, Print server, Samba file server, Tomcat Java server, Virtual Machine host, Manual package selection -d-i tasksel/first multiselect OpenSSH server -# Device file for accessing the CD-ROM: -d-i cdrom-detect/cdrom_device string /dev/sr0 -# Resize operation failure -partman-partitioning partman-partitioning/new_size_commit_failed error -# Language packs to install -# Choices: aa ace af am an ar as ast az be ber bg bn bo br bs bua byn ca ceb co cs csb cy da de dsb dv dz el en eo es et eu fa fi fil fo fr fur fy ga gd gl gn grc gu he hi hr ht hu hy ia id is it ja jbo jv ka kab kk km kn ko ku ky la lb lg li ln lo lt lv mg mi mk ml mn mr ms mt my nap nb nds ne nl nn no nr nso oc om or pa pl ps pt qu rm ro ru rw sc sco sd se si sk sl so sq sr st sv sw ta te tet tg th ti tk tl tlh tr ts ug uk ur uz ve vi wa wo xh yi yo zh zu -pkgsel pkgsel/language-packs multiselect -# Error reading Release file -d-i cdrom-detect/no-release error -# for internal use only -d-i debconf/translations-dropped boolean false -# Non-existing physical volume -partman-auto-lvm partman-auto-lvm/no_such_pv error -# -# Choices: Argentina, Bolivia, Chile, Colombia, Costa Rica, Cuba, Ecuador, El Salvador, Spain, United States, Guatemala, Honduras, Mexico, Nicaragua, Panama, Paraguay, Peru, Puerto Rico, Dominican Republic, Uruguay, Venezuela, other -d-i localechooser/shortlist/es select -# Source partition: -# Choices: -partman-partitioning partman-partitioning/source_partition select -# Return to the menu to set the bootable flag? -partman-ext3 partman-ext3/boot_not_bootable boolean -# -# Choices: Curaçao -d-i localechooser/countrylist/other select -# Load missing drivers from removable media? -d-i hw-detect/load_media boolean false -# for internal use only -# Choices: lucid, precise, quantal, raring, saucy, trusty -d-i cdrom/suite select bionic -# iSCSI target username for : -partman-iscsi partman-iscsi/login/incoming_username string -# Install the GRUB boot loader to the master boot record? -grub-installer grub-installer/with_other_os boolean true -# Partition in use -partman-base partman-base/partlocked error -# Error while creating a new logical volume -partman-lvm partman-lvm/lvcreate_error error -# for internal use; can be preseeded -d-i oem-config/enable boolean false -# No valid Ubuntu CD-ROM -d-i cdrom-checker/wrongcd error -# Protocol for file downloads: -# Choices: http, https, ftp -choose-mirror-bin mirror/protocol select http -# for internal use; can be preseeded -d-i preseed/boot_command string -# Retry mounting the CD-ROM? -d-i cdrom-detect/retry boolean true -# IP address: -netcfg netcfg/get_ipaddress string -# Amount of volume group to use for guided partitioning: -partman-auto-lvm partman-auto-lvm/guided_size string 21.2 GB -# for internal use; can be preseeded -apt-setup-udeb apt-setup/security_path string /ubuntu -# Hostname: -netcfg netcfg/get_hostname string ces -# Encryption for this partition: -# Choices: -partman-crypto partman-crypto/cipher select -# for internal use -d-i keyboard-configuration/layoutcode string us -# Initialisation of encrypted volume failed -partman-crypto partman-crypto/init_failed error -# country code or "manual" (for internal use) -choose-mirror-bin mirror/country string US -# Setting firmware variables for automatic boot -nobootloader nobootloader/confirmation_powerpc_pasemi note -# How do you want to manage upgrades on this system? -# Choices: No automatic updates, Install security updates automatically, Manage system with Landscape -pkgsel pkgsel/update-policy select none -# Web server started, but network not running -d-i save-logs/no_network note -# Failed to run preseeded command -d-i preseed/command_failed error -# Select a location in your time zone: -# Choices: Lisbon, Madeira Islands, Azores, Select from worldwide list -tzsetup-udeb tzsetup/country/PT select -# Write the changes to disk and configure encrypted volumes? -partman-crypto partman-crypto/confirm boolean false -# Unexpected error while creating volume group -partman-auto-lvm partman-auto-lvm/vg_create_error error -# for internal use; can be preseeded -network-preseed auto-install/defaultroot string d-i/bionic/./preseed.cfg -# for internal use; can be preseeded -base-installer base-installer/kernel/headers boolean true -# -# Choices: Albania, Andorra, Armenia, Austria, Azerbaijan, Belarus, Belgium, Bosnia and Herzegovina, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Faroe Islands, Finland, France, Georgia, Germany, Gibraltar, Greece, Greenland, Guernsey, Holy See (Vatican City State), Hungary, Iceland, Ireland, Isle of Man, Italy, Jersey, Latvia, Liechtenstein, Lithuania, Luxembourg, Macedonia\, Republic of, Malta, Moldova, Monaco, Montenegro, Netherlands, Norway, Poland, Portugal, Romania, Russian Federation, San Marino, Serbia, Slovakia, Slovenia, Spain, Svalbard and Jan Mayen, Sweden, Switzerland, Ukraine, United Kingdom, Åland Islands -d-i localechooser/countrylist/Europe select -# Select a location in your time zone: -# Choices: Tahiti (Society Islands), Marquesas Islands, Gambier Islands, Select from worldwide list -tzsetup-udeb tzsetup/country/PF select -# Ubuntu archive mirror hostname: -choose-mirror-bin mirror/ftp/hostname string mirror -# Do you want to return to the partitioning menu? -partman-ext3 partman-ext3/bad_alignment boolean -# Create new empty partition table on this device? -partman-partitioning partman-partitioning/confirm_new_label boolean false -# for internal use only -d-i cdrom-detect/cdrom_fs string iso9660 -# Choose an installation step: -# Choices: -d-i debian-installer/missing-provide select ${DEFAULT} -# Incorrect CD-ROM detected -d-i cdrom-detect/wrong-cd error -# Insert Ubuntu boot CD-ROM -d-i cdrom-checker/firstcd note -# Terminal plugin not available -d-i debian-installer/terminal-plugin-unavailable error -# Select your time zone: -# Choices: Central, Mountain, Pacific, Select from worldwide list -tzsetup-udeb tzsetup/country/MX select -# Volume group to extend: -# Choices: -partman-lvm partman-lvm/vgextend_names select -# for internal use; can be preseeded -partman-base partman/default_filesystem string ext4 -# Gateway: -netcfg netcfg/get_gateway string -# for internal use; can be preseeded -d-i preseed/run string -# Load CD-ROM drivers from removable media? -d-i cdrom-detect/load_media boolean true -# for internal use; can be preseeded -partman-iscsi partman-iscsi/login/all_targets boolean false -# for internal use only -d-i debian-installer/language string en -# Is this time zone correct? -tzsetup-udeb tzsetup/detected boolean true -# Cannot access repository -apt-setup-udeb apt-setup/service-failed error -# for internal use; can be preseeded -d-i debian-installer/framebuffer boolean true -# Unable to configure GRUB -grub-installer grub-installer/update-grub-failed error -# Failed to create a swap space -partman-basicfilesystems partman-basicfilesystems/create_swap_failed error -# Keyboard layout: -# Choices: English (US), English (US) - Cherokee, English (US) - English (Colemak), English (US) - English (Dvorak alternative international no dead keys), English (US) - English (Dvorak), English (US) - English (Dvorak\, international with dead keys), English (US) - English (Macintosh), English (US) - English (US\, alternative international), English (US) - English (US\, international with dead keys), English (US) - English (US\, with euro on 5), English (US) - English (Workman), English (US) - English (Workman\, international with dead keys), English (US) - English (classic Dvorak), English (US) - English (international AltGr dead keys), English (US) - English (left handed Dvorak), English (US) - English (programmer Dvorak), English (US) - English (right handed Dvorak), English (US) - English (the divide/multiply keys toggle the layout), English (US) - Russian (US\, phonetic), English (US) - Serbo-Croatian (US) -d-i keyboard-configuration/variant select English (US) -# Ubuntu archive mirror country: -# Choices: enter information manually, Afghanistan, Albania, Algeria, American Samoa, Andorra, Angola, Anguilla, Antarctica, Antigua and Barbuda, Argentina, Armenia, Aruba, Australia, Austria, Azerbaijan, Bahamas, Bahrain, Bangladesh, Barbados, Belarus, Belgium, Belize, Benin, Bermuda, Bhutan, Bolivia, Bonaire\, Sint Eustatius and Saba, Bosnia and Herzegovina, Botswana, Bouvet Island, Brazil, British Indian Ocean Territory, Brunei Darussalam, Bulgaria, Burkina Faso, Burundi, Cambodia, Cameroon, Canada, Cape Verde, Cayman Islands, Central African Republic, Chad, Chile, China, Christmas Island, Cocos (Keeling) Islands, Colombia, Comoros, Congo, Congo\, The Democratic Republic of the, Cook Islands, Costa Rica, Croatia, Cuba, Curaçao, Cyprus, Czech Republic, Côte d'Ivoire, Denmark, Djibouti, Dominica, Dominican Republic, Ecuador, Egypt, El Salvador, Equatorial Guinea, Eritrea, Estonia, Ethiopia, Falkland Islands (Malvinas), Faroe Islands, Fiji, Finland, France, French Guiana, French Polynesia, French Southern Territories, Gabon, Gambia, Georgia, Germany, Ghana, Gibraltar, Greece, Greenland, Grenada, Guadeloupe, Guam, Guatemala, Guernsey, Guinea, Guinea-Bissau, Guyana, Haiti, Heard Island and McDonald Islands, Holy See (Vatican City State), Honduras, Hong Kong, Hungary, Iceland, India, Indonesia, Iran\, Islamic Republic of, Iraq, Ireland, Isle of Man, Israel, Italy, Jamaica, Japan, Jersey, Jordan, Kazakhstan, Kenya, Kiribati, Korea\, Democratic People's Republic of, Korea\, Republic of, Kuwait, Kyrgyzstan, Lao People's Democratic Republic, Latvia, Lebanon, Lesotho, Liberia, Libya, Liechtenstein, Lithuania, Luxembourg, Macao, Macedonia\, Republic of, Madagascar, Malawi, Malaysia, Maldives, Mali, Malta, Marshall Islands, Martinique, Mauritania, Mauritius, Mayotte, Mexico, Micronesia\, Federated States of, Moldova, Monaco, Mongolia, Montenegro, Montserrat, Morocco, Mozambique, Myanmar, Namibia, Nauru, Nepal, Netherlands, New Caledonia, New Zealand, Nicaragua, Niger, Nigeria, Niue, Norfolk Island, Northern Mariana Islands, Norway, Oman, Pakistan, Palau, Palestine\, State of, Panama, Papua New Guinea, Paraguay, Peru, Philippines, Pitcairn, Poland, Portugal, Puerto Rico, Qatar, Romania, Russian Federation, Rwanda, Réunion, Saint Barthélemy, Saint Helena\, Ascension and Tristan da Cunha, Saint Kitts and Nevis, Saint Lucia, Saint Martin (French part), Saint Pierre and Miquelon, Saint Vincent and the Grenadines, Samoa, San Marino, Sao Tome and Principe, Saudi Arabia, Senegal, Serbia, Seychelles, Sierra Leone, Singapore, Sint Maarten (Dutch part), Slovakia, Slovenia, Solomon Islands, Somalia, South Africa, South Georgia and the South Sandwich Islands, South Sudan, Spain, Sri Lanka, Sudan, Suriname, Svalbard and Jan Mayen, Swaziland, Sweden, Switzerland, Syrian Arab Republic, Taiwan, Tajikistan, Tanzania\, United Republic of, Thailand, Timor-Leste, Togo, Tokelau, Tonga, Trinidad and Tobago, Tunisia, Turkey, Turkmenistan, Turks and Caicos Islands, Tuvalu, Uganda, Ukraine, United Arab Emirates, United Kingdom, United States, United States Minor Outlying Islands, Uruguay, Uzbekistan, Vanuatu, Venezuela, Viet Nam, Virgin Islands\, British, Virgin Islands\, U.S., Wallis and Futuna, Western Sahara, Yemen, Zambia, Zimbabwe, Åland Islands -choose-mirror-bin mirror/http/countries select US -# for internal use; can be preseeded -# Choices: Network Manager, ifupdown (/etc/network/interfaces), No network configuration -netcfg netcfg/target_network_config select ifupdown -# Error while initializing physical volume -partman-lvm partman-lvm/pvcreate_error error -# for internal use; can be preseeded -d-i cdrom-detect/eject boolean true -# for internal use; can be preseeded -partman-base partman/filter_mounted boolean true -# Write the changes to disks and configure LVM? -d-i partman-lvm/confirm_nooverwrite boolean false -# Unmount partitions that are in use? -partman-base partman/unmount_active boolean -# Select a location in your time zone: -# Choices: McMurdo, south pole, Rothera, Palmer, Mawson, Davis, Casey, Vostok, Dumont-d'Urville, Syowa, Select from worldwide list -tzsetup-udeb tzsetup/country/AQ select -# Keep the current keyboard layout in the configuration file? -d-i keyboard-configuration/unsupported_config_layout boolean true -# No volume group found -partman-lvm partman-lvm/vgextend_novg error -# Error while deleting volume group -partman-lvm partman-lvm/vgdelete_error error -# for internal use; can be preseeded -# Choices: cylinder, minimal, optimal -partman-base partman/alignment select optimal -# Remove existing software RAID partitions? -partman-md partman-md/device_remove_md boolean false -# for internal use only -d-i debconf/frontend string -# Select a location in your time zone: -# Choices: Johnston Atoll, Midway Islands, Wake Island, Select from worldwide list -tzsetup-udeb tzsetup/country/UM select -# Empty password -user-setup-udeb user-setup/password-empty error -# for internal use only -clock-setup clock-setup/system-time-changed boolean true -# Volume group to reduce: -# Choices: -partman-lvm partman-lvm/vgreduce_names select -# Tune CD-ROM drive parameters with hdparm? -d-i cdrom-detect/cdrom_hdparm string -# WPA/WPA2 passphrase for wireless device : -netcfg netcfg/wireless_wpa string -# Failed to process the preconfiguration file -d-i preseed/load_error error -# Select a city in your time zone: -# Choices: Lord Howe Island, Hobart, Melbourne, Sydney, Broken Hill, Brisbane, Lindeman, Adelaide, Darwin, Perth, Select from worldwide list -tzsetup-udeb tzsetup/country/AU select Australia/Sydney -# Create a normal user account now? -user-setup-udeb passwd/make-user boolean true -# Layout of the RAID10 array: -partman-md partman-md/raid10layout string -# Go back to the menu and correct this problem? -partman-basicfilesystems partman-basicfilesystems/boot_not_ext2 boolean -# Choose the next step in the install process: -# Choices: Choose language, Configure the keyboard, Detect and mount CD-ROM, Load debconf preconfiguration file, Detect virtual driver disks from hardware manufacturer, Load installer components from CD, Detect network hardware, Configure the network, Set up users and passwords, Configure the clock, Detect disks, Partition disks, Install the system, Configure the package manager, Select and install software, Install the GRUB boot loader on a hard disk, Continue without boot loader, Finish the installation, Change debconf priority, Check the CD-ROM(s) integrity, Save debug logs, Execute a shell, Eject a CD from the drive, Abort the installation -d-i debian-installer/main-menu select Finish the installation -# No logical volume name entered -partman-lvm partman-lvm/lvcreate_nonamegiven error -# for internal use; can be preseeded -d-i preseed/file string file:///cdrom/preseed/ubuntu-server.seed -# Erasing data on failed -partman-crypto partman-crypto/erase_failed error -# for internal use; can be preseeded -base-installer base-installer/kernel/linux/extra-packages string -# for internal use; can be preseeded (deprecated) -netcfg netcfg/disable_dhcp boolean false -# Select a location in your time zone: -# Choices: Yap, Truk, Ponape, Kosrae, Select from worldwide list -tzsetup-udeb tzsetup/country/FM select -# Cannot save logs -d-i save-logs/bad_directory error -# Mount options: -# Choices: -partman-basicfilesystems partman-basicfilesystems/mountoptions multiselect -# Check the integrity of another CD-ROM? -d-i cdrom-checker/nextcd boolean false -# How to use this partition: -# Choices: Ext4 journaling file system, Ext3 journaling file system, Ext2 file system, btrfs journaling file system, JFS journaling file system, XFS journaling file system, FAT16 file system, FAT32 file system, swap area, physical volume for encryption, do not use the partition -partman-target partman-target/choose_method select 25filesystem__________btrfs -# Continue installation without /boot partition? -partman-auto-lvm partman-auto-lvm/no_boot boolean -# Method for toggling between national and Latin mode: -# Choices: Caps Lock, Right Alt (AltGr), Right Control, Right Shift, Right Logo key, Menu key, Alt+Shift, Control+Shift, Control+Alt, Alt+Caps Lock, Left Control+Left Shift, Left Alt, Left Control, Left Shift, Left Logo key, Scroll Lock key, No toggling -d-i keyboard-configuration/toggle select No toggling -# -# Choices: China, India, other -d-i localechooser/shortlist/bo select -# Tool to use to generate boot initrd: -# Choices: -base-installer base-installer/initramfs/generator select -# Error -netcfg netcfg/error error -# for internal use; can be preseeded -d-i time/zone string Europe/Berlin -tzsetup-udeb time/zone string Europe/Berlin -# Initialization vector generation algorithm for this partition: -# Choices: -partman-crypto partman-crypto/ivalgorithm select -# Insufficient memory -d-i lowmem/insufficient error -# for internal use; can be preseeded -tzsetup-udeb tzsetup/geoip_server string http://geoip.ubuntu.com/lookup -# -# Choices: Brazil, Portugal, other -d-i localechooser/shortlist/pt_BR select -# The free space starts from and ends at . -partman-base partman/show_free_chs note -# Name of the volume group for the new system: -partman-auto-lvm partman-auto-lvm/new_vg_name_exists string -# Scan another CD or DVD? -apt-cdrom-setup apt-setup/cdrom/set-first boolean false -# Mount point for this partition: -# Choices: / - the root file system, /boot - static files of the boot loader, /home - user home directories, /tmp - temporary files, /usr - static data, /var - variable data, /srv - data for services provided by this system, /opt - add-on application software packages, /usr/local - local hierarchy, Enter manually, Do not mount it -partman-basicfilesystems partman-basicfilesystems/mountpoint select -# HTTP proxy information (blank for none): -choose-mirror-bin mirror/http/proxy string -# Logical volume name: -partman-lvm partman-lvm/lvcreate_name string -# Is this time zone correct? -tzsetup-udeb tzsetup/selected boolean true -# Home directory encryption failed -user-setup-udeb user-setup/encrypt-home-failed error -# Select a location in your time zone: -# Choices: Godthab, Danmarkshavn, Scoresbysund, Thule, Select from worldwide list -tzsetup-udeb tzsetup/country/GL select -# -# Choices: Pakistan, India, other -d-i localechooser/shortlist/pa select -# Number of active devices for the RAID array: -partman-md partman-md/raiddevcount string -# Compose key: -# Choices: No compose key, Right Alt (AltGr), Right Control, Right Logo key, Menu key, Left Logo key, Caps Lock -d-i keyboard-configuration/compose select No compose key -# Ignore questions with a priority less than: -# Choices: critical, high, medium, low -d-i debconf/priority select high -# Unable to install -base-installer base-installer/kernel/failed-package-install error -# for internal use only -choose-mirror-bin mirror/codename string bionic -# Invalid size -partman-partitioning partman-partitioning/bad_new_partition_size error -# Unable to automatically remove LVM data -partman-lvm partman-lvm/device_remove_lvm_span error -# Primary network interface: -# Choices: -netcfg netcfg/choose_interface select -# Error while extending volume group -partman-lvm partman-lvm/vgextend_error error -# -# Choices: Greece, Cyprus, other -d-i localechooser/shortlist/el select -# Software RAID device type: -# Choices: RAID0, RAID1, RAID5, RAID6, RAID10 -partman-md partman-md/createmain select -# Downloading local repository key failed: -# Choices: Retry, Ignore -apt-setup-udeb apt-setup/local/key-error select Retry -# Keep current partition layout and configure LVM? -partman-lvm partman-lvm/confirm_nochanges boolean false -# Failed to mount /target/proc -nobootloader nobootloader/mounterr error -# Software RAID device to be deleted: -# Choices: -partman-md partman-md/deletemenu select -# How should the debug logs be saved or transferred? -# Choices: floppy, web, mounted file system -d-i save-logs/menu select -# Downloading a file failed: -# Choices: Retry, Change mirror, Ignore -apt-mirror-setup apt-setup/mirror/error select Retry -# for internal use only -user-setup-udeb passwd/user-uid string -# FTP proxy information (blank for none): -choose-mirror-bin mirror/ftp/proxy string -# Remove existing logical volume data? -partman-lvm partman-lvm/device_remove_lvm boolean false -# -# Choices: India, Sri Lanka, other -d-i localechooser/shortlist/ta select -# for internal use; can be preseeded -partman-auto partman-auto/disk string -# -# Choices: Afghanistan, Bahrain, Bangladesh, Bhutan, Brunei Darussalam, Cambodia, China, Hong Kong, India, Indonesia, Iran\, Islamic Republic of, Iraq, Israel, Japan, Jordan, Kazakhstan, Korea\, Democratic People's Republic of, Korea\, Republic of, Kuwait, Kyrgyzstan, Lao People's Democratic Republic, Lebanon, Macao, Malaysia, Mongolia, Myanmar, Nepal, Oman, Pakistan, Palestine\, State of, Philippines, Qatar, Saudi Arabia, Singapore, Sri Lanka, Syrian Arab Republic, Taiwan, Tajikistan, Thailand, Timor-Leste, Turkey, Turkmenistan, United Arab Emirates, Uzbekistan, Viet Nam, Yemen -d-i localechooser/countrylist/Asia select -# Ubuntu archive mirror hostname: -choose-mirror-bin mirror/http/hostname string us.archive.ubuntu.com -# is too big -partman-auto-lvm partman-auto-lvm/big_guided_size error -# for internal use; can be preseeded -ethdetect ethdetect/prompt_missing_firmware boolean true -# for internal use -d-i keyboard-configuration/optionscode string -# Write the changes to the storage devices and configure RAID? -d-i partman-md/confirm_nooverwrite boolean false -# Password input error -grub-installer grub-installer/password-mismatch error -# The partition starts from and ends at . -partman-base partman/show_partition_chs note -# Keep default keyboard layout ()? -d-i keyboard-configuration/unsupported_layout boolean true -# Logical Volume Management -partman-lvm partman-lvm/help note -# Failed to partition the selected disk -partman-auto partman-auto/no_recipe error -# for internal use; can be preseeded -d-i preseed/early_command string -# for internal use; can be preseeded -d-i rescue/enable boolean false -# -# Choices: -partman-base partman/exception_handler select -# Copy operation failure -partman-partitioning partman-partitioning/copy_commit_failed error -# for internal use; can be preseeded -d-i anna/standard_modules boolean true -# Module needed for accessing the CD-ROM: -# Choices: -d-i cdrom-detect/cdrom_module select none -# No usable physical volumes found -partman-lvm partman-lvm/nopartitions error -# No volume group name entered -partman-lvm partman-lvm/vgcreate_nonamegiven error -# Use weak passphrase? -partman-crypto partman-crypto/weak_passphrase boolean false -# No RAID partitions available -partman-md partman-md/noparts error -# Device in use -partman-base partman-base/devicelocked error -# -# Choices: Brazil, Portugal, other -d-i localechooser/shortlist/pt select -# Use weak password? -user-setup-udeb user-setup/password-weak boolean -# Full name for the new user: -user-setup-udeb passwd/user-fullname string cesadmin -# -# Choices: Algeria, Angola, Benin, Botswana, Burkina Faso, Burundi, Cameroon, Cape Verde, Central African Republic, Chad, Congo, Congo\, The Democratic Republic of the, Côte d'Ivoire, Djibouti, Egypt, Equatorial Guinea, Eritrea, Ethiopia, Gabon, Gambia, Ghana, Guinea, Guinea-Bissau, Kenya, Lesotho, Liberia, Libya, Malawi, Mali, Mauritania, Morocco, Mozambique, Namibia, Niger, Nigeria, Rwanda, Sao Tome and Principe, Senegal, Sierra Leone, Somalia, South Africa, South Sudan, Sudan, Swaziland, Tanzania\, United Republic of, Togo, Tunisia, Uganda, Western Sahara, Zambia, Zimbabwe -d-i localechooser/countrylist/Africa select -# Failed to download Kickstart file -d-i initrd-kickseed/wget-failed error -# for internal use; can be preseeded -d-i hw-detect/load-ide boolean false -# Configuration of encrypted volumes failed -partman-crypto partman-crypto/commit_failed error -# Devices to encrypt: -# Choices: -partman-crypto partman-crypto/create/partitions multiselect -# Insert formatted floppy in drive -d-i save-logs/insert_floppy note -# Ethernet card not found -ethdetect ethdetect/cannot_find error -# DHCP hostname: -netcfg netcfg/dhcp_hostname string -# Are you sure you want a bootable logical partition? -partman-partitioning partman-partitioning/bootable_logical boolean false -# for internal use; can be preseeded -pkgsel pkgsel/updatedb boolean true -# No software RAID devices available -partman-md partman-md/delete_no_md error -# Continue without installing a kernel? -base-installer base-installer/kernel/skip-install boolean false -# No devices selected -partman-crypto partman-crypto/create/nosel error -# Country of origin for the keyboard: -# Choices: Afghani, Albanian, Amharic, Arabic, Arabic (Morocco), Arabic (Syria), Armenian, Azerbaijani, Bambara, Bangla, Belarusian, Belgian, Bosnian, Braille, Bulgarian, Burmese, Chinese, Croatian, Czech, Danish, Dhivehi, Dutch, Dzongkha, English (Cameroon), English (Ghana), English (Nigeria), English (South Africa), English (UK), English (US), Esperanto, Estonian, Faroese, Filipino, Finnish, French, French (Canada), French (Democratic Republic of the Congo), French (Guinea), Georgian, German, German (Austria), Greek, Hebrew, Hungarian, Icelandic, Indian, Iraqi, Irish, Italian, Japanese, Japanese (PC-98xx Series), Kazakh, Khmer (Cambodia), Korean, Kyrgyz, Lao, Latvian, Lithuanian, Macedonian, Maltese, Maori, Moldavian, Mongolian, Montenegrin, Nepali, Norwegian, Persian, Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Serbian, Sinhala (phonetic), Slovak, Slovenian, Spanish, Spanish (Latin American), Swahili (Kenya), Swahili (Tanzania), Swedish, Switzerland, Taiwanese, Tajik, Thai, Tswana, Turkish, Turkmen, Ukrainian, Urdu (Pakistan), Uzbek, Vietnamese, Wolof -d-i keyboard-configuration/layout select English (US) -# Dummy template for preseeding unavailable questions -d-i debian-installer/splash string false -# Do you want to return to the partitioner? -partman-target ubiquity/partman-system-unformatted boolean -# Failed to create enough space for installation -partman-auto partman-auto/resize_insufficient_space error -# -# Choices: Spain, France, other -d-i localechooser/shortlist/eu select -# Scan another CD or DVD? -apt-cdrom-setup apt-setup/cdrom/set-double boolean true -# for internal use; can be preseeded -partman-basicfilesystems partman/automount boolean false -# for internal use; can be preseeded -apt-setup-udeb apt-setup/multiarch string i386 -# Method for temporarily toggling between national and Latin input: -# Choices: No temporary switch, Both Logo keys, Right Alt (AltGr), Right Logo key, Left Alt, Left Logo key -d-i keyboard-configuration/switch select No temporary switch -# Failure of key exchange and association -netcfg netcfg/wpa_supplicant_failed note -# Identical mount points for two file systems -partman-target partman-target/same_mountpoint error -# Continue the installation in the selected language? -d-i localechooser/translation/warn-severe boolean false -# Do you want to return to the partitioning menu? -partman-basicfilesystems partman-basicfilesystems/no_mount_point boolean -# Type of wireless network: -# Choices: Infrastructure (Managed) network, Ad-hoc network (Peer to peer) -netcfg netcfg/wireless_adhoc_managed select Infrastructure (Managed) network -# -# Choices: Andorra, Spain, France, Italy, other -d-i localechooser/shortlist/ca select -# Architecture not supported -choose-mirror-bin mirror/noarch error -# Auto-configure networking? -netcfg netcfg/use_autoconfig boolean true -# Write a new empty partition table? -partman-partitioning partman-partitioning/confirm_write_new_label boolean false -# Wireless network: -# Choices: Enter ESSID manually -netcfg netcfg/wireless_show_essids select -# Failed to copy file from CD-ROM. Retry? -d-i retriever/cdrom/error boolean true -# for internal use; can be preseeded -finish-install finish-install/keep-consoles boolean false -# Dummy template for preseeding unavailable questions -d-i tasksel/force-tasks string server -# Error while reducing volume group -partman-lvm partman-lvm/vgreduce_error error -# Dummy template for preseeding unavailable questions -d-i oem-config/steps string language, timezone, keyboard, user, network, tasks -# Failed to load installer component -d-i anna/install_failed error -# iSCSI configuration actions -# Choices: Log into iSCSI targets, Finish -partman-iscsi partman-iscsi/mainmenu select -# Unable to install GRUB in -grub-installer grub-installer/grub-install-failed error -# Help on partitioning -partman-target partman-target/help note -# for internal use; can be preseeded -d-i preseed/include_command string -# for internal use; can be preseeded -base-installer base-installer/kernel/backports-modules string -# for internal use only -d-i debconf/language string en -# Error while running '' -d-i hw-detect/modprobe_error error -# The encryption key for is now being created. -partman-crypto partman-crypto/entropy entropy -# Not enough RAID partitions specified -partman-auto-raid partman-auto-raid/notenoughparts error -# Dummy template for preseeding unavailable questions -d-i oem-config-udeb/frontend string debconf -# for internal use; can be preseeded -d-i debian-installer/add-kernel-opts string -# for internal use only -user-setup-udeb passwd/user-default-groups string adm cdrom dip lpadmin plugdev sambashare debian-tor libvirtd -# Installation medium on -partman-base partman/installation_medium_mounted note -# Dummy template for preseeding unavailable questions -d-i debian-installer/dummy string -# Username for your account: -user-setup-udeb passwd/username string cesadmin -# Use restricted software? -apt-mirror-setup apt-setup/restricted boolean true -# Load missing firmware from removable media? -d-i hw-detect/load_firmware boolean true -# NTFS partition not cleanly unmounted -partman-auto-loop partman-auto-loop/unclean_ntfs error -# for internal use only -d-i debconf/showold boolean false -# No logical volume found -partman-lvm partman-lvm/lvdelete_nolv error -# for internal use; can be preseeded -netcfg netcfg/enable boolean true -# Ubuntu archive mirror hostname: -d-i mirror/https/hostname string mirror -# No partitionable media -disk-detect disk-detect/cannot_find error -# Failed to mount CD-ROM -d-i cdrom-checker/mntfailed error -# Password input error -user-setup-udeb user-setup/password-mismatch error -# Label for the file system in this partition: -partman-basicfilesystems partman-basicfilesystems/choose_label string -# Go back to the menu and correct this problem? -partman-partitioning partman-partitioning/no_bootable_gpt_efi boolean -# Insert an Ubuntu CD-ROM -d-i cdrom-checker/askmount note -# Passphrase input error -partman-crypto partman-crypto/passphrase-mismatch error -# for internal use only -base-installer base-installer/kernel/linux/initrd-2.6 boolean true -# Encryption configuration failure -partman-crypto partman-crypto/crypto_boot_not_possible error -# for internal use; can be preseeded -d-i debian-installer/exit/poweroff boolean false -# Language: -# Choices: C${!TAB}-${!TAB}No localization, Albanian${!TAB}-${!TAB}Shqip, Arabic${!TAB}-${!TAB}عربي, Asturian${!TAB}-${!TAB}Asturianu, Basque${!TAB}-${!TAB}Euskara, Belarusian${!TAB}-${!TAB}Беларуская, Bosnian${!TAB}-${!TAB}Bosanski, Bulgarian${!TAB}-${!TAB}Български, Catalan${!TAB}-${!TAB}Català, Chinese (Simplified)${!TAB}-${!TAB}中文(简体), Chinese (Traditional)${!TAB}-${!TAB}中文(繁體), Croatian${!TAB}-${!TAB}Hrvatski, Czech${!TAB}-${!TAB}Čeština, Danish${!TAB}-${!TAB}Dansk, Dutch${!TAB}-${!TAB}Nederlands, English${!TAB}-${!TAB}English, Esperanto${!TAB}-${!TAB}Esperanto, Estonian${!TAB}-${!TAB}Eesti, Finnish${!TAB}-${!TAB}Suomi, French${!TAB}-${!TAB}Français, Galician${!TAB}-${!TAB}Galego, German${!TAB}-${!TAB}Deutsch, Greek${!TAB}-${!TAB}Ελληνικά, Hebrew${!TAB}-${!TAB}עברית, Hungarian${!TAB}-${!TAB}Magyar, Icelandic${!TAB}-${!TAB}Íslenska, Indonesian${!TAB}-${!TAB}Bahasa Indonesia, Irish${!TAB}-${!TAB}Gaeilge, Italian${!TAB}-${!TAB}Italiano, Japanese${!TAB}-${!TAB}日本語, Kazakh${!TAB}-${!TAB}Қазақ, Korean${!TAB}-${!TAB}한국어, Kurdish${!TAB}-${!TAB}Kurdî, Latvian${!TAB}-${!TAB}Latviski, Lithuanian${!TAB}-${!TAB}Lietuviškai, Macedonian${!TAB}-${!TAB}Македонски, Northern Sami${!TAB}-${!TAB}Sámegillii, Norwegian Bokmaal${!TAB}-${!TAB}Norsk bokmål, Norwegian Nynorsk${!TAB}-${!TAB}Norsk nynorsk, Persian${!TAB}-${!TAB}فارسی, Polish${!TAB}-${!TAB}Polski, Portuguese${!TAB}-${!TAB}Português, Portuguese (Brazil)${!TAB}-${!TAB}Português do Brasil, Romanian${!TAB}-${!TAB}Română, Russian${!TAB}-${!TAB}Русский, Serbian (Cyrillic)${!TAB}-${!TAB}Српски, Slovak${!TAB}-${!TAB}Slovenčina, Slovenian${!TAB}-${!TAB}Slovenščina, Spanish${!TAB}-${!TAB}Español, Swedish${!TAB}-${!TAB}Svenska, Tagalog${!TAB}-${!TAB}Tagalog, Thai${!TAB}-${!TAB}ภาษาไทย, Turkish${!TAB}-${!TAB}Türkçe, Ukrainian${!TAB}-${!TAB}Українська, Uyghur${!TAB}-${!TAB}ئۇيغۇرچە, Vietnamese${!TAB}-${!TAB}Tiếng Việt, Welsh${!TAB}-${!TAB}Cymraeg -d-i localechooser/languagelist select en -# Use backported software? -apt-mirror-setup apt-setup/backports boolean true -# GRUB installation failed -grub-installer grub-installer/apt-install-failed error -# The size entered is too small -partman-partitioning partman-partitioning/small_new_size error -# Install GRUB? -grub-installer grub-installer/grub_not_mature_on_this_platform boolean false -# is too small -partman-auto-lvm partman-auto-lvm/small_guided_size error -# Really erase the data on ? -partman-crypto partman-crypto/warn_erase boolean false -# for internal use; can be preseeded -netcfg netcfg/dhcp_timeout string 30 -# Select a location in your time zone: -# Choices: Auckland, Chatham Islands, Select from worldwide list -tzsetup-udeb tzsetup/country/NZ select -# for internal use only -d-i cdrom/codename string bionic -# Unable to install the selected kernel -base-installer base-installer/kernel/failed-install error -# for internal use; can be preseeded -apt-mirror-setup apt-setup/overlay_component string main -# Volume group name already in use -partman-lvm partman-lvm/vgcreate_nameused error -# Installer components to load: -# Choices: choose-mirror: Choose mirror to install from (menu item), download-installer: Download installer components, fdisk-udeb: Manually partition a hard drive (fdisk), iso-scan: Scan hard drives for an installer ISO image, load-iso: Load installer components from an installer ISO, load-media: Load installer components from removable media, lowmem: free memory for lowmem install, ltsp-client-builder: build an LTSP environment in the installer target, maas-enlist-udeb: Enlist a host with a MAAS server (installer integration), mouse-modules-3.13.0-32-generic-di: Mouse support, multipath-modules-3.13.0-32-generic-di: DM-Multipath support, network-console: Continue installation remotely using SSH, oem-config-udeb: Prepare for OEM configuration, openssh-client-udeb: secure shell client for the Debian installer, parted-udeb: Manually partition a hard drive (parted), rescue-mode: mount requested partition and start a rescue shell, speakup-modules-3.13.0-32-generic-di: speakup modules, squashfs-modules-3.13.0-32-generic-di: squashfs modules, vlan-modules-3.13.0-32-generic-di: vlan modules, vlan-udeb: user mode programs to enable VLANs on your ethernet devices -d-i anna/choose_modules multiselect -# Go back to the menu and correct errors? -partman-basicfilesystems partman-basicfilesystems/swap_check_failed boolean -# Additional locales: -# Choices: aa_DJ.UTF-8, aa_DJ, aa_ER, aa_ER@saaho, aa_ET, af_ZA.UTF-8, af_ZA, am_ET, an_ES.UTF-8, an_ES, ar_AE.UTF-8, ar_AE, ar_BH.UTF-8, ar_BH, ar_DZ.UTF-8, ar_DZ, ar_EG.UTF-8, ar_EG, ar_IN, ar_IQ.UTF-8, ar_IQ, ar_JO.UTF-8, ar_JO, ar_KW.UTF-8, ar_KW, ar_LB.UTF-8, ar_LB, ar_LY.UTF-8, ar_LY, ar_MA.UTF-8, ar_MA, ar_OM.UTF-8, ar_OM, ar_QA.UTF-8, ar_QA, ar_SA.UTF-8, ar_SA, ar_SD.UTF-8, ar_SD, ar_SY.UTF-8, ar_SY, ar_TN.UTF-8, ar_TN, ar_YE.UTF-8, ar_YE, az_AZ, as_IN, ast_ES.UTF-8, ast_ES, be_BY.UTF-8, be_BY, be_BY@latin, bem_ZM, ber_DZ, ber_MA, bg_BG.UTF-8, bg_BG, bho_IN, bn_BD, bn_IN, bo_CN, bo_IN, br_FR.UTF-8, br_FR, br_FR@euro, brx_IN, bs_BA.UTF-8, bs_BA, byn_ER, ca_AD.UTF-8, ca_AD, ca_ES.UTF-8, ca_ES, ca_ES@euro, ca_ES.UTF-8@valencia, ca_ES@valencia, ca_FR.UTF-8, ca_FR, ca_IT.UTF-8, ca_IT, crh_UA, cs_CZ.UTF-8, cs_CZ, csb_PL, cv_RU, cy_GB.UTF-8, cy_GB, da_DK.UTF-8, da_DK, de_AT.UTF-8, de_AT, de_AT@euro, de_BE.UTF-8, de_BE, de_BE@euro, de_CH.UTF-8, de_CH, de_DE.UTF-8, de_DE, de_DE@euro, de_LI.UTF-8, de_LU.UTF-8, de_LU, de_LU@euro, dv_MV, dz_BT, el_GR.UTF-8, el_GR, el_CY.UTF-8, el_CY, en_AG, en_AU.UTF-8, en_AU, en_BW.UTF-8, en_BW, en_CA.UTF-8, en_CA, en_DK.UTF-8, en_DK.ISO-8859-15, en_DK, en_GB.UTF-8, en_GB, en_GB.ISO-8859-15, en_HK.UTF-8, en_HK, en_IE.UTF-8, en_IE, en_IE@euro, en_IN, en_NG, en_NZ.UTF-8, en_NZ, en_PH.UTF-8, en_PH, en_SG.UTF-8, en_SG, en_US, en_US.ISO-8859-15, en_ZA.UTF-8, en_ZA, en_ZM, en_ZW.UTF-8, en_ZW, eo.UTF-8, eo, eo_US.UTF-8, es_AR.UTF-8, es_AR, es_BO.UTF-8, es_BO, es_CL.UTF-8, es_CL, es_CO.UTF-8, es_CO, es_CR.UTF-8, es_CR, es_CU, es_DO.UTF-8, es_DO, es_EC.UTF-8, es_EC, es_ES.UTF-8, es_ES, es_ES@euro, es_GT.UTF-8, es_GT, es_HN.UTF-8, es_HN, es_MX.UTF-8, es_MX, es_NI.UTF-8, es_NI, es_PA.UTF-8, es_PA, es_PE.UTF-8, es_PE, es_PR.UTF-8, es_PR, es_PY.UTF-8, es_PY, es_SV.UTF-8, es_SV, es_US.UTF-8, es_US, es_UY.UTF-8, es_UY, es_VE.UTF-8, es_VE, et_EE.UTF-8, et_EE, et_EE.ISO-8859-15, eu_ES.UTF-8, eu_ES, eu_ES@euro, eu_FR.UTF-8, eu_FR, eu_FR@euro, fa_IR, ff_SN, fi_FI.UTF-8, fi_FI, fi_FI@euro, fil_PH, fo_FO.UTF-8, fo_FO, fr_BE.UTF-8, fr_BE, fr_BE@euro, fr_CA.UTF-8, fr_CA, fr_CH.UTF-8, fr_CH, fr_FR.UTF-8, fr_FR, fr_FR@euro, fr_LU.UTF-8, fr_LU, fr_LU@euro, fur_IT, fy_NL, fy_DE, ga_IE.UTF-8, ga_IE, ga_IE@euro, gd_GB.UTF-8, gd_GB, gez_ER, gez_ER@abegede, gez_ET, gez_ET@abegede, gl_ES.UTF-8, gl_ES, gl_ES@euro, gu_IN, gv_GB.UTF-8, gv_GB, ha_NG, he_IL.UTF-8, he_IL, hi_IN, hne_IN, hr_HR.UTF-8, hr_HR, hsb_DE, hsb_DE.UTF-8, ht_HT, hu_HU.UTF-8, hu_HU, hy_AM, hy_AM.ARMSCII-8, ia, id_ID.UTF-8, id_ID, ig_NG, ik_CA, is_IS.UTF-8, is_IS, it_CH.UTF-8, it_CH, it_IT.UTF-8, it_IT, it_IT@euro, iu_CA, iw_IL.UTF-8, iw_IL, ja_JP.EUC-JP, ja_JP.UTF-8, ka_GE.UTF-8, ka_GE, kk_KZ.UTF-8, kk_KZ, kk_KZ, kl_GL.UTF-8, kl_GL, km_KH, kn_IN, ko_KR.EUC-KR, ko_KR.UTF-8, kok_IN, ks_IN, ks_IN@devanagari, ku_TR.UTF-8, ku_TR, kw_GB.UTF-8, kw_GB, ky_KG, lb_LU, lg_UG.UTF-8, lg_UG, li_BE, li_NL, lij_IT, lo_LA, lt_LT.UTF-8, lt_LT, lv_LV.UTF-8, lv_LV, mai_IN, mg_MG.UTF-8, mg_MG, mhr_RU, mi_NZ.UTF-8, mi_NZ, mk_MK.UTF-8, mk_MK, ml_IN, mn_MN, mr_IN, ms_MY.UTF-8, ms_MY, mt_MT.UTF-8, mt_MT, my_MM, nan_TW@latin, nb_NO.UTF-8, nb_NO, nds_DE, nds_NL, ne_NP, nl_AW, nl_BE.UTF-8, nl_BE, nl_BE@euro, nl_NL.UTF-8, nl_NL, nl_NL@euro, nn_NO.UTF-8, nn_NO, nr_ZA, nso_ZA, oc_FR.UTF-8, oc_FR, om_ET, om_KE.UTF-8, om_KE, or_IN, os_RU, pa_IN, pa_PK, pap_AN, pl_PL.UTF-8, pl_PL, ps_AF, pt_BR.UTF-8, pt_BR, pt_PT.UTF-8, pt_PT, pt_PT@euro, ro_RO.UTF-8, ro_RO, ru_RU.KOI8-R, ru_RU.UTF-8, ru_RU, ru_RU.CP1251, ru_UA.UTF-8, ru_UA, rw_RW, sa_IN, sc_IT, sd_IN, sd_IN@devanagari, sd_PK, se_NO, shs_CA, si_LK, sid_ET, sk_SK.UTF-8, sk_SK, sl_SI.UTF-8, sl_SI, so_DJ.UTF-8, so_DJ, so_ET, so_KE.UTF-8, so_KE, so_SO.UTF-8, so_SO, sq_AL.UTF-8, sq_AL, sq_MK, sr_ME, sr_RS, sr_RS@latin, ss_ZA, st_ZA.UTF-8, st_ZA, sv_FI.UTF-8, sv_FI, sv_FI@euro, sv_SE.UTF-8, sv_SE, sv_SE.ISO-8859-15, sw_KE, sw_TZ, ta_IN, ta_LK, te_IN, tg_TJ.UTF-8, tg_TJ, th_TH.UTF-8, th_TH, ti_ER, ti_ET, tig_ER, tk_TM, tl_PH.UTF-8, tl_PH, tn_ZA, tr_CY.UTF-8, tr_CY, tr_TR.UTF-8, tr_TR, ts_ZA, tt_RU, tt_RU@iqtelif, ug_CN, ug_CN@latin, uk_UA.UTF-8, uk_UA, unm_US, ur_IN, ur_PK, uz_UZ.UTF-8, uz_UZ, uz_UZ@cyrillic, ve_ZA, vi_VN.TCVN, vi_VN, wa_BE, wa_BE@euro, wa_BE.UTF-8, wae_CH, wal_ET, wo_SN, xh_ZA.UTF-8, xh_ZA, yi_US.UTF-8, yi_US, yo_NG, yue_HK, zh_CN.GB18030, zh_CN.GBK, zh_CN.UTF-8, zh_CN, zh_HK.UTF-8, zh_HK, zh_SG.UTF-8, zh_SG.GBK, zh_SG, zh_TW.EUC-TW, zh_TW.UTF-8, zh_TW, zu_ZA.UTF-8, zu_ZA -d-i localechooser/supported-locales multiselect en_US.UTF-8 -# Invalid logical volume or volume group name -partman-lvm partman-lvm/badnamegiven error -# Mount point for this partition: -partman-basicfilesystems partman-basicfilesystems/mountpoint_manual string -# Really delete the volume group? -partman-lvm partman-lvm/vgdelete_confirm boolean true -# Not enough RAID partitions available -partman-md partman-md/notenoughparts error -# for internal use; can be preseeded -netcfg netcfg/disable_autoconfig boolean false -# Failed to download crypto components -partman-crypto partman-crypto/install_udebs_failure error -# RAID configuration failure -partman-md partman-md/commit_failed error -# for internal use; can be preseeded -d-i preseed/include string -# for internal use; can be preseeded -partman-auto partman-auto/expert_recipe_file string -# Failed to create a file system -partman-basicfilesystems partman-basicfilesystems/create_failed error -# Required encryption options missing -partman-crypto partman-crypto/options_missing error -# for internal use; can be preseeded -live-installer live-installer/net-image string -# Percentage of the file system blocks reserved for the super-user: -partman-basicfilesystems partman-basicfilesystems/specify_reserved string -# Select your time zone: -# Choices: Newfoundland, Atlantic, Eastern, Central, East Saskatchewan, Saskatchewan, Mountain, Pacific, Yukon, Select from worldwide list -tzsetup-udeb tzsetup/country/CA select Canada/Eastern -# for internal use -d-i keyboard-configuration/variantcode string -# for internal use only -d-i debian-installer/exit/always_halt boolean false -# for internal use; can be preseeded -# Choices: none, safe-upgrade, full-upgrade -pkgsel pkgsel/upgrade select safe-upgrade -# for internal use; can be preseeded -apt-mirror-setup apt-setup/overlay_path string /marcola-team/ppa/ubuntu -# for internal use; can be preseeded -partman-partitioning partman-partitioning/default_label string -# Type of installation: -# Choices: normal, live -live-installer live-installer/mode select normal -# Proceed with installation to unclean target? -base-installer base-installer/use_unclean_target boolean true -# Keyboard layout detection complete -d-i console-setup/detected note -# New partition size: -partman-partitioning partman-partitioning/new_size string some number -# Activate Serial ATA RAID devices? -disk-detect disk-detect/activate_dmraid boolean true -# for internal use -d-i keyboard-configuration/modelcode string pc105 -# Drivers to include in the initrd: -# Choices: generic: include all available drivers, targeted: only include drivers needed for this system -base-installer base-installer/initramfs-tools/driver-policy select most -# Kill switch enabled on -netcfg netcfg/kill_switch_enabled note -# Software RAID not available -partman-md partman-md/nomd error -# for internal use; can be preseeded -# Choices: traditional, label, uuid -partman-target partman/mount_style select uuid -# for internal use; can be preseeded -netcfg netcfg/hostname string -# Driver needed by your Ethernet card: -# Choices: no ethernet card, , none of the above -ethdetect ethdetect/module_select select no ethernet card -# WEP key for wireless device : -netcfg netcfg/wireless_wep string -# for internal use; can be preseeded -d-i debian-installer/theme string -# Type of encryption key hash for this partition: -# Choices: -partman-crypto partman-crypto/keyhash select -# -# Choices: Argentina, Bolivia, Brazil, Chile, Colombia, Ecuador, French Guiana, Guyana, Paraguay, Peru, Suriname, Uruguay, Venezuela -d-i localechooser/countrylist/South_America select -# The size entered is invalid -partman-partitioning partman-partitioning/bad_new_size error -# for internal use; can be preseeded -d-i debian-installer/allow_unauthenticated boolean false -# for internal use; can be preseeded -d-i debian-installer/exit/halt boolean false -# Ubuntu archive mirror directory: -d-i mirror/https/directory string /ubuntu/ -# Current LVM configuration: -partman-lvm partman-lvm/displayall note -# Network autoconfiguration failed -netcfg netcfg/dhcp_failed note -# for internal use; can be preseeded -disk-detect disk-detect/multipath/enable boolean false -# Volume group: -# Choices: -partman-lvm partman-lvm/lvcreate_vgnames select -# Wait another 30 seconds for hwclock to set the clock? -clock-setup clock-setup/hwclock-wait boolean false -# Load drivers from internal virtual driver disk? -driver-injection-disk-detect driver-injection-disk/load boolean true -# Invalid file system for this mount point -partman-basicfilesystems partman-basicfilesystems/posix_filesystem_required error -# Unable to configure GRUB -grub-installer grub-installer/multipath-error error -# Identical labels for two file systems -partman-target partman-target/same_label error -# Software RAID configuration actions -# Choices: Create MD device, Delete MD device, Finish -partman-md partman-md/mainmenu select -# Install the GRUB boot loader to the Serial ATA RAID disk? -grub-installer grub-installer/sataraid boolean true -# for internal use; can be preseeded -apt-setup-udeb apt-setup/security_host string security.ubuntu.com -# Error while deleting the logical volume -partman-lvm partman-lvm/lvdelete_error error -# Use unrecommended JFS root file system? -partman-jfs partman-jfs/jfs_root boolean false -# -# Choices: Finland, Sweden, other -d-i localechooser/shortlist/sv select -# Unsupported initrd generator -base-installer base-installer/initramfs/unsupported error -# -# Choices: Aruba, Belgium, Netherlands, other -d-i localechooser/shortlist/nl select -# Location for the new partition: -# Choices: Beginning, End -partman-partitioning partman-partitioning/new_partition_place select -# for internal use; can be preseeded -partman-auto partman-auto/expert_recipe string -# Services to use: -# Choices: security updates (from security.ubuntu.com), partner archive (from archive.canonical.com), extras archive (from extras.ubuntu.com) -apt-setup-udeb apt-setup/services-select-ubuntu multiselect security -# for internal use; can be preseeded -clock-setup clock-setup/utc-auto boolean true -d-i clock-setup/utc-auto boolean true -# for internal use; can be preseeded -pkgsel pkgsel/include string -# iSCSI targets on : -# Choices: -partman-iscsi partman-iscsi/login/targets multiselect -# Select your time zone: -# Choices: Gaza Strip, West Bank, Select from worldwide list -tzsetup-udeb tzsetup/country/PS select -# Mount point for this partition: -# Choices: /dos, /windows, Enter manually, Do not mount it -partman-basicfilesystems partman-basicfilesystems/fat_mountpoint select -# NFS mount failed -d-i initrd-kickseed/nfs-mount-failed error -# Number of spare devices for the RAID array: -partman-md partman-md/raidsparecount string -# Domain name: -# TODO remove -# netcfg netcfg/get_domain string triobs1.local -# for internal use only -user-setup-udeb passwd/auto-login-backup string -# Modules to load: -# Choices: usb-storage (USB storage) -d-i hw-detect/select_modules multiselect usb-storage (USB storage) -# Are you sure you want to exit now? -d-i di-utils-reboot/really_reboot boolean false -# No volume group found -partman-lvm partman-lvm/vgreduce_novg error -# Error while reducing volume group -partman-lvm partman-lvm/vgcreate_error error -# Install the GRUB boot loader to the multipath device? -grub-installer grub-installer/multipath boolean true -# Select your time zone: -# Choices: Santiago, Easter Island, Select from worldwide list -tzsetup-udeb tzsetup/country/CL select -# -# Choices: Anguilla, Antigua and Barbuda, Aruba, Bahamas, Barbados, Bermuda, Bonaire\, Sint Eustatius and Saba, Cayman Islands, Cuba, Dominica, Dominican Republic, Grenada, Guadeloupe, Haiti, Jamaica, Martinique, Montserrat, Puerto Rico, Saint Barthélemy, Saint Kitts and Nevis, Saint Lucia, Saint Martin (French part), Saint Vincent and the Grenadines, Sint Maarten (Dutch part), Trinidad and Tobago, Turks and Caicos Islands, Virgin Islands\, British, Virgin Islands\, U.S. -d-i localechooser/countrylist/Caribbean select -# Type of encryption key for this partition: -# Choices: -partman-crypto partman-crypto/keytype select -# Keep current partition layout and configure encrypted volumes? -partman-crypto partman-crypto/confirm_nochanges boolean false -# Scan another CD or DVD? -apt-cdrom-setup apt-setup/cdrom/set-failed boolean true -# for internal use; can be preseeded -netcfg netcfg/dhcpv6_timeout string 30 -# Do you want to resume partitioning? -partman-target partman-target/mount_failed boolean true -# for internal use; can be preseeded -d-i preseed/late_command string -# Partitioning scheme: -# Choices: All files in one partition (recommended for new users), Separate /home partition, Separate /home\, /usr\, /var\, and /tmp partitions -partman-auto partman-auto/choose_recipe select /lib/partman/recipes/30atomic -# Typical usage of this partition: -# Choices: -partman-basicfilesystems partman-basicfilesystems/specify_usage select -# Partitioning method: -# Choices: Guided - use entire disk, Guided - use entire disk and set up LVM, Guided - use entire disk and set up encrypted LVM, Manual -d-i partman-auto/init_automatically_partition select 80custom__________custom -partman-auto partman-auto/init_automatically_partition select 80custom__________custom -# Kernel to install: -# Choices: linux-signed-generic,linux-generic,linux-server,linux-virtual,linux-signed-image-generic,linux-image-extra-3.13.0-32-generic,linux-image-generic,linux-image-server,linux-image-virtual,linux-signed-image-3.13.0-32-generic,linux-image-3.13.0-32-generic, none -base-installer base-installer/kernel/image select linux-generic -# apt configuration problem -apt-cdrom-setup apt-setup/cdrom/failed error -# Failed to mount the floppy -d-i save-logs/floppy_mount_failed error -# for internal use; can be preseeded -partman-auto-raid partman-auto-raid/recipe string -# always use this kernel image (for preseeding) -base-installer base-installer/kernel/override-image string -# Do you intend to use FireWire Ethernet? -ethdetect ethdetect/use_firewire_ethernet boolean false -# Use non-free software? -apt-mirror-setup apt-setup/non-free boolean true -# Continue without a network mirror? -apt-mirror-setup apt-setup/no_mirror boolean false -# Encryption package installation failure -partman-crypto partman-crypto/module_package_missing error -# Partitioning method: -# Choices: Guided - use entire disk, Guided - use the largest continuous free space, Guided - use entire disk and set up LVM, Guided - use entire disk and set up encrypted LVM, Manual -partman-auto partman-auto/automatically_partition select 60some_device_lvm__________lvm -# iSCSI target portal address: -partman-iscsi partman-iscsi/login/address string -# -# Choices: Cyprus, Turkey, other -d-i localechooser/shortlist/tr select -# -# Choices: Antigua and Barbuda, Australia, Botswana, Canada, Hong Kong, India, Ireland, New Zealand, Nigeria, Philippines, Singapore, South Africa, United Kingdom, United States, Zambia, Zimbabwe, other -d-i localechooser/shortlist/en select -# Volume group to delete: -# Choices: -partman-lvm partman-lvm/vgdelete_names select -# Go back to the menu and correct this problem? -partman-ext3 partman-ext3/boot_not_ext2_or_ext3 boolean -# -# Choices: China, Singapore, Taiwan, Hong Kong, other -d-i localechooser/shortlist/zh_TW select -# Use software from the "multiverse" component? -apt-mirror-setup apt-setup/multiverse boolean true -# Unable to configure GRUB -grub-installer grub-installer/sataraid-error error -# for internal use only -partman-auto-raid partman-auto-raid/raidnum string -# Entering low memory mode -d-i lowmem/low note -# Failed to retrieve the preconfiguration file -d-i preseed/retrieve_error error -# Keep default keyboard options ()? -d-i keyboard-configuration/unsupported_options boolean true -# No DHCP client found -netcfg netcfg/no_dhcp_client error -# -# Choices: Belgium, Canada, France, Luxembourg, Switzerland, other -d-i localechooser/shortlist/fr select -# LVM configuration failure -partman-lvm partman-lvm/commit_failed error -# Detecting your keyboard layout -d-i console-setup/detect detect-keyboard -# Select a city in your time zone: -# Choices: Kinshasa, Lubumbashi, Select from worldwide list -tzsetup-udeb tzsetup/country/CD select -# Failed to partition the selected disk -partman-auto partman-auto/autopartitioning_failed error -# Flags for the new partition: -# Choices: -partman-partitioning partman-partitioning/set_flags multiselect -# Integrity test failed -d-i cdrom-checker/mismatch error -# Ubuntu archive mirror directory: -choose-mirror-bin mirror/http/directory string /ubuntu/ -# Driver needed for your disk drive: -# Choices: continue with no disk drive, , none of the above -disk-detect disk-detect/module_select select continue with no disk drive -# -# Choices: Italy, Switzerland, other -d-i localechooser/shortlist/it select -# Spare devices for the RAID array: -# Choices: -partman-md partman-md/raidsparedevs multiselect -# for internal use only -user-setup-udeb user-setup/force-encrypt-home boolean false -# Failed to delete the software RAID device -partman-md partman-md/deletefailed error -# Go back and try a different mirror? -choose-mirror-bin mirror/no-default boolean true -# Start PC card services? -d-i hw-detect/start_pcmcia boolean true -# No file system mounted on /target -base-installer base-installer/no_target_mounted error -# Continue the installation in the selected language? -d-i localechooser/translation/warn-light boolean true -# Select a city in your time zone: -# Choices: Almaty, Qyzylorda, Aqtobe, Atyrau, Oral, Select from worldwide list -tzsetup-udeb tzsetup/country/KZ select -# Setting firmware variables for automatic boot -nobootloader nobootloader/confirmation_powerpc_chrp_pegasos note -# Allow login as root? -user-setup-udeb passwd/root-login boolean false -# Proceed to install crypto components despite insufficient memory? -partman-crypto partman-crypto/install_udebs_low_mem boolean -# Partition name: -partman-partitioning partman-partitioning/set_name string -# Partition table type: -# Choices: aix, amiga, bsd, dvh, gpt, mac, msdos, pc98, sun, loop -partman-partitioning partman-partitioning/choose_label select msdos -# -# Choices: Bangladesh, India, other -d-i localechooser/shortlist/bn select -# for internal use only -user-setup-udeb passwd/auto-login boolean false -# Use Control+Alt+Backspace to terminate the X server? -d-i keyboard-configuration/ctrl_alt_bksp boolean false -# Additional parameters for module : -d-i hw-detect/retry_params string -# Write previous changes to disk and continue? -partman-partitioning partman-partitioning/confirm_resize boolean -# Write the changes to disks and configure LVM? -partman-lvm partman-lvm/confirm boolean false -# -d-i debian-installer/shell-plugin terminal -# Select a city in your time zone: -# Choices: Noronha, Belem, Fortaleza, Recife, Araguaina, Maceio, Bahia, Sao Paulo, Campo Grande, Cuiaba, Porto Velho, Boa Vista, Manaus, Eirunepe, Rio Branco, Select from worldwide list -tzsetup-udeb tzsetup/country/BR select America/Sao_Paulo -# -# Choices: Macedonia\, Republic of, Albania, other -d-i localechooser/shortlist/sq select -# for internal use; can be preseeded -grub-installer grub-installer/skip boolean false -# IPv6 unsupported on point-to-point links -netcfg netcfg/no_ipv6_pointopoint error -# Active devices for the RAID array: -# Choices: -partman-md partman-md/raiddevs multiselect -# Invalid mount point -partman-basicfilesystems partman-basicfilesystems/bad_mountpoint error -# -# Choices: American Samoa, Australia, Cook Islands, Fiji, French Polynesia, Guam, Kiribati, Marshall Islands, Micronesia\, Federated States of, Nauru, New Caledonia, New Zealand, Niue, Norfolk Island, Northern Mariana Islands, Palau, Papua New Guinea, Pitcairn, Samoa, Solomon Islands, Tokelau, Tonga, Tuvalu, United States Minor Outlying Islands, Vanuatu, Wallis and Futuna -d-i localechooser/countrylist/Oceania select -# New partition size: -partman-partitioning partman-partitioning/new_partition_size string some number -# Wireless network type for : -# Choices: WEP/Open Network, WPA/WPA2 PSK -netcfg netcfg/wireless_security_type select -# EFI partition too small -partman-efi partman-efi/too_small_efi error -# Type for the new partition: -# Choices: Primary, Logical -partman-partitioning partman-partitioning/new_partition_type select -# Devices for the new volume group: -# Choices: -partman-lvm partman-lvm/vgcreate_parts multiselect -# Not installing to unclean target -base-installer base-installer/unclean_target_cancel error -# Language selection no longer possible -d-i localechooser/translation/no-select note -# Go back to the menu and correct this problem? -partman-basicfilesystems partman-basicfilesystems/boot_not_first_partition boolean -# -# Choices: Belize, Costa Rica, El Salvador, Guatemala, Honduras, Nicaragua, Panama -d-i localechooser/countrylist/Central_America select -# -# Choices: Canada, Mexico, Saint Pierre and Miquelon, United States -d-i localechooser/countrylist/North_America select -# Enable shadow passwords? -user-setup-udeb passwd/shadow boolean true -# Empty passphrase -partman-crypto partman-crypto/passphrase-empty error -# Installer components to load: -# Choices: -d-i anna/choose_modules_lowmem multiselect -# -# Choices: China, Taiwan, Singapore, Hong Kong, other -d-i localechooser/shortlist/zh_CN select -# What to do with this device: -# Choices: -partman-base partman/storage_device select -# Netmask: -netcfg netcfg/get_netmask string -# Detect keyboard layout? -d-i console-setup/ask_detect boolean false -# Unsafe swap space detected -partman-crypto partman-crypto/unsafe_swap error -# for internal use; can be preseeded -d-i preseed/include/checksum string -# Really delete this software RAID device? -partman-md partman-md/deleteverify boolean false diff --git a/images/http/prod/QEMU/meta-data b/images/http/prod/QEMU/meta-data deleted file mode 100644 index 4a57790c..00000000 --- a/images/http/prod/QEMU/meta-data +++ /dev/null @@ -1 +0,0 @@ -# This file needs to be present for Ubuntu 20.04 installer \ No newline at end of file diff --git a/images/http/prod/hyperv/meta-data b/images/http/prod/hyperv/meta-data deleted file mode 100644 index 4a57790c..00000000 --- a/images/http/prod/hyperv/meta-data +++ /dev/null @@ -1 +0,0 @@ -# This file needs to be present for Ubuntu 20.04 installer \ No newline at end of file diff --git a/images/http/prod/meta-data b/images/http/prod/meta-data deleted file mode 100644 index 4a57790c..00000000 --- a/images/http/prod/meta-data +++ /dev/null @@ -1 +0,0 @@ -# This file needs to be present for Ubuntu 20.04 installer \ No newline at end of file diff --git a/images/prod/http/QEMU/meta-data b/images/prod/http/QEMU/meta-data new file mode 100644 index 00000000..7c0217b4 --- /dev/null +++ b/images/prod/http/QEMU/meta-data @@ -0,0 +1 @@ +# This file needs to be present for Ubuntu installer diff --git a/images/http/prod/QEMU/user-data b/images/prod/http/QEMU/user-data similarity index 100% rename from images/http/prod/QEMU/user-data rename to images/prod/http/QEMU/user-data diff --git a/images/prod/http/hyperv/meta-data b/images/prod/http/hyperv/meta-data new file mode 100644 index 00000000..7c0217b4 --- /dev/null +++ b/images/prod/http/hyperv/meta-data @@ -0,0 +1 @@ +# This file needs to be present for Ubuntu installer diff --git a/images/http/prod/hyperv/user-data b/images/prod/http/hyperv/user-data similarity index 100% rename from images/http/prod/hyperv/user-data rename to images/prod/http/hyperv/user-data diff --git a/images/prod/http/meta-data b/images/prod/http/meta-data new file mode 100644 index 00000000..7c0217b4 --- /dev/null +++ b/images/prod/http/meta-data @@ -0,0 +1 @@ +# This file needs to be present for Ubuntu installer diff --git a/images/http/prod/no_varlog_partitions/meta-data b/images/prod/http/no_varlog_partitions/meta-data similarity index 57% rename from images/http/prod/no_varlog_partitions/meta-data rename to images/prod/http/no_varlog_partitions/meta-data index 4b9140d0..ee92e360 100644 --- a/images/http/prod/no_varlog_partitions/meta-data +++ b/images/prod/http/no_varlog_partitions/meta-data @@ -1,4 +1,4 @@ -# This file needs to be present for Ubuntu 20.04 installer +# This file needs to be present for Ubuntu installer # Hint: This "no_varlog_partitions" folder holds configuration # for images which should not get separate /var/log and -# /var/log/audit partitions. \ No newline at end of file +# /var/log/audit partitions. diff --git a/images/http/prod/no_varlog_partitions/user-data b/images/prod/http/no_varlog_partitions/user-data similarity index 100% rename from images/http/prod/no_varlog_partitions/user-data rename to images/prod/http/no_varlog_partitions/user-data diff --git a/images/http/prod/user-data b/images/prod/http/user-data similarity index 100% rename from images/http/prod/user-data rename to images/prod/http/user-data diff --git a/images/prod/prod.pkr.hcl b/images/prod/prod.pkr.hcl new file mode 100644 index 00000000..7ed923e7 --- /dev/null +++ b/images/prod/prod.pkr.hcl @@ -0,0 +1,193 @@ +packer { + required_plugins { + qemu = { + source = "github.com/hashicorp/qemu" + version = "~> 1" + } + virtualbox = { + source = "github.com/hashicorp/virtualbox" + version = "~> 1" + } + vmware = { + source = "github.com/hashicorp/vmware" + version = "~> 1" + } + } +} + +variable "cpus" { + type = number + default = 4 +} + +variable "disk_size" { + type = number + default = 100000 +} + +variable "iso_checksum" { + type = string + default = "sha256:8762f7e74e4d64d72fceb5f70682e6b069932deedb4949c6975d0f0fe0a91be3" +} + +variable "iso_url" { + type = string + default = "https://releases.ubuntu.com/noble/ubuntu-24.04-live-server-amd64.iso" +} + +variable "memory" { + type = number + default = 8192 +} + +variable "password" { + type = string + default = "ces-admin" +} + +variable "timestamp" { + type = string +} + +variable "username" { + type = string + default = "ces-admin" +} + +variable "virtualbox-version-lower-7" { + type = bool + description = "This flag indicates that the local virtualbox version you are using is older than version 7. It is used to create the modifyvm option list, because some options are not available with virtualbox < 7" + default = false +} + +locals { + vm_name = "CloudoguEcoSystem-${var.timestamp}" + common_vboxmanage = [["modifyvm", "${local.vm_name}", "--memory", "${var.memory}"], ["modifyvm", "${local.vm_name}", "--cpus", "${var.cpus}"], ["modifyvm", "${local.vm_name}", "--vram", "10"]] + vboxmanage = var.virtualbox-version-lower-7 ? local.common_vboxmanage : concat(local.common_vboxmanage, [["modifyvm", local.vm_name, "--nat-localhostreachable1", "on"]]) + boot_command = [ + "c", + "set gfxpayload=keep", + "linux /casper/vmlinuz ", + "autoinstall fsck.mode=skip noprompt ", + "ds=\"nocloud;s=http://{{.HTTPIP}}:{{.HTTPPort}}/\"", + "initrd /casper/initrd", + "boot" + ] + boot_wait = "5s" + headless = false + shutdown_command = "echo ${var.username} | sudo -S -E shutdown -P now" + ssh_handshake_attempts = 10000 + ssh_timeout = "20m" +} + +source "qemu" "ecosystem-qemu" { + boot_command = local.boot_command + boot_wait = local.boot_wait + disk_size = var.disk_size + format = "qcow2" + headless = local.headless + http_directory = "http/QEMU" + iso_checksum = var.iso_checksum + iso_url = var.iso_url + qemuargs = [["-m", "${var.memory}"], ["-smp", "${var.cpus}"]] + shutdown_command = local.shutdown_command + ssh_handshake_attempts = local.ssh_handshake_attempts + ssh_password = var.password + ssh_timeout = local.ssh_timeout + ssh_username = var.username + vm_name = "${local.vm_name}.qcow2" +} + +source "virtualbox-iso" "ecosystem-virtualbox" { + boot_command = local.boot_command + boot_wait = local.boot_wait + disk_size = var.disk_size + format = "ova" + guest_os_type = "Ubuntu_64" + hard_drive_interface = "sata" + headless = local.headless + http_directory = "http" + iso_checksum = var.iso_checksum + iso_url = var.iso_url + shutdown_command = "echo ${var.username} | sudo -S -E shutdown -P now" + ssh_handshake_attempts = 10000 + ssh_password = var.password + ssh_timeout = "20m" + ssh_username = var.username + vboxmanage = local.vboxmanage + vm_name = local.vm_name +} + +source "vmware-iso" "ecosystem-vmware" { + boot_command = local.boot_command + boot_wait = local.boot_wait + cpus = var.cpus + disk_size = var.disk_size + guest_os_type = "ubuntu-64" + headless = local.headless + http_directory = "http" + iso_checksum = var.iso_checksum + iso_urls = ["${var.iso_url}"] + memory = var.memory + shutdown_command = "echo ${var.username} | sudo -S -E shutdown -P now" + ssh_handshake_attempts = 10000 + ssh_password = var.password + ssh_timeout = "20m" + ssh_username = var.username + tools_upload_flavor = "linux" + version = "14" + vm_name = local.vm_name +} + +build { + sources = ["source.qemu.ecosystem-qemu", "source.virtualbox-iso.ecosystem-virtualbox", "source.vmware-iso.ecosystem-vmware"] + + provisioner "file" { + destination = "/home/${var.username}" + source = "../../install" + } + + provisioner "file" { + destination = "/home/${var.username}" + source = "../../resources" + } + + provisioner "shell" { + environment_vars = ["INSTALL_HOME=/home/${var.username}", "HOME_DIR=/home/${var.username}"] + execute_command = "echo ${var.password} | {{ .Vars }} sudo -S -E /bin/bash -eux '{{ .Path }}'" + expect_disconnect = true + scripts = ["../scripts/commons/ces_apt.sh", "../scripts/commons/update.sh"] + } + + provisioner "shell" { + environment_vars = ["INSTALL_HOME=/home/${var.username}", "HOME_DIR=/home/${var.username}"] + execute_command = "echo ${var.password} | {{ .Vars }} sudo -S -E /bin/bash -eux '{{ .Path }}'" + expect_disconnect = true + pause_before = "5s" + scripts = [ + "../scripts/commons/dependencies.sh", + "../scripts/commons/sshd.sh", + "../scripts/commons/grub.sh", + "../scripts/commons/subvolumes.sh", + "../scripts/commons/guestadditions.sh", + "../scripts/commons/docker.sh", + "../scripts/commons/terraform.sh", + "../scripts/commons/fail2ban.sh", + "../scripts/commons/etcd.sh", + "../../install.sh", + "../scripts/commons/networking.sh", + "../scripts/prod/sshd_security.sh", + "../scripts/commons/cleanup.sh", + "../scripts/commons/minimize.sh" + ] + } + + post-processor "checksum" { + checksum_types = ["sha256"] + output = "build/SHA256SUMS" + } + post-processor "compress" { + compression_level = 6 + output = "build/${local.vm_name}.tar.gz" + } +} diff --git a/images/scripts/commons/dependencies.sh b/images/scripts/commons/dependencies.sh index 61ea7417..87c888f6 100644 --- a/images/scripts/commons/dependencies.sh +++ b/images/scripts/commons/dependencies.sh @@ -9,7 +9,6 @@ set -o pipefail DEBIAN_FRONTEND=noninteractive apt-get -y update DEBIAN_FRONTEND=noninteractive apt-get -y install \ curl \ - ctop \ mg \ jq \ unzip \ @@ -38,4 +37,8 @@ if apt-cache search "${IMAGE_EXTRA_PKG}" | grep "${IMAGE_EXTRA_PKG}" &> /dev/nul DEBIAN_FRONTEND=noninteractive apt-get -y install "${IMAGE_EXTRA_PKG}" else echo "WARNING: could not find optional package ${IMAGE_EXTRA_PKG}" -fi \ No newline at end of file +fi + +# Activate german locales option +sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen +dpkg-reconfigure --frontend=noninteractive locales diff --git a/images/scripts/commons/docker.sh b/images/scripts/commons/docker.sh index f64b2dee..50131356 100755 --- a/images/scripts/commons/docker.sh +++ b/images/scripts/commons/docker.sh @@ -6,7 +6,7 @@ set -o pipefail # Install docker # See https://docs.docker.com/install/linux/docker-ce/ubuntu/ -DOCKER_VERSION=5:26.1.4-1~ubuntu.20.04~focal +DOCKER_VERSION=5:26.1.4-1~ubuntu.24.04~noble export DEBIAN_FRONTEND=noninteractive @@ -20,7 +20,7 @@ if [ -z "${KEY}" ]; then exit 1 fi # Add stable repository -echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" > /etc/apt/sources.list.d/docker.list +echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu noble stable" > /etc/apt/sources.list.d/docker.list # Install Docker apt-get -y update apt-get -y install docker-ce=${DOCKER_VERSION} diff --git a/images/scripts/commons/fail2ban.sh b/images/scripts/commons/fail2ban.sh index 24dec4a0..e9ef218c 100755 --- a/images/scripts/commons/fail2ban.sh +++ b/images/scripts/commons/fail2ban.sh @@ -3,23 +3,38 @@ set -o errexit set -o nounset set -o pipefail -# Install fail2ban -FAIL2BAN_VERSION=0.11.1-1 +#fail2banVersion=1.0.2-3 +fail2banVersion=1.1.0 +fail2banPreRelease=1 +fail2banDebSHA256SUM=4ef39bbda961aa4c4e97a099e962cf9863d66edf2808caab668ddcd4ed2ebda2 +fail2banDebFileName=fail2ban_${fail2banVersion}-${fail2banPreRelease}.upstream1_all.deb -export DEBIAN_FRONTEND=noninteractive +# Installs fail2ban via apt +installFail2Ban() { + echo "Installing fail2ban..." + #DEBIAN_FRONTEND=noninteractive apt-get -y install fail2ban=${fail2banVersion} + # Do not install fail2ban via apt because the newest version (1.0.2-3) does not work with ubuntu 24.04 because of a missing python dependency. + # See: https://github.com/fail2ban/fail2ban/issues/3487 + wget -q "https://github.com/fail2ban/fail2ban/releases/download/${fail2banVersion}/${fail2banDebFileName}" + echo "${fail2banDebSHA256SUM} ${fail2banDebFileName}" | sha256sum --check + dpkg -i "${fail2banDebFileName}" + rm "${fail2banDebFileName}" +} -echo "installing fail2ban" +# Sets multiple configuration values for the fail2ban client. +configureFail2Ban() { + echo "Configuring fail2ban for the ssh daemon..." + cat </etc/fail2ban/jail.local +[sshd] +enabled = true +ignoreip = 127.0.0.1/8 +maxretry = 5 +findtime = 10m +bantime = 10m +logpath = /var/log/auth.log +EOF + systemctl restart fail2ban +} -# Install fail2ban -apt-get -y update -apt-get -y install fail2ban=${FAIL2BAN_VERSION} - -# Configure fail2ban for sshd -echo "configuring fail2ban for sshd" - -# Values are taken from default configuration -fail2ban-client set sshd addignoreip 127.0.0.1/8 -fail2ban-client set sshd maxretry 5 -fail2ban-client set sshd findtime 10m -fail2ban-client set sshd bantime 10m -fail2ban-client set sshd addlogpath /var/log/auth.log +installFail2Ban +configureFail2Ban diff --git a/images/scripts/commons/terraform.sh b/images/scripts/commons/terraform.sh index a955eaa7..e3560f19 100755 --- a/images/scripts/commons/terraform.sh +++ b/images/scripts/commons/terraform.sh @@ -7,7 +7,7 @@ set -o pipefail # See https://learn.hashicorp.com/tutorials/terraform/install-cli # See https://www.hashicorp.com/official-packaging-guide -TERRAFORM_VERSION=0.15.4 +TERRAFORM_VERSION=1.9.1-1 export DEBIAN_FRONTEND=noninteractive diff --git a/images/scripts/dev/dependencies.sh b/images/scripts/dev/dependencies.sh index 56e94bb7..044a380d 100644 --- a/images/scripts/dev/dependencies.sh +++ b/images/scripts/dev/dependencies.sh @@ -8,7 +8,6 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install \ build-essential \ zlib1g-dev \ libssl-dev \ - libreadline-gplv2-dev \ htop \ iftop \ jq \ diff --git a/images/scripts/dev/vagrant.sh b/images/scripts/dev/vagrant.sh index 55d73de0..04ec7535 100644 --- a/images/scripts/dev/vagrant.sh +++ b/images/scripts/dev/vagrant.sh @@ -7,7 +7,8 @@ set -o pipefail date > /etc/vagrant_box_build_time # Installing vagrant keys -mkdir -pm 700 /home/vagrant/.ssh +mkdir -p /home/vagrant/.ssh +chmod 700 /home/vagrant/.ssh wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys chmod 0600 /home/vagrant/.ssh/authorized_keys chown -R vagrant /home/vagrant/.ssh diff --git a/images/template.dev.json b/images/template.dev.json deleted file mode 100644 index f093f8d3..00000000 --- a/images/template.dev.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "variables": { - "vm_name": "ces", - "username": "vagrant", - "password": "vagrant", - "memory": "8192", - "cpus": "4", - "disk_size": "100000", - "iso_url": "https://releases.ubuntu.com/20.04.6/ubuntu-20.04.6-live-server-amd64.iso", - "iso_checksum": "sha256:b8f31413336b9393ad5d8ef0282717b2ab19f007df2e9ed5196c13d8f9153c8b" - }, - "builders": [ - { - "name": "ecosystem-basebox", - "type": "virtualbox-iso", - "guest_os_type": "Ubuntu_64", - "vm_name": "{{user `vm_name`}}", - "iso_url": "{{user `iso_url`}}", - "iso_checksum": "{{user `iso_checksum`}}", - "ssh_username": "{{user `username`}}", - "ssh_password": "{{user `password`}}", - "ssh_handshake_attempts": "10000", - "ssh_timeout": "15m", - "http_directory": "http/dev", - "headless": false, - "boot_wait": "5s", - "boot_command": [ - " ", - "autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ", - "" - ], - "shutdown_command": "echo {{user `username`}} | sudo -S -E shutdown -P now", - "hard_drive_interface": "sata", - "disk_size": "{{user `disk_size`}}", - "vboxmanage": [ - [ - "modifyvm", - "{{user `vm_name`}}", - "--memory", - "{{user `memory`}}" - ], - [ - "modifyvm", - "{{user `vm_name`}}", - "--cpus", - "{{user `cpus`}}" - ], - [ - "modifyvm", - "{{user `vm_name`}}", - "--vram", - "10" - ] - ] - } - ], - "provisioners": [ - { - "type": "shell", - "expect_disconnect": true, - "execute_command": "echo {{user `password`}} | {{.Vars}} sudo -S -E /bin/bash -eux '{{.Path}}'", - "environment_vars": [ - "INSTALL_HOME=/vagrant", - "HOME_DIR=/home/{{user `username`}}" - ], - "scripts": [ - "scripts/commons/ces_apt.sh", - "scripts/commons/update.sh" - ] - }, - { - "type": "shell", - "execute_command": "echo {{user `password`}} | {{.Vars}} sudo -S -E /bin/bash -eux '{{.Path}}'", - "pause_before": "5s", - "environment_vars": [ - "INSTALL_HOME=/vagrant", - "HOME_DIR=/home/{{user `username`}}" - ], - "scripts": [ - "scripts/commons/dependencies.sh", - "scripts/commons/sshd.sh", - "scripts/commons/grub.sh", - "scripts/commons/subvolumes.sh", - "scripts/commons/guestadditions.sh", - "scripts/dev/vagrant.sh", - "scripts/dev/dependencies.sh", - "scripts/commons/docker.sh", - "scripts/commons/terraform.sh", - "scripts/commons/fail2ban.sh", - "scripts/commons/etcd.sh", - "scripts/commons/networking.sh", - "scripts/commons/cleanup.sh", - "scripts/commons/minimize.sh" - ] - } - ], - "post-processors": [ - { - "type": "vagrant", - "output": "build/{{.BuildName}}.box" - } - ] -} diff --git a/images/template.prod.json b/images/template.prod.json deleted file mode 100644 index 4c77842c..00000000 --- a/images/template.prod.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "variables": { - "vm_name": "CloudoguEcoSystem-{{user `timestamp`}}", - "username": "ces-admin", - "password": "ces-admin", - "memory": "8192", - "cpus": "4", - "disk_size": "100000", - "iso_url": "https://releases.ubuntu.com/20.04.6/ubuntu-20.04.6-live-server-amd64.iso", - "iso_checksum": "sha256:b8f31413336b9393ad5d8ef0282717b2ab19f007df2e9ed5196c13d8f9153c8b" - }, - "builders": [ - { - "name": "ecosystem-virtualbox", - "type": "virtualbox-iso", - "format": "ova", - "vm_name": "{{user `vm_name`}}", - "guest_os_type": "Ubuntu_64", - "iso_url": "{{user `iso_url`}}", - "iso_checksum": "{{user `iso_checksum`}}", - "ssh_username": "{{user `username`}}", - "ssh_password": "{{user `password`}}", - "ssh_handshake_attempts": "10000", - "ssh_timeout": "15m", - "http_directory": "http/prod", - "headless": false, - "boot_wait": "5s", - "boot_command": [ - " ", - "autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ", - "" - ], - "shutdown_command": "echo {{user `username`}} | sudo -S -E shutdown -P now", - "hard_drive_interface": "sata", - "disk_size": "{{user `disk_size`}}", - "vboxmanage": [ - [ - "modifyvm", - "{{user `vm_name`}}", - "--memory", - "{{user `memory`}}" - ], - [ - "modifyvm", - "{{user `vm_name`}}", - "--cpus", - "{{user `cpus`}}" - ], - [ - "modifyvm", - "{{user `vm_name`}}", - "--vram", - "10" - ] - ] - }, - { - "name": "ecosystem-vmware", - "type": "vmware-iso", - "version": "14", - "vm_name": "{{user `vm_name`}}", - "guest_os_type": "ubuntu-64", - "cpus": "{{user `cpus`}}", - "memory": "{{user `memory`}}", - "iso_urls": [ - "{{user `iso_url`}}" - ], - "iso_checksum": "{{user `iso_checksum`}}", - "ssh_username": "{{user `username`}}", - "ssh_password": "{{user `password`}}", - "ssh_handshake_attempts": "10000", - "ssh_timeout": "15m", - "http_directory": "http/prod", - "headless": false, - "tools_upload_flavor": "linux", - "disk_size": "{{user `disk_size`}}", - "boot_wait": "5s", - "boot_command": [ - " ", - "autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ", - "" - ], - "shutdown_command": "echo {{user `username`}} | sudo -S -E shutdown -P now" - - }, - { - "name": "ecosystem-qemu", - "type": "qemu", - "format": "qcow2", - "vm_name": "{{user `vm_name`}}.qcow2", - "iso_url": "{{user `iso_url`}}", - "iso_checksum": "{{user `iso_checksum`}}", - "ssh_username": "{{user `username`}}", - "ssh_password": "{{user `password`}}", - "ssh_handshake_attempts": "10000", - "ssh_timeout": "15m", - "http_directory": "http/prod/QEMU", - "headless": false, - "disk_size": "{{user `disk_size`}}", - "boot_wait": "1s", - "boot_command": [ - " ", - "autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ", - "" - ], - "qemuargs": [ - ["-m", "{{user `memory`}}"], - ["-smp", "{{user `cpus`}}"] - ], - "shutdown_command": "echo {{user `username`}} | sudo -S -E shutdown -P now" - } - ], - "provisioners": [ - { - "type": "file", - "source": "../install", - "destination": "/home/{{user `username`}}" - }, - { - "type": "file", - "source": "../resources", - "destination": "/home/{{user `username`}}" - }, - { - "type": "shell", - "expect_disconnect": true, - "execute_command": "echo {{user `password`}} | {{.Vars}} sudo -S -E /bin/bash -eux '{{.Path}}'", - "environment_vars": [ - "INSTALL_HOME=/home/{{user `username`}}", - "HOME_DIR=/home/{{user `username`}}" - ], - "scripts": [ - "scripts/commons/ces_apt.sh", - "scripts/commons/update.sh" - ] - }, - { - "type": "shell", - "expect_disconnect": true, - "pause_before": "5s", - "execute_command": "echo {{user `password`}} | {{.Vars}} sudo -S -E /bin/bash -eux '{{.Path}}'", - "environment_vars": [ - "INSTALL_HOME=/home/{{user `username`}}", - "HOME_DIR=/home/{{user `username`}}" - ], - "scripts": [ - "scripts/commons/dependencies.sh", - "scripts/commons/sshd.sh", - "scripts/commons/grub.sh", - "scripts/commons/subvolumes.sh", - "scripts/commons/guestadditions.sh", - "scripts/commons/docker.sh", - "scripts/commons/terraform.sh", - "scripts/commons/fail2ban.sh", - "scripts/commons/etcd.sh", - "../install.sh", - "scripts/commons/networking.sh", - "scripts/prod/sshd_security.sh", - "scripts/commons/cleanup.sh", - "scripts/commons/minimize.sh" - ] - } - ], - "post-processors": [ - { - "type": "checksum", - "checksum_types": [ "sha256" ], - "output": "build/SHA256SUMS" - }, - { - "type": "compress", - "compression_level": 6, - "output": "build/{{user `vm_name`}}.tar.gz" - } - ] -}