Can't connect to Linux VM from OSX

Discussion in 'Linux Virtual Machine' started by SergioA4, Jan 27, 2016.

  1. SergioA4

    SergioA4 Bit poster

    Messages:
    3
    This post have the exact same title of an old one, but unfortunately the previous solution does not work for me.
    Have installed CentOS minimum installation in a Parallels VM, running Parallels 11.1.2 and MAC OSX 10.11.3. However, I cannot connect to the Parallels VM from OSX. I have installed Oracle XE database on the CentOS instance and would like to be able to connect to that.
    I have even tried to create a small python program that create a simple TCP listener, trying to narrow the search for a solution.
    The situation is that I could connect to oracle or to my simple program using telnet locally (on CentOS) but not from my MAC terminal.
    Note that by "locally" I mean a ssh session, which indicate that my Linux VM is reachable from my MAC OS network.
    I had already tried:
    • Disable MAC firewall at all;
    • Configure my VM as "Shared Network" and as "Host-only network";
    The result is always the same: ssh works smoothly and oracle or my simple listener does not.
    I would appreciate any help or ideas to try.
     
  2. Elric

    Elric Parallels Team

    Messages:
    1,712
    Could it be firewall inside Centos?
     
  3. SergioA4

    SergioA4 Bit poster

    Messages:
    3
    I don't think so, although I could be missing something.
    [sergio@CentOS ~]$ sudo service iptables stop
    Redirecting to /bin/systemctl stop iptables.service
    Failed to stop iptables.service: Unit iptables.service not loaded.
     
  4. Elric

    Elric Parallels Team

    Messages:
    1,712
    If you are using centos 7, then it could be firewalld: # systemctl stop firewalld
    I'm not a linux guy, but could it be that selinux blocks the socket? Try to disable selinux also: # echo 0 > /selinux/enforce
     
  5. SergioA4

    SergioA4 Bit poster

    Messages:
    3
    Problem solved! Thank you Elric.
     

Share This Page