W
W
wcoder2012-03-25 19:48:28
linux
wcoder, 2012-03-25 19:48:28

Installing a Linux server on Windows 7 under Virtualbox

Hello, dear Khabrovites!

I got into the idea of ​​organizing a Linux server using Virtualbox on Windows 7.
And I ran into the problem of organizing a network between Linux and Windows 7.

Tools:

  • Windows 7 on it Virtualbox
  • Internet access through Windows 7
  • Virtualbox running in the background
  • Debian Linux on Virtualbox


Tasks:
  • Internet access in Linux through Windows 7
  • Linux administration via Putty
  • when requesting a site.com address from this computer or another computer on the network, the request was sent to my computer, on Linux under Virtualbox. The Linux server processed the request and gave the necessary data to the requested computer from the network.


I ask the community for help in solving the tasks.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Gluttton, 2012-03-25
@wcoder

> Access to the Internet in Linux through Windows 7.
Set the type of network interface in VirtualBox to NAT and set up a network interface with dhcp on the guest machine.
> Linux administration via Putty.
Set the type of network interface in VirtualBox to Host-only adapter and set up a network interface with a static address on the guest machine.
> When requesting a site.com address from this computer or another computer on the network, the request was sent to my computer, on Linux under Virtualbox. The Linux server processed the request and gave the necessary data to the requested computer from the network.
Hmm ... I did not come across. When I needed to forward an external IP address to a virtual machine, I set the Bridged adapter network connection type in VirtualBox, raised the network interface with dhcp on the guest machine, and allocated it to the guest system on my home router (which the TC apparently does not have) IP address by MAC address.

A
Alex Bunin, 2012-03-26
@azxc

Alternatively, you can put the network interface as a Bridged Adapter and then this virtual Linux machine will have its own IP with all the amenities.
All tasks except the first will work. The first will give access to the Internet directly through the router, and not through Windows 7. Accordingly, for the last task in the router, it is enough to redirect all incoming traffic to this new IP.

P
p1dl0, 2013-12-16
@p1dl0

enough to deal with nonsense, you buy an old fourth stump and 2 network cards on Avito, you cut all this into the network, you put a ubuntu server on the old stump (only the console is only hard core) then virtual box with Windows 2003 server, set it up so that the old stump works for you as a router this is iptables + MASQUERADE, you install a Squid Transparent proxy with logging (if you need it)
you will no longer be bothered by such things as
1) keep your computer on all the time, since you can put the old stump on the refrigerator or in the toilet
2) a dedicated server will immediately appear with almost unlimited storage size, you can host sites after a couple of days of dancing with dns servers
3) access from anywhere in the world to the 2003 server via rdp and port 22 on ssx
only in this way you will know all the tricks of the settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question