2016-03-29 28 views
1

'dan proxmox'ta VM/instance alamıyorum Sanal makineme Saltsatck (salt-master) yükledim ve Proxmox'u (Cloud) başka bir sanal makineye kurdum. Her ikisi de aynı ağ üzerindedir. Salt-master ve proxmox başarıyla çalışıyor.Salt-master

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

aşağıdaki çıktıyı verir misiniz? 'tuz bulutu --list-images proxmox-config' –

+0

Merhaba, ben çalıştırdığınızda # tuz bulutu --list-images proxmox-config Ben çıktı aşağıda alıyorum: - [INFO] tuz bulutu başlangıç ​​ [INFO] Yeni HTTPS bağlantısı başlatılıyor (1): 192.168.2.245 [ERROR] 'proxmox.avail_images()' çıktısı alınamadı: 'NoneType' nesnesinde '__getitem__' özniteliği yok ' proxmox- config: ---------- Teşekkürler – User5901

+0

Lütfen yaml meta-şema denetleyicisi kullanarak tüm yaml yapılandırmanızı doğrulayın. Saltstack sorununu gidermek için yapmanız gereken ilk tanıdır, http://stackoverflow.com/questions/35778890/no-matching-sls-found-for-php-apps-in-env-base/35802507#35802507 – mootmoot

cevap

0

: -

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

Aldığınız hata, profil yapılandırmanızda bir sorun olduğunu söylüyor. Sadece bununla ilgili sorunları gidermemiz gerekiyor.

ben proxmox sağlayıcı kullanmadıysanız, ancak https://docs.saltstack.com/en/latest/topics/cloud/proxmox.html göre o image seçeneği için size local:/root/ISO/ubuntu-14.04-server-amd64.iso kullanmak gerekebilir gibi görünüyor. Ayrıca, technology: openvz denediniz mi? Ben yani şimdi aşağıda yapılandırmaları yaparak tuz ustasından proxmox bir VM/örneğini başlatmak için am güçlü yukarıdaki sorunu çözebilecek duyuyorum

+0

Merhaba, İkinizin de teknoloji ve görüntü seçeneği ile önerilen değişiklikleri yaptılar Yine aşağıda komutu çalıştırdıktan sonra aşağıdaki hataları alıyorum: -p my-proxmox-config web1 [INFO] tuz bulutu # tuz bulutu başlangıç ​​ [BİLGİ] yeni HTTPS bağlantı başlatma (1): 192.168.2.245 [BİLGİ] oluşturma Bulut VM web1 [BİLGİ] yeni HTTPS bağlantı başlatma (1): 192.168.2.245 [HATA] PROXMOX The Hata oluşturma web1 İlk dağıtımı çalıştırmaya çalışırken aşağıdaki istisnalar atıldı: 'NoneType' nesnesinde '__getitem__' özniteliği yok Hata: Bir profil hatası oluştu: VM Dağıtılamadı – User5901