Renewing IP Address on Resume (DHCP) or Scripts on Suspend/Resume

Discussion in 'Installation and Configuration of Parallels Desktop' started by DuncanHume, Feb 4, 2010.

  1. DuncanHume

    DuncanHume Bit poster

    Messages:
    4
    Is there a way in Parallels 5 to get the host to refresh its IP address when coming out of suspend?

    I have just switched back to Parallels from VMware Fusion as Parallels is just faster and more stable. However VMWare gives you the ability to run a script (cmd) when the guest is suspended and resumed. The default script on Resume refreshes the IP address.

    This is useful if you use Bridged network mode, suspend the machine then resume it when connected to a different network.

    I realise that using shared mode would solve the need to do this, however I need to use bridged mode for some development software.

    Another good thing about the scripting is that I was able to get the suspend script to log out of some encryption software I use. When the guest is resumed you have to log in to the encryption software to access the encrypted data.

    So is it possible to get Parallels to run a script/batch file before suspend and after resume, like VMware??

    Thanks

    Duncan
     
  2. Elric

    Elric Parallels Team

    Messages:
    1,712
    Parallels Destkop does renew of IP-address on resume automatically (if tools are installed). So far there were no issues found with this,

    Do you really have met a situation when IP was not renewed after resume? It would be interesting to see output of ipconfig /all just after resume when IP have not been renewed, and just after followed after this ipconfig /release + ipconfig/renew
     
  3. DuncanHume

    DuncanHume Bit poster

    Messages:
    4
    I don't have ipconfig dumps of what happened as I did a repair to get things working, and I don't have access to the other network until this evening. But this is what happened

    Yesterday evening I was connected to my home network:

    I suspended the guest and then this morning resumed when connected to the work network.

    After resume the IP settings had not changed.

    I then did a Repair in the network status dialog. Everything then worked ok.

    So it did not automatically renew the IP.


    I just carried out a further test:

    C:\>ipconfig /release

    Windows IP Configuration

    IP Address for adapter Local Area Connection has already been released.

    C:\>ipconfig /all

    Windows IP Configuration

    Host Name . . . . . . . . . . . . : --------
    Primary Dns Suffix . . . . . . . : ---------
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No

    Ethernet adapter Local Area Connection :

    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Parallels Ethernet Adapter #3
    Physical Address. . . . . . . . . : 00-1C-42-03-BF-9B
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 0.0.0.0
    Subnet Mask . . . . . . . . . . . : 0.0.0.0
    Default Gateway . . . . . . . . . :
    DHCP Server . . . . . . . . . . . : 255.255.255.255


    Then I suspended and resumed the guest


    C:\>ipconfig /all

    Windows IP Configuration

    Host Name . . . . . . . . . . . . : --------
    Primary Dns Suffix . . . . . . . : --------
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No

    Ethernet adapter Local Area Connection :

    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Parallels Ethernet Adapter #3
    Physical Address. . . . . . . . . : 00-1C-42-03-BF-9B
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 0.0.0.0
    Subnet Mask . . . . . . . . . . . : 0.0.0.0
    Default Gateway . . . . . . . . . :
    DHCP Server . . . . . . . . . . . : 255.255.255.255



    No renew of IP!!


    C:\>ipconfig /renew

    Windows IP Configuration

    Ethernet adapter Local Area Connection :

    Connection-specific DNS Suffix . : ---------
    IP Address. . . . . . . . . . . . : 192.168.0.91
    Subnet Mask . . . . . . . . . . . : 255.255.254.0
    Default Gateway . . . . . . . . . : 192.168.0.200

    C:\>ipconfig /all

    Windows IP Configuration

    Host Name . . . . . . . . . . . . : ------
    Primary Dns Suffix . . . . . . . : ------
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : ------

    Ethernet adapter Local Area Connection :

    Connection-specific DNS Suffix . : ------
    Description . . . . . . . . . . . : Parallels Ethernet Adapter #3
    Physical Address. . . . . . . . . : 00-1C-42-03-BF-9B
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 192.168.0.91
    Subnet Mask . . . . . . . . . . . : 255.255.254.0
    Default Gateway . . . . . . . . . : 192.168.0.200
    DHCP Server . . . . . . . . . . . : 192.168.1.3
    DNS Servers . . . . . . . . . . . : 192.168.1.1
    192.168.1.2
    Primary WINS Server . . . . . . . : 192.168.1.3
    Lease Obtained. . . . . . . . . . : 04 February 2010 12:30:34
    Lease Expires . . . . . . . . . . : 18 February 2010 12:30:34
     
  4. Elric

    Elric Parallels Team

    Messages:
    1,712
    Please try to wait few time (say, 1 minute), because 0.0.0.0 means that dhcp-renew is in progress. If it failed, there will be 169.x.x.x.x (self-assinged, Link-Local IP)
     
  5. LonnieT

    LonnieT Bit poster

    Messages:
    1
    VM Doesn't renew IP Address on Resume

    Elric,
    I found this post and wanted to say that I have the same problem as DuncanHume,
    I recently moved to Parallels from VMWare. Most everything is running GREAT.
    But I have noticed that when I put my VM in Suspend mode and move to a different location (from home to office or office to home, which are different subnets), Parallels does NOT automatically renew the IP Address upon resume. I have waited 10 / 15 minutes. Just doesn't happen. Previous IP information (Addr, DNS, WINS,etc) remains. I manually run an ipconfig /release, then ipconfig/renew, and everything is fine after that. Parallel Tools is installed. Please don't ask me to uninstall or reinstall tools. That was one of the reasons I switched from VMWare, seems like reinstalling tools is a constant practice with VMWare, and doing that usually causes more problems than it solves. As my Parallels VM seems to be VERY stable, I prefer to leave it alone.

    I am running in Bridge mode as I want a separate IP Address on the same subnet as my MAC host (and other networked machines). I don't mind having to get the correct IP Addresses manually, but it would be nice if Parallels would do this automatically (this was one thing I didn't have a problem with in VMWare).
    I just thought I would pass this on as it may be an issue that needs reviewing.

    Thanks
    Lonnie
     

Share This Page