I finally got sick and tired of all my windows laptops breaking physically one way or another. First there was ThinkPad Edge, then there was the ultrathin Sony Vaio (bought just before Sony sold the business and discontinued the thing).
Even hardcore developers, Linus Torvalds included, online seemed to agree that MacBooks are the best hardware on the market. In the store I was comparing HP and MacBook Pro side by side. HP had better specs but was uglier. The store clerk told me that if you want it to actually last, go for the MacBook.
So I did. Installed Windows 10 with Bootcamp. All was swell, until I decided to try the Beckhoff TwinCAT XAE environment for PLCs.
This is a guide for getting VT-x to actually be available for VMware and TwinCAT in a MacBook Pro. This does not always work, mind you. And it stops working the instant the laptop goes to sleep for the first time. Apparently this has been an issue for years. What’s taking so long, Apple? Seriously? Sheesh.
Step by step
The VT-x virtualization wasn’t enabled according to TwinCAT XAE environment. According to Intel’s tool, it was though.
Also according to Apple’s command line tool on OS X it was there (instructions).
Mac:~ user$ sysctl -a | grep machdep.cpu.features
kern.exec: unknown type returned
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM SSE3 MON VMX EST TM2 TPR PDCM
Ok, so maybe it is just disabled. How to enable it then?
After this, I was supposed to turn on OS X (which required me to press Alt key on startup since I had Windows setup as default for Boot Camp), and then from Finder menu boot to Windows. I did that, started up XAE, and magic! …. it didn’t work. But there was A DIFFERENT cryptical error message.
Ok, so I
- pressed start key,
- typed cmd,
- pressed the command prompt item that appeared with two fingers (on macbook that’s a right click, you know),
- selected Run as Administrator,
- cd’d to that path c:\TwinCAT\3.1\System,
- executed that BAT win8settick.bat file, it took a while to complete.
Started up XAE again, Activated Configuration, and now COMPUTER SAYS YES! I am happy now.
Saatavilla myös kielillä: englanti