salt-cloud proxmox.py is broken, returns "Could not determine an IP address to use"

julian.firminger

New Member
Sep 25, 2025
1
0
1
Im trying to test Proxmox with salt-cloud for deploying VMs. The deployment starts but then fails with "Could not determine an IP address to use". In proxmox the base VM is created but no OS is installed. I can clone from the template using qm no problem just not from salt-cloud. the issue seems to be with proxmox.py. Anyone else see this?

Code:
[DEBUG   ] Starting new HTTPS connection (1): pve-test-1.domain:8006
[DEBUG   ] https://pve-test-1.domain:8006 "POST /api2/json/nodes/pve-test-1/qemu HTTP/1.1" 200 76
[ERROR   ] Failed to deploy 'deploy-test-01.domain.local'. Error: Could not determine an IP address to use
Traceback (most recent call last):
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/__init__.py", line 2207, in run_map
    output[name] = self.create(profile, local_master=local_master)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/__init__.py", line 1219, in create
    output = self.clouds[func](vm_)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 162, in __call__
    ret = self.loader.run(run_func, *args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1248, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1263, in _run_as
    ret = _func_or_method(*args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/proxmox.py", line 710, in create
    raise SaltCloudExecutionFailure("Could not determine an IP address to use")
salt.exceptions.SaltCloudExecutionFailure: Could not determine an IP address to use
[INFO    ] Complete
[DEBUG   ] The functions from module 'nested' are being loaded by dir() on the loaded module
[DEBUG   ] LazyLoaded nested.output
deploy-test-01.domain.local:
    ----------
    Error:
        Could not determine an IP address to use

/etc/salt/cloud.providers.d/proxmox.conf
Code:
pve-test-proxmox-config:
  url: pve-test-1.domain
  port: 8006
  driver: proxmox
  minion:
    master: pve-salt.domain
  user: root@pam
  token_id: 'salt-master'
  token_secret: 'token'
  password: 'password'
  verify_ssl: False
  ssh_port: 22
  ssh_username: root

/etc/salt/cloud.maps.d/map.map
Code:
deploy-test-01:
  - deploy-test-01.domain.local

/etc/salt/cloud.profiles/template.conf
Code:
fedora42-template:
  provider: pve-test-proxmox-config
  host: pve-test-1
  datastore: pool1
  clonefrom: '103'
  name: 'test'
  image: null
  num_cpus: 2
  memory: 4096
  ssh_username: root
  password: password
  technology: qemu
  minion:
    master: 192.168.1.1
    mine_functions:
      network.ip_addrs: []
      disk.partitions: []
    state:
      - linux.baselines.initial-baselines.salt-cloud-pre-run

/etc/salt/cloud.profiles/deploy-test-01.conf
Code:
deploy-test-01:
  extends: fedora42-template
  devices:
    network:
      'net0':
        switch_type: standard
        macaddr: 'BC:24:11:BF:FF:BB'
        network_type: static
        ip_address: 192.168.1.101
        netmask: 255.255.255.0
        gateway: 192.168.1.1
        dns_servers:
          - 8.8.8.8
    num_cpus: 2
    memory: 4096
    disk:
      scsi0:
        size: 50
        controller: scsi
        thin_provision: True