Bash- :cannot execute binary file (Ubuntu VM on ESXI server)
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Bash always produces errors when you try to use it like that. It is intended to be used on the command-line like that, to execute SHELL SCRIPTS, not binaries. Binaries do not run in the shell.
If this is not a fresh clean installation, I would be investigating if perhaps the previous installation may have had a lot of wrapper-scripts and/or shell aliases configured for some of these common commands you indicate are failing, and the aliases or wrappers are now broken with this new installation. Specifically, it looks like shell aliases were set up to run scripts, which subsequently ran the actual binary command.
Check /etc/profile and/or /etc/profile.d/* and/or ~/.profile and check for shell aliases that do not work. Try the command:
It makes sense -- when you use the ls "command" it runs ls --color=auto instead of simply ls but that does not explain why it results in "cannot execute binary file".
You could check whether aliases are the problem as Sasha suggested by running unalias -a. That would remove all your aliases so using the ls "command" should use the standard /bin/ls executable. You can always find out what ls actually is by type ls or which ls.
Yes, that's a common alias for `ls` -- it makes the ls listings colored, like for different filetypes, folders, etc. so that's OK.
Please show us the output of:
Code:
shell# which ls
and
shell# file /bin/ls
and from some directory, please show exactly the output of trying to use the ls command (copy and paste the exact output to your next post). And yes, what catkin wrote too -- `type /bin/ls`
Thanks Charles.
Sasha
Last edited by GrapefruiTgirl; 03-14-2010 at 03:12 PM.
Yes, that's a common alias for `ls` -- it makes the ls listings colored, like for different filetypes, folders, etc. so that's OK.
Please show us the output of:
Code:
shell# which ls
and
shell# file /bin/ls
and from some directory, please show exactly the output of trying to use the ls command (copy and paste the exact output to your next post). And yes, what catkin wrote too -- `type /bin/ls`
Thanks Charles.
Sasha
Thank you for your reply guys .
here are the results.
# which ls
/bin/ls
# file /bin/ls
bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), corrupted program header size, corrupted section header size.
To be honest it seems like the system it self is locked, when i boot up is shows some errors in rc.d/ nothing is really running.
I don't like that part about "corrupted program header size, corrupted section header size" -- doesn't sound healthy.
I believe there is a larger problem going on here, since you now mention:
Quote:
To be honest it seems like the system it self is locked,
when i boot up is shows some errors in rc.d/ nothing is really running..
I suggest you start at the very beginning:
Tell us about this EXSI server. Did it ever work right, such as before Ubuntu? What was it running before Ubuntu, if anything, and how did you go about putting Ubuntu on it.
Please post for us the contents of /var/log/dmesg and /var/log/messages from on the server, after booting it.
I don't like that part about "corrupted program header size, corrupted section header size" -- doesn't sound healthy.
I believe there is a larger problem going on here, since you now mention:
I suggest you start at the very beginning:
Tell us about this EXSI server. Did it ever work right, such as before Ubuntu? What was it running before Ubuntu, if anything, and how did you go about putting Ubuntu on it.
Please post for us the contents of /var/log/dmesg and /var/log/messages from on the server, after booting it.
Sasha
Well,
I have an ESXI server running multiple system. and i installed a new Virtual Machine Ubuntu on it to run as a webserver, its been a week since iam running this system and it was fine until yesterday.
So Ubuntu is a Webserver running as a VM on ESXI .
dmesg .
Same binary issue .
cat /var/log/messages
Cant really post anything since my SSH is not even on and cant really export anything but , i have this.
all i see in the past 7 days is
"Mar 11 06:27:15 titan -- MARK --"
and thelist goes on .....
I'm now wondering if this thread would be better served in the "Virtualization" area of LQ -- what do you think? If you agree, I'll move it there for you.
I'm now wondering if this thread would be better served in the "Virtualization" area of LQ -- what do you think? If you agree, I'll move it there for you.
Is the OS you're having problems with in a VM? OR is it the host one? If it's one VM. Have you checked to see if your server was improperly shut down. Disk corruption can do serious damage to virtual HD image files and their contents.
Is the OS you're having problems with in a VM? OR is it the host one? If it's one VM. Have you checked to see if your server was improperly shut down. Disk corruption can do serious damage to virtual HD image files and their contents.
Its the VM that is causing this error, other VM's is just fine.
I dont why most of my commands are not running.
Its either someone installed some buggy program or the VMDK file is just locked.
????
FYI >
its an Ubuntu Server. running as a VM on ESXI server.
What I'd do is decouple the guests VMDK, mount it and then check the system logs (maybe that will show clues), then verify hashes to see which utilities have been hit by corruption. If you made backups you could try and restore one but until you've got a fix on what causes the corruption reliability remains zero.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.