daviftorres commented on PR #8520:
URL: https://github.com/apache/cloudstack/pull/8520#issuecomment-3458165430

   Dear @RodrigoDLopez,
   
   Thank you for taking the initiative to define a useful default value for the 
`vm.memballoon.stats.period` variable.
   
   After identifying the configuration tweaks that resolved our previous 
issues, I documented them using Ansible to ensure parameters are consistently 
set as needed. For example:
   ```
       - name: Agent configuration customization - Stats period.
         ansible.builtin.lineinfile:
           path: /etc/cloudstack/agent/agent.properties
           regexp: '^vm.memballoon.stats.period'
           line: 'vm.memballoon.stats.period=5'
           state: present
         ignore_errors: true
   ```
   
   I’d also like to suggest a few additional defaults that could be beneficial 
to consider:
   ```
       - name: Agent configuration customization - CPU mode.
         ansible.builtin.lineinfile:
           path: /etc/cloudstack/agent/agent.properties
           regexp: '^guest.cpu.mode'
           line: 'guest.cpu.mode=host-passthrough'
           state: present
         ignore_errors: true
   
       - name: Agent configuration customization - CPU features.
         ansible.builtin.lineinfile:
           path: /etc/cloudstack/agent/agent.properties
           regexp: '^guest.cpu.features'
           line: 'guest.cpu.features=vmx aes smx mmx ht'
           state: present
         ignore_errors: true
   
       - name: Agent configuration customization - Video driver.
         ansible.builtin.lineinfile:
           path: /etc/cloudstack/agent/agent.properties
           regexp: '^vm.video.hardware'
           line: 'vm.video.hardware=qxl'
           state: present
         ignore_errors: true
   
       - name: Agent configuration customization - Console proxy.
         ansible.builtin.lineinfile:
           path: /etc/cloudstack/agent/agent.properties
           regexp: '^consoleproxy.httpListenPort'
           line: 'consoleproxy.httpListenPort=443'
           state: present
         ignore_errors: true
   
       - name: Configuring EUFI booting.
         ansible.builtin.copy:
           dest: /etc/cloudstack/agent/uefi.properties
           content: |
             guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd
             guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS_4M.fd
             guest.nvram.path=/var/lib/libvirt/qemu/nvram/
             guest.loader.secure=/usr/share/OVMF/OVMF_CODE_4M.secboot.fd
             guest.loader.legacy=/usr/share/OVMF/OVMF_CODE_4M.fd
   ```
   
   Lastly, it might also be worth setting the log level to DEBUG by default, 
since detailed logs are **always** required for support and troubleshooting:
   ```
       - name: Agent configuration customization - Debug level logging.
         ansible.builtin.replace:
           path: /etc/cloudstack/agent/log4j-cloud.xml
           regexp: 'INFO'
           replace: 'DEBUG'
           backup: yes
         ignore_errors: true
   ```
   
   These are just suggestions, shared to contribute to the collective knowledge 
of developers and practitioners.
   
   Best regards,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to