rdbreak / rhcsa8env

This is a RHCSA8 study environment built with Vagrant/Ansible
https://join.slack.com/t/redhat-certs/shared_invite/zt-7ju3rz7b-_G3Njp3PDwdBG_81SwPeLA
MIT License
295 stars 174 forks source link

This system is not registered to Red Hat Subscription Management. #78

Open codes4humanity opened 2 years ago

codes4humanity commented 2 years ago

image image image

Error Messages :

  1. This system is not registered to Red Hat Subscription Management.
  2. repo: No match for argument: sshpass repo: Error: Unable to find a match: sshpass The SSH command responded with a non-zero exit status. Vagrant

I am facing the above errors when executing vagrant up. Server two installed successfully but repo and server 1 installation will not complete.

nzlv commented 2 years ago

Same issue here, anyone can help?

TARideout commented 1 year ago

It looks like the first error requires a Red Hat account to apply the subscription to the RHEL 8 client. The terminal command for a quick registered subscription (using your Red Hat account) is this:

subscription-manager register --username --password --auto-attach

Also, the sshpass repo can only be used after it is enabled using the subscription manager:

subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

I tried using these commands in line 65 of the Vagrantfile and still got the same error messages as you did @codes4humanity :

vagrant-rhel8-register-issue

Does anyone else have any recommendations for troubleshooting this issue?

Galigen commented 1 year ago

Try putting this in there instead. I had the same issue but this line let me get past that point Capture