Questions tagged [curtin]

Curtin is a low-level installation tool. It is used as part of Subiquity for partition creation, writing the installation image, boot configuration, and for other in-target tasks. Curtin is also used as part of MAAS.

30 questions
8
votes
2 answers

Disable auto update at end of autoinstall/cloud-init

I have a working cloud-init that is deployed using packer. Once the VM is booted and the autoinstall is completed, Ubuntu does the auto update thing. This seems to take forever to complete and is an unneeded step since we hand over to puppet after…
Pieter De Wit
  • 83
  • 1
  • 3
4
votes
2 answers

How to add apt repository with Ubuntu autoinstall

I'm trying to test out the Ubuntu autoinstall and I'm struggling to figure out how to work with the apt section. My goal is to install for example git and docker, which would look like that on a regular terminal…
alon ay
  • 41
  • 1
  • 2
3
votes
1 answer

Curtin installer failing

Trying to provision a server, and it fails with the error below. It isn't clear why. I grep'd /etc/maas/preseeds for block-meta and simple and found neither. So I'm not sure when/where this is getting called. I've provisioned over a dozen servers…
esacteksab
  • 93
  • 1
  • 5
3
votes
1 answer

autoinstall - using webhooks for reporting

autoinstall includes the option to report to a webhook: reporting: hook: type: webhook endpoint: http://example.com/endpoint/path consumer_key: "ck_foo" consumer_secret: "cs_foo" token_key: "tk_foo" token_secret: "tk_secret" level:…
Fang
  • 211
  • 3
  • 10
2
votes
1 answer

How does curtin, cloud-init and the ephemeral image work?

I wanted to understand how dos cloud-init, curtin and the ephemeral image work together. I’m trying to write the role of each in the MAAS architecture. Cloud-init has two configuration sources: Cloud provider-supplied metadata: this stage happens…
jbacelo
  • 33
  • 7
2
votes
0 answers

Ubuntu offline autoinstall ISO

I am migrating an offline autoinstall ISO from Ubuntu 16.04 to 20.04. Previously I used the debian-installer preseed file. To disable online mirrors and force an offline install I could use the following line: d-i apt-setup/no_mirror boolean…
1
vote
0 answers

Autoinstall curtin FAIL: removing previous storage devices with RAID1

I create an ISO with autoinstall that needs to be generic. It should work on VMs, physical machines with legacy bios, EFI bios, with and without RAID. In my autoinstall.yml, I don't have anything related to storage (as I want it to be as generic as…
Utz
  • 79
  • 9
1
vote
0 answers

Autoinstaller: keep the /home if available, (and automatically add users)

What I would like to do is to make an autoinstaller that only installs the OS but would try to keep, and attach, an existing home directory - and automatically make the user(s) again. But looking through Curtin storage documentation, it seems that…
1
vote
3 answers

Server 22.04.1 subiquity autoinstall - system-install command fails after changing NIC name using netplan

Issue: I'm trying to use packer to create an Ubuntu Server 22.04 image and I'm running into issues when it comes to renaming the NIC using a valid netplan config and then also installing one package. A couple things to note on the background: I'm…
Tuxington
  • 13
  • 1
  • 4
1
vote
0 answers

How to convert curtin storage configuration to cloud-init disk_setup

I am using the Cloud Images for Ubuntu 20.04 and 22.04 LTS to provision a template image for further provisioning. I previously tried using the Live Server Images with autoinstall and had no sucess with the configuration by adding my user-data…
Shan-Desai
  • 151
  • 7
1
vote
2 answers

How to configure autoinstall for ZFS on root

I tried to autoinstall ubuntu server providing the user-data file as stated in the documentation but specifically for root on ZFS on Virtualbox. I followed the cloud-init documentation to set the storage part of the user-data file. I implemented…
1
vote
1 answer

How can I define AutoInstall partitions for EFI + LVM w/ smallest drive as target for OS

Goal: Install OS onto smallest available drive, using EFI, and using LVM Problem: Currently get a fatal error early in partitioning validation due to not creating needed bootloader partition I've been poring over the documentation for AutoInstall &…
1
vote
1 answer

How do I get to Subiquity logs from the command line?

I'm trying to do an automated install of Ubuntu 20.04.2 via PXE boot on a remote machine where my only access is through a virtual terminal. Subiquity is crashing somewhere in /subiquity/Install/install/curtin_install/cmd-install/stage-partitioning:…
1
vote
0 answers

ubuntu installer hangs forever at "executing late commands" on autoinstall

I'm trying to install my Ubuntu server 20.04.03 using autoinstall. I don't have any "late-commands", but the installer hangs at "executing late commands". Installer: full log: Full syslog: https://paste.ubuntu.com/p/wzrRTF3ptt/ "autoinstall"…
Yuxuan Lu
  • 111
  • 1
  • 2
1
vote
1 answer

Ubuntu 20.04 autoinstall: print late-commands output

I have an autoinstall config: #cloud-config autoinstall: version: 1 late-commands: - curtin in-target --interactive --target=/target -- echo "Hello! This is output from late-commands" While executing late commands, it will print: finish: …
Andrey Moiseev
  • 131
  • 1
  • 7
1
2