Page 1 of 1

hosts file

Posted: 28. Feb 2008, 02:00
by Bucky
I'm setting up oracle db in a Fedora 7 vdi.
It need hosts file with fully qualified name.
I have set up a domain name with dnydns and added it to my router but I'm unclear how to handle the hosts file
oracle readme says format should be
<IP address> <fully qualified machine name> <machine name>
The vm thinks its 10.0.2.15, but my router says its 192.168.2.9

Posted: 28. Feb 2008, 12:13
by frank
You are using the NAT network interface, therefore the IP of your guest is 10.0.2.15 in every case. Your guest will not be directly visible from the outside as long as you use NAT. Consult the user manual to find out which networking types are appropriate for you.

Posted: 28. Feb 2008, 19:00
by Bucky
Thanks Frank,
looks like NAT with port forwarding is the way to go.
Oracle wants port range of 1024 65000.

Posted: 1. Mar 2008, 00:54
by Bucky
I'm not clear on how to open the ports with vboxmanage. The exampe in the manual is hard to decifer.
Is it 3 separate entries from the command line or is it a script?
Can it be done while the vm is running?
Is it persistent, or must it be run every time the vm is started? If so, how to automate this?
How would I open a range of ports?
The example is for ssh, I'm not sure if this pertains to my setup. I have no references to ssh anywhere in my setup except I have a process called sshd which is sleeping.
The firewall and selinux are disabled.
TIA