More NetBSD-current fun at Linveo!
Hello!
- VPS Share
Would anybody be interested in sharing my free Linveo AMD Ryzen 9 9950X NetBSD VPS in Arizona? It's open to friends who want to help me learn.
- Goals
Tonight I decided to (1) try some method of rolling release updates of NetBSD pkgsrc. For example, please see pkg_rolling-replace (mailing list, 2008 introduction), please see also the man page. I could use help figuring out the best method of rolling updates with pkgsrc.
Also, I think it might be fun to (2) see whether I can get 9vx working. I could use help with the code and the compiling on 64 bit NetBSD of the vx32 sandboxing library used by 9vx.
Maybe I could (3) try the X Windows installation from pkgsrc instead of the xsrc version, but I haven't looked into pkgsrc X, very much as yet.
- Procedure
I'm beginning by wiping and reinstalling my NetBSD-current VPS at Linveo. The reinstall is from Linveo vmcontrol, which offers @cmeerw's
NetBSD 10.1 image.
The process is installing NetBSD 10.1, then, with changes appropriate for 10.1, following the simple NetBSD 10 to NetBSD-current steps in Quick Recipe For Self-Compiled NetBSD-current On A Linveo VPS.
linveo# ftp -o - https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.1/amd64/binary/sets/comp.tar.xz | progress -z tar xpf - -C /
linveo# which gcc
/usr/bin/gcc
linveo# cd /usr
linveo# mkdir obj src tools
linveo# mkdir /home
linveo# useradd -m -G wheel tom
linveo# passwd tom
Changing password for tom.
New Password:
Retype New Password:
linveo# chown tom obj src tools
linveo# su tom
linveo#
linveo$ pwd
/usr
linveo$ export CVSROOT="[email protected]:/cvsroot"
linveo$ export CVS_RSH="ssh"
linveo$ cvs checkout -A -P src
linveo$ cd src
linveo$ nohup ./build.sh -j 2 -O ../obj -T ../tools -U distribution && \
> nohup ./build.sh -j 2 -O ../obj -T ../tools -U kernel=GENERIC
I like nohup
because it gives me a full transcript of all the terminal output and because I don't have to stay connected. Back in the old days I used to start a NetBSD-current build and then sleep. I don't remember a build which failed to complete, but there might have been one.
I will post again, later, or maybe tomorrow, about whether this build completes.
I hope everyone gets the servers they want!
Comments
Wow! This VPS is fast! Both builds seem to have completed successfully!
So, sleep now, and install tomorrow.
I hope everyone gets the servers they want!
Here is the new kernel install, followed by a reboot to run the new kernel.
Then, with the new kernel running, we install the new userland and reboot again so that we are running both the new kernel and the new userland.
The new kernel needs to be running before we try to run the new userland because some on the new userland binaries may require features from the new kernel, whereas the new kernel should be capable of running both the old and the new userland binaries.
It seems that this VPS is running self-compiled NetBSD-current!
I hope everyone gets the servers they want!
NetBSD uses pkgsrc to compile and install self-compiled binaries for approximately 28,000 third-party programs which are not part of the NetBSD core. For quick reference, besides the pkgsrc.org site, there also is the pkgsrc section of the NetBSD wiki, a mailing list, and an IRC channel.
Besides the current version of pkgsrc, called HEAD, there are quarterly branch releases.
Remarkably, pkgsrc runs on many other operating systems besides NetBSD!
Besides self-compiling, there are pre-compiled binaries available for SmartOS/Illumos, MacOS, NetBSD-current, and Enterprise Linux.
Here, on our Linveo VPS, is the install via CVS of pkgsrc HEAD, plus downloading of the current package vulnerability list.
I hope everyone gets the servers they want!
Just found two articles from the pkgsrc section of the NetBSD wiki:
and
I have been wanting to see good tutorials on these subjects for a while! Yaaay!
I hope everyone gets the servers they want!
Just finished updating, re-compiling, re-installing, and rebooting NetBSD-current.
Plus I made a new backup.
Next up is pkgsrc.
Still hope to try the pkgsrc rolling release updating and modular xorg. . . . And 9vx.
Thanks again to @linveo for the amazingly fast VPS!
Thanks to @cmeerw for the NetBSD 10.1 boot image from which I started.
I hope everyone gets the servers they want!
While NetBSD was compiling I was messing with the NetBSD evbaarm-aarch64 install ISO on another VPS at netcup.
I didn't succeed in getting the Netcup VPS to fully boot the NetBSD aarch64 ISO. I could see the initial boot messages and 1,2 install from,boot from option. And I could choose option 1. But, as soon as the boot went into graphic mode, netcup's HTML viewer disconnected and did not reconnect when the viewer was restarted.
Just for fun, I decided to try cross compiling an aarch64 Qemu image on the Linveo VPS. I am following the NetBSD Guide Chapter 33 on Cross-compiling.
The first step is building the tool chain, which seems to have succeeded.
The next step is to build the kernel, which also seems to have succeeded.
Next is building the userland, which again seems to have succeeded.
Now it seems like I have the needed image.
Next step is to convert arm64.img.gz to qcow2, upload it, and see if it boots over at netcup. A hint on how to do the conversion is in NetBSD Arm on Oracle Cloud. It's unclear to me exactly how netcup's situation differs from the situation at Oracle. So, I'n not sure if the image will run at netcup. We will see!
Thanks @linveo!
I hope everyone gets the servers they want!