installing VMwareTools-8.6.0-515842.tar.gz on gentoo
i'm trying to install vmware tools on gentoo according to the the following guide:
http://en.gentoo-wiki.com/wiki/VMwar...g_VMware_Tools 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 Code:
The path "/usr/bin/gcc" is not valid path to the gcc binary. Has anyone installed vmwaretools for esx 5? any help is appreciated . |
So what's happening? The output you show has nothing to do with what you said.
Not sure what links are you making. If it's kernel src, you should do it this way: Quote:
|
Quote:
Quote:
HINT: If "/usr/src/linux" existed already (whatever kind of file it is) then you obviously can't create any new file with the same name. |
well about "eselect kernel list"
Code:
eselect kernel list Code:
eselect kernel set 1 Code:
ls -l /usr/src/ Code:
total 20288 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 :) |
Quote:
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:
Anyway, can you paste the output for "ls -l /usr/src/linux/"? Quote:
|
well the output of:
Code:
ls -l /usr/src/linux/ Code:
total 0 i changed the group-owner of the uuid folder and now the output of Code:
ls -l /usr/src/ Code:
total 20288 by the way Code:
uname -r Code:
2.6.31-gentoo-r6 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 :) |
Quote:
Quote:
To get the latest stable (or unstable, if you are in ~arch), just do Code:
emerge gentoo-sources Then you can copy the current kernel configuration this way: Code:
zcat /proc/config.gz /usr/src/linux/.config Code:
make oldconfig 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: http://sources.gentoo.org/cgi-bin/vi...s/?hideattic=0 Then create a local overlay as described in here: http://www.gentoo-wiki.info/HOWTO_In..._Party_Ebuilds Then you can copy the config and proceed with make oldconfig and the rest of the process as I described above for a newer kernel. |
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... Code:
root block device() :: /dev/ram0 Code:
mount: mounting /dev/ram0 on /newroot failed: Invalid argument |
Quote:
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 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.
|
Quote:
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 so does this mean /dev doesn't contains any drives? |
Quote:
That way you won't need a livecd. Quote:
Code:
root hda(0,1) Code:
set root='hd0..... 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 Code:
/usr/src/linux-3.2.1-gentoo-r2/scripts/gcc-version.sh: line 25: ygcc: command not found 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: Code:
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01) Code:
# /etc/fstab: static file system information. Code:
default 0 |
Quote:
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? Code:
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) Code:
<*> AHCI SATA support Code:
<*> Intel PATA old PIIX support Code:
<*> Intel PATA MPIIX support Code:
/dev/sda1 /boot ext2 noauto,noatime 1 2 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). |
well what can i say :) ? thank you very much :) it finally worked.. it required a lot of patience but it worked :)
the Code:
<*> Intel PATA old PIIX support however pcnet32 was modular and was not included in the modules file, so i just put a star (*) instead of the (M) infront of it and followed the manual configuration of the kernel and the system booted flawlessly it just said that it failed to do something and fell to automatic detection of something but otherwise the system works fine. after that i tried installing vmware tools..and voila it also got installed :) first i did: Code:
ln -s /usr/src/linux/include/generated/utsrelease.h /usr/src/linux/include/linux/utsrelease.h then it detected by itself where gcc was and the kernel image headers..and everything else, however finally it finished with the following message: Code:
srvmon-esx vmware-tools-distrib # /etc/init.d/vmware-tools start next i added vmware to runlevel default Code:
rc-update add vmware-tools default i got: Code:
srvmon-esx ~ # /etc/init.d/vmware-tools start |
These failures might have something to do with kernel modules that, either, do not exist, or failed to load. Maybe "dmesg" in the VM can help you determine that.
I have no idea about vmware at all, but you can always look around in the kernel, and see if there's some related option (I doubt it), or, you can try installing app-emulation/vmware-modules if you haven't yet. Maybe these modules are there. Google might help you better with this than I. In any case, I am happy that we were able to solve this, at least in part :) |
well
Code:
dmesg so i was surprised to see the same fault shown in the output of dmesg: http://www.fileupyours.com/files/324524/dmesg can you make anything of it that might help me solve this old segfault problem? or should i make a new thread about that because googling about it didn't help much. hope you are doing fine in the tough economic times and the demonstrations where you are at :) |
Quote:
|
All times are GMT -5. The time now is 08:32 PM. |