Install ESXi 8 on Intel 12th CPU – “Fatal CPU mismatch on feature”

This problem is caused by the new architecture of Intel CPUs which are equipped with different types of cores – Performance-cores and Efficient-cores.

The parameter needs to be set prior to installation and the first boot of ESXi.

  1. When ESXi installation starts, press SHIFT+O to edit boot options.
  2. Append cpuUniformityHardCheckPanic=FALSE
  3. Press ENTER
  4. Install ESXi
  5. When the installation is finished, reboot the system and press SHIFT+O to edit the boot options again.
  6. Append cpuUniformityHardCheckPanic=FALSE and press ENTER
  7. To make the kernel option permanent, run the following command on your ESXi host:
    # esxcli system settings kernel set -s cpuUniformityHardCheckPanic -v FALSE
    
  8. We also have to enable kernel option ignoreMsrFaults to prevent PSOD during VM startups.
    # esxcli system settings kernel set -s ignoreMsrFaults -v TRUE

This setting allows ESXi to work with different P-Cores and E-Cores

Oracle Cloud – Resize a boot volume on Ubuntu

Via OCI Console, to edit a block volume (Boot volume), you will need to navigate:

 Block Storage –> Boot Volumes –> Boot Volume Details (edit)

Once you finish this part, a popup will show the commands to be performed on the Linux machine console

sudo dd iflag=direct if=/dev/oracleoci/oraclevda of=/dev/null count=1
echo "1" | sudo tee /sys/class/block/`readlink /dev/oracleoci/oraclevda | cut -d'/' -f 2`/device/rescan

As we are using ubuntu, we are not able to use Oracle tools oci-growfs. But it’s easy, just two command:
# growpart /dev/sda 1;
# resize2fs /dev/sda1

Done. now run df -h you should be able to see the new size.

Nginx: Use same port for http and https traffic

This is finally possible to do properly since 1.15.2. See the information here.

your nginx.conf add a block like this (outside the http block):

stream {
    upstream http {
        server localhost:8000;
    }

    upstream https {
        server localhost:8001;
    }

    map $ssl_preread_protocol $upstream {
        default https;
        "" http;
    }

    server {
        listen 8080;
        listen [::]:8080;
        proxy_pass $upstream;
        ssl_preread on;
    }
}

Then you can create your normal server block, but listening on these different ports:

server {
    listen 8000;
    listen [::]:8000;
    listen 8001 ssl;
    listen [::]:8001 ssl;
...

Watch Netflix 4K HDR on Dell OLED monitor AW3423DW

I just purchased a Dell OLED monitor AW3423DW, and I was thinking finally I can enjoy Netflix 4K on my computer not.  But, things are not easy, Netflix can only play content content in HD (1080p). And I did some research and finally got Netflix working with 4K HDR.

Here are the steps you need to do:

1. Check your Graphics cards to make sure it supports HDCP 2.2, which means the video card need to have HDMI 2.0 or DisplayPort 1.4 or higher. I’m using old Nvidia GTX980, so I can only play Netflix with 1080p…. So Upgraded it to Nvidia RTX3070.

2. Enable HDR and Enable “Play streaming HDR video” in Windows Display settings.

3. Purchase and install HEVC Video Extensions from Microsoft Store.

4. Enable “Hardware Acceleration” in Edge via Settings – System and Performance – Use Hardware Acceleration. Only Edge or Chrome can play Netflix in 4K, Firefox or Netflix App can only stream 1080p content on windows.

5. Enter edge://flags in the URL bar and open,  Find PlayReady DRM for Windows 10/11 and select Enable. Then restart Edge.

For now you should be able to watch Youtube HDR content. But to watch Netflix in 4K, there is one more step…

6. If you have multiple monitors, you need to turn off any monitor not support HDCP 2.2. For example, my old Dell UP2716d monitor only has Display port 1.2 and HDMI 1.4 which both are not support HDCP 2.2. I need to turn the off before I start Edge, otherwise Netflix will only stream in 1080p.

After complete above steps, in Edge go to edge://gpu, and search for HDCP 2.2, you should be able to see it’s shown as true.

Once you completed all these steps, use Edge to open Netflix, and search a video, for example, Stranger Things, you should be able to see HDR logo. Once you start streaming it, press CRTL+ALT+SHIFT+S, then you should be able to see video resolution is 3440*1440. If you still see 1920*1080, then it means your video is still in 1080p.