Making a test version of Bullseye as a GCE image available?
Niltze [Hello]-
Quoted 15 lines · Theodore Ts'o
Hey, now that we've hit hard freeze for Bullseye, I was hoping that perhaps we could start making a GCE image for Debian-11 availble?
For Debian 10, a few months before it was released, there was a test image that was made available in the debian-cloud-testing project:
% gcloud compute images --project debian-cloud-testing list --no- standard-images
NAME PROJECT FAMILY DEPRECATED STATUS
debian-10-buster-v20191205 debian-cloud-testing debian- 10 READY
debian-sid-v20190812 debian-cloud-testing debian- sid READY
Quoted 8 lines
Perhaps it would make sense to make an image for Bullseye in debian-cloud-testing, so it doesn't accidentally get picked up and used in production environments before Bullseye gets released as Debian Stable?
I've never built a GCE image from scratch before, but if someone wants
to point me at the instructions, I'm happy to give it a try,
You may want to refer to GCE documentation:
< https://cloud.google.com/compute/docs/images/building-custom-os >
And for the Linux guest tools:
<
https://cloud.google.com/compute/docs/images/install-guest-environment
Quoted 1 line
Note, however, that when I built reiser4 SFRN 4 -enabled 5.10.23 kernel for Debian 11 Bullseye a few days ago, I had to use the guest environment for Debian 10 Buster since there was not even a repo for bullseye
< https://github.com/GoogleCloudPlatform/compute-image-packages > to include in /etc/apt/sources.list.d/google-cloud.list
So it seems your request cought the GCE developers, essentially, 'with their pants down' since -- as of today, at least -- there is only an empty Google Bullseye repo on their side.
Notwithstanding, the Buster Linux env. was enough for my Bullseye Debian Reiser -enhanced image for PoC/testing. If you care to give it a spin, you may import the TARred file to create your own image -- from which to generate your own GCE instances -- with a suggestion like this:
gcloud compute images create reiser4-bullseye-v20210325 -- family="debian-11-reiser4" --source-uri g://metztli.it/bullseye_disk_raw.tar.gz
After a successful reference image creation, your may spin up your instance(s), with similar as:
gcloud compute instances create [instance-name] --custom-cpu=[X] -- custom-memory=[Y]GB --metadata-from-file startup-script=./reghostkey.sh --tags [your tag] --image reiser4-bullseye-v20210325 --boot-disk- size=200GB --zone [your-preferred-zone]
where ./reghostkey.sh contains something like:
------------------------------
#! /bin/bash
# Regenerates deleted host keys upon Bullseye GCE image first boot sudo su -
apt-get update
dpkg-reconfigure --frontend=noninteractive openssh-server ##/etc/init.d/ssh restart
systemctl try-reload-or-restart ssh
-----------------------------------------
and the boot image size is 200GB -- indeed, we do not have resizing feature at the moment. I operate with that minimum Google -recommended disk storage capacity when possible.
The GPT hybrid boot image was modified with Gdisk utility and it boots from JFS /boot, has a ~3Gig swap, and the rest is reiser4 SFRN 4.0.2 - formatted. A seven(7) minute overview may be found at either of these two links:
< https://youtu.be/WvieIZNH8KM >
< https://metztli.blog/amatl/aS4 >
As for building your own images, you may start with these excellent bare-bones instructions in this video by a Google dame engineer:
'How to build a custom image for Compute Engine'
< https://youtu.be/YlcR6ZLebTM >
Quoted 7 lines
and would
be willing to help with updating the debian-cloud-testing project.Thanks!!
- Ted
Best Professional Regards.
P.S. Someone tell Mr. Andrew Morton that it is time for him to update his reiser4 Linux source tree hack to version 5.10.x -- as that statement "is so 2006":
'more speculative things which aren't intended for mainline in the short-term, such as new filesystems (eg #reiser4).'
<
https://www.networkworld.com/article/2280848/kernel-space--interview-with-andrew-morton.html
Quoted 1 line
Signature · 15 lines
-- Jose R R http://metztli.it ----------------------------------------------------------------------- ---------------------- Download Metztli Reiser4: Debian Buster w/ Linux 5.9.16 AMD64 ----------------------------------------------------------------------- ---------------------- feats ZSTD compression https://sf.net/projects/metztli-reiser4/ ----------------------------------------------------------------------- ---------------------- or SFRN 5.1.3, Metztli Reiser5 https://sf.net/projects/debian-reiser4/ ----------------------------------------------------------------------- -------------------- Official current Reiser4 resources: https://reiser4.wiki.kernel.org/
Quoted 6 lines · Metztli Information Technology
Note, however, that when I built reiser4 SFRN 4 -enabled 5.10.23 kernel for Debian 11 Bullseye a few days ago, I had to use the guest environment for Debian 10 Buster since there was not even a repo for bullseye
< https://github.com/GoogleCloudPlatform/compute-image-packages > to include in/etc/apt/sources.list.d/google-cloud.list
I just checked, and while the documentation in:
https://github.com/GoogleCloudPlatform/compute-image-packages
hasn't been updated to include Bullseye, but if you follow the pattern given:
Add a source list file /etc/apt/sources.list.d/google-cloud.list and change DIST to either stretch for Debian 9 or buster for Debian 10:
DIST=stretch sudo tee /etc/apt/sources.list.d/google-cloud.list << EOM deb http://packages.cloud.google.com/apt google-compute-engine-${DIST}-stable main deb http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-${DIST} main EOM
And you use "bullseye" for DIST, it appears, that if you look at:
https://packages.cloud.google.com/apt/dists/...
the relevant subdirectories (e.g., google-compute-engine-bullseye-stable) do exist and appear to be populated.
I haven't tried them using them, so I don't know how well they work, but it looks like they do exist and are ready for people to test them out and report issues. (Insert standard caveat of using Debian Testing in production environments, of course. If it breaks, you get to keep both pieces. :-)
Cheers,
- Ted
Quoted 33 lines · Theodore Ts'o
Quoted 9 lines · Metztli Information Technology
Note, however, that when I built reiser4 SFRN 4 -enabled 5.10.23 kernel
for Debian 11 Bullseye a few days ago, I had to use the guest environment for Debian 10 Buster since there was not even a repo for
bullseye
< https://github.com/GoogleCloudPlatform/compute-image-packages > to
include in/etc/apt/sources.list.d/google-cloud.listI just checked, and while the documentation in:
https://github.com/GoogleCloudPlatform/compute-image-packages
hasn't been updated to include Bullseye, but if you follow the pattern
given:Add a source list file
/etc/apt/sources.list.d/google-cloud.listand
change DIST to either stretch for Debian 9 or buster for Debian 10:DIST=stretch
sudo tee/etc/apt/sources.list.d/google-cloud.list<< EOM deb http://packages.cloud.google.com/apt google-compute-engine- ${DIST}-stable main
deb http://packages.cloud.google.com/apt google-cloud-packages- archive-keyring-${DIST} main
EOM
Quoted 7 lines
And you use "bullseye" for DIST, it appears, that if you look at:
https://packages.cloud.google.com/apt/dists/...
the relevant subdirectories (e.g., google-compute-engine-bullseye-stable) do exist and appear to be populated.
Cool. The reiser4 GCE image is not obsolete, though, as the above bullseye repos -- in addition to the buster ones -- were additionally specified in the file:/etc/apt/sources.list.d/google-cloud.list
and, as shown in either of the videos previosly cited [1], can be enabled by simply editing the relevant file, wielding root/sudo privilege, and deleting the leading '#' char(s) from the bullseye directives and commenting out and/or deleting the whole buster line directives.
Once those modifications are made and the file saved, the process of upgrading the Linux Guest Tools in the image is as simple (and typical) as:
apt-get update && apt-get upgrade
That's it!
Caveat: *do not* do a 'dist-upgrade' as I did in the cited videos[1] -- as the running reiser4 enabled Debian kernel cloud image is 5.10.23-2 but the Debian Bullseye team has recently realeased kernel 5.10.24-x
Evidently, doing a 'dist-upgrade' would install the Debian Bullseye kernel cloud image -- which is not enhanced with reiser4 and does not include support for JFS (among others features) in the cloud either.
On the other hand, our reiser4 debian kernel hacks -- baremetal and cloud -- support JFS (with fixes backported from 5.11) as well as HPFS (in case IBM attains enlightenment and decides to release OS/2 as opensource ;-)
Quoted 10 lines
I haven't tried them using them, so I don't know how well they work, but it looks like they do exist and are ready for people to test them out and report issues. (Insert standard caveat of using Debian Testing in production environments, of course. If it breaks, you get to keep both pieces. :-)
Cheers,
- Ted
Best Professional Regards.
[1]
< https://youtu.be/WvieIZNH8KM >
< https://metztli.blog/amatl/aS4 >
Signature · 15 lines
-- Jose R R http://metztli.it ----------------------------------------------------------------------- ---------------------- Download Metztli Reiser4: Debian Buster w/ Linux 5.9.16 AMD64 ----------------------------------------------------------------------- ---------------------- feats ZSTD compression https://sf.net/projects/metztli-reiser4/ ----------------------------------------------------------------------- ---------------------- or SFRN 5.1.3, Metztli Reiser5 https://sf.net/projects/debian-reiser4/ ----------------------------------------------------------------------- -------------------- Official current Reiser4 resources: https://reiser4.wiki.kernel.org/