create_owrt.sh
· 438 B · Bash
Raw
#!/bin/sh
set -e
echo '----------Create Openwrt VM!----------'
wget https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/openwrt-24.10.5-x86-64-rootfs.tar.gz -O /var/lib/vz/template/cache/openwrt-24.10.5-x86-64-rootfs.tar.gz
pct create 190 local:vztmpl/openwrt-24.10.5-x86-64-rootfs.tar.gz --hostname openwrt --rootfs local:1 --memory 256 --cores 1 --ostype unmanaged --unprivileged 1
echo '----------Create DONE!----------'
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | echo '----------Create Openwrt VM!----------' |
| 6 | |
| 7 | wget https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/openwrt-24.10.5-x86-64-rootfs.tar.gz -O /var/lib/vz/template/cache/openwrt-24.10.5-x86-64-rootfs.tar.gz |
| 8 | pct create 190 local:vztmpl/openwrt-24.10.5-x86-64-rootfs.tar.gz --hostname openwrt --rootfs local:1 --memory 256 --cores 1 --ostype unmanaged --unprivileged 1 |
| 9 | |
| 10 | echo '----------Create DONE!----------' |
| 11 |