We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to create a VM using vcenter_vm
vcenter_vm
2.9.13
Nothing specific
CentOS 7
- set_fact: cluster_id: "domain-c7" resource_pool_id: "resgroup-8" folder_id: "group-v22" datastore_id: "datastore-12" - name: Create a VM vmware.vmware_rest.vcenter_vm: vcenter_username: administrator@vsphere.local vcenter_password: Esxi@123$% vcenter_hostname: 10.65.201.177 placement: cluster: '{{ cluster_id }}' datastore: '{{ datastore_id }}' folder: '{{ folder_id }}' resource_pool: '{{ resource_pool_id }}' name: test_vm1 guest_OS: DEBIAN_8_64 hardware_version: VMX_11 state: present memory: hot_add_enabled: true size_MiB: 1024
New VM should be created.
TASK [set_fact] ******************************************************************************* task path: /home/vagrant/create_vm.yml:71 ok: [localhost] => {"ansible_facts": {"cluster_id": "domain-c7", "datastore_id": "datastore-12", "folder_id": "group-v22", "resource_pool_id": "resgroup-8"}, "changed": false} TASK [Create a VM] **************************************************************************** task path: /home/vagrant/create_vm.yml:77 ok: [localhost] => {"_debug_info": {"operation": "get", "status": 200}, "changed": false, "id": "vm-15", "value": {"boot": {"delay": 0, "enter_setup_mode": false, "retry": false, "retry_delay": 10000, "type": "BIOS"}, "boot_devices": [], "cdroms": [{"key": "3000", "value": {"allow_guest_control": true, "backing": {"device_access_type": "PASSTHRU", "type": "CLIENT_DEVICE"}, "ide": {"master": true, "primary": true}, "label": "CD/DVD drive 1", "start_connected": false, "state": "NOT_CONNECTED", "type": "IDE"}}], "cpu": {"cores_per_socket": 1, "count": 1, "hot_add_enabled": false, "hot_remove_enabled": false}, "disks": [{"key": "2000", "value": {"backing": {"type": "VMDK_FILE", "vmdk_file": "[ds_171_2] debian_empty/debian_empty.vmdk"}, "capacity": 536870912, "label": "Hard disk 1", "scsi": {"bus": 0, "unit": 0}, "type": "SCSI"}}], "floppies": [], "guest_OS": "DEBIAN_9_64", "hardware": {"upgrade_policy": "NEVER", "upgrade_status": "NONE", "version": "VMX_13"}, "memory": {"hot_add_enabled": false, "size_MiB": 512}, "name": "debian_empty", "nics": [{"key": "4000", "value": {"allow_guest_control": true, "backing": {"network": "network-13", "network_name": "VM Network", "type": "STANDARD_PORTGROUP"}, "label": "Network adapter 1", "mac_address": "00:50:56:86:1f:06", "mac_type": "ASSIGNED", "start_connected": true, "state": "NOT_CONNECTED", "type": "VMXNET3", "upt_compatibility_enabled": true, "wake_on_lan_enabled": true}}], "parallel_ports": [], "power_state": "POWERED_OFF", "sata_adapters": [], "scsi_adapters": [{"key": "1000", "value": {"label": "SCSI controller 0", "scsi": {"bus": 0, "unit": 7}, "sharing": "NONE", "type": "PVSCSI"}}], "serial_ports": []}} META: ran handlers META: ran handlers
It is pick up an existing VM called debian_empty which is first in the list of existing VMs.
debian_empty
The text was updated successfully, but these errors were encountered:
9ad9d9d should resolve the problem. I cannot reproduce the problem anymore.
Sorry, something went wrong.
I still facing issue on macOS
The MacOS problem should fixed with ansible-collections/cloud.common#16
No branches or pull requests
SUMMARY
I am trying to create a VM using
vcenter_vm
ISSUE TYPE
COMPONENT NAME
vcenter_vm
ANSIBLE VERSION
CONFIGURATION
Nothing specific
OS / ENVIRONMENT
CentOS 7
STEPS TO REPRODUCE
EXPECTED RESULTS
New VM should be created.
ACTUAL RESULTS
It is pick up an existing VM called
debian_empty
which is first in the list of existing VMs.The text was updated successfully, but these errors were encountered: