Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/qm-cloud-init Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm cloud init
> Configure cloudinit settings for virtual machines managed by Proxmox Virtual Environment (PVE).
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Configure cloudinit settings for a specific user and set password for the user:
`qm cloud-init {{vm_id}} -user={{user}} -password={{password}}`
- Configure cloudinit settings for a specific user and set password for the user with a specific SSH key:
`qm cloud-init {{vm_id}} -user={{user}} -password={{password}} -sshkey={{ssh_key}}`
- Set the hostname for a specific virtual machine:
`qm cloud-init {{vm_id}} -hostname={{hostname}}`
- Configure the network interface settings for a specific virtual machine:
`qm cloud-init {{vm_id}} -ipconfig {{ipconfig}}`
- Configure a shell script to execute before `cloud-ini` is run on a virtual machine:
`qm cloud-init {{vm_id}} -pre {{script}}`