From: Richard W.M. Jones Date: Thu, 24 Oct 2019 11:35:58 +0000 (+0100) Subject: Continue 6000 slides. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=c5a971245c88339c3097e82a79493f00daef8df8;p=libguestfs-talks.git Continue 6000 slides. --- diff --git a/2019-kvm-forum/.gitignore b/2019-kvm-forum/.gitignore index 58f34aa..a82f9d0 100644 --- a/2019-kvm-forum/.gitignore +++ b/2019-kvm-forum/.gitignore @@ -5,3 +5,5 @@ /6200-vddk.d/fedora.vmdk.xz /6200-vddk.d/fedora.vmdk.lck /6200-vddk.d/mp +/6400-boot.d/qemu.sh +/6400-boot.d/root diff --git a/2019-kvm-forum/6100-vddk-introduction.html b/2019-kvm-forum/6100-vddk-introduction.html new file mode 100644 index 0000000..fed808f --- /dev/null +++ b/2019-kvm-forum/6100-vddk-introduction.html @@ -0,0 +1,15 @@ + + + + +

VDDK

+ +
+ +
+ + +

+Server icon by RRZEicons +https://commons.wikimedia.org/wiki/File:Server-multiple.svg +

diff --git a/2019-kvm-forum/6100-vmware.png b/2019-kvm-forum/6100-vmware.png new file mode 100644 index 0000000..7d83327 Binary files /dev/null and b/2019-kvm-forum/6100-vmware.png differ diff --git a/2019-kvm-forum/6100-vmware.svg b/2019-kvm-forum/6100-vmware.svg new file mode 100644 index 0000000..974202c --- /dev/null +++ b/2019-kvm-forum/6100-vmware.svg @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + nbdkit +VDDK + + + proprietary VMware software and files + + + + nbdsh + + + + guestfish andlibguestfs + + + + nbdfuse + + + + + diff --git a/2019-kvm-forum/6400-boot.d/.exists b/2019-kvm-forum/6400-boot.d/.exists new file mode 100644 index 0000000..e69de29 diff --git a/2019-kvm-forum/6400-boot.term b/2019-kvm-forum/6400-boot.term new file mode 100755 index 0000000..0680a08 --- /dev/null +++ b/2019-kvm-forum/6400-boot.term @@ -0,0 +1,25 @@ +#!/bin/bash - + +source functions + +# Title. +export title="Tiny VMs" + +kernel="$(ls -1vr /boot/vmlinuz-* | head -1)" +echo "qemu-kvm -display none -kernel $kernel -drive file=nbd:unix:\$unixsocket,snapshot=on -append 'console=ttyS0 root=/dev/sda1 rw' -serial stdio" > 6400-boot.d/qemu.sh +chmod +x 6400-boot.d/qemu.sh + +# History. +remember 'mkdir -p root/dev root/sbin root/bin root/usr/sbin root/usr/bin' +remember 'sudo mknod root/dev/console c 5 1' +remember 'cp /sbin/busybox root/sbin/' +remember 'ln root/sbin/busybox root/bin/ls' +remember 'ln root/sbin/busybox root/bin/sh' +remember 'ln root/sbin/busybox root/bin/init' +remember 'ls -lR root' +remember "nbdkit -U - linuxdisk root --run 'export unixsocket; ./qemu.sh'" + +./restore +cd 6400-boot.d +terminal +./restore diff --git a/2019-kvm-forum/6600-data-disks.sh b/2019-kvm-forum/6600-data-disks.sh new file mode 100755 index 0000000..cbc7376 --- /dev/null +++ b/2019-kvm-forum/6600-data-disks.sh @@ -0,0 +1,3 @@ +#!/bin/bash - + +xfce4-terminal --disable-server -x ./6600-next diff --git a/2019-kvm-forum/6600-next b/2019-kvm-forum/6600-next new file mode 100755 index 0000000..c1bf450 --- /dev/null +++ b/2019-kvm-forum/6600-next @@ -0,0 +1,15 @@ +#!/bin/bash - + +source functions + +# Title. +export title="Data disks" + +# History. +remember 'nbdkit data data="49 192 49 219 185 255 0 190 0 1 191 254 255 189 28 9 176 19 205 16 104 0 160 7 0 198 142 234 186 200 3 137 200 238 66 238 208 232 238 208 232 238 226 240 49 255 214 101 134 5 8 192 117 8 107 199 255 193 248 9 12 64 170 9 255 117 235 140 196 228 64 12 1 107 192 85 128 204 128 80 9 228 120 245 177 255 81 140 198 133 100 6 116 104 184 255 255 137 243 140 199 57 247 116 32 133 101 6 116 27 87 86 80 49 237 177 3 173 43 5 247 232 1 213 175 226 246 88 94 95 57 232 114 3 149 137 251 131 239 8 120 215 137 68 6 177 3 173 43 7 209 248 107 208 128 112 249 107 237 85 137 234 0 240 41 68 254 67 67 226 232 131 238 6 131 108 2 176 139 68 4 193 232 11 89 81 128 249 208 114 4 122 2 4 160 232 18 0 131 238 8 120 142 89 228 96 60 1 224 132 15 133 86 255 205 32 139 28 193 251 7 15 190 108 3 191 9 0 193 233 5 41 207 137 250 137 249 96 1 213 1 203 105 253 64 1 141 185 226 159 101 56 5 115 3 101 136 5 97 226 232 74 117 227 195 @0x1fe 0x55 0xAA" --run "qemu-system-i386 -hda \\$nbd"' + +echo "Demo Credit: Jan Kadlec (Řrřola)" +echo "https://www.pouet.net/prod.php?which=82904" +echo + +terminal diff --git a/2019-kvm-forum/6800-next b/2019-kvm-forum/6800-next new file mode 100755 index 0000000..769ba23 --- /dev/null +++ b/2019-kvm-forum/6800-next @@ -0,0 +1,22 @@ +#!/bin/bash - + +source functions + +# Title. +export title="Reflection" + +# History. +remember 'nbdkit info base64exportname' + +for program in 'uBMAzRD8uACgjtiOwLQEo5D8McC5SH4x//OriwVAQKuIxJK4AByruJjmq7goFLsQJbELq4PAFpOr/sST4vUFjhWA/1x167+g1LEFuAQL6IUBg8c84vW+lvyAfAIgci3+xYD9N3SsrZetPCh0CzwgdQTGRP4o6F4Bgf5y/XXbiPAsAnLSNAGIwojG68qAdAIIRYPlB1JWVXUOtADNGjsWjPx09okWjPy+gPy5BACtPUABl3JD6BcBge9CAYoFLCByKVZXtAT25AHGrZfGBCC4CA7oAgFfXusfrQnAdC09APCXcxTo6ACBxz4BuAwMiXz+gL1AAQt1BTHAiUT+gD0cdQbHBpL8OAroxgDizL6S/K0IwHQMBAh1CLQc/g6R/HhKiUT+izzorgB1LrQCzRaoBHQCT0+oCHQCR0eoA3QNgz6A/AB1Bo1FCKOA/Jc9/uV0Bz0y53QCiQRdXlqLBID6AXYKBYACPYDUchvNIEhIcgODwARQ0eixoPbx/syA/JRYcgOAzhaJBAUGD5O5AwDkQDz8cg2/gvyDPQB0A6/i+Ikd6cL+GBg8JDx+/yQAgEIYEEiCAQC9234kPGbDADxa/6U8ZmYAA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ty7/1bco/9W3NP/V65t0A+hO/4n4MdK5QAH38YjUCMSA5Ad1WrU3OG3/EOQ4rQAKEOQ4bQgQ5DitwP4Q5IT/dCv2wwV0DDsWAPqwAnIMsAjrCDwAsARyArABhMR1I4jYhMR1HdDodfiwCOv0iRYA+i6iOn2g/vmExHUGINx0GojYiET+qAW7gP11A7sCAKgMdAL32wHfiXz8wwBC5+f//348PH788PD8fjz//////////zx+///n50IAPH7/////fjw8ftvb////pQAAABgYAAAAPH4/Dw8/fjwAAP5/AkICQv9/QEJ+fgICfwLAA0ACfwJAAv5/AkL/e0AKfn4CQP9/AACYqpBQmGSgPKhQAQAACAACAAAEVao=' +do + remember "qemu-system-i386 -drive snapshot=on,file.driver=nbd,file.host=localhost,file.port=10809,file.export=$program" +done + +echo "Demo Credit: Oscar Toledo G." +echo "https://github.com/nanochess" +echo + +terminal diff --git a/2019-kvm-forum/6800-reflection.sh b/2019-kvm-forum/6800-reflection.sh new file mode 100755 index 0000000..29fe3da --- /dev/null +++ b/2019-kvm-forum/6800-reflection.sh @@ -0,0 +1,3 @@ +#!/bin/bash - + +xfce4-terminal --disable-server -x ./6800-next diff --git a/2019-kvm-forum/restore b/2019-kvm-forum/restore index 0af856d..c25a368 100755 --- a/2019-kvm-forum/restore +++ b/2019-kvm-forum/restore @@ -2,9 +2,13 @@ # Only do this on Rich's laptop. if [ "$LOGNAME" = "rjones" ]; then + if [ "$talkdir" = "" ]; then exit 1; fi + fusermount -u $talkdir/6200-vddk.d/mp >& /dev/null - sleep 0.5 - killall nbdkit >& /dev/null + + sudo rm -rf $talkdir/6400-boot.d/root + + sleep 0.5; killall nbdkit >& /dev/null fi exit 0