Automation

 View Only
  • 1.  Static Ip Address

    Posted Dec 14, 2011 03:32 PM

    Hi again everyone,

    I would like to define a static address on VMs.

    But, I don't find a cmdlet to do that.

    Thanks a lot.

    Opax



  • 2.  RE: Static Ip Address
    Best Answer

    Posted Dec 14, 2011 03:40 PM

    You don't need static IP, just do DHCP then reserve those IP's for the VM's, that is the same thing.



  • 3.  RE: Static Ip Address

    Posted Dec 14, 2011 05:13 PM

    Did you look at the Set-VMGuestNetworkInterface cmdlet ?

    But be aware that there are some limitations for that cmdlet.



  • 4.  RE: Static Ip Address

    Posted Dec 15, 2011 07:59 AM
    You don't need static IP, just do DHCP then reserve those IP's for the VM's, that is the same thing.

    My tool need to give a static address to VM, because most of time my VM are servers.

    LucD wrote:

    Did you look at the Set-VMGuestNetworkInterface cmdlet ?

    But be aware that there are some limitations for that cmdlet.

    Yes, I did a look to that cmdlet, but the problem is, to security reasons, the Guest User is disable.

    Thanks for your answers



  • 5.  RE: Static Ip Address

    Posted Dec 15, 2011 08:24 AM

    Does this mean you don't have any administrative account to access that guest ?

    Since the IP settings need to be done from within the guest OS, you will need to have some kind of access to the OS.

    An alternative is to use WMI calls, but again that needs an account to connect to the guest OS.



  • 6.  RE: Static Ip Address

    Posted Dec 15, 2011 08:44 AM

    Excuse me,

    But RParker was right !

    I misread.

    Thanks.