GATEWAY=`ip route list | grep default | cut -d' ' -f 3` & \Įcho "/ip address add address=$ADDRESS interface=Įcho "Magic constant is 65537 (second partition address). Qemu-img resize chr.qcow2 `fdisk /dev/vda -l | head -n 1 | cut -d',' -f 2 | cut -d' ' -f 2` & \Įcho "Give some time for qemu-nbd to be ready" & \ĪDDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` & \ Qemu-img convert chr.img -O qcow2 chr.qcow2 & \ In fact, I do not know why you could ever need to have a big partition on router vm. I prefer to use previous variant of this script because it runs quite faster. This script very depends on utils output and routeros partitions and etc, so it could probably fail in the future. Here is new, updated script, which extends disk space.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |