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
on 2026/05/18 08:20
Change comment:
There is no comment for this version
To version
11.6
edited by Kevin Wiki
on 2026/05/18 15:40
on 2026/05/18 15:40
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -138,6 +138,17 @@ 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 + 143 +{{code language="bash"}} 144 +unset HISTFILE 145 +export HISTSIZE=0 146 +export HISTFILESIZE=0 147 + 148 +sudo rm /.bash_history 149 +rm ~/.bash_history 150 +{{/code}} 151 + 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,11 +156,10 @@ 156 156 cat /dev/null > /var/lib/dbus/machine-id 157 157 {{/code}} 158 158 159 -**cl earbashhistory**tonotleave anyconfiguration in history170 +**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. 160 160 172 +If you used a cloud-init base image it will have run the default cloudinit which installs and configures a bunch of systems. 161 161 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 - 164 164 {{code language="bash"}} 165 165 cloud-init clean 166 166 {{/code}} ... ... @@ -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 199 +# manually managed resolv 200 +manage_resolv_conf: false 201 + 202 +package_update: true 203 +packages: 204 + - qemu-guest-agent 205 + 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: 225 + - 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 252 +runcmd: 253 + - systemctl enable qemu-guest-agent.service 254 + 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/