Whenever, I set static ip not work but dhcp work.How can I set static ip?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
In [68]: customspec
Out[68]:
(vim.vm.customization.Specification) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
options = ,
identity = (vim.vm.customization.LinuxPrep) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
hostName = (vim.vm.customization.FixedName) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
name = 'test'
},
domain = '',
timeZone = ,
hwClockUTC =
},
globalIPSettings = (vim.vm.customization.GlobalIPSettings) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
dnsSuffixList = (str) [],
dnsServerList = (str) []
},
nicSettingMap = (vim.vm.customization.AdapterMapping) [
(vim.vm.customization.AdapterMapping) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
macAddress = ,
adapter = (vim.vm.customization.IPSettings) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
ip = (vim.vm.customization.FixedIp) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
ipAddress = '172.16.31.150'
},
subnetMask = '255.255.255.0',
gateway = '172.16.30.1',
ipV6Spec = ,
dnsServerList = (str) [],
dnsDomain = ,
primaryWINS = ,
secondaryWINS = ,
netBIOS =
}
}
],
encryptionKey = (byte) []
}
task = vm.Customize(spec=customspec)
vm.PowerOn()
Set static IP not work but it always dhcp an IP.How can I set static IP?
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the printed customization.Specification and the vm.Customize(spec=customspec) and vm.PowerOn() calls. Reproduce the customization and verify the guest's resulting network configuration; done means the configured fixed IP is applied instead of a DHCP address.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100