

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). 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 " & \ 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 & \ # 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.
