Giter Club home page Giter Club logo

Comments (6)

pokev25 avatar pokev25 commented on August 29, 2024

I also had a similar problem.
I added the following and it worked fine on rocky linux9.

config.vbguest.installer_options = { allow_kernel_upgrade: true, auto_reboot: true }
config.vbguest.installer_hooks[:before_install] = ["dnf -y install epel-release kernel-devel", "sleep 2"]
config.vbguest.installer_hooks[:after_install] = ["dnf -y update", "sleep 2"]

from vagrant-vbguest.

loclahost avatar loclahost commented on August 29, 2024

Sadly that does not solve this problem. I added your lines, saw that it installed the packages but the install of the actual guest additions still fails with the same message as I originally posted.

from vagrant-vbguest.

pokev25 avatar pokev25 commented on August 29, 2024

Where did you get your images from?
Please test with a different image.

This works fine.

Vagrant.configure("2") do |config|
  config.vm.box = "alvistack/centos-9-stream"
  config.vm.provider "virtualbox" do |vb|
     vb.memory = "4096"
     vb.cpus = 4
     vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  end
  config.vbguest.installer_options = { allow_kernel_upgrade: true, auto_reboot: true }
end

from vagrant-vbguest.

loclahost avatar loclahost commented on August 29, 2024

I am running with the latest image from CentOs

https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-Vagrant-9-20221101.0.x86_64.vagrant-virtualbox.box

from vagrant-vbguest.

fnordfish avatar fnordfish commented on August 29, 2024
/opt/VBoxGuestAdditions-7.0.2/bin/VBoxClient: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
/opt/VBoxGuestAdditions-7.0.2/bin/VBoxClient: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

Not really sure why it's needed, but can you/have you tried install libX11 using the before_install hook?

from vagrant-vbguest.

loclahost avatar loclahost commented on August 29, 2024

Thank you for the suggestion, I have not. But I can unfortunately not try; I do no longer run that setup. It broke both our ST and AT environments so there were no time to wait around for solutions. I changed the guest to Arch Linux instead and everything works.

from vagrant-vbguest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.