#!/bin/bash id=`pvesh get /cluster/nextid` if [ -f "/var/lib/vz/template/cache/openeuler-loong64.tar.gz" ];then echo "skip download" else wget -P /var/lib/vz/template/cache https://mirrors.lierfang.com/proxmox/lxcs/loongarch64/openeuler-loong64.tar.gz fi pct create $id --hostname openeuler \ --rootfs DATA2:40 \ --password passwd \ --ostype unmanaged \ --console 1 \ --net0 name=eth0,bridge=vmbr0 \ local:vztmpl/openeuler-loong64.tar.gz pct start $id