How to use the IIS server in a VM on Mac host? - macos

I need to access my http://localhost/ (in IIS 6 on VM) from the MAC Host (Safari).
I am using NAT (or can use Bridged) network connection to the Guest, but not sure how to identify IP addresses, etc. A novice when it comes to networking ;-)
Thanks,
Geoff

A simple solution if you want a consistent hostname is to install Bonjour for Windows in the VM with bridged networking and then use http://computername.local in Safari.
It's possible to forward ports from a NATed VM too or ensure a consistent IP address if you want; some instructions are here.

In Safari, you should be able to type in the IP address of your VM and be able to access IIS that way. Firewall settings permitting of course, but I assume you've set that up already.
If it doesn't work, could you please post more details about your current setup (VM software being used to run the guest, OS X version, Windows version) and I'm sure we'll be able to troubleshoot further.

Just try to off Windows firewall on your virtual machine. This works for me in NAT mode.
Also, as mantioned before, is nice to have Bonjour for Windows installed to have more useful URL.

Related

VirtualBox Ubuntu 14 guest running on win7 host has no Internet access with Bridged Adapter

My VM Linux ubuntu 14.04 LTS running on Win 7 host lost Internet access while running on Bridged Adapter. I do not know the precise event that this happened after - therefore it is hard for me to troubleshoot. So I'm here for some help :)
A couple of points:
It worked before - not sure what changed though. One thing might be related: I installed VMware player on the same host as well (but it is shut down);
Attaching the VM to NAT based Internet connection works fine;
I tried playing around with some of the settings in VirtualBox manager when the problem arose;
I tried disabling the VMware services (like DHCP service, NAT service, etc.) - that did not help.
I have attached some screen-shots that might be helpful. Thank you for your input! I would really appreciate not only the solution but the thinking process of how to troubleshoot it.
I solved it - in my case I have both VM virtualbox and VMware player installed in my machine. The connetions somehow got mixed up even when I was running only one of those applications.
Going to VMware Player > Virtual Machine settings for your VM > Network adapter > Configure adapters and try swithing around the adapters if you have the same set up as I had. It might be helpfull to restart the VirtualBox VM after you do some switching in VMWare player (but I'm not sure it is necessary);
Also, I think the internet connection was succesfully established on virtualbox VM once I turned on the VMWare VM - but I'm not sure 100% about it.
Please add comments if you had similar issue and how you resolved it - I think this would save countless nerve cells aroud the world :)
Fist of all, if your NAT mode network is working well then I assume there is nothing wrong with your virtual box installation. While the NAT mode doesn't require much additional setting beside set the virtual machine to use DHCP, the bridged adapter mode need some additional configuration. Because it's basically to simulate that your virtual machine has it's own LAN cable and plug it into the switch or router by "riding" your real connection (whether it is wired or wireless). So, to make it work please configure your Ubuntu's wired connection to use the same configuration as your host computer/windows (but of course with different IP address).
Good luck mate.
If you want to use VMs in bridged network options, do the following changes in the VMware network. Open Virtual network editor on VMware.
click on changes setting at the bottom. It will as you for admin permissions. click yes. now you will be able to see new connection in the list(possibly VMnet0) and able to edit the network settings.
select Bridge from option and click on Automatic settings. Unckeck all the other network options except the computer adapter. save the settings and restart VMs.

VMWare guest OS via proxy from host OS

Is there any way to configure guest vmware OS via proxy/socks server from host OS? I can not use proxyficator programms in guest OS and need sometimes change sock/proxy to make some tests. There are windows on guest and ubuntu on host (doesnt matter, I can try ti install windows too if needed).
I found some information here and it helped me. It is on russian but google translate could help if someone needs the same.
http://habrahabr.ru/post/145436/

How to access Oracle VM virtualmachine's database from local computer in Visual Studio

I created database on Oracle VM virtualmachine and I need to use it from my local computer for my project, which I develop on Visual studio. How could I do that?
The problem is unrelated to VS,
you need to make sure the network device you installed is reachable from the outer world, and that there is a route from your machine to the VM ip device.
What I write here is the simplest configuration in the case you have a home network...
withing Oracle virtualBox -> choose the VM ->(right click) Settings -> Network.
choose "Bridged Adapter" and select the physical card on your computer.
within the VM make sure the IP address is being taken from DHCP (How to do it depends on the Linux distribution you have).
After doing so - restart the network device within the VM, and make sure both of the machines, the windows and the linux, have the same IP segment, and that ping from the windows can reach the linux VM with Oracle.
If you do not have a home network -
The VM added another networking device on your windows machine (if it is hosted on the same machine), which you need to route the trafic to the VM IP to.
If it is not on the same machine - you need to make sure that the router both the machines are connected to knows about the path to the database.
After the networking issue was resolved (and you can practically ping from one machine to the other assuming the firewall allows it),
make sure the listener on the DB machine listens to the right address.
this link will help: http://docs.oracle.com/cd/B28359_01/network.111/b28317/listener.htm
Than you should be done.
Let me know if this wasn't the problem, and your issue is configuring VS - since this is a different issue, which will depend on if your using ODAC or ODT...
Also let me know if you don't know how to check/configure any of the things I wrote above - I didn't write it all since it is long and complicated to answwer all of it in one post...

How to access cisco connection on Win7 from Mac OS X on local network

I've really benefitted from all the answers out here and now it's my turn to ask for help.
My company uses CISCO VPN. They won't give me the Shared Secret for the group so I am forced to use the windows VM to connect to my work network.
I've tried using the MAC CISCO ISPEC but there it is. Anyway, I'd like to use the connection in my windows vm from my MAC side. I tried setting up a openVPN server on the windows and connecting to that from MAC and connect the CISCO vpn. All a no go.
So any suggestions will be very welcome.
Thanks all.
Well it might sound strange but you're going to have to setup 2 virtual NICs on the virtual machine. The first NIC is going to be bridged with the real physical NIC on the OSX box and that's going to be your outside interface. The next virtual NIC is going to be a host-only and this is going to be your inside interface. This is the one you'll use for OSX to connect through your windows machine. Then you'll need to remove all IP and DHCP configuration from your physical NIC on OSX to let the virtual machine use that NIC.
Every time you want to use the VM and the VPN you're going to have to remove the config on your physical NIC in OSX and then re-add it when you're done.
The windows machine will need to use internet connection sharing to allow OSX to use its VPN connection.

How to share Ubuntu's XAMPP installation with Windows 7 running on vmWare Workstation within Ubuntu

I am running Ubuntu 10.10 and also Windows 7 under vmWare Workstation within Ubuntu.
My internet connection in vmWare is shared from the host as 'NAT'
I am using XAMPP on Ubuntu for developing sites. I use http://localhost/mysite to open the site under development in Ubuntu.
I wanted to use a similar command to open these sites in the Windows 7 installation under vmWare.
While browsing some of the topics I came to know that it is possible by using some IP of 'NAT'.
I am totally new to Linux and vmWare both. Just migrated to Linux from Windows and need help understanding it in detail.
Kindly help me with the process of How to access these sites in vmWare.
Please help.
VMWare's installer should set up a new network interface on your Ubuntu system, check ifconfig -a to find its IP address.
Make sure your webserver is listening on either 0.0.0.0 OR (127.0.0.1 AND the vmware-interface IP address).
From the Windows system, try typing in http://<vmware-interface-ip>/mysite. Hopefully it'll go. You can check the windows networking control panels to see what the gateway address is, it'll probably match.
I hope this gets it going for you.

Resources