Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rocky9.3-arm64] fails at Warning: Authentication failure. Retrying... #6

Closed
wojciechpolak opened this issue Jan 28, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@wojciechpolak
Copy link

I'm trying the latest gyptazy/rocky9.3-arm64 v1.0.0:

System:

  • vmware-fusion: 13.5.0,22583790
  • vagrant: 2.4.1
MBP:vagrant$ vagrant init gyptazy/rocky9.3-arm64 --box-version 1.0.0
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

Then I made a simple modification in Vagrantfile by adding:

  config.vm.provider "vmware_desktop" do |v|
    v.gui = false
    v.vmx["memsize"] = "1024"
    v.vmx["numvcpus"] = "2"
  end

And I invoked vagrant up:

MBP:vagrant$ vagrant up
Bringing machine 'default' up with 'vmware_desktop' provider...
==> default: Box 'gyptazy/rocky9.3-arm64' could not be found. Attempting to find and install...
    default: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
    default: Box Version: 1.0.0
==> default: Loading metadata for box 'gyptazy/rocky9.3-arm64'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/gyptazy/rocky9.3-arm64
==> default: Adding box 'gyptazy/rocky9.3-arm64' (v1.0.0) for provider: vmware_fusion (arm64)
    default: Downloading: https://vagrantcloud.com/gyptazy/boxes/rocky9.3-arm64/versions/1.0.0/providers/vmware_fusion/arm64/vagrant.box
    default: Calculating and comparing box checksum...
==> default: Successfully added box 'gyptazy/rocky9.3-arm64' (v1.0.0) for 'vmware_fusion (arm64)'!
==> default: Cloning VMware VM: 'gyptazy/rocky9.3-arm64'. This can take some time...
==> default: Checking if box 'gyptazy/rocky9.3-arm64' version '1.0.0' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
WARNING: The VMX file for this box contains a setting that is automatically overwritten by Vagrant
WARNING: when started. Vagrant will stop overwriting this setting in an upcoming release which may
WARNING: prevent proper networking setup. Below is the detected VMX setting:
WARNING: 
WARNING:   ethernet0.pcislotnumber = "160"
WARNING: 
WARNING: If networking fails to properly configure, it may require this VMX setting. It can be manually
WARNING: applied via the Vagrantfile:
WARNING: 
WARNING:   Vagrant.configure(2) do |config|
WARNING:     config.vm.provider :vmware_desktop do |vmware|
WARNING:       vmware.vmx["ethernet0.pcislotnumber"] = "160"
WARNING:     end
WARNING:   end
WARNING: 
WARNING: For more information: https://www.vagrantup.com/docs/vmware/boxes.html#vmx-allowlisting
==> default: Starting the VMware VM...
==> default: Waiting for the VM to receive an address...
==> default: Forwarding ports...
    default: -- 22 => 2222
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...
^C==> default: Waiting for cleanup before exiting...
Vagrant exited after cleanup due to external interrupt.

^C means 'Control-C' to interrupt it.
Another attempt:

MBP:vagrant$ vagrant up
Bringing machine 'default' up with 'vmware_desktop' provider...
==> default: Checking if box 'gyptazy/rocky9.3-arm64' version '1.0.0' is up to date...
==> default: Machine is already running.
MBP:vagrant$ 
MBP:vagrant$ vagrant ssh
vagrant@127.0.0.1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
MBP:vagrant$ 
MBP:vagrant$ vagrant status
Current machine states:

default                   running (vmware_desktop)

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down, or you can run `vagrant suspend` to simply suspend
the virtual machine. In either case, to restart it again, run
`vagrant up`.
@gyptazy
Copy link
Owner

gyptazy commented Jan 28, 2024

Hey @wojciechpolak,

thanks for reporting and sorry for that - I should have tested it before releasing. Unfortunately, there was a bug in my post-install script including an infinity loop for the vagrant users configuration...

1.0.2 has been released and should now be fully working:

$> vagrant init gyptazy/rocky9.3-arm64 ; vagrant up ; vagrant ssh
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
Bringing machine 'default' up with 'vmware_desktop' provider...
==> default: Box 'gyptazy/rocky9.3-arm64' could not be found. Attempting to find and install...
    default: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
    default: Box Version: >= 0
==> default: Loading metadata for box 'gyptazy/rocky9.3-arm64'
    default: URL: https://vagrantcloud.com/gyptazy/rocky9.3-arm64
==> default: Adding box 'gyptazy/rocky9.3-arm64' (v1.0.2) for provider: vmware_fusion
    default: Downloading: https://vagrantcloud.com/gyptazy/boxes/rocky9.3-arm64/versions/1.0.2/providers/vmware_fusion/arm64/vagrant.box
    default: Calculating and comparing box checksum...
==> default: Successfully added box 'gyptazy/rocky9.3-arm64' (v1.0.2) for 'vmware_fusion'!
==> default: Cloning VMware VM: 'gyptazy/rocky9.3-arm64'. This can take some time...
==> default: Checking if box 'gyptazy/rocky9.3-arm64' version '1.0.2' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
WARNING: The VMX file for this box contains a setting that is automatically overwritten by Vagrant
WARNING: when started. Vagrant will stop overwriting this setting in an upcoming release which may
WARNING: prevent proper networking setup. Below is the detected VMX setting:
WARNING: 
WARNING:   ethernet0.pcislotnumber = "160"
WARNING: 
WARNING: If networking fails to properly configure, it may require this VMX setting. It can be manually
WARNING: applied via the Vagrantfile:
WARNING: 
WARNING:   Vagrant.configure(2) do |config|
WARNING:     config.vm.provider :vmware_desktop do |vmware|
WARNING:       vmware.vmx["ethernet0.pcislotnumber"] = "160"
WARNING:     end
WARNING:   end
WARNING: 
WARNING: For more information: https://www.vagrantup.com/docs/vmware/boxes.html#vmx-allowlisting
==> default: Starting the VMware VM...
==> default: Waiting for the VM to receive an address...
==> default: Forwarding ports...
    default: -- 22 => 2222
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS to become available...
==> default: Enabling and configuring shared folders...
    default: -- /Users/gyptazy/vms: /vagrant
                    _                  
   __ _ _   _ _ __ | |_ __ _ _____   _ 
  / _` | | | | '_ \| __/ _` |_  / | | |
 | (_| | |_| | |_) | || (_| |/ /| |_| |
  \__, |\__, | .__/ \__\__,_/___|\__, |
  |___/ |___/|_|                 |___/ 


	Creator:	gyptazy
	X/Twitter:	gyptazy
	Fediverse:	gyptazy [A/T] gyptazy.ch
	Email:		gyptazy [A/T] gyptazy.ch (GPG: 0x69BF7050)

	Bug Tracker:	https://github.com/gyptazy/vagrant-arm64-boxes
	Web/Info:	https://gyptazy.ch/blog/collection-of-vagrant-boxes-images-for-apple-silicon-based-on-arm64/

Last login: Sun Jan 28 12:55:57 2024
[vagrant@rocky01-gyp01 ~]$ sudo uptime
 12:45:11 up 8 min,  1 user,  load average: 0.06, 0.08, 0.04

Please give it a try and let me know if everything finally works.

Thanks,
gyptazy

@gyptazy gyptazy self-assigned this Jan 28, 2024
@gyptazy gyptazy added the bug Something isn't working label Jan 28, 2024
@wojciechpolak
Copy link
Author

Now it's working fine (v1.0.2). Thanks a lot, I appreciate your effort!

@gyptazy
Copy link
Owner

gyptazy commented Jan 28, 2024

Now it's working fine (v1.0.2). Thanks a lot, I appreciate your effort!

Thanks for confirming! Have a nice weekend :)

@gyptazy gyptazy closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants