Пример:
[[ $((qm status 101) | grep "running") ]] && echo "OK" || echo "not OK"
Или:
#!/bin/bash
#usage script.sh <vmid>
STATUS=$(qm status $1)
if (echo $STATUS | grep "running"); then
echo "ok";
else
echo "not ok";
fi
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
перезапустить
sysctl -p