canonical / canonical/cloud-init
Network config debian + VMware faulty
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
This bug was originally filed in Launchpad as [LP: #1916234](https://bugs.launchpad.net/cloud-init/+bug/1916234)
Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2021-02-19T13:04:56.282696+00:00
date_fix_committed = None
date_fix_released = None
id = 1916234
importance = undecided
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1916234
milestone = None
owner = xiphiphorus
owner_name = Mathias Störch
private = False
status = triaged
submitter = xiphiphorus
submitter_name = Mathias Störch
tags = []
duplicates = []
_Launchpad user **Mathias Störch(xiphiphorus)** wrote on 2021-02-19T13:04:56.282696+00:00_
The /etc/network/interfaces file contains the line "source /etc/network/interfaces.d/*.cfg" but the interface config file located in /etc/network/interfaces.d/ does not has the ending .cfg.
See line 277 in this file:
https://github.com/canonical/cloud-init/blob/master/cloudinit/sources/helpers/vmware/imc/config_nic.py
See line 41 in this file:
https://github.com/canonical/cloud-init/blob/master/cloudinit/distros/debian.py
1. Tell us your cloud provider
VMware vSphere
2. Any appropriate cloud-init configuration you can provide us
Guest customization using Ansible vmware_guest module:
- name: Ensure vm is cloned from template and settings applied
community.vmware.vmware_guest:
hostname: vcenter
username: '{{ vmware_vcenter_username }}'
password: '{{ vmware_vcenter_password }}'
validate_certs: no
datacenter: '{{ vmware_vcenter_datacenter }}'
cluster: '{{ vmware_vcenter_cluster }}'
name: '{{ vmware_guest_name | lower }}'
template: '{{ vmware_guest_template }}'
datastore: '{{ vmware_guest_datastore }}'
folder: '{{ vmware_vcenter_datacenter }}/vm/{{ vmware_guest_folder_parent }}/{{ vmware_guest_folder_name }}'
resource_pool: '{{ vmware_vcenter_resource_pool }}'
hardware:
hotadd_cpu: true
hotremove_cpu: true
hotadd_memory: true
memory_mb: '{{ vmware_guest_memory }}'
num_cpus: '{{ vmware_guest_cpu }}'
num_cpu_cores_per_socket: '{{ vmware_guest_cpu_cores }}'
networks:
- name: '{{ vmware_guest_network }}'
vlan: '{{ vmware_guest_vlan }}'
ip: '{{ vmware_guest_ip }}'
netmask: '{{ vmware_guest_netmask }}'
gateway: '{{ vmware_guest_gateway }}'
domain: example.com
dns_servers: '{{ vmware_guest_dns }}'
type: static
connected: true
start_connected: true
customization:
hostname: '{{ vmware_guest_name | lower }}'
domain: example.com
dns_suffix: 'example.com'
dns_servers: '{{ vmware_guest_dns }}'
state: present
Contributor guide
Assessment
This issue has not been assessed yet.