Add partitioning example to autoinstall-quickstart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
At my uni/work we have an LTSP server. The best way to manage update an LTSP server image (for us) is to use a VMDK file as the source of the LTSP image. VB is also cross-platform (unlike Virt-manager) and hence I wanted to write a script to automate the process of creating a new VirtualBox VMDK image from scratch running a bare bones Ubuntu Server 22.04 install (amd64).
I found and successfully followed the cloud-localds method described in this guide:
https:/
I have got my script basically working now (bar having to type 'yes' to begin the otherwise fully automated installation) to automate the installation of a VB Ubuntu VM except for one issue and that is correctly automating the desired partitioning for the VMs disk.
As is, following that guide (curtin?) partitions a disk with a GPT partition label, it uses LVM and creates three partitions. For my LTSP image purposes, I want a mbr disk label and one ext4 partition that fills the full disk. What is the easiest way to achieve this? Is it by using cloud-init or curtin?
I would like to see the autoinstall-
Here's my non-working attempt to do this with cloud-init. I rolled this config into a seed.iso using cloud-localds:
#cloud-config YCE/2$zmn9ToZwT KLhCw.b4/ b.ZRTIZM30JZ4Qr OQ2aOXJ8yk96xpc Cof0kxKwuX1kqLG /ygbJ1f8wxED22b TL4F46P0"
autoinstall:
version: 1
identity:
hostname: ubuntu-server
password: "$6$exDY1mhS4KU
username: ubuntu
disk_setup:
/dev/sda:
table_type: mbr
layout: True
overwrite: True
fs_setup:
- device: /dev/sda
partition: 1
filesystem: ext4
This config attempt is based on some examples I saw in the Disk setup section here:
https:/ /cloudinit. readthedocs. io/en/latest/ topics/ examples. html
Maybe its just formatted wrong? I know how fussy YAML is.