Le 14/11/16 à 12:25, Saint Michael <[email protected]> a écrit :
SM> My device is a network interface.
SM> Is there any code I may execute on the host to make sure the container
SM> starts again if I need to stop it?
I just had this problem, in my /var/lib/lxc/oldfront2/config I have
…
lxc.network.type = veth
lxc.network.name = veth0
lxc.network.veth.pair = veth0oldfront2
…
lxc.network.type = veth
lxc.network.name = veth1
lxc.network.veth.pair = veth1oldfront2
I stopped the VM, and then when I want to start it I have
lxc-start 20161122192407.302 ERROR lxc_conf -
conf.c:instantiate_veth:2555 - failed to create veth pair (veth0oldfront2 and
vethXQ17EQ): File exists
lxc-start 20161122192407.351 ERROR lxc_conf -
conf.c:lxc_create_network:2890 - failed to create netdev
lxc-start 20161122192407.351 ERROR lxc_start - start.c:lxc_spawn:1081
- failed to create the network
lxc-start 20161122192407.351 ERROR lxc_start -
start.c:__lxc_start:1354 - failed to spawn 'oldfront2'
lxc-start 20161122192412.370 ERROR lxc_start_ui -
tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161122192412.370 ERROR lxc_start_ui -
tools/lxc_start.c:main:346 - To get more details, run the container in
foreground mode.
lxc-start 20161122192412.370 ERROR lxc_start_ui -
tools/lxc_start.c:main:348 - Additional information can be obtained by setting
the --logfile and --logpriority options.
lxc-start 20161122192449.182 ERROR lxc_conf -
conf.c:instantiate_veth:2555 - failed to create veth pair (veth1oldfront2 and
vethWWTTMA): File exists
lxc-start 20161122192449.247 ERROR lxc_conf -
conf.c:lxc_create_network:2890 - failed to create netdev
lxc-start 20161122192449.247 ERROR lxc_start - start.c:lxc_spawn:1081
- failed to create the network
lxc-start 20161122192449.247 ERROR lxc_start -
start.c:__lxc_start:1354 - failed to spawn 'oldfront2'
lxc-start 20161122192454.263 ERROR lxc_start_ui -
tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161122192454.263 ERROR lxc_start_ui -
tools/lxc_start.c:main:346 - To get more details, run the container in
foreground mode.
lxc-start 20161122192454.263 ERROR lxc_start_ui -
tools/lxc_start.c:main:348 - Additional information can be obtained by setting
the --logfile and --logpriority options.
lxc-start 20161122192646.065 ERROR lxc_conf -
conf.c:instantiate_veth:2555 - failed to create veth pair (veth0oldfront2 and
vethCX2Y5C): File exists
lxc-start 20161122192646.119 ERROR lxc_conf -
conf.c:lxc_create_network:2890 - failed to create netdev
lxc-start 20161122192646.119 ERROR lxc_start - start.c:lxc_spawn:1081
- failed to create the network
lxc-start 20161122192646.119 ERROR lxc_start -
start.c:__lxc_start:1354 - failed to spawn 'oldfront2'
lxc-start 20161122192651.135 ERROR lxc_start_ui -
tools/lxc_start.c:main:344 - The container failed to start.
ifconfig <any of these interfaces>
reports
veth0oldfront2: error fetching interface information: Device not found
As a workaround I rename these 2 interfaces in /var/lib/lxc/oldfront2/config
(adding a suffix), and lxc-start was fine then.
--
Daniel
Le vrai rêveur est celui qui rêve de l'impossible.
Elsa Triolet
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users