affiliateopk.blogg.se

Mikrotik chr digitalocean
Mikrotik chr digitalocean







GATEWAY=`ip route list | grep default | cut -d' ' -f 3` & \Įcho "/ip address add address=$ADDRESS interface= 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` & \ dev/vda15 10240 227327 217088 106M Microsoft basic dataĪnd here is the modified script by me (but still not correct at all) wget -O & \ Sector size (logical/physical): 512 bytes / 512 bytes I changed 65537 to 227328, but in fact that wasn't correct.Ĭould anyone advise me, how to modify the script correctly? You can check it with fdisk before appliyng this" & \Įcho "This scary sequence removes seconds partition on vda and creates new, but bigger one" & \Įcho -e 'd\n2\nn\np\n2\n227328\n\nw\n' | fdisk /dev/vda & \ No success, but I understand where the problem is: echo "Magic constant is 65537 (second partition address). I've just tried this script (a bit modified) on Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-159-generic x86_64). Will try on latest Ubuntu available for droplet.Īny success with the latest Ubuntu version? Zcat /mnt/chr-extended.gz | pv > /dev/vda & \Įcho "Don't forget your password: $PASSWORD " & \Īll this made on droplet with Ubuntu 16.04.6 圆4 and router OS chr-6.45.2.img.zip (RAW image download).

mikrotik chr digitalocean

Pv /dev/nbd0 | gzip > /mnt/chr-extended.gz & \Įcho "Writing raw image, this will take time " & \ You can check it with fdisk before appliyng this " & \Įcho "This scary sequence removes seconds partition on nbd0 and creates new, but bigger one " & \Įcho -e 'd\n2\nn\np\n2\n65537\n\nw\n ' | fdisk /dev/nbd0 & \Įcho "Compressing to gzip, this can take several minutes " & \

mikrotik chr digitalocean

user set 0 name=root password= $PASSWORDĮcho "Magic constant is 65537 (second partition address). GATEWAY= `ip route list | grep default | cut -d ' ' -f 3 ` & \Įcho "/ip address add address= $ADDRESS interface= Qemu-img resize chr.qcow2 1073741824 & \Į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 & \

mikrotik chr digitalocean

# If it didn't work, just trash the droplet and try it again. Reboot the droplet and attempt to login using Winbox. # Most of the time this is absolutely fine. # You might get a "Segmentation fault" on line 56 while the image is being written. # Once the reboot is done, login with root/CHANGEME and change the password! # Digital Ocean Ubuntu 18.04 圆4 Droplet with "Regular Intel" CPU.









Mikrotik chr digitalocean