虚拟机的mac升级到10.12后,分辨率被锁定1024x768,直接vi编辑配置文件无法保存,在vmware中共享的文件夹也无法打开。
原因是10.11之后增加了System Integrity Protection (SIP)功能,禁止让软件以 root 身份来在 Mac 上运行。
好在有办法关掉。
常规办法是在引导时按住command+R键,进入recovery environment,在终端进行操作,比如这样:
How to turn off System Integrity Protection in El Capitan
Click the menu.
Select Restart...
Hold down command-R to boot into the Recovery System.
Click the Utilities menu and select Terminal.
Type csrutil disable and press return .
Close the Terminal app.
Click the menu and select Restart... .
不过虚拟机好像不太好正确按出来,可以尝试在引导时按住command键(普通键盘alt键)进入boot manager,然后选择Enter setup ——> Boot from a file ——> Recovery HD[PciRoot(0x0)/…] ——> ——> boot.efi