proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v2.3.0, Jan 24 23

Proxmox Virtual Environment (Proxmox VE): Installation & Configuration

Installation

The Proxmox Virtual Environment (Proxmox VE) provider is available as a package in all Pulumi languages:

Configuring Credentials

Pulumi relies on the Proxmox VE API to authenticate requests from your computer to Proxmox VE. Your credentials are never sent to pulumi.com. The Pulumi Proxmox VE Provider needs to be configured with Proxmox VE credentials before it can be used to create resources.

The Proxmox VE Terraform provider uses a nested configuration not currently supported by Pulumi. In fact, we need to set the credentials using the following work-around:

  1. Set the environment variables PROXMOX_VE_ENDPOINT, PROXMOX_VE_PASSWORD, PROXMOX_VE_USERNAME, and PROXMOX_VE_INSECURE:

    $ export PROXMOX_VE_ENDPOINT=XXXXXXXXXXXX
    $ export PROXMOX_VE_PASSWORD=YYYYYYYYYYYY
    $ export PROXMOX_VE_USERNAME=ZZZZZZZZZZZZ
    $ export PROXMOX_VE_INSECURE=AAAAAAAAAAAA
    
  2. Configure the provider, e.g. in Typescript:

    const provider = new proxmox.Provider('proxmoxve', {
         virtualEnvironment: {
         endpoint: process.env.PROXMOX_VE_ENDPOINT,
         insecure: process.env.PROXMOX_VE_INSECURE,
         username: process.env.PROXMOX_VE_USERNAME,
         password: process.env.PROXMOX_VE_PASSWORD
         }
    });
    
  3. Pass the provider when creating a resource, e.g. in Typescript:

    const server = new proxmox.vm.VirtualMachine('vm',
       ...,
       {
            provider: provider,
       }
    );