IP from Host-Only Adapter on Host changes automatically

Discussion in 'Installation and Configuration of Parallels Desktop' started by MirkoS, Aug 3, 2010.

  1. MirkoS

    MirkoS Bit poster

    Messages:
    4
    I've a host only network. Guest is Linux, Host is OS X. In network settings on the MAC I see a "Parallels Host-Only Networking Adapter", I set IPv4 config to manual and IP to 192.168.174.1 and every thing is working fine for my setup.
    If I shut down the VM and quit Paralles next time I start the VM again the "Parallels Host-Only Networking Adapter" has changed the IP to 192.168.174.2. So I every time have to go to network settings and change the IP back to 192.168.174.1
    I switched DHCP off for the host only network in parallels preferences. I also tried to set start and end address to 192.168.174.1 but it says the range must be at least 16 addresses.
    Any ideas how to get a fixed IP?
     
  2. Elric

    Elric Parallels Team

    Messages:
    1,712
    Hi
    the steps are

    1) set the DHCP range to be 192.168.174.16-192.168.174.254

    2) then start the /Application/Utilities/Terminal and execute command "sudo chmod a+rw /Library/Preferences/Parallels/network.desktop.xml" (without quotes, will ask for the password). This will allow all users to write to this file

    3) Open in the TextEdit the above-mentioned file. Find in it the line <HostIPAddress>192.168.174.17</HostIPAddress> and replace in this line the ip to be desired one

    4) optionally restore back permissions of the file by executing command "sudo chmod 622 /Library/Preferences/Parallels/network.desktop.xml"

    5) reboot the Mac
     
  3. MirkoS

    MirkoS Bit poster

    Messages:
    4
    Thank you so much!
     

Share This Page