2013-11-26 55 views
-1

我想在运行Chrubuntu 12.04的Samsung XE500C21上安装VMware Workstation。我能够检索并安装3.4.0的通用linux头文件。但是,每当我尝试启动VMware Workstation时,我仍然会得到:Chrubuntu上的VMware Workstation 12.04

未找到版本3.4.0的内核头文件。

甚至指向在/ usr/src目录,我得到了标题后:

C头文件符合运行的内核都没有发现。

有人对我如何让VMware Workstation启动并在我的Chrubuntu机器上工作有什么想法吗?我一直在研究和实验两天。

运行使用uname -r得到:3.4.0

而且,我读到的VMware Player可以在任何Linux发行运行:https://superuser.com/questions/571384/can-vmware-player-run-on-an-acer-a7-running-chrubuntu

但我不知道为什么VMware工作站将无法正常工作与通用的3.4.0头。

+0

给出更多详细信息 – codercat

+0

问题是我没有关于这个问题的更多细节。我不知道为什么VMware Workstation无法正常工作。我有位于我的/ usr/src文件夹中的linux-headers-3.4.0-030400和linux-headers-3.4.0-030400-通用文件夹。我也遵循这个指南为我的Chrubuntu安装:http://chromeos-cr48.blogspot.com/2012/04/chrubuntu-1204-now-with-double-bits.html – pr0d1gy

+0

我也尝试过每个内核的建设脚本,人们已经为C7 Chromebook取得了成功,但他们都没有成功。 – pr0d1gy

回答

1

最后,我解决了我的问题。我下面的教程解释了如何获得自定义的3.4.0内核头文件并且在你的三星Series 5 Chromebook上工作。注意:你必须有一个非ARM处理器才能工作。另外,如果您还没有这样做,请使用本教程将Chrubuntu 12.04安装到您的Samsung Series 5:http://chromeos-cr48.blogspot.com/2012/04/chrubuntu-1204-now-with-double-bits.html

确保在运行脚本之前以root身份登录。

1.运行该脚本,我从宏碁C7教程(修改注意:当你得到的消息不覆盖内核只需点击yes如果重写内核,它可能会导致你的Chrubuntu。安装故障):

#!/bin/bash 
#Edited 11/27/2013 
#Fixes the old_bins directory not found error 

set -x 

# 
# Grab verified boot utilities from ChromeOS. 
# 
mkdir -p /usr/share/vboot 

# 
#Make a new directory called old_bins 
# 
mkdir -p /usr/bin/old_bins 


mount -o ro /dev/sda3 /mnt 

# 
#copy the vbutil_* commands to the old_bins directory 
# 
cp /mnt/usr/bin/vbutil_* /usr/bin/ 
cp /mnt/usr/bin/vbutil_* /usr/bin/old_bins 


cp /mnt/usr/bin/dump_kernel_config /usr/bin 
rsync -avz /mnt/usr/share/vboot/ /usr/share/vboot/ 
umount /mnt 

# 
# On the Acer C7, ChromeOS is 32-bit, so the verified boot binaries need a 
# few 32-bit shared libraries to run under ChrUbuntu, which is 64-bit. 
# 
apt-get install libc6:i386 libssl1.0.0:i386 

# 
# Fetch ChromeOS kernel sources from the Git repo. 
# 
apt-get install git-core 
cd /usr/src 
git clone https://git.chromium.org/git/chromiumos/third_party/kernel.git 
cd kernel 
git checkout origin/chromeos-3.4 

# 
# Configure the kernel 
# 
# First we patch ``base.config`` to set ``CONFIG_SECURITY_CHROMIUMOS`` 
# to ``n`` ... 
cp ./chromeos/config/base.config ./chromeos/config/base.config.orig 
sed -e \ 
    's/CONFIG_SECURITY_CHROMIUMOS=y/CONFIG_SECURITY_CHROMIUMOS=n/' \ 
    ./chromeos/config/base.config.orig > ./chromeos/config/base.config 
./chromeos/scripts/prepareconfig chromeos-intel-pineview 
# 
# ... and then we proceed as per Olaf's instructions 
# 
yes "" | make oldconfig 

# 
# Build the Ubuntu kernel packages 
# 
apt-get install kernel-package 
make-kpkg kernel_image kernel_headers 

# 
# Backup current kernel and kernel modules 
# 
tstamp=$(date +%Y-%m-%d-%H%M) 
dd if=/dev/sda6 of=/kernel-backup-$tstamp 
cp -Rp /lib/modules/3.4.0 /lib/modules/3.8.0-backup-$tstamp 

# 
# Install kernel image and modules from the Ubuntu kernel packages we 
# just created. 
# 
dpkg -i /usr/src/linux-*.deb 

# 
# Extract old kernel config 
# 
vbutil_kernel --verify /dev/sda6 --verbose | tail -1 > /config-$tstamp-orig.txt 
# 
# Add ``disablevmx=off`` to the command line, so that VMX is enabled (for VirtualBox & Co) 
# 
sed -e 's/$/ disablevmx=off/' \ 
    /config-$tstamp-orig.txt > /config-$tstamp.txt 

# 
# Wrap the new kernel with the verified block and with the new config. 
# 
vbutil_kernel --pack /newkernel \ 
    --keyblock /usr/share/vboot/devkeys/kernel.keyblock \ 
    --version 1 \ 
    --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \ 
    --config=/config-$tstamp.txt \ 
    --vmlinuz /boot/vmlinuz-3.4.0 \ 
    --arch x86_64 

# 
# Make sure the new kernel verifies OK. 
# 
vbutil_kernel --verify /newkernel 

# 
# Copy the new kernel to the KERN-C partition. 
# 
dd if=/newkernel of=/dev/sda6 

2.它不应该完成第一次运行。你会得到一个关于fstack-protector-strong的错误。导航到/usr/src/kernel/arch/x86/Makefile,并从stackp-y := -fstack-protector-strong编辑78号线到stackp-y := -fstack-protector-all

与新修改Makefile文件再次运行该脚本。再次,不要覆盖内核。

4.你应该得到一些更多的错误,但不用担心。现在是打开VMware Workstation的时候了。当你得到内核3.4.0头缺少提示时,将提示框指向:/usr/src/linux-headers-3.4.0/include

5.你完成了!一切都应该现在工作。感谢michaela_elise(Reddit)创建原始脚本并指出-fstack-protector-strong问题。 (注意:您可能需要在第二次和最后一次运行脚本后重新启动。第二次运行脚本后,我的虚拟机工作站发生故障。)

0

三星chromebooks有ARM处理器,所以我不确定他们会。我建议你放弃。我详细研究了在我的Acer Chromebook上安装linux-headers-3.4.0,但无济于事。人们说它是有效的,我已经运行了至少10个不同的脚本,但所有脚本都失败了。我通过goo.gl/tnyga安装了64位ChrUbuntu 12.04。

+0

我有一个x86处理器,但我想出了我的问题。 – pr0d1gy

+0

如果您有x86 Acer Chromebook,请尝试使用上述方法 – pr0d1gy

相关问题