Jump to content
Sign in to follow this  
Followers 0
massiveblue619

HightSierraとESXi6.5U1,Nvidia GPUパススルー

2 posts in this topic

Recommended Posts

初めまして。 :)
私は、ESXi6.5U1とNvidiaのGPUをパススルーしてHighSierraを動かしています。
MacPro(late2013)からの乗り換えでESXiでmacOSとWindowsの同時稼働を目標にして構築しました。
今の所安定して動いています。動作報告と構築方法を書きます。
仮想化でmacOSを動かしたい方の助けになればと思います

Hardware:
CPU: Intel Core i7-7820X
Memory: DDR4 64GB
M/B: MSI X299 SLI PLUS
GPU1: ELSA NVIDIA QuadroP400 2GB (macOS)
GPU2: ZOTAC GeForce GTX 1070 Mini 8GB (Windows)
Storage: Crucial MX300 525GB TypeM2 (macOS)
Intel SSD SDSC2KW256G8 256GB (ESXi DataStore)
Sandisk SSD SDSSDA120G 120GB (ESXi)
その他 HDDx4
USB HostController: Century CIF-USB3P4FL USB3.0 4Port (FL1100)
Audio: Yamaha Steinberg UR12 (USB)
Bluetooth: ELECOM LBT-UAN05C2/N
Monitor: ASUS PA279Q (DP=Displayport)
USB Device: Trackball, Apple Wireless Keyboard 他

Ethernet:

  • Vmware vmxnet3
  • Intel I211 Gigabit Network Connection (Windows)
  • Intel Gigabit CT Desktop Adapter XPI9301CT (macOS)

Hypervisor:

vSphere Hypervisor 6.5 Update1 (Hewlett Packard Enterprise)
VMKernel Build 6765664 -> VMKernel Build 7388607 [2018/02/21 Update]

 

GuestOS:

macOS HighSierra 10.13.2 (17C88) -> macOS HighSierra 10.13.3 (17D102)

Windows10 Pro Creators Update x64 -> Windows10 Pro Fall Creators Update x64

 

 

方法:
注意:SSHクライアントとターミナルの操作が必要な時があります。

ESXiをインストールしUnlockerPatchを適用済みの状態であること。

 

OSディスクのISO作成:

HighSierraのISOイメージ作成はGitHubのkholia/OSX-KVM にあるshスクリプトを利用しました。

作成したらESXiにアップロードします。

 

Pass-through:
ESXiのサーバーにログインしてパススルーしたいデバイスを有効にしておきます。ESXiの再起動が必要です。

パススルーしたデバイス。

  • ELSA NVIDIA QuadroP400 2GB
  • ZOTAC GeForce GTX 1070 Mini 8GB
  • Century CIF-USB3P4FL USB3.0 4Port (FL1100)
  • マザーボード上のUSB Host controller (Asmedia)
  • Intel I211 Gigabit Network Connection
  • Intel Gigabit CT Desktop Adapter XPI9301CT

ディスクの設定:

Crucial MX300 525GB を仮想マシンに直接利用させたいのでSSHクライアントでESXiに入り
RDM(RawDeviceMapping)を使い登録しておきます。
こちらを参考にしました。
https://gist.github.com/Hengjie/1520114890bebe8f805d337af4b3a064

 

私の場合、他にもMacProで利用していた外付けHDDをPCに収納してRDMで登録してあります。

 

仮想マシンの設定/OSインストール:
次にmacOS用の仮想マシンを作成します。ウィザードでゲストOSの選択では"macOS 10.12(64Bit)"を選択します。
この時はまだパススルーしたデバイスは登録しません。ハードディスクに先ほどRDMで設定したCrucialのVMDKを指定します。接続の種類はSATAを指定して下さい。仮想CD-ROMドライブには作成したISOイメージを選択します。

作成が完了したら、HighSierraのインストールとOSアップデート、そしてNvidiaのWebドライバーを予めインストールしておきます。
問題がないか確認してよければ仮想マシンをシャットダウンします。
準備ができたので仮想マシンのVMX編集に入り、パススルーしたデバイスを登録します。私の場合は、QuadroP400とCentury CIF-USB3P4FLを指定しました。編集を終わらせ保存します。

モニターとQuadroP400をDPケーブルで接続します。USBマウスやキーボードをパススルーしたUSBカードに接続します。
仮想マシンの電源をオンにします。うまくいけばモニターにログイン画面が映ります。 :thumbsup_anim:

VMware Toolsはインストールせずにそのまま使用しています。

 

Trimの有効化:
CrucialのSSDですがTrimが有効になっていないのでmacOSのターミナルから以下のコマンドで有効にします。再起動して

システムレポートから有効になっているか確認してください。

sudo trimforce enable

VMware Fusionを動かす:

ESXi上でVMwareFusionを動かしたい場合、このままだとFusion側の仮想マシンがエラーで起動できません。なのでESXiの設定を変更します。
SSHクライアントでESXiにログインします。/etc/vmware/config に以下を追記します。

vhv.enable = "TRUE"

保存したらESXiを再起動します。確認でmacOSを立ち上げてVMwareFusionで仮想マシンをオンにしてみてください。動くはずです。 :D

 

追記(2017/12/06):
ちなみにVMwareToolsはインストールていません。

​・ESXiのMacにVMwareToolsはインストールていません。
・CloverBootloaderは使用していません。

追記(2018/01/10):加筆・修正

追記(2018/02/21):ESXiアップデート、 Intel I211 Gigabit Network Connection と Intel Gigabit CT Desktop Adapter XPI9301CTを追加

 

post-2297350-0-53599000-1511197982_thumb.png
post-2297350-0-33907400-1511197993_thumb.png
post-2297350-0-59373200-1511198007_thumb.png
post-2297350-0-20874400-1511198483_thumb.png
post-2297350-0-46303800-1511198470_thumb.png
post-2297350-0-00711000-1511198495_thumb.png

post-2297350-0-53599000-1511197982_thumb.png

post-2297350-0-33907400-1511197993_thumb.png

post-2297350-0-59373200-1511198007_thumb.png

post-2297350-0-46303800-1511198470_thumb.png

post-2297350-0-20874400-1511198483_thumb.png

post-2297350-0-00711000-1511198495_thumb.png

Share this post


Link to post
Share on other sites
Advertisement

30bit Color Enable:

ESXi上では24Bitカラーですが、MacProの時はPA279との接続では30bit表示でしたこれを再度有効するために

調べた所できました。

 

参考にしたTopic

http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-01112017/page-37

 

com.apple.windowserver.plistの削除

Library/Prefrences/com.apple.windowserver.plist

ResXtremeを使い、2560x1440 Depth:8 Bits/Sample 10を選択して30bitになります。

 

post-2297350-0-85771300-1511339395_thumb.png
post-2297350-0-76977700-1511339403_thumb.png

post-2297350-0-85771300-1511339395_thumb.png

post-2297350-0-76977700-1511339403_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Angelo_
      ho recentemente acquistato un ssd crucial mx500 (arrivato stamattina) e non ho idea di come trasferire il sistema operativo e clover dal mio attuale wd black 500 (2.5" che ho preso da un portatile a caso in casa) su questo nuovo ssd per vedere se questo rende il sistema più reattivo, sul sito crucial dicono solo come copiare i dati e os sul disco ma niente (ovviamente), cosa devo fare per sostituire bootloader, os, programmi e dati su questo nuovo disco? Ho in dualboot win 10 pro (che avvia da un altro 128gb ssd) quindi posso usare anche programmi da win, da una distro linux o da pennetta, non ho usato un granchè osx in quanto l'hdd credo lo renda lento quindi non sono molto esperto in queste cose su osx
      Inoltre mi conviene rimanere su hfs+ o usare apfs come file system?
    • By fusion71au
      Making a High Sierra USB Installer Entirely From Scratch in Windows
      This is a proof of concept tutorial, to show it's possible to create a vanilla High Sierra installer, entirely from scratch, in Windows (even without App Store downloaded "Install macOS High Sierra.app" from a real Mac ).  @PikeRAlpha's link to Apple's Software Catalog provides us with all the URLs necessary to download the needed files directly from Apple instead of some dubious source from the internet...
       

      Pre-Requisites
      8GB or larger USB drive Boot Disk Utility v2.1.2017rev021b from @CVAD TransMac (free 15 day trial) Paragon Hard Disk Manager Free Download Installer Files Directly from Apple
      1)  Browse Apple's Regular Software Catalog and find the URLs to download the following 6 installer files...
      BaseSystem.dmg BaseSystem.chunklist InstallInfo.plist InstallESDDmg.pkg AppleDiagnostics.dmg AppleDiagnostics.chunklist (Hint - search page for "InstallESD" to find its URL and others nearby)

      to a folder named "SharedSupport" on your Windows NTFS drive.  A browser download manager (eg Chrono for Chrome, dTA for FireFox) is handy since InstallESD is >4GB ---> allows you to pause/resume interrupted download...

      2)  Rename InstallESDDmg.pkg to InstallESD.dmg
      3)  Edit InstallInfo.plist with WordPad/text editor to remove the chunklistURL and chunklistid keys for InstallESD, and renaming it from InstallESDDmg.pkg to InstallESD.dmg (example of edited file attached to this post)...
      Note:  You can verify the SHA1 checksum of your InstallESD.dmg and BaseSystem.dmg with the correct ones at this website.
      Boot Disk Utility to format the Installer USB and Restore OS X Base System HFS partition
      1.  Format USB with BDU & latest Clover ---> creates boot files in CLOVER partition + second FAT partition
      2.  Extract 4.hfs from \SharedSupport\BaseSystem.dmg with BDU --> save to it's local folder
      3.  Restore 4.hfs to USB second partition with BDU --->  2nd partition becomes bootable "OS X Base System"
      Paragon Hard Disk Manager to extend HFS Partition to its Full Extent
      Open Paragon Partition Manager Free and resize the second partition of the USB drive to the full size allowed.  Don't forget to apply the changes at the end...
      Transmac to Copy "SharedSupport" folder to OS X Base System
      1.  Open the TransMac program and navigate to the HFS+ Volume/Install macOS High Sierra.app/Contents folder.  Right click anywhere in the empty space on the RHS pane and select "Copy Here"...
      2.  In the next stage, select the "SharedSupport" folder we created above as the "Files and Folders to be copied to the Mac Volume"...
      Clover Settings
      Clover configuration is required now.  The default config.plist (in the Clover FAT32 partition of the USB) maybe sufficient to boot your machine if you’re lucky.  If not, look at the Clover Wiki, Clover Instructions and Clover Configuration Thread for pointers and edit /EFI/Clover/config.plist accordingly with Wordpad or Notepad.
      The location of the important configuration files for Clover are summarized below
      config.plist--->EFI/CLOVER folder DSDT.aml with or without SSDT.aml--->EFI/CLOVER/ACPI/patched (don't need one if your DSDT is auto patched by Clover in config.plist) Kexts eg FakeSMC, NullCPUPowerManagement --->EFI/CLOVER/kexts/<osx version> or /Other. NB BootDiskUtility by default already has FakeSMC.kext installed here.  You may need to add VoodooPS2Controller for your laptop keyboard/trackpad to work. If UEFI booting, you will most likely need one of the OsxAptioFixDrv-64 drivers copied from /EFI/CLOVER/drivers-off/drivers64UEFI to /EFI/CLOVER/drivers64UEFI. If you want to use the installer to run High Sierra in Windows on VMware, you can follow my guide to set up the Virtual Machine and replace Clover's default config with EFI_Clover for VMware (which is compatible to run in VMware).  In the screenshots below, I have attached the USB Installer (in this case PhysicalDrive7) to my macOS Virtual Machine.  Reboot the system to the USB installer to install High Sierra ...
      What happens if we don't have access to TransMac or Paragon Hard Disk Manager?
      Not a problem, as long as we get "OS X Base System" bootable, we can launch terminal from the Utilities Menu to copy the SharedSupport folder over to the Installer app.  In essence, we will build the full installer app = 5GB+ on the target HD eg "Macintosh HD", by copying both the "small" installer app = 15MB (on "OS X Base System") and the SharedSupport folder from the NTFS volume (mounted in this example on /Volumes/DATA)...
      -bash-3.2# cd / -bash-3.2# cp -R Install\ macOS\ High\ Sierra.app /Volumes/Macintosh\ HD/ -bash-3.2# cp -R /Volumes/DATA/SharedSupport /Volumes/Macintosh\ HD/Install\ macOS\ High\ Sierra.app/Contents/  
      ...then start installation with the startosinstall utility...
      -bash-3.2# /Volumes/Macintosh\ HD/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall --volume /Volumes/Macintosh\ HD --converttoapfs NO --applicationpath /Volumes/Macintosh\ HD/Install\ macOS\ High\ Sierra.app  
      The above steps can be automated with the attached "startosinstall.command" script, which will assemble "Install macOS High Sierra.app" on "Macintosh HD" and launch the startosinstall utility targeting the "Macintosh HD" volume.  Copy/download to "Macintosh HD", then run in terminal (after attaching DATA USB with /Shared Support folder)...
      cd "/Volumes/Macintosh HD" chmod +x startosinstall.command ./startosinstall.command Updated Download Links for macOS Mojave 10.14beta
      Browse Apple's Public Beta Software Catalog and find the URLs to download the following 6 installer files...
      BaseSystem.dmg BaseSystem.chunklist InstallInfo.plist InstallESDDmg.pkg AppleDiagnostics.dmg AppleDiagnostics.chunklist  
      startosinstall.command.zip
       
      InstallInfo.plist_edited_10.14beta1.zip
      InstallInfo.plist_edited_10.13.6.zip
    • By Tom Snow
      Hello everyone, it sure has been a while since I last posted here. I'm trying to upgrade my Hackintosh to High Sierra, and right now it's running Sierra which I installed last year. My hardware is a Gigabyte Z68MA-D2H-B3 mobo with Intel Core i5-2500K. Unfortunately, I can't even run the installer. I have an installer USB stick with Clover 4558 on it, and whenever I try to run the installer from it, I get a KP after an extremely long boot process. There are so many panic messages that flash by so fast, but I think I got everything relevant in these pics.
       
       


    • By Justice King
      Hello, 
       
      I just finished hackintosh installation on my computer with below configuration,
       
      CPU : Intel i5 8400
      MOBO : ASUS ROX STRIX H370-F GAMING
      GPU : On board Intel UHD 630
      RAM : 8 GB Crucial
      SSD : 240 GB WD
      PS : Corsair VS550W
      Cabinet : Corsair 100R
      OS : High Sierra 10.13.5
       
      Everything is working fine except Graphics full acceleration, i get only 7 MB GPU.
       
      Tried with IntelGraphicsFix, Lilu.. and other Kexts.. but nothing is working. 
       
      Any help to get full GPU would be appreciated.
       
      Thanks  
    • By crazybirdy
      Patched OSInstaller.framework to allow macOS 10.13 installation on MBR partition.
       
      To use those patched files you must follow HowTo-10.13.x to create an USB installer. You can't just run the app downloaded from Mac App Store.
       
      The patch is made base on 落下爱@pcbeta 10.10.x MBR patch method, and more patch for 10.13 Firmware check by crazybirdy.
       
      What is this patched OSInstaller doing?
      1. Patch the MBR check, allow macOS 10.14 installation on MBR partition.
      2. Patch the Firmware check, bypass the error of "An error occurred while verifying firmware".
      3. This patched MBR OSInstaller method works with both MBR and GPT partition (GPT+recovery).

      No longer need to set new SMbiosversion, FirmwareFeatures, and FirmwareFeaturesMask with this MBR-patch.
       
      How to make 10.13 installer for MBR?
      Read HowTo-10.13.x.txt inside the zip file first, different with 10.12.
      Read HowTo Q/A Q7. How to install in different computer with only one USB partition?
      Read HowTo Q/A Q8. How to update 10.13.x combo-update to MBR without downloading the full installer app again?
      Read HowTo Q/A Q9. How to update 10.13.x combo-update to MBR and GPT with installScript directly?
       
      Just use 13MBRinstallerMaker to make installer, it works with both MBR and GPT.
       
      And, need a SMBIOS supported with /System/Library/CoreServices/PlatformSupport.plist.
       
       
      Q: What's the difference between createinstallmedia method and MBR-patch method?
      A: As the following....
      1. createinstallmedia method, needs stage 1, stage 2 installation process, worked with GUID only.
      2. MBR-patch method, install via stage 2 directly, worked with both MBR and GUID, HFS+ and APFS.
×