--- vzdump.bak 2010-11-25 04:44:49.000000000 +0300 +++ vzdump 2015-12-28 17:05:07.317340049 +0400 @@ -717,6 +717,19 @@ debugmsg ('info', "final sync $dir to $tmpdir", \*LOG); run_command (\*LOG, $synccmd); + # attempt to up NETDEVs (802.1q interfaces can be exists) + # https://forum.openvz.org/index.php?t=msg&th=9865&goto=43129&S=86b58eb6f1cf262d5dd563aabe3df093#msg_43129 + my $conffile = "$vzconf->{confdir}/${opt_vpsid}.conf"; + my @ifaces_cfg=`cat $conffile | grep "^NETDEV="`; + foreach my $iface_str (@ifaces_cfg) { + $iface_str =~ s/NETDEV=//; + $iface_str =~ s/\"//g; + my @ifaces = split /\s/, $iface_str; + foreach my $iface (@ifaces) { + system ("ifup $iface"); + } + } + if ($stopve eq 'stop') { debugmsg ('info', "restarting vps", \*LOG); run_command (\*LOG, "$vzctl start $vpsid");