Hello,
The IP looks good, so I will suggest ensure the public ssh key is there
This is what I use to setup a Vagrant box:
"useradd vagrant",
"cp /etc/sudoers /etc/sudoers.orig",
"sed -i -e 's/Defaults\\s*requiretty$/#Defaults\trequiretty/'
/etc/sudoers",
"sed -i -e '/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/a
%vagrant\tALL=(ALL)\tNOPASSWD: ALL' /etc/sudoers",
"mkdir ~vagrant/.ssh",
"chmod 700 ~vagrant/.ssh",
"echo 'ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ==
vagrant insecure public key' > ~vagrant/.ssh/authorized_keys",
"chmod 600 ~vagrant/.ssh/authorized_keys",
"chown -R vagrant: ~vagrant/.ssh",
"cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ori",
"sed -i -e '/#UseDNS yes/a UseDNS no' /etc/ssh/sshd_config",
"for nic in /etc/sysconfig/network-scripts/ifcfg-*; do sed -i
/HWADDR/d $nic; sed -i /UUID/d $nic || true ; done",
"rm /etc/udev/rules.d/??-persistent-net.rules || true"
Remote "" and "", and see what you can reuse.
Hope this helps.
Alvaro.
On Wed, Mar 25, 2015 at 9:32 PM, Marcus Brunsten
<[email protected]> wrote:
> The file /etc/udev/rules.d/70-persistent-net.rule did not exist. the
> directory /etc/udev/rules.d/70-persistent-net.rules/ existed however, should
> i remove this? It is empty.
>
> Output of ifconfig -a
> root@packer-debian-7:/etc/udev/rules.d# ifconfig -a
> eth0 Link encap:Ethernet HWaddr 08:00:27:45:b0:85
> inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
> inet6 addr: fe80::a00:27ff:fe45:b085/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1062 errors:0 dropped:0 overruns:0 frame:0
> TX packets:672 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:106692 (104.1 KiB) TX bytes:80168 (78.2 KiB)
>
> eth1 Link encap:Ethernet HWaddr 08:00:27:d0:29:cb
> inet addr:192.168.56.30 Bcast:192.168.56.255 Mask:255.255.255.0
> inet6 addr: fe80::a00:27ff:fed0:29cb/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:1086 (1.0 KiB)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:38 errors:0 dropped:0 overruns:0 frame:0
> TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:21265 (20.7 KiB) TX bytes:21265 (20.7 KiB)
>
>
> Den tisdag 24 mars 2015 kl. 21:39:39 UTC+1 skrev Alvaro Miranda Aguilera:
>>
>> On Wed, Mar 25, 2015 at 4:46 AM, Marcus Brunsten
>> <[email protected]> wrote:
>> > default: Warning: Authentication failure. Retrying...
>>
>> Hello,
>>
>> Can you try to connect over the gui and share an ifconfig -a
>>
>> before packaging the box, check if
>> /etc/udev/rules.d/70-persistent-net.rule file exists, if does, delete
>> it.
>>
>> Thanks
>> Alvaro
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.