saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://repo.saltproject.io/
Apache License 2.0
14.15k stars 5.47k forks source link

Create and configure a new VM with salt-cloud and vmware driver #44767

Open koalaurent opened 6 years ago

koalaurent commented 6 years ago

Description of Issue/Question

Salt-cloud create the VM but doesn't set the hostname neither the network in my new VM. The hostname is actualy the template's hostname, and the /etc/network/interfaces is still empty.

My template is a Debian 9, with the open-vm-tools installed (version 2:10.1.5-5055683-4+deb9u1).

Thanks for your help.

Setup

root@ADMIN:/etc/salt# cat cloud.providers vcenterQO: driver: vmware user: "admxxx" password: "xxx" url: "xxx.xxx.xxx.xxx" protocol: "https" port : 443

root@ADMIN:/etc/salt# cat cloud.profiles debian9: provider: vcenterQO clonefrom: AZ000TT00G666 deploy: True power_on: True customization: False devices: network: Network adapter 1: connected: True switch_type: distributed adapter_type: vmxnet3 name: dvPort_xxx ip: 10.106.20.217 gateway: 10.106.16.1 subnet_mask: 255.255.240.0 datacenter: DC-xxx cluster: CL-xxx folder: TEST datastore: DS_xxx

Steps to Reproduce Issue

root@ADMIN:/etc/salt# salt-cloud -p debian9 AZ011JV01G217 -l debug [DEBUG ] Reading configuration from /etc/salt/cloud [DEBUG ] Reading configuration from /etc/salt/master [DEBUG ] Using cached minion ID from /etc/salt/minion_id: ADMIN [DEBUG ] Reading configuration from /etc/salt/cloud.providers [DEBUG ] Reading configuration from /etc/salt/cloud.profiles [DEBUG ] Configuration file path: /etc/salt/cloud [WARNING ] Insecure logging configuration detected! Sensitive data may be logged. [INFO ] salt-cloud starting [DEBUG ] Could not LazyLoad parallels.avail_sizes: 'parallels' virtual returned False [DEBUG ] LazyLoaded parallels.avail_locations [DEBUG ] LazyLoaded proxmox.avail_sizes [DEBUG ] Could not LazyLoad saltify.destroy: 'saltify.destroy' is not available. [DEBUG ] Could not LazyLoad saltify.avail_sizes: 'saltify.avail_sizes' is not available. [DEBUG ] Could not LazyLoad saltify.avail_images: 'saltify.avail_images' is not available. [DEBUG ] Could not LazyLoad saltify.avail_locations: 'saltify.avail_locations' is not available. [DEBUG ] Could not LazyLoad rackspace.reboot: 'rackspace.reboot' is not available. [DEBUG ] LazyLoaded openstack.list_locations [DEBUG ] Could not LazyLoad rackspace.list_locations: 'rackspace.list_locations' is not available. [DEBUG ] Could not LazyLoad vmware.optimize_providers: 'vmware.optimize_providers' is not available. [DEBUG ] The 'vmware' cloud driver is unable to be optimized. [DEBUG ] Could not LazyLoad parallels.avail_sizes: 'parallels' virtual returned False [DEBUG ] LazyLoaded parallels.avail_locations [DEBUG ] LazyLoaded proxmox.avail_sizes [DEBUG ] Could not LazyLoad saltify.destroy: 'saltify.destroy' is not available. [DEBUG ] Could not LazyLoad saltify.avail_sizes: 'saltify.avail_sizes' is not available. [DEBUG ] Could not LazyLoad saltify.avail_images: 'saltify.avail_images' is not available. [DEBUG ] Could not LazyLoad saltify.avail_locations: 'saltify.avail_locations' is not available. [DEBUG ] Could not LazyLoad rackspace.reboot: 'rackspace.reboot' is not available. [DEBUG ] LazyLoaded openstack.list_locations [DEBUG ] Could not LazyLoad rackspace.list_locations: 'rackspace.list_locations' is not available. [WARNING ] There's no master defined on the 'AZ011JV01G217' VM settings. [DEBUG ] Generating minion keys for 'AZ011JV01G217' [DEBUG ] LazyLoaded cloud.fire_event [DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc [DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Sending event: tag = salt/cloud/AZ011JV01G217/creating; data = {'profile': 'debian9', '_stamp': '2017-11-30T15:51:23.100109', 'name': 'AZ011JV01G217', 'driver': 'vmware', 'provider': 'vcenterQO:vmware', 'event': 'starting create'} [DEBUG ] clone_spec set to: (vim.vm.CloneSpec) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], location = (vim.vm.RelocateSpec) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], service = , folder = , datastore = 'vim.Datastore:datastore-237639', diskMoveType = , pool = 'vim.ResourcePool:resgroup-28', host = , disk = (vim.vm.RelocateSpec.DiskLocator) [], transform = , deviceChange = (vim.vm.device.VirtualDeviceSpec) [], profile = (vim.vm.ProfileSpec) [] }, template = false, config = (vim.vm.ConfigSpec) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], changeVersion = , name = , version = , uuid = , instanceUuid = , npivNodeWorldWideName = (long) [], npivPortWorldWideName = (long) [], npivWorldWideNameType = , npivDesiredNodeWwns = , npivDesiredPortWwns = , npivTemporaryDisabled = , npivOnNonRdmDisks = , npivWorldWideNameOp = , locationId = , guestId = , alternateGuestName = , annotation = , files = , tools = , flags = , consolePreferences = , powerOpInfo = , numCPUs = , numCoresPerSocket = , memoryMB = , memoryHotAddEnabled = , cpuHotAddEnabled = , cpuHotRemoveEnabled = , virtualICH7MPresent = , virtualSMCPresent = , deviceChange = (vim.vm.device.VirtualDeviceSpec) [ (vim.vm.device.VirtualDeviceSpec) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], operation = 'edit', fileOperation = , device = (vim.vm.device.VirtualVmxnet3) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], key = 4000, deviceInfo = (vim.Description) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], label = 'Network adapter 1', summary = 'dvPort_xxx' }, backing = (vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], port = (vim.dvs.PortConnection) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], switchUuid = 'eb 2b 29 50 bd be c1 bd-15 5a 1b 11 a1 22 81 09', portgroupKey = 'dvportgroup-264385', portKey = , connectionCookie = } }, connectable = (vim.vm.device.VirtualDevice.ConnectInfo) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], startConnected = true, allowGuestControl = true, connected = false, status = 'untried' }, slotInfo = (vim.vm.device.VirtualDevice.PciBusSlotInfo) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], pciSlotNumber = 192 }, controllerKey = 100, unitNumber = 7, addressType = 'assigned', macAddress = '00:50:56:a9:c0:00', wakeOnLanEnabled = true, resourceAllocation = (vim.vm.device.VirtualEthernetCard.ResourceAllocation) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], reservation = 0L, share = (vim.SharesInfo) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], shares = 50, level = 'normal' }, limit = -1L }, externalId = , uptCompatibilityEnabled = true }, profile = (vim.vm.ProfileSpec) [], backing = } ], cpuAllocation = , memoryAllocation = , latencySensitivity = , cpuAffinity = , memoryAffinity = , networkShaper = , cpuFeatureMask = (vim.vm.ConfigSpec.CpuIdInfoSpec) [], extraConfig = (vim.option.OptionValue) [], swapPlacement = , bootOptions = , vAppConfig = , ftInfo = , repConfig = , vAppConfigRemoved = , vAssertsEnabled = , changeTrackingEnabled = , firmware = , maxMksConnections = , guestAutoLockEnabled = , managedBy = , memoryReservationLockedToMax = , nestedHVEnabled = , vPMCEnabled = , scheduledHardwareUpgradeInfo = , vmProfile = (vim.vm.ProfileSpec) [], messageBusTunnelEnabled = , crypto = , migrateEncryption = }, customization = , powerOn = true, snapshot = , memory = } [DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc [DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Sending event: tag = salt/cloud/AZ011JV01G217/requesting; data = {'_stamp': '2017-11-30T15:51:25.165452', 'priv_key': '-----BEGIN RSA PRIVATE KEY-----\nMIIJKAIBAAKCAgEAtx5JBS6vbUBZKE10F5VgGbIu3SFQN8/+o6nDToeRbhiKA7hv\nwFARUvb5OHdZ1EHKwQx5xmHt2HKAg+gQuPOknUz7cNKbWu9P5rRTBSmSTMLjgrOD\nLYPOzaxNdDp7G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QaCDFEnrjoFnEeaeBx6BV6OwgK\nzhXkaXec4XuzZ9CwNpuXpnr8+CIXT5MBhwA4q4PP2+V1Wa1yopJqaiNnUvTo9DmL\n2QvXa2Bs6GJy2yTPRJhyGHjXkEe+KS/OTR+Zlj/mE0tp01+LgEF5MyPeCiCLZLAy\n4m6t9cgCKvI5HKoLKzB2hi2HGbu2JBRk2Fh4q+FnPyL9TMY4CFELdmSlGbSQv8yT\n9yy9KwKCAQB11tWvVQoJBgFeGW9NrefG5wVuxxxGHn5uu8UatdlK3qqkLUuqNw/6\nuCskoylbF5109RocLDXPgpqohqrBZJgi1BdMatF9H2NuspB4tki0uM6OQqS5WNwg\n0BGkAdUp65GiFyj2C47f18NdvgzRMp3k/QMqx1053wO1/BjvmBQypwP2T9bsCiU3\n1kN/Jf/UXIJvgPnkSMoh8rRnInbfCmG/dly9UCZUI7s0qGG+RnkciPiu6rT3AxkW\nT82zkovRQE+8FOXTLDCTA+Hbo1DOk5wdT6xFvRgKpg8qeVVYCfgH4b5KJ4Sm95gl\nQHyz79SsOIpdfWrjJbw5htvBi9zJiDe1AoIBAFPLjxIkPfOw55CsWUTC4D0zVflC\nr6J5dTSpJdVjGvNj113ySSOTzKCj0dvHZ3G9TjbUg3ucEcDN81MJDEfXGpIsh9zv\nMoN8I/gdUVntAtTWiQ1O3pnRETAZl89g0eM0+s7NIQBxHHccrlBC6s+/IhfDLwwX\nTTABzTBMTgLQCDtl84uIcyvPiNqa3TiiagqdZFwoTky2Mh21oy/BRTXlS748ZP/O\n25nGlJfLKOf+gy0qzqeKf48mXCo1vTOyEuYMwvLYPHtoTkSSr/ByKYFxB7mAEeB4\n1CNI46DbIAnsB6F8CTkVGWRvXJlUekiceKg84qfS0w3iXo8yHc/MvSrEBxE=\n-----END RSA PRIVATE KEY-----', 'protocol': 'https', 'cluster': 'CL-xxx', 'customization': False, 'datastore': 'DS_xxx', 'event': 'requesting instance', 'port': 443, 'provider': 'vcenterQO:vmware', 'folder': 'TEST', 'profile': 'debian9', 'deploy': True, 'driver': 'vmware', 'user': 'admxxx', 'inline_script': None, 'datacenter': 'DC-xxx', 'power_on': True, 'name': 'AZ011JV01G217', 'clonefrom': 'AZ000TT00G666', 'url': 'xxx', 'devices': {'network': {'Network adapter 1': {'switch_type': 'distributed', 'subnet_mask': '255.255.240.0', 'connected': True, 'name': 'dvPort_xxx', 'ip': '10.106.20.217', 'adapter_type': 'vmxnet3', 'gateway': '10.106.16.1'}}}, 'pub_key': '-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtx5JBS6vbUBZKE10F5Vg\nGbIu3SFQN8/+o6nDToeRbhiKA7hvwFARUvb5OHdZ1EHKwQx5xmHt2HKAg+gQuPOk\nnUz7cNKbWu9P5rRTBSmSTMLjgrODLYPOzaxNdDp7G84kEKijMytDesD2RHxu+557\n0H/JXVh2Ke7hNZcMztb5DSWnEwhRTIoeQywJ0l2GNHBPIJ9QJBhbLS2heoUbvx98\nRpe0v3MQKJJebWSb5BJeEDJuDO51pTHI8734XFj9QPXY4dHSHE1l7Kh0DF6aRs57\nKoUt9PnXrGtOc8wS8U1DdTOM6WziXYwyqnsNh3MdNTt1gAiWl0ObPe6ytEx7TPHZ\ntM8601Ez9Gxf6iZvB6JkrKtF4X0o0NAZiq1eZEPBfzgyWxOrOqMbSNGk5MoI/ZoE\n+zgp9qAop178Jzp70SC6YVXZKx6lourSH/06WOC+HyI9mwku3QqTU8j8nq4E8Azd\nkbvr01nPnnv3WOAE5LsalZQEpXGyj2aBGjP3CEwb5GwNlrrgWReVWcbfIs9bp3XF\nnZmjVJHTTdvDDnkXk4vLKsJ0ghDTwi2w1qy8FVmZyVCkds0MDLxedJ0v30m1p/fg\nyWylwSWNXibJB3IIDmKKveKw87BwaPpvGepCyEv1jUuIXvxjyIuB7mPgXW16W2VV\nYZBSWK2y8RDDd9rtXSjk1ikCAwEAAQ==\n-----END PUBLIC KEY-----', 'os': 'bootstrap-salt'} [INFO ] Creating AZ011JV01G217 from template(AZ000TT00G666) [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [0 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [5 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [10 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [15 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [20 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [25 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [30 s] [INFO ] [ AZ011JV01G217 ] Waiting for clone task to finish [35 s] [INFO ] [ AZ011JV01G217 ] Successfully completed clone task in 39 seconds [INFO ] [ AZ011JV01G217 ] Waiting for VMware tools to be running [0 s] [INFO ] [ AZ011JV01G217 ] Waiting for VMware tools to be running [5 s] [INFO ] [ AZ011JV01G217 ] Waiting for VMware tools to be running [10 s] [INFO ] [ AZ011JV01G217 ] Waiting for VMware tools to be running [15 s] [INFO ] [ AZ011JV01G217 ] Successfully got VMware tools running on the guest in 17 seconds [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [0 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [5 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [10 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [15 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [20 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [25 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [30 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [35 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [40 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [45 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [50 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [55 s] ... [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [1180 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [1185 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [1190 s] [INFO ] [ AZ011JV01G217 ] Waiting to retrieve IPv4 information [1195 s] [WARNING ] [ AZ011JV01G217 ] Timeout Reached. Unable to retrieve IPv4 information after waiting for 1200 seconds [DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc [DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc [DEBUG ] Sending event: tag = salt/cloud/AZ011JV01G217/created; data = {'profile': 'debian9', '_stamp': '2017-11-30T16:12:31.967999', 'name': 'AZ011JV01G217', 'driver': 'vmware', 'provider': 'vcenterQO:vmware', 'event': 'created instance'} [DEBUG ] LazyLoaded nested.output AZ011JV01G217:

devices:
    ----------
    CD/DVD drive 1:
        ----------
        allowGuestControl:
            True
        connected:
            False
        controllerKey:
            201
        key:
            3002
        label:
            CD/DVD drive 1
        startConnected:
            False
        status:
            ok
        summary:
            Remote ATAPI
        type:
            VirtualCdrom
    Floppy drive 1:
        ----------
        allowGuestControl:
            True
        connected:
            False
        controllerKey:
            400
        key:
            8000
        label:
            Floppy drive 1
        startConnected:
            False
        status:
            ok
        summary:
            Remote
        type:
            VirtualFloppy
    Hard disk 1:
        ----------
        capacityInKB:
            41943040
        controllerKey:
            1000
        diskMode:
            persistent
        fileName:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217.vmdk
        key:
            2000
        label:
            Hard disk 1
        summary:
            41,943,040 KB
        type:
            VirtualDisk
    IDE 0:
        ----------
        busNumber:
            0
        deviceKeys:
        key:
            200
        label:
            IDE 0
        summary:
            IDE 0
        type:
            VirtualIDEController
    IDE 1:
        ----------
        busNumber:
            1
        deviceKeys:
            - 3002
        key:
            201
        label:
            IDE 1
        summary:
            IDE 1
        type:
            VirtualIDEController
    Keyboard :
        ----------
        controllerKey:
            300
        key:
            600
        label:
            Keyboard 
        summary:
            Keyboard
        type:
            VirtualKeyboard
    Network adapter 1:
        ----------
        addressType:
            assigned
        allowGuestControl:
            True
        connected:
            True
        controllerKey:
            100
        key:
            4000
        label:
            Network adapter 1
        macAddress:
            00:50:56:a9:a1:db
        startConnected:
            True
        status:
            ok
        summary:
            DVSwitch: eb 2b 29 50 bd be c1 bd-15 5a 1b 11 a1 22 81 09
        type:
            VirtualVmxnet3
        unitNumber:
            7
    PCI controller 0:
        ----------
        busNumber:
            0
        deviceKeys:
            - 500
            - 12000
            - 1000
            - 4000
        key:
            100
        label:
            PCI controller 0
        summary:
            PCI controller 0
        type:
            VirtualPCIController
    PS2 controller 0:
        ----------
        busNumber:
            0
        deviceKeys:
            - 600
            - 700
        key:
            300
        label:
            PS2 controller 0
        summary:
            PS2 controller 0
        type:
            VirtualPS2Controller
    Pointing device:
        ----------
        controllerKey:
            300
        key:
            700
        label:
            Pointing device
        summary:
            Pointing device; Device
        type:
            VirtualPointingDevice
        unitNumber:
            1
    SCSI controller 0:
        ----------
        busNumber:
            0
        controllerKey:
            100
        deviceKeys:
            - 2000
        key:
            1000
        label:
            SCSI controller 0
        summary:
            VMware paravirtual SCSI
        type:
            ParaVirtualSCSIController
        unitNumber:
            3
    SIO controller 0:
        ----------
        busNumber:
            0
        deviceKeys:
            - 8000
        key:
            400
        label:
            SIO controller 0
        summary:
            SIO controller 0
        type:
            VirtualSIOController
    VMCI device:
        ----------
        controllerKey:
            100
        key:
            12000
        label:
            VMCI device
        summary:
            Device on the virtual machine PCI bus that provides support for the virtual machine communication interface
        type:
            VirtualVMCIDevice
        unitNumber:
            17
    Video card :
        ----------
        controllerKey:
            100
        key:
            500
        label:
            Video card 
        summary:
            Video card
        type:
            VirtualVideoCard
        videoRamSizeInKB:
            4096
files:
    ----------
    0:
        ----------
        key:
            0
        name:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217.vmx
        size:
            2798
        type:
            config
    1:
        ----------
        key:
            1
        name:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217.nvram
        size:
            8684
        type:
            nvram
    2:
        ----------
        key:
            2
        name:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217.vmsd
        size:
            0
        type:
            snapshotList
    3:
        ----------
        key:
            3
        name:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217.vmdk
        size:
            0
        type:
            diskDescriptor
    4:
        ----------
        key:
            4
        name:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217-flat.vmdk
        size:
            42949672960
        type:
            diskExtent
    5:
        ----------
        key:
            5
        name:
            [DS_xxx] AZ011JV01G217/AZ011JV01G217-da41e436.vswp
        size:
            1073741824
        type:
            swap
    6:
        ----------
        key:
            6
        name:
            [DS_xxx] AZ011JV01G217/vmx-AZ011JV01G217-3661751350-1.vswp
        size:
            170917888
        type:
            uwswap
guest_id:
    ubuntu64Guest
hostname:
    AZ000TT00G000
id:
    AZ011JV01G217
image:
    Ubuntu Linux (64-bit) (Detected)
mac_addresses:
    - 00:50:56:a9:a1:db
networks:
    ----------
    dvPort_xxx:
        ----------
        connected:
            True
        ip_addresses:
        mac_address:
            00:50:56:a9:a1:db
path:
    [DS_xxx] AZ011JV01G217/AZ011JV01G217.vmx
private_ips:
public_ips:
size:
    cpu: 1
    ram: 1024 MB
state:
    poweredOn
storage:
    ----------
    committed:
        44194344154
    uncommitted:
        529
    unshared:
        42949672960
tools_status:
    toolsOk

Versions Report

root@ADMIN:/etc/salt# salt --versions-report Salt Version: Salt: 2017.7.2

Dependency Versions: cffi: 0.8.6 cherrypy: Not Installed dateutil: 2.2 docker-py: Not Installed gitdb: 0.5.4 gitpython: 0.3.2 RC1 ioflo: Not Installed Jinja2: 2.7.3 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.4.2 mysql-python: 1.2.3 pycparser: 2.10 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.9 (default, Jun 29 2016, 13:08:31) python-gnupg: Not Installed PyYAML: 3.11 PyZMQ: 14.4.0 RAET: Not Installed smmap: 0.8.2 timelib: Not Installed Tornado: 4.2.1 ZMQ: 4.0.5

System Versions: dist: debian 8.9 locale: UTF-8 machine: x86_64 release: 3.16.0-4-amd64 system: Linux version: debian 8.9

Marx1st commented 6 years ago

Unfortunately Debian is not supported for customization by VMWARE. Here is a matrix of supported OS (at least Ubuntu is there): https://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf

koalaurent commented 6 years ago

Sure, but in this case I'm not using the WMware's customization ("customization: False"), I'm using the Salt cloud profile.

RootMePLS commented 6 years ago

@koalaurent under the hood, Salt-Cloud VMware module use pyvmomi package for VM customization, which in turn uses VMware vSphere API. Unfortunately, VMware dropped support Debian. Here is more detail.

RootMePLS commented 6 years ago

Workaround: VM settings -> Options -> Guest OS: set it to Ubuntu.

intrecere commented 5 years ago

I have exactly the same issue with Xen as provider and Ubuntu as guest OS