下载镜像
docker run -it --rm --pull=always -v /data/kvm/vm/openwrt/disk:/dest registry.cn-hangzhou.aliyuncs.com/lwmacct/file:1659974400-sirpdboy-openwrt-ipv6-plus-firmware
启动
__kvm_import() {_name="openwrt"virsh destroy "$_name" >/dev/null 2>&1virsh undefine "$_name" >/dev/null 2>&1_system_img="/data/kvm/vm/$_name/disk/system.img"virt-install --name="$_name" \--memory=1024 \--cpu host \--vcpus $(grep 'processor' /proc/cpuinfo | sort -u | wc -l) \--os-type=linux \--autostart \--noautoconsole \--import \--disk "$_system_img",cache=none,bus=sata \--graphics vnc \--network bridge=br-ikuai-lan1,model=virtio# openssl rand -hex 5 | sed -e 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/88:\1:\2:\3:\4:\5/'}__kvm_import
