B
B
billyK2015-01-29 03:47:00
Debian
billyK, 2015-01-29 03:47:00

How to connect to a server in a virtual machine?

The virtual machine has debian 7 installed and everything you need for a web server. Tell me how can I connect to the server on a virtual machine from the main OS (windows 7).
I watched some article habrahabr.ru/sandbox/30827 , it doesn’t help, or I’m doing something wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Yakovlev, 2015-01-29
@billyK

I dare to assume that the machine with the virtual machine is home and is located behind the router, and everything was also configured according to the above article. I also assume that SSH is installed in the VM. Based on this assumption:
1) We go to the VM settings and for the network adapter we specify the type not NAT, but bridge (bridge).
2) Change the interface settings inside the VM with:

iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0
auto eth1

on the:
auto eth1 
iface eth1 inet dhcp

3) Перезагрузите ВМ
4) на ВМ выполните ifconfig, из вывода получите ip.
5) запустите SSH клиент и укажите этот IP.
P.S.: интерфейсы обычно нумеруются с 0, т.е. в вашем случае это может быть eth0.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question