Debian 5 VM need networking help

Discussion in 'Linux Virtual Machine' started by Ctoynbee, Dec 10, 2010.

  1. Ctoynbee

    Ctoynbee Bit poster

    Messages:
    1
    Hi,

    I have a debian VM running in Parallels on my macbook pro.


    Im going to use it as a development environment (LAMP).

    I have the LAMP stuff set up I just need help with the networking for the VM.

    Initially I just adding a line in my hosts file so the hostname debian.local would resolve from my laptop e.g.

    debian.local 192.168.1.45

    but I have to use the laptop on two different local networks both running dhcp so when I move from one network running ip addresses 10.46.14.* to the other networking 192.168.1.*

    the ip address changes and I have to change my hosts file.

    I just need a solution where the debian vm hostname is always resolvable from the laptop running the VM without changing the host file each time.

    Many thanks,

    Chris.
     
  2. Elric

    Elric Parallels Team

    Messages:
    1,712
    Hi, I think that adding to VM (via menu Virtual Machine -> Configure) second network adapter in HostOnly-mode could solve the problem.
     

Share This Page