|
1 | 1 | # Installing in a VMware virtual machine |
| 2 | + |
| 3 | +IncusOS can be easily installed in a VMware virtual machine when running with vSphere. |
| 4 | + |
| 5 | +```{note} |
| 6 | +IncusOS requires the use of a virtual TPM device, this appears to require the use of vSphere and won't work on standalone ESXi. |
| 7 | +``` |
| 8 | + |
| 9 | +## Get and import install media |
| 10 | + |
| 11 | +Follow the instructions to [get an IncusOS image](../download.md). This document will assume an ISO image is used. |
| 12 | + |
| 13 | +Once downloaded, upload the ISO image to a VMware datastore. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Create a new virtual machine |
| 18 | + |
| 19 | +Pick a name and location. |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +Pick a server to run the virtual machine on. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +Select a datastore for the root disk. |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +Select the compatibility level (default is fine). |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +Select `Linux` and `Other 6.x or later Linux (64-bit)` as the operating system. |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +Customize the virtual machine hardware, recommended changes are: |
| 40 | + |
| 41 | +- Set at least 4 CPUs and 4GiB of RAM |
| 42 | +- Add a NVMe controller |
| 43 | +- Set the root disk size to 50GiB and attach it to the NVMe controller |
| 44 | +- Detach the SCSI controller (now unused) |
| 45 | +- Attach a TPM module |
| 46 | +- Attach the previously uploaded ISO image to the CDROM device and make sure to have it connect on start-up |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +In the options tab, under `Boot Options`, make sure that `Secure Boot` is enabled. |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +In the additional options tab, add the following entries: |
| 55 | + |
| 56 | +- `uefi.secureBoot.kekDefault.file0` set to `secureboot-KEK-R1.der` |
| 57 | +- `uefi.secureBoot.dbDefault.file0` set to `secureboot-2025-R1.der` |
| 58 | +- `uefi.secureBoot.dbDefault.file1` set to `secureboot-2026-R1.der` |
| 59 | + |
| 60 | +Then complete the virtual machine creation. |
| 61 | + |
| 62 | +```{note} |
| 63 | +Do not start the virtual machine at this point or it will create a bad Secure Boot state. |
| 64 | +``` |
| 65 | + |
| 66 | +## Upload the Secure Boot keys |
| 67 | +Open the datastore view and go to the virtual machine's folder. |
| 68 | + |
| 69 | +Then go to [`https://images.linuxcontainers.org/os/`](https://images.linuxcontainers.org/os/) and download: |
| 70 | + |
| 71 | +- `secureboot-KEK-R1.der` |
| 72 | +- `secureboot-2025-R1.der` |
| 73 | +- `secureboot-2026-R1.der` |
| 74 | + |
| 75 | +Once downloaded, upload those three files to the virtual machine's folder. |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +## IncusOS installation |
| 80 | + |
| 81 | +Start the virtual machine, and IncusOS will begin its installation. |
| 82 | + |
| 83 | +```{note} |
| 84 | +VMware takes a very long time to hash the kernel image during boot. |
| 85 | +This leads to a black screen lasting around 3 minutes following the boot loader message. |
| 86 | +``` |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +Once installed, stop the virtual machine and edit its settings to disconnect the CDROM device. |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +## IncusOS is ready for use |
| 95 | + |
| 96 | +Start the virtual machine, and IncusOS will perform its first boot configuration. Once complete, follow the instructions for [accessing the system](../access.md). |
| 97 | + |
| 98 | + |
0 commit comments