How to make MacOS kvm start from NVMe ssd?


frodr

Recommended Posts

I am running a MacOS kvm with a primary vdisk and a nvme ssd passed thru (the controller). I have cloned the nvme drive with Carbon Copy Cloner. How do I make the nvme ssd the startup drive?

 

Very happy for any help. 

 

 

Supermicro X11DAI-N, version 1.02 | AMI 3.1 | dual Xeon Silver 4116 | 64 MB RAM | 4 x WD SSD in RAID 10 Cache l Unraid 6.72 l Quadro RTX4000 for Plex docker l GTX 1070 for MacOS kvm l Samsung 970 Pro nvme for MacOS kvm

Edited by frodr
Link to comment
15 minutes ago, david279 said:

Add this too where you have the nvme device

 

   <boot order='1'/>

Thanks.

 

This is the only text added to the xml with reference to the nvme controller:

 

<hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x1a' slot='0x00' function='0x0'/>
      </source>
    </hostdev>

 

Can you tell me where it should be added, please?

 

 

Link to comment
5 minutes ago, david279 said:

You can put it in before the address line. 

Like this?

 

<hostdev mode='subsystem' type='pci' managed='yes'>
      <source>

        <boot order='1'/>
        <address domain='0x0000' bus='0x1a' slot='0x00' function='0x0'/>
      </source>
    </hostdev>

 

 

 

 

Link to comment
6 minutes ago, david279 said:

That should work

I got this message.

 

High up in the xml it says:

 

<os>
    <type arch='x86_64' machine='pc-q35-3.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/b6d807ac-76fd-78a5-3710-fe431bb5832b_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>

 

With a reference to current/old bott drive.

 

Screenshot 2019-09-22 at 23.58.50.png

Link to comment
3 hours ago, david279 said:

Try it under the address line

Removing the boot line in the OS section, I can same the xml file and start up the kvm. But I cannot connect, assuming that the nvme id not starting. I have set the <boot order='1'/> over, under, in between, etc. 

 

What does the 1 refer to?

 

 

Link to comment

Strange things happened. Setting <boot order='1'/> just above the address domain line, and the xml would not update. Trying again with  <boot order='1'/> above source and the xml was able to update. Then checking the xml, and the <boot order='1'/> was under the <source> line. 

 

<hostdev mode='subsystem' type='pci' managed='yes'>
      <source>

        <boot order='1'/>
        <address domain='0x0000' bus='0x1a' slot='0x00' function='0x0'/>
      </source>
    </hostdev>

 

The <boot order='1'/> line also moved when introduced vdisk again. And did not go away changing the xml in Form View. I was not able to save the kvm after this. I will have to make a new kvm from scratch. 

 

Thanks for the help so far, I will be back in a day or three. 

 

Cheers,

 

 

 

Link to comment

Hi,

 

New MacOS kvm is up and running, Nvidia GPU and nvme ssd are passthrough, and works fine. 

 

I would like to passthrough usb and boot from the nvme ssd as well.

 

In the xml form view a USB Aten International is selectable, but I can not connect to the kvm (it starts) when enabled. Disabling it, and I can again connect to the kvm. It is no pci usb in the server, only the onboard ones. System Devices show different usb devices, how can I pass some of them through?

 

The other topic is how to boot from the nvme ssd. A MacOS spesific setup of SIO`s Windows solution would be nice. 

 

Appreciate any help.

 

 

 

Screenshot 2019-09-25 at 21.37.56.png

Screenshot 2019-09-25 at 22.24.06.png

Screenshot 2019-09-25 at 22.24.32.png

Edited by frodr
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.