Netbox IP assignment to Windows VM not working #14034
Replies: 5 comments 2 replies
-
Use config contexts? |
Beta Was this translation helpful? Give feedback.
-
dear gdprdatasubect, I at the moment not at work where the test Netbox ansible lab setup is configured and I am the next week free. So I cannot share some contexts about the configs. But is there a tutorial or general steps to succesfully deploy Windows VM's with Netbox and given IP/Sub/DNS/Gateway? I couldn't find it so quickly. |
Beta Was this translation helpful? Give feedback.
-
Your question is garbled. It sounds like you are asking "how can I use Ansible to configure the ethernet interface and gateway on a newly-created Windows Server VM?" If so, that's a question about Ansible, not Netbox. Use a static inventory instead of Netbox-ansible to simplify the question, then ask it again on an Ansible mailing list. In any case, Ansible needs a way to talk to the Windows server, so you have a chicken-and-egg situation: how can you use Ansible to configure the IP address, if you can't already communicate with it over IP? Maybe Ansible has some out-of-band way to communicate with Windows servers. But if so, that's also a question about Ansible, and nothing to do with Netbox. Netbox-ansible is purely an inventory source for Ansible: i.e. providing the list of machines to manage from Netbox's database. Neither Netbox nor Netbox-ansible performs any actual configuration. For a newly-created Linux VM, you'd typically use cloud-init to configure the IP address and gateway at the time the VM first boots, as well as setting credentials, so that Ansible (or whatever) could talk to it once it's running. I don't know if Windows VMs created under VMware have a similar initialization mechanism, but again, that's not a question about Netbox. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Sorry for the confusion. I'll will remove all of my questions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
No questions any more
Beta Was this translation helpful? Give feedback.
All reactions