buuren / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

VM network configuration for newly deployed VM using pysphere #69

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:
1. Deploy new VM(SLES 11 SP2) on ESXi Host.
2. Login to the VM using:
     >>> from pysphere import VIServer
     >>> server = VIServer()
     >>> server.connect("host_ip_address", "username", "spassword")
     >>> vm1 = server.get_vm_by_name("vmname")
     >>> vm1.power_on()
     >>> vm1.login_in_guest("os_username", "os_password")
3. How to configure IP address, Hostname and other network configuration ??

Expectation:
Need to configure IP address, Hostname and other network settings using 
pysphere.

VM is deployed with SLES 11 SP2 OS on ESXi 5.5 Host.

Original issue reported on code.google.com by pravinku...@gmail.com on 19 Jul 2015 at 4:36

GoogleCodeExporter commented 8 years ago
Also how to add additional Hard Disk to the VM using pysphere ?

Original comment by pravinku...@gmail.com on 19 Jul 2015 at 7:45