Recent content by x86

  1. X

    Proxmox execute command

    Ok thanks for the information. I created a script which deploys new LXC for customers. I did configure a CIFS share mount via DAB within the template (thats why I need to use the special config var; 'lxc.aa_profile: lxc-custom-mounts'). After creation I need to do a post deployment (install...
  2. X

    Proxmox execute command

    Dear, Again a few problems with the API. I am unable to send shell commands to the proxmox host via the API. i.e. $aCommands = array ( 'pct exec ' . $iVMID . ' -- ls -al /' ); var_dump ( $pApi->post ( '/nodes/' . $sNodeName . '/execute', array ( 'commands' => json_encode ( $aCommands ) ) )...
  3. X

    Create LXC via API

    Fixed it by using: local:vztmpl/debian-8.0-CUSTOM_8.0-1_amd64.tar.gz Strange that 'template' doesn't work. 'rootfs' parameter should be a number (afaik) to define how big the HDD should be, i.e.: 'rootfs' = '10'; This will create a 10GB raw HDD.
  4. X

    Create LXC via API

    Still doesn't work, tried: The file is located here: /var/lib/vz/template/cache/debian-8.0-CUSTOM_8.0-1_amd64.tar.gz
  5. X

    Create LXC via API

    Hi, I am trying to create a LXC via PHP API but I get a error ... 'HTTP Error - HTTP/1.1 500 can't find file 'debian-8.0-CUSTOM_8.0-1_amd64''. But I am sure that the template exists. I guess that my script is not correct, as there are no api examples ... $sTemplateName =...
  6. X

    Update apt sources while using dab?

    Dear, I am using DAB to create a custom template for quick deployment. But the apps I run within the LXC containers will be 32bit. I am using Debian Jessie 8.0 x64 as template. I need to execute these commands within dab: # dpkg --add-architecture i386 # apt-get update # apt-get install...
  7. X

    noVNC console via PHP API

    I did contribute some code to the API. I thought there was a better way to use noVNC instead of this 'hacky way'. :D But thanks anyway!
  8. X

    noVNC console via PHP API

    Hello, Is there any example about showing a noVNC popup from a VM (via external website) in PHP? Thanks!
  9. X

    Proxmox et VMware

    Go to the proxmox web interface, select the VM, click at 'Options', then disable 'KVM hardware virt...'.
  10. X

    PHP API with Proxmox HA cluster

    Fixed. The 'api user' was not an administrator of node2.
  11. X

    CPU advice, what "plays" nice with PROXMOX

    I was not aware about openfiler. Never used it in a production environment. Most (dell) servers recognizes an internal usb-stick as a drive.