I noticed that even this message was shown as an error (in RED colour), the script was executed successfully! A few days later I saw a possible fix and I posted an answer on SO. The "fix" is:
# Prevent TTY Errors (copied from laravel/homestead: "homestead.rb" file)... By default this is "bash -l".
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
Maybe you just don't need it, but you can try it and use it if it works for you.
As you can see in the commented line above - the "mesg: ttyname failed Inappropriate ioctl for device" has been prevented from the laravel team. Thanks for this one!
Most developers would like to avoid errors/warnings when we do development, so it seems like the fix (a possible fix) we needed.
Important note: I haven't tested this solution too much, but the box starts without the "mesg: ttyname failed Inappropriate ioctl for device" error! You are free to try it and if you experience any problems, just drop a comment to save somebody else's time!