這是一篇對於其他人來說沒什么意義的博客。單純的可以被看作是日記。
首先,我想安裝parallels tool。
但是照着網上很多教程(如www.cnblogs.com/artwalker/p/13235757.html等)做,都裝失敗了(盡管這些都是很好的教程)
總是在最后一布彈出:
An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
查了一下我的kali版本
# uname -a 1 ⨯ Linux thekali 5.9.0-kali1-amd64 #1 SMP Debian 5.9.1-1kali2 (2020-10-29) x86_64 GNU/Linux
估計是我版本過高,parallels tool版本不匹配了。
於是去網上下載各種parallels tool盤,並通過ssh傳到虛擬機里,但仍舊是
An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
於是我打算重新檢查一下log
鑒於英文不好,我打算直接用deepL翻譯器。奈何這個翻譯器只在本機上安裝了。於是我打算把log通過ssh傳到本機上。但是幾個命令下來,要么行不通,要么成功了(「get xxx remote xxx」命令)但指定路徑沒有log文件。
於是我干脆直接以博客園為媒介傳輸這個log:
2021-01-07T21:52:18+0800: Parallels Tools 15.1.4-47270 Installer started. 2021-01-07T21:52:18+0800: Failed to setup console printk level. 2021-01-07T21:52:23+0800: execCmd: ./install --check [0] 2021-01-07T21:52:23+0800: execCmd: ./installer/detect-xserver.sh -v >/dev/null 2>&1 [0] 2021-01-07T21:52:37+0800: execCmd: ./installer/pm.sh --check gtools [0] Started installation of Parallels Guest Tools version '15.1.4.47270' Error during report about start installation of parallels tools. Thu Jan 7 21:52:38 CST 2021 Start installation or upgrade of Guest Tools new version of parallels tools Installed Guest Tools were not found Register service to install new Guest Tools Perform installation into the /usr/lib/parallels-tools directory make: Entering directory '/usr/lib/parallels-tools/kmods' Will use compiler CC="cc". Compiler version "cc (Debian 10.2.0-16) 10.2.0" cd prl_eth/pvmnet && make CC=cc make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet' make -C /lib/modules/5.9.0-kali1-amd64/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet CC=cc make[2]: Entering directory '/usr/src/linux-headers-5.9.0-kali1-amd64' ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. make[3]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:718: include/config/auto.conf] Error 1 make[2]: Leaving directory '/usr/src/linux-headers-5.9.0-kali1-amd64' make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet' make[2]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:185: __sub-make] Error 2 make[1]: *** [Makefile:34: all] Error 2 make: Leaving directory '/usr/lib/parallels-tools/kmods' make: *** [Makefile.kmods:30: compile] Error 2 Error: could not build kernel modules Error during report about failed installation of parallels tools. Error: failed to install Parallels Guest Tools! 2021-01-07T21:52:38+0800: Started installation of Parallels Guest Tools version '15.1.4.47270' Error during report about start installation of parallels tools. Thu Jan 7 21:52:38 CST 2021 Start installation or upgrade of Guest Tools ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. make[3]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:718: include/config/auto.conf] Error 1 make[2]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:185: __sub-make] Error 2 make[1]: *** [Makefile:34: all] Error 2 make: *** [Makefile.kmods:30: compile] Error 2 Error: could not build kernel modules Error during report about failed installation of parallels tools. Error: failed to install Parallels Guest Tools! 2021-01-07T21:52:38+0800: execCmd: ./install --install [167] 2021-01-07T21:52:38+0800: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information. 2021-01-07T21:52:49+0800: Exiting with code 1