Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -14,19 +14,19 @@ source: https://github.com/tldr-pages/tldr.git
- Remove sensitive system data from a virtual machine image:
`sudo virt-sysprep --add {{path/to/image.qcow2}}`
`sudo virt-sysprep {{[-a|--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`
`sudo virt-sysprep {{[-d|--domain]}} {{vm_name}} {{[-n|--dry-run]}}`
- Run only the specified operations:
`sudo virt-sysprep --domain {{vm_name}} --operations {{operation1,operation2,...}}`
`sudo virt-sysprep {{[-d|--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:
`sudo virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}`
`sudo virt-sysprep {{[-d|--domain]}} {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}`
- Display help: