Procurando por um caminho de cabeçalho de kernel válido…?

0

Estou tentando instalar o vmware-tools em um convidado linux, mas ele não me dá um erro de caminho válido quando eu digito / usr / src / linux.

 The path "" is not a valid path to the 3.3.0-2-desktop kernel headers.
 Would you like to change it? [yes]

 Enter the path to the kernel header files for the 3.3.0-2-desktop
 kernel? /usr/src/linux

 The path "/usr/src/linux" is not a valid path to the 3.3.0-2-desktop kernel
 headers.
 Would you like to change it? [yes] yes

 Enter the path to the kernel header files for the 3.3.0-2-desktop
 kernel? /usr/src/linux/

 The path "/usr/src/linux/" is not a valid path to the 3.3.0-2-desktop kernel
 headers.
 Would you like to change it? [yes] yes

Mas eu sempre tenho minha fonte linux em / usr / src / linux? Eu já instalei o kernel-devel e o kernel-source. Minha distro é SUSE 12.2. A pasta / usr / src / linux é preenchida com a fonte linux. Aqui está minha opção:

 S | Name                           | Zusammenfassung                | Typ       
 --+--------------------------------+--------------------------------+-----------
   | devel_kernel                   | Linux-Kernel-Entwicklung       | Schema    
   | kernel-coverage                | Kernel Coverage Imageing, Ga-> | Paket     
   | kernel-debug                   | A Debug Version of the Kernel  | Paket     
   | kernel-debug                   | A Debug Version of the Kernel  | Quellpaket
   | kernel-debug-base              | A Debug Version of the Kerne-> | Paket     
   | kernel-debug-devel             | Development files necessary -> | Paket     
   | kernel-default                 | The Standard Kernel            | Paket     
   | kernel-default                 | The Standard Kernel            | Quellpaket
   | kernel-default-base            | The Standard Kernel - base m-> | Paket     
   | kernel-default-devel           | Development files necessary -> | Paket     
 i | kernel-desktop                 | Kernel optimized for the des-> | Paket     
   | kernel-desktop                 | Kernel optimized for the des-> | Quellpaket
   | kernel-desktop-base            | Kernel optimized for the des-> | Paket     
 i | kernel-desktop-devel           | Development files necessary -> | Paket     
 i | kernel-devel                   | Development files needed for-> | Paket     
   | kernel-docs                    | Kernel Documentation           | Paket     
   | kernel-docs                    | Kernel Documentation           | Quellpaket
   | kernel-ec2                     | The Amazon EC2 Xen Kernel      | Paket     
   | kernel-ec2                     | The Amazon EC2 Xen Kernel      | Quellpaket
   | kernel-ec2-base                | The Amazon EC2 Xen Kernel - -> | Paket     
   | kernel-ec2-devel               | Development files necessary -> | Paket          
   | kernel-ec2-extra               | The Amazon EC2 Xen Kernel - -> |                 
   | kernel-firmware                | Linux kernel firmware files    | 
   | kernel-pae                     | Kernel with PAE S                                
   | kernel-pae                     | Kernel with PAE                                  
   | kernel-pae-base                | Kernel with PAE Support - ba-> | Paket     
   | kernel-pae-devel               | Development files necessary -> | Paket     
 i | kernel-source                  | The Linux Kernel Sources       | Paket     
   | kernel-source                  | The Linux Kernel Sources       | Quellpaket
   | kernel-source-vanilla          | Vanilla Linux kernel sources-> | Paket     
   | kernel-syms                    | Kernel Symbol Versions (modv-> | Paket     
   | kernel-syms                    | Kernel Symbol Versions (modv-> | Quellpaket
   | kernel-trace                   | The Standard Kernel with Tra-> | Paket     
   | kernel-trace                   | The Standard Kernel with Tra-> | Quellpaket
   | kernel-trace-base              | The Standard Kernel with Tra-> | Paket     
   | kernel-trace-devel             | Development files necessary -> | Paket     
   | kernel-vanilla                 | The Standard Kernel - withou-> | Paket     
   | kernel-vanilla                 | The Standard Kernel - withou-> | Quellpaket
   | kernel-vanilla-base            | The Standard Kernel - withou-> | Paket     
   | kernel-vanilla-devel           | Development files necessary -> | Paket     
   | kernel-xen                     | The Xen Kernel                 | Paket     
   | kernel-xen                     | The Xen Kernel                 | Quellpaket
   | kernel-xen-base                | The Xen Kernel - base modules  | Paket     
   | kernel-xen-devel               | Development files necessary -> | Paket     
   | kerneloops                     | Tool to collect kernel oopse-> | Paket     
   | kerneloops-applet              | Tool to collect kernel oopse-> | Paket     
   | nfs-kernel-server              | Support Utilities for Kernel-> | Paket     
   | patterns-openSUSE-devel_kernel | Meta package for pattern dev-> | Paket   

zypper se -si 'kernel *' imprime isto:

 S | Name                 | Typ   | Version   | Arch   | Repository      
 --+----------------------+-------+-----------+--------+-----------------
 i | kernel-desktop       | Paket | 3.3.0-2.1 | x86_64 | 12.2 milestone 2
 i | kernel-desktop-devel | Paket | 3.3.0-2.1 | x86_64 | 12.2 milestone 2
 i | kernel-devel         | Paket | 3.3.0-2.1 | noarch | 12.2 milestone 2
 i | kernel-source        | Paket | 3.3.0-2.1 | noarch | 12.2 milestone 2
    
por Bytemain 25.04.2012 / 20:43

2 respostas

1

Você não menciona qual distro seu convidado linux está executando. Mais informações ajudariam a fornecer uma resposta mais descritiva.

Você deve instalar (ou potencialmente ambos) os pacotes kernel-devel ou kernel-headers . Você também pode precisar instalar os pacotes ou grupos de ferramentas de desenvolvimento para que o vmware-tools possa compilar.

    
por 25.04.2012 / 20:46
1

Uma referência rápida sobre como instalar o VMware Workstation 9 no OpenSUSE 12.2 deve ser aplicável a esse problema. Também corrige o erro de cabeçalhos do meu kernel.

como instalar a estação de trabalho vmware 9 no Opensuse 12.2

  1. Download VMware Workstation 9.0 binary for Linux

  2. After download, you should have a file similar to VMware-Workstation-Full-9.0.0-812388.x86_64.bundle

  3. Now open terminal and type the following command. Actually you can also do this step using GUI but I prefer command line:

    chmod +x VMware-Workstation-Full-9.0.0-812388.x86_64.bundle
    

Now install using command

sh VMware-Workstation-Full-9.0.0-812388.x86_64.bundle

Then, VMware Installer will open up. Follow the wizard until finished.

    
por 11.09.2012 / 00:35

Tags