Page 1 of 2
Setting up a server
Posted: 22. Sep 2008, 10:38
by [ Xi0N ]
Hi!
Im installing a linux (ubuntu) server on a windows server 2003 R2.
The main point is to use the virtualized server for ssh.
The problem i find now is that i need to route some ports to this virtual machine, but i configured the network as NAT, and the ip address of the machine is allways unreachable......
I want to give this machine an ip address, different than the host's address, so i can forward the ssh ports to it.
I attempted changing the ip address of the machine, but when i do so, i loose all conectivity on it.
I want to ask you how is the best way to do this task,.... maybe is better to choose instead of nat, to attach a host interface?
I will wait for your advices.
Another question i have is: Is it necessary to install the virtual box additions, even if i am only going to use this machine in console mode? (w/o graphical interface)
Cheers!
Posted: 22. Sep 2008, 18:04
by TerryE
Search the forum for 2222 to work out how to do this. It's written up in the UG also. You ssh to hostserver:2222 which then maps to the guest:22.
Yes: time-services and shared folders
Posted: 22. Sep 2008, 21:24
by [ Xi0N ]
Ok, i will give it a try..... thanks!
But anyway, i must ask.... is there not any way to give this virtual machine some more reasonable IP, and treat it as an independent machine? It actually has some ip like, 10.25.0.30 .... and is a bit strange...... :/
Thanks anyway....
Posted: 22. Sep 2008, 21:49
by Dest
Sure... take it out of the NAT and set it up for bridging... that would give it a more reasonable access from the outside
the idea of NAT is to give the private machine internet access via another machine/host. NAT is never two way w/out port forwarding
Posted: 22. Sep 2008, 21:52
by [ Xi0N ]
Bridging... ok.. i will give it a try...
Thanks!!!
Posted: 22. Sep 2008, 21:58
by Dest
Make sure you read the documentation on it before you try it to make sure that is really what you want to do.
Posted: 22. Sep 2008, 23:58
by [ Xi0N ]
I have been trying to configure my virtual machine networking and i am not able to do so...
First, i created the host adapter and i attached my ubuntu virtual machine to it. I left it with automatic assignment of the ip, gateway, etc.... in windows net works manager...
The i started my Ubuntu machine, and the networking does not work...
I have been messing around with the file /etc/network/interfaces and with the file /etc/resolv.conf, and i can see by the command ifconfig, that the network interface has the IP i assigned in the /etc/network/interfaces file (192.168.1.70), but when i attempt to ping
www.google.com, i get no response...
When i usually configure the windows machines (not virtual ones), i set 192.168.1.155 as the gateway, and 192.168.1.2 as the dns server...
Can anyone give me a hand? i think i am a bit lost now...
Thanks!
Posted: 23. Sep 2008, 11:17
by TerryE
How about browsing
http://66.102.9.104? If this gets you google, then you've got a DNS issue. I am a bit curious as to why 192.168.1.2 for DNS? This usually either your ADSL router, or provided by DHCP from your router, or a list provided by your ISP.
Posted: 23. Sep 2008, 12:26
by [ Xi0N ]
TerryE wrote:I am a bit curious as to why 192.168.1.2 for DNS?
I have a windows 2003 server (the same machine as the virtual machine is in), which acts as dns server in my network
Thanks!
Posted: 23. Sep 2008, 19:17
by Sasquatch
You didn't bridge the virtual adapter to your physical adapter. Without the bridge, the VM can't go outside the Host.
Posted: 23. Sep 2008, 21:35
by [ Xi0N ]
I bridged the interface to the virtual adapter... actually, when i start the virtual machine, the adapter pops up at the windows tray and notifyes me that i have 10 Mb speed, etc.....
¿Do i have to configure anything in the virtual network card created in my windows system? or is it all a matter of configuring properly my linux vm?
Thanks!
Posted: 24. Sep 2008, 20:01
by Sasquatch
What interfaces are part of your bridge? Is it only the virtual interface, or the physical wired connection too?
Posted: 24. Sep 2008, 22:05
by [ Xi0N ]
Ok, so, when i have the virtual interface already created in the windows real machine, i have to go to the network administrator in the control panel, select the new tap adapter and select also the (real) network interface i want to bridge it to, ¿Isn't it?.
I did so, but then the tap adapter does not get the tray notification i said before when i start the virtual machine.......
I think i am a bit lost still, but, ¿is this more or less the way to do it?
Thanks for your patience.

Posted: 25. Sep 2008, 19:44
by Sasquatch
Yes, you have to select both interface and bridge them. There should be a tray icon when it loads. Default XP behaviour is to hide the icon when it's connected. You can change that when you open the properties.
Posted: 25. Sep 2008, 21:30
by [ Xi0N ]
Working!!!!
The problem was the DNS.... my DNS server , as i said, is my company's server IP 192.168.1.2 (that is in the same machine as i am running tw vm in)... so i bridged this ip to the tap interface. This means that when i edited the resolv.conf file in my virtual machine, the dns server was in the IP of the bridged interface... and thats why there was no response to pings.
The question i have now..... Does this mean that anyone that is using that IP as the DNS server will not be able to resolve the requests from it?
