When you suspend a virtual machine: Its current state (including the state of all applications and processes running in the virtual machine) is saved to a special file on your Mac (inside virtual machine's bundle). Virtual machine's process is stopped, therefore host RAM and CPU are freed from VM activity.
You can edit settings of this VirtualBox network by going to File > Host Network Manager. In our case, the default network address of the host-only network is 192.168. 56.0/24 and the IP address of the virtual network adapter on the host machine is 192.168. 56.1.
On VirtualBox, choose the guest VM you want to access, and open Settings window of the VM. Click on Network menu on the left, click on Advanced to show additional network adapter options. Click on a button labeled Port Forwarding . You will see a window where you can configure port forwarding rules.
Go to Hosts and Clusters, select the needed VM by name and check the Summary tab. The VMware IP addresses of the virtual machine are displayed in the IP addresses section. One VM can have multiple virtual network adapters and multiple IP addresses.
On the XP machine, find your IP address by going to the command prompt and typing ipconfig
. Try replacing the last number with 1 or 2. For example, if your IP address is 192.168.78.128, use http://192.168.78.1:3000.
You can use your host Mac's (or any other Mac on the network) 'local' name:
http://macname.local:3000/
where macname is the network name of your host (or other desired) Mac.
For future visitors: once you've got the IP address figured out, you can add an entry to the Windows hosts file, which is located at C:\Windows\system32\drivers\etc\hosts, to map the IP address to a (virtual) server name. Add a line like this:
192.168.78.1 myrubyapp
Now you can access the site in IE at the address http://myrubyapp:3000
If you use virtual hosts under Apache you'll need this to provide the correct server name.
As this question is quite old and referring to XP, here is an alternative for new OSs;
If you're rocking Vista or Windows 7 as the Guest OS, and you have Virtual Hosts setup in the Host via Apache, here's how to setup:
In the Host OS, you need to ensure the network connection is done via NAT;
Then, In the Guest OS;
Add a line to the file such as:
[default-gateway-IP] www.example.com
[default-gateway-IP] example.com
Save
http://www.example.com
or http://example.com
in IE<gateway-ip
> and hit http://<gateway-ip
>:3000 in your browser.Gotcha: You must have http:// in the address or IE will give you "The webpage cannot be displayed".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With