Increase VM storage on-line

Increase from 300 G to 400 G using the same storage, but leverage LVM on GPT inside the VM.

Host:

376 lvextend -L +100G /dev/mapper/guests--lolguest
377 virsh qemu-monitor-command lolguest info block
378 virsh qemu-monitor-command lolguest info block --hmp
379 virsh qemu-monitor-command lolguest block_resize drive-virtio-disk0 300G --hmp

VM:

480 sgdisk -e /dev/vda # <-- create partition 5
481 gdisk /dev/vda
485 partprobe
487 pvcreate /dev/vda5
488 vgextend ubuntu-vg /dev/vda5
489 lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
490 resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Always watch out for paths, partition numbers and names!

Subsetting CRXN into the real Internet

Recently I looked into deavmi’s project named CRXN where he’s leveraging yggdrasil’s peer-to-peer VPN routing mechanism to build an overlay network using IPv4. Since several of my online services are not connected to yggdrasil, I was wondering if it’s possible to just NAT64 CRXN into IPv6. Sure it worked quite fine, I’ll show you how we pulled that off.

Shitty pro-tip: You can also use this instruction to expose your super secured enterprise network to the public. Instead of yggdrasil you use your corporate VPN.

UPDATE: I had to setup mss clamping. Check the last paragraph how I did it. I also fixed some errata in my systemd service file.

Continue reading “Subsetting CRXN into the real Internet”