Configured virtual lkc . it works, but how to connect to it from the outside, via ssh or http? Did this instruction. System - Debian 8
1 answer
This article configures a software network bridge. If you correctly followed the actions in the article, then the lxc.network.ipv4 will be available at the address specified in the config by the lxc.network.ipv4 directive.
ssh, http - it does not matter, this is L2 bridge. That the container will start and listen to the network - those services will be available when accessing this network address.
If the address does not suddenly show signs of life, then it is worth starting from the entrance through the lxc-console to the virtual console of the container and dealt with like a regular linux machine.
- do not quite understand. for example, now the main server is available at 213.239.197.100. virtualka has ip 192.168.0.77. I connect to the main server ssh -p 22 root@213.239.197.100 , and how do I connect to the virtual machine ? - Diefair
- In this case, describe in the question all your deviations from the article. What do you have in / etc / networks / interfaces on the host system, what network parameters are set in the lxc config. And if you need a routable address for virtuals, then what addresses and subnets did the hoster provide to you. - Small
- did everything as in the article, only instead of the address 192.168.0.11 I substituted 192.168.0.77. Regarding the subnets, I don’t know how to see it? - Diefair
- I looked at the hoster - I can add myself as another 1 IP and another subnet. What do I need for my case? - Diefair
|