Cloud-init install packages

Discussion in 'Proxmox VE: Installation and configuration' started by Joao Correa, May 17, 2018.

Tags:
  1. Joao Correa

    Joao Correa New Member

    Joined:
    Nov 20, 2017
    Messages:
    5
    Likes Received:
    0
    After reading the documentation at (https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_cloud_init) I was able to start, access and restart the VM without problems, but I still had a question:
    In addition to the parameters reported in the manual, can I use other cloud-init parameters, such as package installation for example?
    I tried to include in the config of vm through the command qm set without success.
     
  2. XN-Matt

    XN-Matt Member
    Proxmox VE Subscriber

    Joined:
    Aug 21, 2017
    Messages:
    34
    Likes Received:
    1
    Not at the moment I don't think.

    What OS did you try out of interest?
     
  3. Joao Correa

    Joao Correa New Member

    Joined:
    Nov 20, 2017
    Messages:
    5
    Likes Received:
    0
    I am using Ubuntu cloud as indicated in the manual.

    I mounted the LVM partition "cloudinit" and saw that the user-data file is responsible for the settings of the virtual machine. Just now, know how to include the package installation settings in this file and see if it will work.
    Example:

    Code:
    # package version will be installed.
    packages:
      - pwgen
      - pastebinit
     
  4. XN-Matt

    XN-Matt Member
    Proxmox VE Subscriber

    Joined:
    Aug 21, 2017
    Messages:
    34
    Likes Received:
    1
    Did it add the resolvers to the correct interface?

    I've been trying a manual build as the guide mentioned is best to be used so we know what software is installed but they're added to lo.
     
  5. Joao Correa

    Joao Correa New Member

    Joined:
    Nov 20, 2017
    Messages:
    5
    Likes Received:
    0
    The network was correctly configured
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice