Hello, I just installed Sage in a Virtual Machine (VM) using SageLIVE-511-47 and it works fine in the VM but I can not access it from the host operating system (Windows). When I point the browser to localhost:8000 in the VM, Sage appears. When I point the browser to localhost:8000 in Windows, I get an error message. (Firefox can't establish a connection to the server at localhost:8000.) It seems to me a small problem, but I have no idea what to do. Any help would be appreciated.
You need to set up the virtual machine networking correctly. E.g. in VirtualBox the VM networking must be set to NAT or bridged, host-only is not sufficient. You also need to forward port 8000 from the host to the guest.
The Sage virtual appliance image has networking set up so that it should just work.
Edit: To forward the port in VirtualBox, go to Settings -> Network -> Adapter 1 -> Advanced -> Port Forwarding. Click on the green plus. Put in name = anything you like, Protocol TCP, Host IP 127.0.0.1, Host Port 8000, Guest IP leave blank, Guest Port 8000.
I for one never use NAT or Host only networking. I find it much easier to use Bridged Networking. The VM then truly behaves as an extra computer on the local network. When you are working at home, you probably use network addresses in the range 192.168.1.x. Assign the VM an arbitrary IP, different from the one your host machine uses. Probably you can use 192.168.1.100. Then point the browser on your windows machine to http://192.168.1.100:8000.
If your windows machine is part of a university or company network, you should consult your networkmanager as to the addresses you can/must use for the virtual machine.
posted Nov 01 '11Dirk Danckaert
165 ● 1 ● 8
there seems to be a problem in the Live CD iso, but I didn't figure out yet whats exactly wrong with this connection. Maybe some rogue firewall settings? One has to keep in mind though, that using the live CD as virtual sage server is not the intended main purpose.
Please import (File > Import Appliance) this ova file in your virtual box, check that network setting is "Bridged Adapter" sage-lite-vm-a1.ova
if you click the notebook icon there should be a blue popup with the IP adress to connect. You just need the IP, you do not need to specify the port (the :8000) because the sage server is started on the default html port (80).
hope this helps, maybe you can send a short feedback if it is working. I am not so good with this networking issues and I plan a fix in the next Live CD update.
Asked: Nov 01 '11
Seen: 608 times
Last updated: Nov 02 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.