====== 04 Virtuozzo ServiceCT再作成 ====== ====== Linux ====== ==== テンプレート的なもの用意 ==== mkdir -p /vz/full_dist bash /root/virtuozzo/download/Linux/x86_64/virtuozzo-4.0.0-448-x86_64.sfx -d /vz/full_distr --extract ==== Destroy Service Container ==== vzctl stop 1 vzctl destroy 1 ==== Recreation ==== vzsveinstall -v -D /vz/full_distr -s SERVICE_CT_IP ==== Apply updates to sve ==== find /vz/vzup2date/virtuozzo -path "*/$(awk '{gsub(/-.*$/,"",$NF);print $NF}' /etc/virtuozzo-release)/*/virtuozzo-tools*$(uname -i)*" -printf "%h\n" |sort -u |xargs -rn1 vzsveupgrade -d find /vz/vzup2date/pim -path "*/$(awk '{gsub(/-.*$/,"",$NF);print $NF}' /etc/virtuozzo-release)/*/virtuozzo-tools*$(uname -i)*" -printf "%h\n" |sort -u |xargs -rn1 vzsveupgrade -d ====== Windows ====== ・WindowsサービスCT再作成 vzsveinstall -s -c -w -f vzctl restart 1 vzctl set 1 --userpasswd vzagent0:(ホストのAdministratorのパスワード)