2016-03-29 5 views
1

Ich habe Saltsatck (Salz-Master) auf meiner virtuellen Maschine installiert und auch Proxmox (Cloud) auf einer anderen virtuellen Maschine installiert. Sie sind beide im selben Netzwerk. Salt-Master und Proxmox laufen erfolgreich.Ich kann keine VM/Instanz in Proxmox von Salt-Master starten

Whenever I run the below command :- 

# salt-cloud -p my-proxmox-config mytest 

I get the following output :- 
[INFO ] salt-cloud starting 
[INFO ] Starting new HTTPS connection (1): 192.168.2.245 
[INFO ] Creating Cloud VM mytest 
[ERROR ] Error creating mytest on PROXMOX 

The following exception was thrown when trying to run the initial deployment: 

Error: There was a profile error: Failed to deploy VM 

Please look at the below config files :- 

1. /etc/salt/cloud.providers.d/proxmox.conf 

    proxmox-config: 
    user: [email protected] or [email protected] 
    password: oodles 
    url: 192.168.2.245 
    driver: proxmox 
    verify_ssl: False 
    minion: 
     master: 192.168.2.228 

2. /etc/salt/cloud.profiles.d/proxmox.conf 

    my-proxmox-config : 
    provider: proxmox-config 
    image: /root/ISO/ubuntu-14.04-server-amd64.iso 
    technology: kvm/Openvz 
    host: cloud 
    ip_address: 192.168.2.245 
    ssh_username: root 
    password: oodles 
    cpus: 1 
    memory: 512 
    swap: 512 
    disk: 2 
    nameserver: 8.8.8.8 8.8.4.4 

Please suggest/advice me what to correct from my configurations file . 

Thanks 
+0

Können Sie bitte die folgende Ausgabe zur Verfügung stellen? 'Salz-Wolke --list-Bilder Proxmox-config' –

+0

Hallo, Wenn ich laufen # salz Wolke --list-Bilder Proxmox-config Ich bin unten Ausgabe bekommen: - [INFO] salt-cloud start [INFO] Neue HTTPS-Verbindung wird gestartet (1): 192.168.2.245 [ERROR] Fehler beim Abrufen der Ausgabe von 'proxmox.avail_images()': Objekt 'NoneType' hat kein Attribut '__getitem__' proxmox- config: ---------- Danke – User5901

+0

Bitte überprüfen Sie alle Ihre YAML-Konfiguration mit einem Yam-Meta-Schema-Checker. Dies ist die erste Diagnose, die Sie durchführen müssen, bevor Sie das Problem mit dem Salzstapel beheben können: http://stackoverflow.com/questions/35778890/no-matching-sls-found-for-php-apps-in-env-base/35802507#35802507 – mootmoot

Antwort

0

Ich bin in der Lage, die oben genannten Problem zu lösen, das heißt jetzt bin ich der Lage, eine VM/Instanz in Proxmox von Salz-Master zu starten, indem Sie die folgenden Konfigurationen: - Sie

1. /etc/salt/cloud.providers.d/proxmox.conf 

proxmox-config: 
    minion: 
    master_type: standard 
    master: '192.x.x.x' 
    user: '[email protected]' 
    password: "your password" 
    url: '192.168.x.x' 
    port: '8006' 
    driver: proxmox 
    verify_ssl: False 

2. /etc/salt/cloud.profiles.d/proxmox.conf 

my-proxmox-config : 
    provider: proxmox-config 
    image: local:vztmpl/ubuntu-12.04-standard_12.04-1_i386.tar.gz 
    technology: openvz 
    host: cloud 
    ip_address: 192.168.x.x 
    ssh_username: root 
    password: "your password" 
    cpus: 1 
    memory: 512 
    swap: 512 
    disk: 2 
    nameserver: 8.8.8.8 8.8.4.4 

In the above file, the image option will only work if you have downloaded the desired operating ISO in templates option available in PROXMOX GUI. 
Now , you can easily launch a Instance by using below command :- 

# salt-cloud -p my-proxmox-config mytest 

Thanks 
0

Der Fehler, den Sie bekommen, sagt, dass etwas mit Ihrer Profilkonfiguration falsch ist. Wir müssen nur herausfinden, was damit passiert.

Ich habe nicht den proxmox Anbieter verwendet, aber nach https://docs.saltstack.com/en/latest/topics/cloud/proxmox.html sieht es aus wie für die image Option, die Sie local:/root/ISO/ubuntu-14.04-server-amd64.iso verwenden müssen.

Haben Sie auch nur versucht technology: openvz?

+0

Hallo, ich Änderungen haben Sie mit Technologie und Bild Option vorgeschlagen noch immer die folgenden Fehler nach dem folgenden Befehl: # salz Wolke -p my-Proxmox-config web1 [INFO] Salz-Wolke Start [INFO] neue HTTPS-Verbindung starten (1): 192.168.2.245 [INFO] Cloud-VM web1 anlegen [INFO] Ab neue HTTPS-Verbindung (1): 192.168.2.245 [ERROR] Fehler beim Erstellen web1 auf Proxmox Das Die folgende Ausnahme wurde ausgelöst, als versucht wurde, die Erstbereitstellung auszuführen: Das Objekt 'NoneType' hat kein Attribut '__getitem__' Fehler: Es gab einen Profilfehler: Fehler beim Bereitstellen der VM Danke – User5901