Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've a webserver in my vmware guest os suse 12.2 running but how can I connect it from my host os? My virtual machine is configured with NAT option in vmware network manager but I can't ping my vm from my host os? I've tried this tutorial to no avail: http://www.nwlab.net/tutorials/VMware/. I add port forwarding to my vm from port 80 to port 80. It's using vmnet8 and my adapter has a different ip then my guest? Is this normal behaviour? This is the same question but I can't get it work: How can I connect to a web server running in a VM when the VM is in NAT mode??

Edit: Hmm, it works. I've installed vmware-tools and after a reboot of the host it works? I've also enabled port-forwarding. I typed ifconfig in guest os and I used this ip in host os to load the webserver.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

If the virtual machine is running on VMNET8, then you will need to ensure that one of the virtual network adaptors in your host machine is running on VMNET8, as at present they are likely on differing networks.

share|improve this answer
    
But in my guest os I've internet access over my host os? –  Phpdna Apr 25 '12 at 17:19
    
It will most likely be connecting out using a NAT, which whilst letting you out may not let you back in the same way. –  Will Apr 26 '12 at 8:36
    
My adapter is running on vmnet8 that's where I get the info from. I don't understand why my adapter has a different ip then my guest os? –  Phpdna Apr 26 '12 at 8:40
    
They run on a virtual network that allows the VM to communicate with the host. The host adapter will have a different address than the guest, that's by design otherwise their addresses would clash. –  Will Apr 26 '12 at 9:34
    
Hmm, it works. I've installed vmware-tools and after a reboot of the host it works? I've also enabled port-forwarding. –  Phpdna Apr 26 '12 at 9:39

You probably need to set up passthrough networking on the VM network interface so that it can connect to your actual network.

share|improve this answer
    
I don't understand? –  Phpdna Apr 25 '12 at 16:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.