badpen.blogg.se

Mikrotik chr digitalocean
Mikrotik chr digitalocean













mikrotik chr digitalocean

I don't know why this happens but this method works and having a MikroTik with more than 1GB disk is a rare edge case. Partition syncing on DO droplets causes a kernel panic while the image is being written to disk, so the disk had to be shrunk to a reasonable size to be written, so reduced image size to 1GB (1073741824).Trying to use autorun.scr on newer images no longer works, so I've gone back to 6.37.Newer ROS images do not have two partitions, so I've gone back to 6.37.There were some issues, which I've found, researched about and fixed. Zcat /mnt/chr-extended.gz | pv > /dev/vda & \Įcho "Don't forget your password: $PASSWORD " & \Įcho b > this script has been updated and confirmed working 100% with an Ubuntu 16.04.6 droplet on DigitalOcean.ĬAVEAT: The disk is only 1GB - You can change this by changing the number "1073741824" and test for yourself. 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).

mikrotik chr digitalocean

GATEWAY= `ip route list | grep default | cut -d ' ' -f 3 ` & \Įcho "/ip address add address= $ADDRESS interface=

mikrotik chr digitalocean

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.

mikrotik chr digitalocean

# 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