How to keep the containers network device when I delete the hosts
So I got 2 identical machines in the cloud one of them has a public IP fine, without showing in the host. The other machine just will not do the same as the other instance.
So for the problematic machine every restart I do to it automatically creates a Veth on the host. Where as the working machine doesn’t. I have literally copy and pasted there profiles so they are the same except IP’s and yet they both behave differently. Here is the working machines host and container. Code:
root@routin:~# ip a Code:
root@jam:~# ip a |
I found the answer.
I was using a Macvlan in a hidden config. |
"Glad you found it, Paul ..." Now, for the benefit of "the next poor schleb," can you please provide details ... "start to finish." What exactly is your configuration, how did you find the problem, and what exactly was wrong.
In this way, "the next poor schleb" might find a complete solution in just one thread. Instead of a :banghead: account of someone who had "found it" but didn't say exactly what "it" was. (Begin at the beginning: "Identical machines in the cloud ..." Well, there are lots of ways to do that. And, so on.) |
Quote:
So with Linux Containers its kind of annoying when you first start as there are 3 possible configs. You have Configs, Profiles, Networks and Projects. These can all have there own type of network settings in some can override some are unique. In the Profile I was using the 'nic' type with the typemode of 'routed'. But in the Config I was using macvlan. To see this I typed. Code:
sudo lxc config device show jam Code:
eth0: You can see by typing. Code:
sudo lxc profile show %PROFILENAMEHERE% Code:
devices: |
All times are GMT -5. The time now is 02:24 AM. |