Using Salt-Cloud with VMWare ESXi to deploy virtual machine stuck at "wait for ip" function

1,099 views
Skip to first unread message

Cedric Thesnieres

unread,
Apr 23, 2015, 11:15:22 AM4/23/15
to salt-...@googlegroups.com
Hello,

I'm stuck with a little issue and as peoples on the IRC channel don't know the answer or aren't responding at all i've decided to post here my issue.

I've started working with salt a couple weeks ago and my boss wanted to use salt with VMWare. So here's my config :

/etc/salt/cloud.providers.d/vmware.conf

VCenter01:
  provider: vsphere
  user: myuser
  password: mypassword

/etc/salt/cloud.profiles.d/vmware.conf

Minion-Debian:
  provider: VCenter01
  image: Mod-Debian
  resourcepool: resgroup-877
  datastore: datastore-849
  power_on: True

So far when using  : salt-cloud -p Minion-Debian Salt-Cloud-Minion -l debug, the Virtual Machine is actually cloning from the "Mod-Debian" Template i created before but then it stay stuck at :

[DEBUG   ] VM Salt-Cloud-Minion is created, waiting for it to boot
[DEBUG   ] Attempting function <function wait_for_ip at 0x5f5f668>

My VM is booting actually but then nothing happens.

I don't know if this is the right place to ask for this but as anyone managed to make it works, and if so what am i doing wrong or missing ?

And i'm not English so sorry if i've made mistakes, i'll try to be carefull but i don't promise anything ;p

I'm running Salt version 2014.7.5 (Helium) and ESXi 5.5 and trying to deploy a Debian 7.8 Virtual Machine.

Feel free to ask for additional informations.


Cedric Thesnieres

unread,
Apr 24, 2015, 5:49:10 AM4/24/15
to salt-...@googlegroups.com
A quick Update : Installing VMWare Tools on the template seems to work. It's not stuck anymore but now i get :
 
salt-cloud: error: There was a profile error: A wrong password has been issued while establishing ssh session

 it tried to connect using "None" as username : 


It seems ssh_username and ssh_password are still not working.

Cedric Thesnieres

unread,
Apr 24, 2015, 8:26:53 AM4/24/15
to salt-...@googlegroups.com
template_user and template_password are working fine so i guess official documentation is not ok. 

Colton Myers

unread,
Apr 28, 2015, 1:00:40 PM4/28/15
to salt-...@googlegroups.com
So did you get this working? The documentation was wrong? Would you mind filing an issue on Github so we can get it fixed?

--
Colton Myers
Platform Engineer, SaltStack
@basepi on Twitter/Github/IRC

On Fri, Apr 24, 2015 at 6:26 AM, Cedric Thesnieres <ced...@gmail.com> wrote:
template_user and template_password are working fine so i guess official documentation is not ok. 

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cedric Thesnieres

unread,
Apr 29, 2015, 3:16:48 AM4/29/15
to salt-...@googlegroups.com
Well, it's somehow related to https://github.com/saltstack/salt/issues/17061 so it seems it's still a pending issue. For now i can create/destroy a VM using template and that's as far as i can go. If i'm refering to http://docs.saltstack.com/en/latest/topics/cloud/vmware.html, clonefrom is not working, device is not taken into account ( i mean i can fill anything here my new VM will keep the exact same settings as it's template) 
So i'm confused on a few things : Is most of the features still in dev and are to be released at a later version  ? Or am i doing something wrong ?

I don't have any github account (my boos is using bitbucket) but if it's necessary i could create one if you need.

Colton Myers

unread,
May 4, 2015, 6:48:57 PM5/4/15
to salt-...@googlegroups.com
At the top of that doc file you linked, you'll see a "New in version Beryllium." This means that the features in that document are unreleased, and will be in the feature release codenamed Beryllium, which is after 2015.2.0, which is codenamed Lithium. The features are as-yet unreleased.

--
Colton Myers
Platform Engineer, SaltStack
@basepi on Twitter/Github/IRC

Cedric Thesnieres

unread,
May 5, 2015, 3:51:43 AM5/5/15
to salt-...@googlegroups.com
Ok. Thanks for all the answers, i guess we'll have to wait :p keep the good work !
Reply all
Reply to author
Forward
0 new messages