Changes for page proxmox
Last modified by Kevin Wiki on 2026/05/18 15:44
From version
11.4
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
To 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
Summary
Details
- Page properties
-
- Content
-
... ... @@ -138,17 +138,6 @@ 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 - 152 152 **qemu-guest-agent** is for allowing proxmox to query information from the VM such as IP address, shutdown commands, etc 153 153 154 154 {{code language="bash"}} ... ... @@ -167,10 +167,11 @@ 167 167 cat /dev/null > /var/lib/dbus/machine-id 168 168 {{/code}} 169 169 170 -**cl oud-init** is a greathookforinstallingorconfiguringprogramsor receivingvariablesfromcloudinit CDROM drive. Making iteasier tochangeIP,hostname, DNS, username/password, etc between VMs.159 +**clear bash history** to not leave any configuration in history 171 171 172 -If you used a cloud-init base image it will have run the default cloudinit which installs and configures a bu 173 173 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 + 174 174 {{code language="bash"}} 175 175 cloud-init clean 176 176 {{/code}} ... ... @@ -183,6 +183,8 @@ 183 183 # A set of users which may be applied and/or used by various modules 184 184 # when a 'default' entry is found it will reference the 'default_user' 185 185 # from the distro configuration specified below 176 +users: 177 + - default 186 186 187 187 # If this is set, 'root' will not be able to ssh in and they 188 188 # will get a message to login instead as the default $user ... ... @@ -196,13 +196,6 @@ 196 196 # which has been a source of surprise. 197 197 preserve_sources_list: true 198 198 199 -# manually managed resolv 200 -manage_resolv_conf: false 201 - 202 -package_update: true 203 -packages: 204 - - qemu-guest-agent 205 - 206 206 # The modules that run in the 'init' stage 207 207 cloud_init_modules: 208 208 - seed_random ... ... @@ -222,7 +222,6 @@ 222 222 223 223 # The modules that run in the 'config' stage 224 224 cloud_config_modules: 225 - - keyboard 226 226 - locale 227 227 - set-passwords 228 228 - grub-dpkg ... ... @@ -249,14 +249,20 @@ 249 249 - final-message 250 250 - power-state-change 251 251 252 -runcmd: 253 - - systemctl enable qemu-guest-agent.service 254 - 255 255 # System and/or distro specific settings 256 256 # (not accessible to handlers/transforms) 257 257 system_info: 258 258 # This will affect which distro class gets used 259 259 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 260 260 # Other config here will be given to the distro class and/or path classes 261 261 paths: 262 262 cloud_dir: /var/lib/cloud/