Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-07 00:17:34 +00:00
parent efdf464901
commit c8986586ce
16 changed files with 308 additions and 11 deletions

View File

@@ -12,14 +12,18 @@ source: https://github.com/tldr-pages/tldr.git
`virt-sysprep --list-operations`
- Run all enabled operations but don't actually apply the changes:
- Remove sensitive system data from a virtual machine image:
`virt-sysprep --domain {{vm_name}} --dry-run`
`sudo virt-sysprep --add {{path/to/image.qcow2}}`
- Specify a virtual machine by its name and run all enabled operations but don't actually apply the changes:
`sudo virt-sysprep --domain {{vm_name}} --dry-run`
- Run only the specified operations:
`virt-sysprep --domain {{vm_name}} --operations {{operation1,operation2,...}}`
`sudo virt-sysprep --domain {{vm_name}} --operations {{operation1,operation2,...}}`
- Generate a new `/etc/machine-id` file and enable customizations to be able to change the host name to avoid network conflicts:
`virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}`
`sudo virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}`