installing VMwareTools-8.6.0-515842.tar.gz on gentoo
GentooThis forum is for the discussion of Gentoo Linux.
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.
i got to the step where i need to create symlinks using ln -s but it didn't work because the folder linux doesn't have any files or folders so i did ln -s linux-2.6.31-gentoo-r6/ linux
but i didn't see any sim link created.
then i got to :
Code:
cd /opt/vmware-tools-distrib
./vmware-install.pl
i go to the step
Code:
The path "/usr/bin/gcc" is not valid path to the gcc binary.
Would you like to change it? [yes]
The path "/usr/i686-pc-linux-gnu/gcc-bin/4.4.5" is not valid path to the gcc
binary.
Would you like to change it? [yes]
What is the location of the gcc program on your machine? /usr/i686-pc-linux-gnu/bin
and it didn't work.. i tried lots of other directories but it didn't work.
Has anyone installed vmwaretools for esx 5?
any help is appreciated .
i checked the folder linux but it turns out that it is a simlink to linux-2.6.31-gentoo-r6 and it contains the simlink that i created: "linux-2.6.31-gentoo-r6"
but i guess this is not why vmware tools are not installing... what about gcc and what is the right path to the gcc binary?
and thanks for your replies
First, that output if highly suspicious, unless the weird characters in there have been crapped during the copy/paste process.
Not only that, but you even have a file whose user:group pair is incorrect (UUID-0.04), that could be anything from a disk failure, file system corruption, or a symptom of having being infected with a virus or a rootkit.
Quote:
i checked the folder linux but it turns out that it is a simlink to linux-2.6.31-gentoo-r6 and it contains the simlink that i created: "linux-2.6.31-gentoo-r6"
If the directory contains a recursive symlink to itself, then you will obviously need to fix that, and then re-install the kernel sources. You will also need to reconfigure and probably recompile them, and you will also need to make sure that the kernel you are running is that same kernel and not any other version (uname -r).
Anyway, can you paste the output for "ls -l /usr/src/linux/"?
Quote:
but i guess this is not why vmware tools are not installing... what about gcc and what is the right path to the gcc binary?
and thanks for your replies
I couldn't tell that for now, but your source tree seems weird enough for you to care about it. Something strange is going on in there. As far as I remember, vmware needs a configured kernel tree for it to compile, unless in the last times it's been finally fixed to use kernel-headers instead, as it should.
the weird characters are just like that in the command prompt, i guess these are russian characters but in distorted output for some reason, the system is supposed to support russian language.
by the way
Code:
uname -r
is
Code:
2.6.31-gentoo-r6
so is the next step to delete the symlink and install the kernel sources?
and by the way in comparison to you, i am a noob so bare with me and tell me how to do that
thanks for your help
which is the symlink as i said, i guess that should be deleted...
So you have a recursive symlink in there. Just rm -f it.
Quote:
so is the next step to delete the symlink and install the kernel sources?
and by the way in comparison to you, i am a noob so bare with me and tell me how to do that
thanks for your help
There's a slight problem here, because that concrete version of the kernel is no longer in portage. So, you will need to either update or pick an old ebuild from the gentoo attic and put it into a local overlay. I personally recommend being up to date, unless you have a good reason not to. Otherwise, security and stability concerns might arise.
To get the latest stable (or unstable, if you are in ~arch), just do
Code:
emerge gentoo-sources
You then use eselect as above to list the available kernels and then set the new one active, that will create the /usr/src/symlink.
Then you can copy the current kernel configuration this way:
Code:
zcat /proc/config.gz /usr/src/linux/.config
After that, you go to /usr/src/linux, and use
Code:
make oldconfig
to port the old config you just dumped to the new kernel. You will probably need to ask some questions, and you can always change the configuration afterwards using "make menuconfig", or your preferred method. Then compile and install the kernel as usual, add it to your bootloader, and reboot into your new kernel.
If you need help with that just ask here, but if you installed Gentoo you should be able to compile your own kernel.
If for some reason you prefer to keep your current kernel version then pick the ebuild for 2.6.31-gentoo-r6 from here:
well i have never installed gentoo, it was already present when i started working here, i only manage programs and configurations. anyway i tried updating to the new kernel 3.2.1 using genkernel but now the system won't boot it says:
Code:
determining root device...
block device /dev/sda3 is not a valid root device
could not find the root block device in.
i tried entering the following:
Code:
root block device() :: /dev/ram0
the result was:
Code:
mount: mounting /dev/ram0 on /newroot failed: Invalid argument
could not mount specified root, try again
could not find the root block device in .
i already tried /dev/sda1 /dev/sda2 up to 12, any idea where to go from here?
well i have never installed gentoo, it was already present when i started working here, i only manage programs and configurations. anyway i tried updating to the new kernel 3.2.1 using genkernel but now the system won't boot it says:
Code:
determining root device...
block device /dev/sda3 is not a valid root device
could not find the root block device in.
i tried entering the following:
Code:
root block device() :: /dev/ram0
the result was:
Code:
mount: mounting /dev/ram0 on /newroot failed: Invalid argument
could not mount specified root, try again
could not find the root block device in .
i already tried /dev/sda1 /dev/sda2 up to 12, any idea where to go from here?
I assume you use grub (or grub2) as your boot loader. If so, then you should be able to edit the boot command line easily, and that means that you also have all the power of TAB-completion right at your hands. So, edit the boot kernel line, move the cursor to the end of the "root=/dev/sda3" part, delete "da3", and hit TAB twice. If nothing shows up, delete also the "s", write "h" and hit TAB twice (maybe your drive is now using the old pata driver and is named "hda" or the like).
If you still don't get results, then that probably means that you are lacking the right driver for your SATA (or IDE/ATA) chipset. It needs to be included in your kernel, not as a module, unless you are going to use a ramdisk to host it.
So, first, try the grub TAB magic, if that doesn't work, you will need to boot your old kernel and see what ATA chip you have (dmesg and lspci can help you with that).
Then go to your new kernel sources, and use "genkernel --menuconfig". Navigate to Device Drivers, Serial ATA and Parallel ATA drivers, and make sure you have at least these enabled as "*", and NOT AS "m" (that'd be modules).
Code:
<*> AHCI SATA support
<*> Platform AHCI SATA support [*] ATA SFF support[*] ATA BMDMA support
IN ADDITION, you might need to select one additional driver from the list below, but not necessarily. It really depends on what disk controller you own. You might also need some PATA driver if you use IDE drives, may them be HDs or CDROM or anything else that's attached to an IDE port. As usual, after changing this compile and reinstall your kernel.
This is one of the reasons why I told you that you should really update. Later kernel updates are not that painful, but the SATA infrastructure has changed a lot since the version you are using, and sooner or later you will have to update anyway.
Well, I tried to sum it all up a bit above, feel free to ask anything that you need.
thanks for the reply and yes i did use grub to change the kernel but now from shell i can't mount /boot nor are the vi or nano or pico editors to edit any file. tab twice shows little available commands.. should i use live cd to boot and the change the grub.conf ? and besides i didn't mess with the grub.conf file much; i put the same paramets which the old kernel used and added ext3 as file type maybe it because of this, so what is next to do? i kinda didn't get when you refer using tab twice to complete command in root block device when i type /dev/s and hit tab twice it just makes 2 big spaces.
thanks for the reply and yes i did use grub to change the kernel but now from shell i can't mount /boot nor are the vi or nano or pico editors to edit any file. tab twice shows little available commands.. should i use live cd to boot and the change the grub.conf ? and besides i didn't mess with the grub.conf file much; i put the same paramets which the old kernel used and added ext3 as file type maybe it because of this, so what is next to do? i kinda didn't get when you refer using tab twice to complete command in root block device when i type /dev/s and hit tab twice it just makes 2 big spaces.
I think you are confusing the rescue shell with the grub command line, and a couple more things there...
When you are presented with the grub menu, where you can choose the OS and the kernel you will be booting, you can press 'e' to edit the kernel line. You need to go to the kernel line and follow the instructions about TAB that I gave you above. If my memory serves correctly, when you are done you can press Control+x to boot using the kernel line you just edited.
If you are seeing commands as the results of the TAB'ing, then you are in the wrong place.
And, booting from a livecd won't help you if you don't know what to put into the grub configuration file.
well indeed i was tabbing in the wrong place. i could not press e to edit the grub line because i had previously set the timeout to 0.
so i booted from the livecd and mounted what needed to be mounted and then i edited grub.conf and made the timeout=10
and saved and umounted and rebooted and then i could press e and tab the command line.
anyway, i did as you said i deleted da3 from /dev/sda3 and pressed tab. but it said:
Code:
error 11: Unrecognized device string
i deleted "s" from /dev/s and typed h so it became /dev/h and pressed tab twice but it also said unrecognized device string. just to make sure i tried /dev/ all the alphabets followed by tab twice but all gave the same error.
so does this mean /dev doesn't contains any drives?
well indeed i was tabbing in the wrong place. i could not press e to edit the grub line because i had previously set the timeout to 0.
so i booted from the livecd and mounted what needed to be mounted and then i edited grub.conf and made the timeout=10
and saved and umounted and rebooted and then i could press e and tab the command line.
Next time, remember that, even if you set the timeout to 0, you can still press the arrow keys during the lapse of time when the bootloader takes into scene (just after the Power On Self Test of your BIOS). Once you do that the countdown stops, and you can freely move around the menu, to do whatever you want.
That way you won't need a livecd.
Quote:
anyway, i did as you said i deleted da3 from /dev/sda3 and pressed tab. but it said:
Code:
error 11: Unrecognized device string
i deleted "s" from /dev/s and typed h so it became /dev/h and pressed tab twice but it also said unrecognized device string. just to make sure i tried /dev/ all the alphabets followed by tab twice but all gave the same error.
so does this mean /dev doesn't contains any drives?
Probably, but it can also mean a number of things. It would help to know if you are using grub legacy (0.97 or the like) or grub2. Anyway, you can try another thing. There must be a line like this if you use grub legacy:
Code:
root hda(0,1)
or like this if you use grub2:
Code:
set root='hd0.....
Can you try to autocomplete from 'hd' and see what happens? It might help, or not, let's see.
If this doesn't work (it probably will not, so don't worry), please, boot from the livecd, and pick the .config from the last kernel you compiled. It should be in /usr/src/linux/.config, then upload it somewhere and paste a link to it here. We will also need the output from "lspci", and your fstab to get a general overview about your partitioning scheme.
ps. When I say "/usr/src/linux/.config" above, I mean relative to your own system. So, if you are booting from the livecd, you will need to mount your own system somewhere under /mnt/whatever/, and adjust the path and pick the file from /mnt/whatever/usr/src/linux/.config.
well here is what happened in short. i tried your method of recompiling the oldconfig and it worked and i was able to boot from the new kernel except i had trouble with starting eth0, so according some post in the gentoo forum i recompiled using genkernel and that messed up the kernel and i was unable to boot again..the /dev/sda3 message returned. new attempts to try compiling the old config didn't work... when i execute the command:
Code:
make modules_prepare
i get the following error:
Code:
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 25: ygcc: command not found
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 26: ygcc: command not found
make: ygcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
#
# configuration written to .config
#
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 25: ygcc: command not found
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 26: ygcc: command not found
make: ygcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: ygcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
must be something with gcc, i will try compiling gcc next.
anyway here is what you asked for: http://www.fileupyours.com/files/324524/config2.6.old
which is the config of the 2.6 kernel.
executing "lspci"
produces:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / reiserfs noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
i think you might also be interested to see the grub.conf file so here it is:
well here is what happened in short. i tried your method of recompiling the oldconfig and it worked and i was able to boot from the new kernel except i had trouble with starting eth0, so according some post in the gentoo forum i recompiled using genkernel and that messed up the kernel and i was unable to boot again..the /dev/sda3 message returned. new attempts to try compiling the old config didn't work... when i execute the command:
Code:
make modules_prepare
i get the following error:
Code:
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 25: ygcc: command not found
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 26: ygcc: command not found
make: ygcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
#
# configuration written to .config
#
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 25: ygcc: command not found
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 26: ygcc: command not found
make: ygcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: ygcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I think that your kernel is getting corrupted for some reason, and that this is not the first time this happens.
Are you, by chance, sharing the kernel tree between your real machine and the virtualized one? Or between two machines via NFS? Or between two different VMs? Maybe with different architectures?
Those are the two devices that you need to care about. The upper one is your hd controller, the second one is the nic. I don't know if they are real or virtualized, but linux will not care either so all you need is to make sure that you have the relevant drivers in your kernel. These, I think, would be the relevant settings under device drivers->serial ata...
Code:
<*> AHCI SATA support
<*> Platform AHCI SATA support[*] ATA SFF support[*] ATA BMDMA support
If you use an old driver, these could turn into hda*, but if there are not more HDs available then there's little possible variance. It must be one of the two, but the first thing is to make sure that the kernel can see the disk.
Sometimes these problems are caused by simple problems. You need to check the kernel version each time you fire up menuconfig (at the top-left in the blue screen), and every time you install the kernel and change grub.conf, also on every boot, and after having booted (with uname -a, so you can also see the date and hour of compilation). Double check that everything matches. If you need, delete the whole kernel tree, import the old .config as I told you above and start afresh.
Oh, your nic driver should be the pcnet32 driver. It's under device drivers->network device->ethernet->amd devices.
If you get lost, remember that in menuconfig you can press '/', then type the text you want to search ("pcnet32", in this case).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.