You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
virt-customize -a jammy-server-cloudimg-amd64.img --install qemu-guest-agent
178
+
179
+
virt-customize -a jammy-server-cloudimg-amd64.img --run-command "systemctl enable qemu-guest-agent"
178
180
```
179
181
* (OPTIONAL): If you're **NOT** using an SSL Certificate within Cloudinit drive on said Virtual Machine, you'll need to modify SSH in said image to allow local authentication, which can be done running said command
180
182
@@ -218,15 +220,20 @@ qm set $VM_ID --agent enabled=1,fstrim_cloned_disks=1
218
220
```
219
221
220
222
The following commands will perform the following:
223
+
* Create a variable to determine the location of our imported disk. This is necessary as some storage pools create the destination directory differently. A variable fixes said inconsistencies.
221
224
* Add a CD-ROM to `ide0` (in case you need to reinstall the Virtual Machine at a later date)
225
+
* Import the unused disk image as a `virtio0` disk. This requires scsihw `virtio-scsi-pci`
222
226
* Add a Cloudinit drive to `ide2`
223
227
* Set the boot order to `CD-ROM (ide0) -> Disk (virtio0) -> Network Adapter (net0)` and set the bootdisk to disk `virtio0`
224
228
* Set the OS Type to `Linux: 6.x - 2.6 Kernel`
225
229
* Add a serial adapter `serial0` and update our display to `serial0`
226
230
* (Optional): Set CPU Type to `host`. This is necessary if you plan on running any sort of nested virtualization on said Virtual Machine (e.g., Docker, Hyper-V, etc.)
0 commit comments