jedi4ever / veewee

Easing the building of vagrant boxes
MIT License
4.29k stars 779 forks source link

Post-install ssh login fails when choosing 'ssh_user' != "vagrant" #968

Closed metmajer closed 10 years ago

metmajer commented 10 years ago

I wanted to install Debian based on the Debian-7.5.0-amd64-netboot template and came up with the following error after the VM was installed:

Waiting for ssh login on 127.0.0.1 with user metmajer to sshd on port => 7222 to work, timeout=10000 sec
..................................................Authentication failure
Authentication failed for user metmajer@127.0.0.1

Although I had set ssh_user to "metmajer", I can only login via user "vagrant" and password "vagrant" even though this user is nowhere specified in definitions.rb.

Here is the whole console dump:

Checking if isofile debian-7.6.0-amd64-netinst.iso already exists.
Full path: /Users/metmajer/Workspace/veewee/iso/debian-7.6.0-amd64-netinst.iso
Moving /var/folders/yn/xld74szs73z8vb9jflrw7pkstqpdmw/T/open-uri20140722-682-1mkulz0 to /Users/metmajer/Workspace/veewee/iso/debian-7.6.0-amd64-netinst.isoB/s ETA:   0:00:00
Creating vm DT6-Debian-7.6.0-amd64-netboot : 4096M - 4 CPU - Debian_64
Creating new harddrive of size 10140, format VMDK, variant Split2G 
Attaching disk: /Users/metmajer/VMs/VirtualBox/DT6-Debian-7.6.0-amd64-netboot/DT6-Debian-7.6.0-amd64-netboot1.vmdk
Mounting cdrom: /Users/metmajer/Workspace/veewee/iso/debian-7.6.0-amd64-netinst.iso
Mounting guest additions: /Users/metmajer/Workspace/veewee/iso/VBoxGuestAdditions_4.3.12.iso
Finding unused TCP port in range: 7222 - 7262
Selected TCP port 7222
Finding unused TCP port in range: 7222 - 7262
Selected TCP port 7222
Waiting 10 seconds for the machine to boot
Finding unused TCP port in range: 7122 - 7199
Selected TCP port 7122

Typing:[1]: <Esc>
Starting a webserver :7122
Typing:[2]: install 
Typing:[3]: preseed/url=http://10.0.2.2:7122/preseed.cfg 
Typing:[4]: debian-installer=en_US 
Typing:[5]: auto 
Typing:[6]: locale=en_US 
Typing:[7]: kbd-chooser/method=us 
Typing:[8]: netcfg/get_hostname=DT6-Debian-7.6.0-amd64-netboot 
Typing:[9]: netcfg/get_domain= 
Typing:[10]: fb=false 
Typing:[11]: debconf/frontend=noninteractive 
Typing:[12]: console-setup/ask_detect=false 
Typing:[13]: console-keymaps-at/keymap=us 
Typing:[14]: keyboard-configuration/xkb-keymap=us 
Typing:[15]: <Enter>
Done typing.

Serving file /Users/metmajer/Workspace/veewee/definitions/DT6-Debian-7.6.0-amd64-netboot/preseed.cfg
Shutting down for /Users/metmajer/Workspace/veewee/definitions/DT6-Debian-7.6.0-amd64-netboot/preseed.cfg
Waiting for ssh login on 127.0.0.1 with user metmajer to sshd on port => 7222 to work, timeout=10000 sec
..................................................Authentication failure
Authentication failed for user metmajer@127.0.0.1
metmajer commented 10 years ago

Invalid. I have just observed that the user is defined in the preseed.cfg file. Feel free to close the issue, thanks.