Thicket data repository for the EEG
1{
2 "id": "https://www.tunbury.org/2025/04/02/ubuntu-with-zfs-root",
3 "title": "Ubuntu with ZFS root",
4 "link": "https://www.tunbury.org/2025/04/02/ubuntu-with-zfs-root/",
5 "updated": "2025-04-02T00:00:00",
6 "published": "2025-04-02T00:00:00",
7 "summary": "The installation of Ubuntu on ZFS contains about 50 steps of detailed configuration. I have 10 servers to install, so I would like to script this process as much as possible.",
8 "content": "<p>The installation of <a href=\"https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2022.04%20Root%20on%20ZFS.html\">Ubuntu on ZFS</a>\ncontains about 50 steps of detailed configuration. I have 10 servers to install, so I would like to script this process as much as possible.</p>\n\n<p>To test my script, I have created a new VM on VMware ESXi with 10 x 16GB\ndisks, 16GB RAM, 4 vCPU. In the advanced options, I have set the boot to\nEFI and set <code>disk.EnableUUID = \"TRUE\"</code> in the <code>.vmx</code> file. Doing this\nensures that <code>/dev/disk</code> aliases are created in the guest.</p>\n\n<p>Boot Ubuntu 24.04 from the Live CD and install SSH.</p>\n\n<div><div><pre><code><span>sudo</span> <span>-i</span>\napt update\napt <span>install </span>openssh-server <span>-y</span>\n</code></pre></div></div>\n\n<p>Use <code>wget</code> to download https://github.com/mtelvers.keys into <code>~/.ssh/authorized_keys</code>.</p>\n\n<div><div><pre><code>wget https://github.com/mtelvers.keys <span>-O</span> ~/.ssh/authorized_keys\n</code></pre></div></div>\n\n<p>In your Ansible <code>hosts</code> file, add your new machine and its IP address</p>\n\n<div><div><pre><code>your.fqdn ansible_host=<ip>\n</code></pre></div></div>\n\n<p>Run the playbook with</p>\n\n<div><div><pre><code>ansible-playbook <span>-i</span> hosts <span>--limit</span> your.fqdn ubuntu-zfs.yml\n</code></pre></div></div>\n\n<p>The playbook is available as a GitHub gist <a href=\"https://gist.github.com/mtelvers/2cbeb5e35f43f5e461aa0c14c4a0a6b8\">zfs-ubuntu.yml</a>.</p>",
9 "content_type": "html",
10 "author": {
11 "name": "Mark Elvers",
12 "email": "mark.elvers@tunbury.org",
13 "uri": null
14 },
15 "categories": [
16 "openzfs",
17 "tunbury.org"
18 ],
19 "source": "https://www.tunbury.org/atom.xml"
20}