Configuring Proxmox server with Ansible

Naaaaah, all of the example.com links are just for showing how it would look like, they do not exist ;)

You might try these:

Code:
stage2: http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/
repo: http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/

Also you need to provide the kickstart file yourself (example: https://gitlab.com/morph027/kickstart-docker/blob/master/docker.cfg)

In your screenshots, you do not even get that far, it just does not find any DHCP/PXE server attached to its network.
 
Regarding pve-infra-poc repo (morph027 / pve-infra-poc · GitLabhttps://gitlab.com › morph027 › pve-infra-poc) I have returned to working on the cloud-init.

In the vars.yml, I set:

Code:
# vm definitions
vms:
  ubuntu-cloud-init-1:
    cloudinit: true
    template: 'ubuntu-ansible'
    node: 'ceph-hv-01'
    ipconfig: '{"ipconfig0":"ip=172.30.32.100/24,gw=172.30.32.1"}'
    type: 'ubuntu'

which is based on a template, ubuntu-ansible, which is based on an Ubuntu which has cloud-init pkg in it.

And the run.yml as well (called runMorph2.yml):

Code:
---

- name: deploy virtual machines

  hosts: localhost
  gather_facts: false

#  handlers:

#  - name: sleep
#    pause:
#      seconds: 10

  tasks:

  - name: include vars
    include_vars: 'vars.yml'

  - name: create vms
    become: true
    proxmox_kvm:
      api_user: "{{ api_user }}"
      api_password: "{{ api_password }}"
      api_host: "{{ api_host }}"
      node: "{{ item.value.node }}"
      name: "{{ item.key }}"
      net: '{{ item.value.net | default(defaults.net) }}'
      scsihw: '{{ item.value.scsihw | default(defaults.scsihw) }}'
      virtio: '{{ item.value.virtio | default(defaults.virtio) }}'
      cores: '{{ item.value.cores | default(defaults.cores) }}'
      memory: '{{ item.value.memory_size | default(defaults.memory_size) }}'
      balloon: '{{ item.item.value.balloon | default(defaults.balloon) }}'
      vga: 'qxl'
      ostype: '{{ item.value.ostype | default(defaults.ostype) }}'
#      args: null
      args: "{{ lookup('template', '{{ deployments[item.value.type].template }}') | replace('\n', '') }}"
      cpu: '{{ item.value.cpu | default(defaults.cpu) }}'
      state: present
    with_dict: "{{ vms }}"

Unfortunately, when the runMorph2.yml is executed (see below), the ubuntu-cloud-init-1 instance, while spun up, gets no cloud-init drive, no ip/gw/nameserver/dns, nada, whether created and not started or then manually started via Proxmox gui.

That screen shot is attached to this post.

The run from the console is as follows in the next messages due to the 10k character limit...
 

Attachments

  • failed-Cloud-Init.png
    failed-Cloud-Init.png
    121.6 KB · Views: 9
Code:
ansible-playbook -vvvv runMorph2.yml --ask-vault-pass
ansible-playbook 2.9.2
  config file = /home/ansible/src/ansible-proxmox-cloudinit/roles/ansible.cfg
  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/ansible/venv/local/lib/python2.7/site-packages/ansible
  executable location = /home/ansible/venv/bin/ansible-playbook
  python version = 2.7.15+ (default, Oct  7 2019, 17:39:04) [GCC 7.4.0]
Using /home/ansible/src/ansible-proxmox-cloudinit/roles/ansible.cfg as config file
Vault password:
setting up inventory plugins
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /home/ansible/venv/local/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc

PLAYBOOK: runMorph2.yml *********************************************************************************************************
Positional arguments: runMorph2.yml
become_method: sudo
inventory: (u'/etc/ansible/hosts',)
forks: 5
tags: (u'all',)
verbosity: 4
connection: smart
ask_vault_pass: True
timeout: 10
1 plays in runMorph2.yml

PLAY [deploy virtual machines] **************************************************************************************************
META: ran handlers

TASK [include vars] *************************************************************************************************************
task path: /home/ansible/src/ansible-proxmox-cloudinit/roles/runMorph2.yml:16
ok: [localhost] => {
    "ansible_facts": {
        "api_host": "ceph-hv-01",
        "api_password": {
            "__ansible_vault": "$ANSIBLE_VAULT;1.1;AES256\n66386333346136396262623937633863323239303562383462636331313031376439393335353836\n6662613265376565613038623236383265323437323135610a303563393738656430653033363264\n33323763303037663134386461323038366536383231393933366338366132663230353165373261\n3436626435643835640a366335616665633336393031633364363735373962366230653535633865\n3831\n"
        },
        "api_user": "root@pam",
        "defaults": {
            "balloon": "1024",
            "cores": "2",
            "cpu": "host",
            "memory_size": "2048",
            "net": "{\"net0\":\"virtio,bridge=vmbr322\"}",
            "ostype": "l26",
            "scsihw": "virtio-scsi-pci",
            "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDC6tHm8g0ta4jZ1M6MzfLRL/ZSCzSM4VSL0LRdd4iyiIy9rn8XLz+VPLPlYkpbB20e/OkAI+MvtlyZqZdrBb75QaFJTNs6TZ32kN1tSB2odGdtoz7QIVUoYLZ0nQbKHsLm4o+tja6ixeKv4fLY+5Z1QZviXT7Fm8C7fZmNPpI3LQTK0W+B7kITeHrZc7QTvyG3SsXV76Y5oAQRuf+xJ4aXIoZSQHyqSCYQEaW4gYvf0C+nLJHWoMnNKdQO0JYHLRMUYuGuGV3iyALflCnCRKhYpb2JE6mTq56+Il3uTK8A2akJogyl49y17i+uuchZ+kyxmvhZaKZj3OwWQf2zD55l root@mgmt-01",
            "virtio": "{\"scsi0\":\"rbd_nvme_general:16,cache=writeback,discard=on\"}"
        },
        "deployments": {
            "centos": {
                "initrd": "http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/isolinux/initrd.img",
                "kernel": "http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/isolinux/vmlinuz",
                "ks": "https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/kickstart/server.ks",
                "repo": "http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/",
                "stage2": "http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/",
                "storage": "rbd_nvme_general",
                "template": "deploy-args-centos.j2"
            },
            "ubuntu": {
                "initrd": "http://download.morph027.de/ubuntu-installer/initrd.gz",
                "kernel": "http://download.morph027.de/ubuntu-installer/linux",
                "preseed": "https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/preseed/server.seed",
                "template": "deploy-args-ubuntu.j2"
            }
        },
        "timeout": 600,
        "vms": {
            "ubuntu-cloud-init-1": {
                "cloudinit": true,
                "ipconfig": "{\"ipconfig0\":\"ip=172.30.32.100/24,gw=172.30.32.1\"}",
                "node": "ceph-hv-01",
                "template": "ubuntu-ansible",
                "type": "ubuntu"
            }
        }
    },
    "ansible_included_var_files": [
        "/home/ansible/src/ansible-proxmox-cloudinit/roles/vars.yml"
    ],
    "changed": false
}
:
:

see next msg due to 10,000 character limit.
 
TASK [create vms] ***************************************************************************************************************
task path: /home/ansible/src/ansible-proxmox-cloudinit/roles/runMorph2.yml:19
File lookup using /home/ansible/src/ansible-proxmox-cloudinit/roles/templates/deploy-args-ubuntu.j2 as file
Trying secret <ansible.parsing.vault.PromptVaultSecret object at 0x7fdb1ac09d50> for vault_id=default
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: ansible
<127.0.0.1> EXEC /bin/sh -c 'echo ~ansible && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849 `" && echo ansible-tmp-1576603088.61-177972580025849="` echo /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849 `" ) && sleep 0'
Using module file /home/ansible/src/ansible-proxmox-cloudinit/roles/library/proxmox_kvm.py
<127.0.0.1> PUT /home/ansible/.ansible/tmp/ansible-local-17044xQPX3F/tmp1ajJ_J TO /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/AnsiballZ_proxmox_kvm.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/ /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/AnsiballZ_proxmox_kvm.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ndfphjjvdwbyrpiaaarycxeoasvaiczz ; /home/ansible/venv/bin/python2 /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/AnsiballZ_proxmox_kvm.py'"'"' && sleep 0'
changed: [localhost] => (item={'value': {u'node': u'ceph-hv-01', u'ipconfig': u'{"ipconfig0":"ip=172.30.32.100/24,gw=172.30.32.1"}', u'cloudinit': True, u'template': u'ubuntu-ansible', u'type': u'ubuntu'}, 'key': u'ubuntu-cloud-init-1'}) => {
"ansible_loop_var": "item",
"changed": true,
"devices": {
"scsi0": "rbd_nvme_general:vm-102-disk-0"
},
"invocation": {
"module_args": {
"acpi": true,
"agent": null,
"api_host": "ceph-hv-01",
"api_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"api_user": "root@pam",
"args": "-kernel /tmp/ubuntu-linux-initrd /tmp/ubuntu-initrd.gz -append \"preseed/url=https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/preseed/server.seed debian-installer/allow_unauthenticated_ssl=true locale=de_DE.UTF-8 debian/priority=critical vga=normal debian-installer/keymap=de console-keymaps-at/keymap=de console-setup/layoutcode=de_DE netcfg/choose_interface=auto localechooser/translation/warn-light=true localechooser/translation/warn-severe=true console-setup/ask_detect=false netcfg/get_hostname=ubuntu-cloud-init-1 netcfg/get_domain=localdomain FRONTEND_BACKGROUND=original\"",
"autostart": false,
"balloon": 1024,
"bios": null,
"boot": "cnd",
"bootdisk": null,
"clone": null,
"cores": 2,
"cpu": "host",
"cpulimit": null,
"cpuunits": 1000,
"delete": null,
"description": null,
"digest": null,
"force": null,
"format": "qcow2",
"freeze": null,
"full": true,
"hostpci": null,
"hotplug": null,
"hugepages": null,
"ide": null,
"ipconfig": null,
"keyboard": null,
"kvm": true,
"localtime": null,
"lock": null,
"machine": null,
"memory": 2048,
"migrate_downtime": null,
"migrate_speed": null,
"name": "ubuntu-cloud-init-1",
"net": {
"net0": "virtio,bridge=vmbr322"
},
"newid": null,
"node": "ceph-hv-01",
"numa": null,
"numa_enabled": null,
"onboot": true,
"ostype": "l26",
"parallel": null,
"pool": null,
"protection": null,
"reboot": null,
"revert": null,
"sata": null,
"scsi": null,
"scsihw": "virtio-scsi-pci",
"serial": null,
"shares": null,
"skiplock": null,
"smbios": null,
"snapname": null,
"sockets": 1,
"sshkeys": null,
"startdate": null,
"startup": null,
"state": "present",
"storage": null,
"tablet": false,
"target": null,
"tdf": null,
"template": false,
"timeout": 30,
"update": false,
"validate_certs": false,
"vcpus": null,
"vga": "qxl",
"virtio": {
"scsi0": "rbd_nvme_general:16,cache=writeback,discard=on"
},
"vmid": null,
"watchdog": null
}
},
"item": {
"key": "ubuntu-cloud-init-1",
"value": {
"cloudinit": true,
"ipconfig": "{\"ipconfig0\":\"ip=172.30.32.100/24,gw=172.30.32.1\"}",
"node": "ceph-hv-01",
"template": "ubuntu-ansible",
"type": "ubuntu"
}
},
"mac": {
"net0": "BE:37:3F:1D:54:79"
},
"msg": "VM ubuntu-cloud-init-1 with vmid 102 deployed",
"vmid": 102
}
META: ran handlers
META: ran handlers

PLAY RECAP **********************************************************************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

[/CODE]
 
TASK [create vms] ***************************************************************************************************************
task path: /home/ansible/src/ansible-proxmox-cloudinit/roles/runMorph2.yml:19
File lookup using /home/ansible/src/ansible-proxmox-cloudinit/roles/templates/deploy-args-ubuntu.j2 as file
Trying secret <ansible.parsing.vault.PromptVaultSecret object at 0x7fdb1ac09d50> for vault_id=default
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: ansible
<127.0.0.1> EXEC /bin/sh -c 'echo ~ansible && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849 `" && echo ansible-tmp-1576603088.61-177972580025849="` echo /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849 `" ) && sleep 0'
Using module file /home/ansible/src/ansible-proxmox-cloudinit/roles/library/proxmox_kvm.py
<127.0.0.1> PUT /home/ansible/.ansible/tmp/ansible-local-17044xQPX3F/tmp1ajJ_J TO /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/AnsiballZ_proxmox_kvm.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/ /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/AnsiballZ_proxmox_kvm.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ndfphjjvdwbyrpiaaarycxeoasvaiczz ; /home/ansible/venv/bin/python2 /home/ansible/.ansible/tmp/ansible-tmp-1576603088.61-177972580025849/AnsiballZ_proxmox_kvm.py'"'"' && sleep 0'
changed: [localhost] => (item={'value': {u'node': u'ceph-hv-01', u'ipconfig': u'{"ipconfig0":"ip=172.30.32.100/24,gw=172.30.32.1"}', u'cloudinit': True, u'template': u'ubuntu-ansible', u'type': u'ubuntu'}, 'key': u'ubuntu-cloud-init-1'}) => {
"ansible_loop_var": "item",
"changed": true,
"devices": {
"scsi0": "rbd_nvme_general:vm-102-disk-0"
},
"invocation": {
"module_args": {
"acpi": true,
"agent": null,
"api_host": "ceph-hv-01",
"api_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"api_user": "root@pam",
"args": "-kernel /tmp/ubuntu-linux-initrd /tmp/ubuntu-initrd.gz -append \"preseed/url=https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/preseed/server.seed debian-installer/allow_unauthenticated_ssl=true locale=de_DE.UTF-8 debian/priority=critical vga=normal debian-installer/keymap=de console-keymaps-at/keymap=de console-setup/layoutcode=de_DE netcfg/choose_interface=auto localechooser/translation/warn-light=true localechooser/translation/warn-severe=true console-setup/ask_detect=false netcfg/get_hostname=ubuntu-cloud-init-1 netcfg/get_domain=localdomain FRONTEND_BACKGROUND=original\"",
"autostart": false,
"balloon": 1024,
"bios": null,
"boot": "cnd",
"bootdisk": null,
"clone": null,
"cores": 2,
"cpu": "host",
"cpulimit": null,
"cpuunits": 1000,
"delete": null,
"description": null,
"digest": null,
"force": null,
"format": "qcow2",
"freeze": null,
"full": true,
"hostpci": null,
"hotplug": null,
"hugepages": null,
"ide": null,
"ipconfig": null,
"keyboard": null,
"kvm": true,
"localtime": null,
"lock": null,
"machine": null,
"memory": 2048,
"migrate_downtime": null,
"migrate_speed": null,
"name": "ubuntu-cloud-init-1",
"net": {
"net0": "virtio,bridge=vmbr322"
},
"newid": null,
"node": "ceph-hv-01",
"numa": null,
"numa_enabled": null,
"onboot": true,
"ostype": "l26",
"parallel": null,
"pool": null,
"protection": null,
"reboot": null,
"revert": null,
"sata": null,
"scsi": null,
"scsihw": "virtio-scsi-pci",
"serial": null,
"shares": null,
"skiplock": null,
"smbios": null,
"snapname": null,
"sockets": 1,
"sshkeys": null,
"startdate": null,
"startup": null,
"state": "present",
"storage": null,
"tablet": false,
"target": null,
"tdf": null,
"template": false,
"timeout": 30,
"update": false,
"validate_certs": false,
"vcpus": null,
"vga": "qxl",
"virtio": {
"scsi0": "rbd_nvme_general:16,cache=writeback,discard=on"
},
"vmid": null,
"watchdog": null
}
},
"item": {
"key": "ubuntu-cloud-init-1",
"value": {
"cloudinit": true,
"ipconfig": "{\"ipconfig0\":\"ip=172.30.32.100/24,gw=172.30.32.1\"}",
"node": "ceph-hv-01",
"template": "ubuntu-ansible",
"type": "ubuntu"
}
},
"mac": {
"net0": "BE:37:3F:1D:54:79"
},
"msg": "VM ubuntu-cloud-init-1 with vmid 102 deployed",
"vmid": 102
}
META: ran handlers
META: ran handlers

PLAY RECAP **********************************************************************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

[/CODE]
 
Okay, I cloned the latest pve-infra-poc repo and used the full run.yml with our vars.yml and saw the attached on the console.

The output at the very end expands to this in the Proxmox GUI in the tasks section where it fails to start the VM

Code:
Use of uninitialized value $type in string eq at /usr/share/perl5/PVE/QemuServer.pm line 2026.
WARNING: Image format was not specified for '/tmp/ubuntu-initrd.gz' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu: could not load kernel '/tmp/ubuntu-linux-initrd': No such file or directory
TASK ERROR: start failed: command '/usr/bin/kvm -id 102 -name ubuntu-cloud-init-1 -chardev 'socket,id=qmp,path=/var/run/qemu-server/102.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-even\
t,path=/var/run/qmeventd.sock,reconnect=5' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/102.pid -daemonize -smbios 'type=1,uuid=0cd3d685-1c25-4a7b-93ed-f080653e5359' -smp '2,sockets=1,cores=2,\
maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vnc unix:/var/run/qemu-server/102.vnc,x509,password -cpu host,+kvm_pv_unhalt,+kvm_pv_eoi -m 2048 -ke\
rnel /tmp/ubuntu-linux-initrd /tmp/ubuntu-initrd.gz -append 'preseed/url=https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/preseed/server.seed debian-installer/allow_unauthenticated_ssl=true locale=de_DE.\
UTF-8 debian/priority=critical vga=normal debian-installer/keymap=de console-keymaps-at/keymap=de console-setup/layoutcode=de_DE netcfg/choose_interface=auto localechooser/translation/warn-light=true localechooser/t\
ranslation/warn-severe=true console-setup/ask_detect=false netcfg/get_hostname=ubuntu-cloud-init-1 netcfg/get_domain=localdomain FRONTEND_BACKGROUND=original' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr\
=0x1e' -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'vmgenid,guid=54368e0c-1f05-4c84-b1bf-f40c810bb705' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'qxl-vga,id=vga,bus=p\
ci.0,addr=0x2' -spice 'tls-port=61000,addr=127.0.0.1,tls-ciphers=HIGH,seamless-migration=on' -device 'virtio-serial,id=spice,bus=pci.0,addr=0x9' -chardev 'spicevmc,id=vdagent,name=vdagent' -device 'virtserialport,ch\
ardev=vdagent,name=com.redhat.spice.0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:c2864ecd62e9' -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x\
5' -drive 'file=rbd:rbd/vm-102-disk-0:mon_host=172.30.4.11\:6789;172.30.4.18\:6789;172.30.4.23\:6789:auth_supported=cephx:id=admin:keyring=/etc/pve/priv/ceph/rbd_nvme_general.keyring,if=none,id=drive-scsi0,cache=wri\
teback,discard=on,format=raw,aio=threads,detect-zeroes=unmap' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap102i0,script=/var/\
lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=D6:EF:3E:64:CA:3F,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=200' -machine 'type=pc'' failed: ex\
it code 1

Here is the vars.yml:

Code:
---
# proxmox_kvm options
# derived from https://gitlab.com/morph027/pve-infra-poc/blob/master/vars.example.yml
api_user: 'root@pam'
api_password: !vault |
           $ANSIBLE_VAULT;1.1;AES256
           66386333346136396262623937633863323239303562383462636331313031376439393335353836
           6662613265376565613038623236383265323437323135610a303563393738656430653033363264
           33323763303037663134386461323038366536383231393933366338366132663230353165373261
           3436626435643835640a366335616665633336393031633364363735373962366230653535633865
           3831
api_host: 'ceph-hv-01'
##timeout: 600
defaults:
  cpu: 'host'
  net: '{"net0":"virtio,bridge=vmbr322"}'
  cores: '2'
  memory_size: '2048'
  balloon: '1024'
  scsihw: 'virtio-scsi-pci'
  virtio: '{"scsi0":"rbd_nvme_general:16,cache=writeback,discard=on"}'
  ostype: 'l26'
  sshkeys: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDC6tHm8g0ta4jZ1M6MzfLRL/ZSCzSM4VSL0LRdd4iyiIy9rn8XLz+VPLPlY\
kpbB20e/OkAI+MvtlyZqZdrBb75QaFJTNs6TZ32kN1tSB2odGdtoz7QIVUoYLZ0nQbKHsLm4o+tja6ixeKv4fLY+5Z1QZviXT7Fm8C7fZmNPp\
I3LQTK0W+B7kITeHrZc7QTvyG3SsXV76Y5oAQRuf+xJ4aXIoZSQHyqSCYQEaW4gYvf0C+nLJHWoMnNKdQO0JYHLRMUYuGuGV3iyALflCnCRKh\
Ypb2JE6mTq56+Il3uTK8A2akJogyl49y17i+uuchZ+kyxmvhZaKZj3OwWQf2zD55l root@mgmt-01'

# default deployment values
deployments:
  ubuntu:
    kernel: 'http://download.morph027.de/ubuntu-installer/linux'
    initrd: 'http://download.morph027.de/ubuntu-installer/initrd.gz'
    template: 'deploy-args-ubuntu.j2'
    preseed: 'https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/preseed/server.seed'
  centos:
    storage: rbd_nvme_general
    kernel: 'http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/isolinux/vmlinuz'
    initrd: 'http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/isolinux/initrd.img'
    template: 'deploy-args-centos.j2'
    stage2: 'http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/'
    repo: 'http://ftp.hosteurope.de/mirror/centos.org/7/os/x86_64/'
    ks: 'https://gitlab.com/morph027/pve-infra-poc/raw/master/contrib/kickstart/server.ks'

# vm definitions
vms:
  ubuntu-cloud-init-1:
    cloudinit: true
    template: 'ubuntu-ansible'
    node: 'ceph-hv-01'
    ipconfig: '{"ipconfig0":"ip=172.30.32.100/24,gw=172.30.32.1"}'
    type: 'ubuntu'
 

Attachments

  • mrun.txt
    74.8 KB · Views: 7

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!