vmactions / solaris-vm

Use Solaris in github actions
https://vmactions.org
MIT License
25 stars 5 forks source link

Solaris VM very out of date #38

Open dgsga opened 4 months ago

dgsga commented 4 months ago

Hi, the version of Solaris on the VM needs updating as many recent packages cannot be installed because they are not present in the package repo of this old version (it predates 2020). An example is the meson build system which was added to the Solaris pkg repo in 2020. A simple command will do it (run as root): pkg update Followed by a reboot. The version will now be 11.4.42. Thanks for maintaining this very useful repo.

Neilpang commented 4 months ago

I will make a new release tomorow.

please just wait for the new build to release.

dgsga commented 4 months ago

That's great, thank you.

mrpippy commented 1 month ago

Was this completed? I ran shell-solaris and got a not-updated 11.4 system.

Maybe the new image could be built off of the 11.4.42 (CBE) images (https://blogs.oracle.com/solaris/post/announcing-the-first-oracle-solaris-114-cbe), rather than needing to update an 11.4 system?

Neilpang commented 1 month ago

The CBE was released on March 2, 2022. but our image was built on Jul 11, 2022 https://github.com/vmactions/solaris-download/releases

I think we are the latest.

dgsga commented 1 month ago

The version of Solaris used in the current VMactions image is definitely not the latest. The CBE image (V1019840-01.iso) is version 11.4.42, sol-11_4-text-x86.iso installs version 11.4.0.15.0, which dates back to 2018. This is why the vmactions image needs to be updated and ideally would be built off the 11.4.42 CBE image.

whoschek commented 1 week ago

I'd also love to see a more recent Solaris version in the VM. The current VM has python-3.4 whereas I need at least python-3.7. I tried all kinds of workarounds to install python-3.7 - all without success, except that a 'pkg update --accept; reboot' resolves the issue as it auto upgrades python to 3.7 (as I verified in your very helpful shell-solaris tool). Unfortunately the reboot step in a gibhub CI test job sends the job into nowhere so that doesn't work either. solaris-vm is a fantastic tool but unfortunately there's only a solaris VM version available that's too old to be practical for many uses.

Neilpang commented 1 week ago

@whoschek I had tried to upgrade the vm, but it was just not easy for me to download the latest ISO file from the official oracle website. I guess that it was because my country is restricted. I had tried several times, but no success.

We first need to download the ISO file by this project: https://github.com/vmactions/solaris-download Then we need to upgrade the builder project to build the vm: https://github.com/vmactions/solaris-builder Last, we can update this solaris-vm project to use the latest built vm images.

Anyway, I will try more once I have time.

rdmark commented 1 week ago

@Neilpang Please let me know if there is anything I can do to assist. Thank you for all your hard work! Your VMs have helped us catch real bugs.

bradh352 commented 1 day ago

I think the current vm image the solaris-builder is using can just be upgraded. I see it links to https://github.com/vmactions/solaris-download/releases/download/v0.0.2/sol-11_4-text-x86.iso for the install. I think just adding a step that performs pkg upgrade --accept in hooks/postBuild.sh