Misc updates to 2xxx slides.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 25 Oct 2019 09:56:39 +0000 (10:56 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 25 Oct 2019 09:56:39 +0000 (10:56 +0100)
2019-kvm-forum/2500-nbdkit-linuxdisk-remote-boot.html
2019-kvm-forum/2600-remote-boot-risc-v.html
2019-kvm-forum/2700-nbdkit-sh-for-testing.html

index 0c7acb0..0a618bd 100644 (file)
@@ -12,4 +12,7 @@ kernel root=UUID=...  rw
        rootfstype=ext4
        rootdelay=5 rootwait
        ip=dhcp console=ttyS0
+
+qemu-nbd -t -x / -f raw /dev/rhel/rhel1
+nbdkit linuxdisk ~/root
 </pre>
index f6be8b7..ff13890 100644 (file)
@@ -5,6 +5,16 @@
 <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>
index 36e77dc..7b1826d 100644 (file)
@@ -4,15 +4,16 @@
 
 <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 ] &amp;&amp; [ $(( $4+$3 )) -gt 100000 ]; then
+        if [ $4 -le 100000 ] &amp;&amp;
+           [ $(( $4+$3 )) -gt 100000 ]; then
             echo EIO Bad block >&amp;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 &mdash;
+Take your loop mounts to the next level with nbdkit</q></i>
+</td>
+</tr>
+</table>