Changes for page proxmox

Last modified by Kevin Wiki on 2026/05/18 15:44

From version 10.3
edited by Kevin Wiki
on 2026/05/18 08:20
Change comment: There is no comment for this version
To version 11.2
edited by Kevin Wiki
on 2026/05/18 15:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -138,6 +138,8 @@
138 138  
139 139  After creating the VM and before making it into a template there are some programs and settings we want to ensure exists always.
140 140  
141 +(% id="cke_bm_721114S" style="display:none" %)** **(%%)**clear bash history** to not leave any configuration in history, clear and disable history file before proceeding:
142 +
141 141  **qemu-guest-agent** is for allowing proxmox to query information from the VM such as IP address, shutdown commands, etc
142 142  
143 143  {{code language="bash"}}
... ... @@ -156,9 +156,6 @@
156 156  cat /dev/null > /var/lib/dbus/machine-id
157 157  {{/code}}
158 158  
159 -**clear bash history** to not leave any configuration in history
160 -
161 -
162 162  **cloud-init** is a great hook for installing or configuring programs or receiving variables from cloudinit CDROM drive. Making it easier to change IP, hostname, DNS, username/password, etc between VMs
163 163  
164 164  {{code language="bash"}}
... ... @@ -173,8 +173,6 @@
173 173  # A set of users which may be applied and/or used by various modules
174 174  # when a 'default' entry is found it will reference the 'default_user'
175 175  # from the distro configuration specified below
176 -users:
177 - - default
178 178  
179 179  # If this is set, 'root' will not be able to ssh in and they
180 180  # will get a message to login instead as the default $user
... ... @@ -188,6 +188,13 @@
188 188   # which has been a source of surprise.
189 189   preserve_sources_list: true
190 190  
188 +# manually managed resolv
189 +manage_resolv_conf: false
190 +
191 +package_update: true
192 +packages:
193 + - qemu-guest-agent
194 +
191 191  # The modules that run in the 'init' stage
192 192  cloud_init_modules:
193 193   - seed_random
... ... @@ -207,6 +207,7 @@
207 207  
208 208  # The modules that run in the 'config' stage
209 209  cloud_config_modules:
214 + - keyboard
210 210   - locale
211 211   - set-passwords
212 212   - grub-dpkg
... ... @@ -233,20 +233,14 @@
233 233   - final-message
234 234   - power-state-change
235 235  
241 +runcmd:
242 + - systemctl enable qemu-guest-agent.service
243 +
236 236  # System and/or distro specific settings
237 237  # (not accessible to handlers/transforms)
238 238  system_info:
239 239   # This will affect which distro class gets used
240 240   distro: debian
241 - # Default user name + that default users groups (if added/used)
242 - default_user:
243 - name: debian
244 - lock_passwd: True
245 - gecos: Debian
246 - groups: [sudo]
247 - # Disables password-less sudo commands for default/debian user
248 - sudo: ["ALL=(ALL) ALL"]
249 - shell: /bin/bash
250 250   # Other config here will be given to the distro class and/or path classes
251 251   paths:
252 252   cloud_dir: /var/lib/cloud/