Skip to content

Commit f14163f

Browse files
authored
Merge pull request lxc#493 from stgraber/main
Add VMware instructions
2 parents c3a6366 + 86bebe5 commit f14163f

15 files changed

+103
-2
lines changed

doc/.wordlist.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ backend
22
CDN
33
CDROM
44
Ceph
5+
CPUs
56
customizations
67
customizer
8+
datastore
79
db
810
dbx
911
DCO
@@ -12,6 +14,7 @@ DHCP
1214
DNS
1315
ECDSA
1416
EOF
17+
ESXi
1518
FAT
1619
fibre
1720
formatters
@@ -37,8 +40,8 @@ MAC
3740
MACs
3841
MOK
3942
MTU
40-
Multipath
4143
multipath
44+
Multipath
4245
Netbird
4346
NTP
4447
NVMe
@@ -79,8 +82,9 @@ USBIP
7982
VirtualBox
8083
VLAN
8184
VLANs
82-
VPN
8385
VMware
86+
VPN
87+
vSphere
8488
WWN
8589
YAML
8690
Zabbly
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,98 @@
11
# 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+
![ISO upload in VMware datastore](../../images/vsphere-upload-vm.png)
16+
17+
## Create a new virtual machine
18+
19+
Pick a name and location.
20+
21+
![Set VM name and location](../../images/vsphere-create-vm1.png)
22+
23+
Pick a server to run the virtual machine on.
24+
25+
![Set server](../../images/vsphere-create-vm2.png)
26+
27+
Select a datastore for the root disk.
28+
29+
![Select datastore](../../images/vsphere-create-vm3.png)
30+
31+
Select the compatibility level (default is fine).
32+
33+
![Pick compatibility level](../../images/vsphere-create-vm4.png)
34+
35+
Select `Linux` and `Other 6.x or later Linux (64-bit)` as the operating system.
36+
37+
![Select operating system](../../images/vsphere-create-vm5.png)
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+
![Customize the virtual machine](../../images/vsphere-create-vm6.png)
49+
50+
In the options tab, under `Boot Options`, make sure that `Secure Boot` is enabled.
51+
52+
![Enable Secure Boot](../../images/vsphere-create-vm7.png)
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+
![Upload Secure Boot keys](../../images/vsphere-upload-keys.png)
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+
![Installation](../../images/vsphere-install.png)
89+
90+
Once installed, stop the virtual machine and edit its settings to disconnect the CDROM device.
91+
92+
![Detach the ISO](../../images/vsphere-detach-iso.png)
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+
![Installed system](../../images/vsphere-installed.png)

doc/images/vsphere-create-vm1.png

99 KB
Loading

doc/images/vsphere-create-vm2.png

99.6 KB
Loading

doc/images/vsphere-create-vm3.png

115 KB
Loading

doc/images/vsphere-create-vm4.png

113 KB
Loading

doc/images/vsphere-create-vm5.png

111 KB
Loading

doc/images/vsphere-create-vm6.png

126 KB
Loading

doc/images/vsphere-create-vm7.png

143 KB
Loading

doc/images/vsphere-create-vm8.png

127 KB
Loading

0 commit comments

Comments
 (0)