How to set static IP, Gateway, NetMask and VLAN on already existing VMWare instance

29 views
Skip to first unread message

Seth Reinoso

unread,
Jun 25, 2015, 1:16:16 PM6/25/15
to psp...@googlegroups.com
Greetings,
     does anyone have any examples of reconfiguring/configuring a networking on already existing VM instances?

I was looking for clues by doing:

for dev in vm_obj.properties.config.hardware.device:
   
if dev._type in ["VirtualE1000", "VirtualE1000e",
         
"VirtualPCNet32", "VirtualVmxnet3"]:
        net_device
= dev._obj
       
break
print net_device

and

for z in dir(net_object):
   
print z




I got the below list and nothing there seems obvious as to what to do to set the network settings:

AddressType
Backing
Connectable
ControllerKey
DeviceInfo
DynamicProperty
DynamicType
Key
MacAddress
SlotInfo
UnitNumber
WakeOnLanEnabled
get_element_addressType
get_element_backing
get_element_connectable
get_element_controllerKey
get_element_deviceInfo
get_element_dynamicProperty
get_element_dynamicType
get_element_key
get_element_macAddress
get_element_slotInfo
get_element_unitNumber
get_element_wakeOnLanEnabled
new_backing
new_connectable
new_deviceInfo
new_dynamicProperty
new_slotInfo
set_element_addressType
set_element_backing
set_element_connectable
set_element_controllerKey
set_element_deviceInfo
set_element_dynamicProperty
set_element_dynamicType
set_element_key
set_element_macAddress
set_element_slotInfo
set_element_unitNumber
set_element_wakeOnLanEnabled
Reply all
Reply to author
Forward
0 new messages