Does Vagrant(virtualbox) install needs a customized file-max parameter?

Hello,
I was doing another vagrant installation and turned out my system does not respond and the install does not seems to work correct, so i looked into the message file and found this error:

May 10 11:12:47 per420 kernel: VFS: file-max limit 20480 reached
May 10 11:12:53 per420 kernel: VFS: file-max limit 20480 reached
May 10 11:12:56 per420 kernel: VFS: file-max limit 20480 reached
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: cannot make pipe for command substitution: Too many open files in system
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: cannot make pipe for command substitution: Too many open files in system
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: line 102: [: too many arguments
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: line 108: [: -lt: unary operator expected
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: cannot make pipe for command substitution: Too many open files in system
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: line 64: /sys/kernel/mm/ksm/pages_to_scan: Too many open files in system
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: line 65: /sys/kernel/mm/ksm/sleep_millisecs: Too many open files in system
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: line 66: /sys/kernel/mm/ksm/run: Too many open files in system
May 10 11:13:06 per420 ksmtuned: /usr/sbin/ksmtuned: line 128: cannot redirect standard input from /dev/null: Too many open files in system

karamel-chef]# cat /proc/sys/fs/file-max
20480

Then i decided to remove the install and restart my server, and try again and the halt behaviour back again. so my question is: do I need to increase the file-max definition? I’m using karamel-chef ver 1.2
with VM definition modified : “centos 1 hopswork” with ->8cores, 48GB ram

Hi.

Virtualization technologies tend to keep many open file descriptors. 20k is quite low, try something in the order of 20M to be on the safe side.

i decided to modify the file-max parameter and start over, after more than 8 hrs, this is the last line from the nohup.out file.

==> default: Chef Client finished, 12/16 resources updated in 02 hours 19 minutes 51 seconds

there is not Chef finished successfully. does this mean is complete or 4 more resources left?

the environment works fine but wondering if it really finished

Hi.

That is correct. The installation has finished successfully. The log says it finished in 2 hours and 20 minutes though.

thanks a lot for the confirmation @antonios all working fine here.
Regards