Blame
Date:
Wed May 25 04:00:23 2022
UTC
Message:
Daily backup
11
2021-12-17
text=(:title Create Guix ISO for VMM:)%0a%0a!! Download and verify ISO%0a%0a[@%0a$ ftp https://ftp.gnu.org/gnu/guix/guix-system-install-1.3.0.x86_64-linux.iso%0a$ ftp https://ftp.gnu.org/gnu/guix/guix-system-install-1.3.0.x86_64-linux.iso.sig%0a@]%0a%0aIf gpg is not already installed:%0a[@%0a$ doas pkg_add gnupg%0a@]%0a%0a[@%0a$ gpg --keyserver keyserver.ubuntu.com --recv-keys 27D586A4F8900854329FF09F1260E46482E63562%0a$ gpg --verify guix-system-install-1.3.0.x86_64-linux.iso.sig guix-system-install-1.3.0.x86_64-linux.iso%0agpg: Signature made Tue May 11 18:30:41 2021 CDT%0agpg: using RSA key 27D586A4F8900854329FF09F1260E46482E63562%0agpg: Good signature from "Maxim Cournoyer %3cmaxim.cournoyer@savoirfairelinux.com>" [expired]%0agpg: aka "Maxim Cournoyer %3cmaxim.cournoyer@gmail.com>" [expired]%0agpg: Note: This key has expired!%0aPrimary key fingerprint: 27D5 86A4 F890 0854 329F F09F 1260 E464 82E6 3562%0a@]%0a
15
2021-12-17
diff:1629133951:1629133621:=24a25,127%0a> %0a> We run these steps as root:%0a> %0a> [@%0a> # vnconfig vnd0 debian-11.0.0-amd64-netinst.iso%0a> # mkdir old new%0a> # mount /dev/vnd0c old%0a> # cp -R old/* new%0a> # cp -R old/.disk new%0a> # umount old%0a> # vnconfig -u vnd0%0a> @]%0a> %0a> !! Make Changes%0a> %0a> Here are the diffs of the changes we make:%0a> %0a> [@%0a> ============%0a> %0a> --- debian/old/isolinux/isolinux.cfg Sat Jun 19 18:13:41 2021%0a> +++ debian/new/isolinux/isolinux.cfg Fri Jul 2 15:55:57 2021%0a> @@ -1,5 +1,7 @@%0a> # D-I config version 2.0%0a> # search path for the c32 support libraries (libcom32, libutil etc.)%0a> +serial 0 115200%0a> +console 0%0a> path%0a> include menu.cfg%0a> default vesamenu.c32%0a> --- debian/old/isolinux/txt.cfg Sat Jun 19 18:13:41 2021%0a> +++ debian/new/isolinux/txt.cfg Fri Jul 2 15:59:10 2021%0a> @@ -1,4 +1,4 @@%0a> label install%0a> menu label ^Install%0a> kernel /install.amd/vmlinuz%0a> - append vga=788 initrd=/install.amd/initrd.gz --- quiet%0a> + append vga=normal initrd=/install.amd/initrd.gz --- console=ttyS0,115200n8%0a> --- debian/old/isolinux/adtxt.cfg Sat Jun 19 18:13:41 2021%0a> +++ debian/new/isolinux/adtxt.cfg Fri Jul 2 15:59:37 2021%0a> @@ -1,9 +1,9 @@%0a> label expert%0a> menu label E^xpert install%0a> kernel /install.amd/vmlinuz%0a> - append priority=low vga=788 initrd=/install.amd/initrd.gz ---%0a> + append priority=low vga=normal initrd=/install.amd/initrd.gz --- console=ttyS0,115200n8%0a> include rqtxt.cfg%0a> label auto%0a> menu label ^Automated install%0a> kernel /install.amd/vmlinuz%0a> - append auto=true priority=critical vga=788 initrd=/install.amd/initrd.gz --- quiet%0a> + append auto=true priority=critical vga=normal initrd=/install.amd/initrd.gz --- console=ttyS0,115200n8%0a> @]%0a> %0a> !! Generate ISO%0a> %0a> [@%0a> # cat /dev/zero | tr '\000' '\220' | dd of=isofloppy.bin bs=512 count=2880%0a> # dd if=isolinux.bin of=isofloppy.bin conv=notrunc%0a> # mv isofloppy.bin isolinux.bin%0a> # mkhybrid -a -R -T -L -l -d -D -N -o debian-11.0.0-vmm.iso \%0a> -A "Debian 11.0.0 amd64 netinst" \%0a> -P "Copyright (C) 1997-2021 SPI and others" \%0a> -p "Aaron Lin %3cjrmu@ircnow.org>" \%0a> -V "Debian/amd64 11.0.0 netinst" \%0a> -b isolinux/isolinux.bin -c boot.cat \%0a> new%0a> @]%0a> %0a> (:if false:)%0a> # doas dd if=/dev/zero of=isofloppy.bin bs=512 count=2880%0a> %0a> [@%0a> # pkg_add xorriso%0a> # xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -partition_offset 16 -A "Debian/VMM" -b isolinux/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o debian-11.0.0-vmm.iso ./new%0a> @]%0a> (:ifend:)%0a> %0a> %0a> !! VMM%0a> %0a> In /etc/vm.conf, we update the cdrom image:%0a> %0a> [@%0a> vm "username" {%0a> owner username%0a> memory 1024M%0a> cdrom "/home/iso/debian-11.0.0-vmm.iso"%0a> disk /home/username/username.qcow2%0a> interface { %0a> locked lladdr aa:bb:cc:dd:ee:ff%0a> switch "switch0"%0a> }%0a> }%0a> @]%0a> %0a> (:ifend false:)%0a> %0a> # Install%0a> %0a> Install grub into /dev/vda%0a> %0a> Ideas taken from: https://giocher.com/words/2018/ubuntu-on-openbsd-vmm/%0a
18
2021-12-17
diff:1629133621:1629133576:=18,23d17%0a%3c gpg: Signature made Tue May 11 18:30:41 2021 CDT%0a%3c gpg: using RSA key 27D586A4F8900854329FF09F1260E46482E63562%0a%3c gpg: Good signature from "Maxim Cournoyer %3cmaxim.cournoyer@savoirfairelinux.com>" [expired]%0a%3c gpg: aka "Maxim Cournoyer %3cmaxim.cournoyer@gmail.com>" [expired]%0a%3c gpg: Note: This key has expired!%0a%3c Primary key fingerprint: 27D5 86A4 F890 0854 329F F09F 1260 E464 82E6 3562%0a
21
2021-12-17
diff:1629133576:1629132514:=16,17c16,23%0a%3c $ gpg --keyserver keyserver.ubuntu.com --recv-keys 27D586A4F8900854329FF09F1260E46482E63562%0a%3c $ gpg --verify guix-system-install-1.3.0.x86_64-linux.iso.sig guix-system-install-1.3.0.x86_64-linux.iso%0a---%0a> $ gpg --keyserver keyserver.ubuntu.com --recv-keys DF9B9C49EAA9298432589D76DA87E80D6294BE9B%0a> $ gpg --verify SHA512SUMS.sign SHA512SUMS%0a> gpg: Signature made Sat Aug 14 15:22:04 2021 CDT %0a> gpg: using RSA key DF9B9C49EAA9298432589D76DA87E80D6294BE9B %0a> gpg: Good signature from "Debian CD signing key %3cdebian-cd@lists.debian.org>" [unknown] %0a> gpg: WARNING: This key is not certified with a trusted signature! %0a> gpg: There is no indication that the signature belongs to the owner. %0a> Primary key fingerprint: DF9B 9C49 EAA9 2984 3258 9D76 DA87 E80D 6294 BE9B %0a
24
2021-12-17
diff:1629132514:1629132514:=1,127d0%0a%3c (:title Create Guix ISO for VMM:)%0a%3c %0a%3c !! Download and verify ISO%0a%3c %0a%3c [@%0a%3c $ ftp https://ftp.gnu.org/gnu/guix/guix-system-install-1.3.0.x86_64-linux.iso%0a%3c $ ftp https://ftp.gnu.org/gnu/guix/guix-system-install-1.3.0.x86_64-linux.iso.sig%0a%3c @]%0a%3c %0a%3c If gpg is not already installed:%0a%3c [@%0a%3c $ doas pkg_add gnupg%0a%3c @]%0a%3c %0a%3c [@%0a%3c $ gpg --keyserver keyserver.ubuntu.com --recv-keys DF9B9C49EAA9298432589D76DA87E80D6294BE9B%0a%3c $ gpg --verify SHA512SUMS.sign SHA512SUMS%0a%3c gpg: Signature made Sat Aug 14 15:22:04 2021 CDT %0a%3c gpg: using RSA key DF9B9C49EAA9298432589D76DA87E80D6294BE9B %0a%3c gpg: Good signature from "Debian CD signing key %3cdebian-cd@lists.debian.org>" [unknown] %0a%3c gpg: WARNING: This key is not certified with a trusted signature! %0a%3c gpg: There is no indication that the signature belongs to the owner. %0a%3c Primary key fingerprint: DF9B 9C49 EAA9 2984 3258 9D76 DA87 E80D 6294 BE9B %0a%3c @]%0a%3c %0a%3c We run these steps as root:%0a%3c %0a%3c [@%0a%3c # vnconfig vnd0 debian-11.0.0-amd64-netinst.iso%0a%3c # mkdir old new%0a%3c # mount /dev/vnd0c old%0a%3c # cp -R old/* new%0a%3c # cp -R old/.disk new%0a%3c # umount old%0a%3c # vnconfig -u vnd0%0a%3c @]%0a%3c %0a%3c !! Make Changes%0a%3c %0a%3c Here are the diffs of the changes we make:%0a%3c %0a%3c [@%0a%3c ============%0a%3c %0a%3c --- debian/old/isolinux/isolinux.cfg Sat Jun 19 18:13:41 2021%0a%3c +++ debian/new/isolinux/isolinux.cfg Fri Jul 2 15:55:57 2021%0a%3c @@ -1,5 +1,7 @@%0a%3c # D-I config version 2.0%0a%3c # search path for the c32 support libraries (libcom32, libutil etc.)%0a%3c +serial 0 115200%0a%3c +console 0%0a%3c path%0a%3c include menu.cfg%0a%3c default vesamenu.c32%0a%3c --- debian/old/isolinux/txt.cfg Sat Jun 19 18:13:41 2021%0a%3c +++ debian/new/isolinux/txt.cfg Fri Jul 2 15:59:10 2021%0a%3c @@ -1,4 +1,4 @@%0a%3c label install%0a%3c menu label ^Install%0a%3c kernel /install.amd/vmlinuz%0a%3c - append vga=788 initrd=/install.amd/initrd.gz --- quiet%0a%3c + append vga=normal initrd=/install.amd/initrd.gz --- console=ttyS0,115200n8%0a%3c --- debian/old/isolinux/adtxt.cfg Sat Jun 19 18:13:41 2021%0a%3c +++ debian/new/isolinux/adtxt.cfg Fri Jul 2 15:59:37 2021%0a%3c @@ -1,9 +1,9 @@%0a%3c label expert%0a%3c menu label E^xpert install%0a%3c kernel /install.amd/vmlinuz%0a%3c - append priority=low vga=788 initrd=/install.amd/initrd.gz ---%0a%3c + append priority=low vga=normal initrd=/install.amd/initrd.gz --- console=ttyS0,115200n8%0a%3c include rqtxt.cfg%0a%3c label auto%0a%3c menu label ^Automated install%0a%3c kernel /install.amd/vmlinuz%0a%3c - append auto=true priority=critical vga=788 initrd=/install.amd/initrd.gz --- quiet%0a%3c + append auto=true priority=critical vga=normal initrd=/install.amd/initrd.gz --- console=ttyS0,115200n8%0a%3c @]%0a%3c %0a%3c !! Generate ISO%0a%3c %0a%3c [@%0a%3c # cat /dev/zero | tr '\000' '\220' | dd of=isofloppy.bin bs=512 count=2880%0a%3c # dd if=isolinux.bin of=isofloppy.bin conv=notrunc%0a%3c # mv isofloppy.bin isolinux.bin%0a%3c # mkhybrid -a -R -T -L -l -d -D -N -o debian-11.0.0-vmm.iso \%0a%3c -A "Debian 11.0.0 amd64 netinst" \%0a%3c -P "Copyright (C) 1997-2021 SPI and others" \%0a%3c -p "Aaron Lin %3cjrmu@ircnow.org>" \%0a%3c -V "Debian/amd64 11.0.0 netinst" \%0a%3c -b isolinux/isolinux.bin -c boot.cat \%0a%3c new%0a%3c @]%0a%3c %0a%3c (:if false:)%0a%3c # doas dd if=/dev/zero of=isofloppy.bin bs=512 count=2880%0a%3c %0a%3c [@%0a%3c # pkg_add xorriso%0a%3c # xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -partition_offset 16 -A "Debian/VMM" -b isolinux/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o debian-11.0.0-vmm.iso ./new%0a%3c @]%0a%3c (:ifend:)%0a%3c %0a%3c %0a%3c !! VMM%0a%3c %0a%3c In /etc/vm.conf, we update the cdrom image:%0a%3c %0a%3c [@%0a%3c vm "username" {%0a%3c owner username%0a%3c memory 1024M%0a%3c cdrom "/home/iso/debian-11.0.0-vmm.iso"%0a%3c disk /home/username/username.qcow2%0a%3c interface { %0a%3c locked lladdr aa:bb:cc:dd:ee:ff%0a%3c switch "switch0"%0a%3c }%0a%3c }%0a%3c @]%0a%3c %0a%3c (:ifend false:)%0a%3c %0a%3c # Install%0a%3c %0a%3c Install grub into /dev/vda%0a%3c %0a%3c Ideas taken from: https://giocher.com/words/2018/ubuntu-on-openbsd-vmm/%0a