<h1>Run RISC-V VMs from remote compressed images</h1>
<pre>
-nbdkit --filter=xz curl \
- https://dl.fedoraproject.org/pub/alt/risc-v/disk-images/fedora/rawhide/20190703.n.0/Developer/Fedora-Developer-Rawhide-20190703.n.0-sda.raw.xz
+nbdkit --filter=cow --filter=xz curl \
+ https://dl.fedoraproject.org/pub/alt/risc-v/
+ disk-images/fedora/rawhide/20190703.n.0/
+ Developer/Fedora-Developer-Rawhide-20190703.n.0-sda.raw.xz
+
+qemu-system-riscv64 \
+ -nographic \
+ -machine virt \
+ -smp 8 \
+ -m 2G \
+ <b>-drive file.driver=nbd,file.host=localhost,
+ file.port=10809</b>
</pre>
<h1>nbdkit sh plugin for testing</h1>
-<iframe width="676" height="380" src="https://www.youtube.com/embed/9E5A608xJG0" frameborder="0"></iframe>
-
-<pre>
+<table width="90%">
+<tr><td width="40%">
+<pre style="font-size: 14pt;">
<b>#!/bin/bash</b>
<b>case</b> "$1" <b>in</b>
<b>get_size)</b> echo 64M <b>;;</b>
<b>pread</b>)
- if [ $4 -le 100000 ] && [ $(( $4+$3 )) -gt 100000 ]; then
+ if [ $4 -le 100000 ] &&
+ [ $(( $4+$3 )) -gt 100000 ]; then
echo EIO Bad block >&2
exit 1
else
<b>*)</b> exit 2 <b>;;</b>
<b>esac</b>
</pre>
+</td>
+<td width="10%"/>
+<td width="40%">
+<iframe src="https://www.youtube.com/embed/9E5A608xJG0" frameborder="0"></iframe>
+</td>
+</tr>
+<tr>
+<td colspan="3">
+On Youtube:
+<i><q>Better loop mounts with NBD —
+Take your loop mounts to the next level with nbdkit</q></i>
+</td>
+</tr>
+</table>