diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vapache b/source/resources/apps/qemu/forksand-kvm-ppc64el-vapache new file mode 100755 index 0000000..4d32cb6 --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vapache @@ -0,0 +1,53 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2004,server,nowait \ + -monitor telnet:127.0.0.1:2005,server,nowait \ + -vga none \ + -daemonize \ + -runas vapache \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:24 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 2 \ + -m 4096 \ + -name vapache \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vapache/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vapache/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vapache/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vapache/home.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vapache/varwww.img + +exit + -net nic,model=virtio \ + -net user,hostfwd=tcp:192.168.110.22:50019-:22,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443 \ + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-apache-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-apache-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/apache/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/apache/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/apache/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/apache/home.img 1G +# qemu-img create -f qcow2 /srv/KVM/apache/varwww.img 1G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/apache/root.img +10G +# qemu-img resize /srv/KVM/apache/home.img +50G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vbullseye b/source/resources/apps/qemu/forksand-kvm-ppc64el-vbullseye new file mode 100755 index 0000000..e4bdfdd --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vbullseye @@ -0,0 +1,48 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2002,server,nowait \ + -monitor telnet:127.0.0.1:2003,server,nowait \ + -vga none \ + -runas vbullseye \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:58 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 4 \ + -m 4096 \ + -name vbullseye \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbullseye/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbullseye/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbullseye/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbullseye/home.img + +exit + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-bullseye-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-bullseye-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/bullseye/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/bullseye/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/bullseye/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/bullseye/home.img 1G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/bullseye/root.img +10G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vbuster b/source/resources/apps/qemu/forksand-kvm-ppc64el-vbuster new file mode 100755 index 0000000..e00a48c --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vbuster @@ -0,0 +1,40 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2000,server,nowait \ + -monitor telnet:127.0.0.1:2001,server,nowait \ + -vga none \ + -runas vbuster \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:56 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 4 \ + -m 4096 \ + -name vbuster \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbuster/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbuster/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vbuster/root.img + +exit + +# Install +# -boot d \ +# -cdrom /srv/devel/distros/debian/debian-apache-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/kvm/vbuster/boot.img 256M +# qemu-img create -f qcow2 /srv/kvm/vbuster/swap.img 128M +# qemu-img create -f qcow2 /srv/kvm/vbuster/root.img 2G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/kvm/vbuster/root.img +10G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vcartesi b/source/resources/apps/qemu/forksand-kvm-ppc64el-vcartesi new file mode 100755 index 0000000..7a83648 --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vcartesi @@ -0,0 +1,51 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2014,server,nowait \ + -monitor telnet:127.0.0.1:2015,server,nowait \ + -vga none \ + -runas vcartesi \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:14 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 16 \ + -m 4096 \ + -name vcartesi \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vcartesi/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vcartesi/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vcartesi/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vcartesi/home.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vcartesi/docker.img + +exit + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-cartesi-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-cartesi-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/cartesi/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/cartesi/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/cartesi/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/cartesi/home.img 1G +# qemu-img create -f qcow2 /srv/KVM/cartesi/docker.img 20G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/cartesi/root.img +10G +# qemu-img resize /srv/KVM/cartesi/home.img +4G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vdogecoin b/source/resources/apps/qemu/forksand-kvm-ppc64el-vdogecoin new file mode 100755 index 0000000..f8c9a0f --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vdogecoin @@ -0,0 +1,50 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2008,server,nowait \ + -monitor telnet:127.0.0.1:2009,server,nowait \ + -vga none \ + -runas vdogecoin \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:28 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 4 \ + -m 16384 \ + -name vdogecoin \ + -virtfs local,path=/srv/bits/dogecoin,mount_tag=dogecoin,security_model=mapped,id=dogecoin \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vdogecoin/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vdogecoin/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vdogecoin/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vdogecoin/home.img + +exit + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-dogecoin-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-dogecoin-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/dogecoin/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/dogecoin/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/dogecoin/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/dogecoin/home.img 1G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/dogecoin/root.img +10G +# qemu-img resize /srv/KVM/dogecoin/home.img +50G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vethereum b/source/resources/apps/qemu/forksand-kvm-ppc64el-vethereum new file mode 100755 index 0000000..cfdd33f --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vethereum @@ -0,0 +1,51 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2012,server,nowait \ + -monitor telnet:127.0.0.1:2013,server,nowait \ + -vga none \ + -runas vethereum \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:12 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 8 \ + -m 32768 \ + -name vethereum \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vethereum/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vethereum/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vethereum/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vethereum/home.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vethereum/ethereum.img + +exit + -virtfs local,path=/srv/bits/ethereum,mount_tag=ethereum,security_model=mapped,id=ethereum \ + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-ethereum-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-ethereum-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/ethereum/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/ethereum/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/ethereum/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/ethereum/home.img 1G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/ethereum/root.img +10G +# qemu-img resize /srv/KVM/ethereum/home.img +50G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vmariadb b/source/resources/apps/qemu/forksand-kvm-ppc64el-vmariadb new file mode 100755 index 0000000..4765692 --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vmariadb @@ -0,0 +1,51 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2010,server,nowait \ + -monitor telnet:127.0.0.1:2011,server,nowait \ + -vga none \ + -runas vmariadb \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:10 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 8 \ + -m 16384 \ + -name vmariadb \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmariadb/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmariadb/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmariadb/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmariadb/home.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmariadb/varlibmysql.img + +exit + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-mariadb-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-mariadb-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/mariadb/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/mariadb/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/mariadb/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/mariadb/home.img 1G +# qemu-img create -f qcow2 /srv/KVM/mariadb/varlibmysql.img 2G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/mariadb/root.img +10G +# qemu-img resize /srv/KVM/mariadb/home.img +50G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vmonero b/source/resources/apps/qemu/forksand-kvm-ppc64el-vmonero new file mode 100755 index 0000000..3e24bab --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vmonero @@ -0,0 +1,52 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2006,server,nowait \ + -monitor telnet:127.0.0.1:2007,server,nowait \ + -vga none \ + -runas vmonero \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:26 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 16 \ + -m 16384 \ + -name vmonero \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmonero/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmonero/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmonero/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vmonero/home.img + +exit + +# monero can't us this? + -virtfs local,path=/srv/bits/monero,mount_tag=monero,security_model=mapped,id=monero \ + + -nographic \ + -daemonize \ + -display none \ + -daemonize \ + -runas jebba \ + -cdrom /srv/devel/distros/debian/debian-monero-mini.iso \ + -boot d \ + -cdrom /srv/devel/distros/debian/debian-monero-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/KVM/monero/boot.img 256M +# qemu-img create -f qcow2 /srv/KVM/monero/swap.img 128M +# qemu-img create -f qcow2 /srv/KVM/monero/root.img 2G +# qemu-img create -f qcow2 /srv/KVM/monero/home.img 200G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/KVM/monero/root.img +10G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV + +#qemu-system-ppc64le \ +# -net user,hostfwd=tcp:192.168.110.22:80-:80,hostfwd=tcp:192.168.110.22:443-:443,hostfwd=tcp:192.168.110.22:28208-:22 \ diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vriscv64 b/source/resources/apps/qemu/forksand-kvm-ppc64el-vriscv64 new file mode 100755 index 0000000..a0ec6b6 --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vriscv64 @@ -0,0 +1,70 @@ +#!/bin/bash + +set -x + +sudo qemu-system-riscv64 \ + -serial telnet:localhost:2016,server,nowait \ + -monitor telnet:127.0.0.1:2017,server,nowait \ + -vga none \ + -runas vriscv64-sid \ + -daemonize \ + -display none \ + -M virt \ + -smp 8 \ + -m 8192 \ + -name vriscv64-sid \ + -device virtio-net-device,netdev=usernet -netdev user,id=usernet,hostfwd=tcp::22549-:22 \ + -kernel /srv/kvm/vriscv64-sid/vmlinux \ + -initrd /srv/kvm/vriscv64-sid/initrd.img \ + -append "root=/dev/vda1 rw ipv6.disable=1 selinux=0" \ + -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf \ + -object rng-random,filename=/dev/urandom,id=rng0 \ + -device virtio-rng-device,rng=rng0 \ + -device virtio-blk-device,drive=hd0 \ + -drive file=/srv/kvm/vriscv64-sid/root.img,format=qcow2,cache=writeback,discard=on,id=hd0 + + +exit + -append "root=/dev/vda1 rw ipv6.disable=1 selinux=0" \ + +# To update kernel: +# * update guest debian. +# * copy guest kernel & initrd to host +# scp -p vriscv64-sid:/boot/vmlinux-5.10.0-5-riscv64 /srv/kvm/vriscv64-sid/vmlinux +# scp -p vriscv64-sid:/boot/initrd.img-5.10.0-5-riscv64 /srv/kvm/vriscv64-sid/initrd.img +# chown vriscv64-sid:vriscv64-sid /srv/kvm/vriscv64-sid/vmlinux /srv/kvm/vriscv64-sid/initrd.img +# chmod 400 /srv/kvm/vriscv64-sid/vmlinux chmod 400 /srv/kvm/vriscv64-sid/initrd.img + +# kernel, initrd.img for install: +# https://cdimage.debian.org/cdimage/ports/snapshots +# https://cdimage.debian.org/cdimage/ports/debian-installer/2020-12-03/riscv64/debian-installer-images_20201202_riscv64.tar.gz + + -nic tap,model=virtio,mac=52:54:00:12:34:16 \ + -kernel /home/jebba/devel/distros/debian/riscv/vmlinux \ + -initrd /home/jebba/devel/distros/debian/riscv/initrd.img \ + + -device virtio-net-device,netdev=usernet -netdev user,id=usernet,hostfwd=tcp::22549-:22 \ + + -append "root=/dev/vda1 rw" \ + -daemonize \ + -display none \ + -nographic \ + -display none \ + -kernel /home/jebba/devel/distros/debian/riscv/debian-installer-images/installer-riscv64/20201202/images/netboot/vmlinux \ + -initrd /home/jebba/devel/distros/debian/riscv/debian-installer-images/installer-riscv64/20201202/images/netboot/initrd.gz \ + -net nic,model=virtio \ + -net user,hostfwd=tcp:192.168.110.22:22549-:22 \ + -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \ + -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf \ + -object rng-random,filename=/dev/urandom,id=rng0 \ + -device virtio-rng-device,rng=rng0 + -M virt \ + -device virtio-net-device,netdev=usernet -netdev user,id=usernet,hostfwd=tcp::22549-:22 \ + -M sifive_u \ +# IMAGE +# qemu-img create -f qcow2 /home/jebba/KVM/riscv64-sid/boot.img 256M +# qemu-img create -f qcow2 /home/jebba/KVM/riscv64-sid/swap.img 128M +# qemu-img create -f qcow2 /home/jebba/KVM/riscv64-sid/root.img 2G +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /home/jebba/KVM/riscv64-sid/root.img +10G