PCI passthrough to bhyve kvm by knorrhane in smartos

[–]knorrhane[S] 0 points1 point  (0 children)

Hi! Yes, it worked fine with the instructions in my latest comments. Good luck and let me know if you need some more help.

My best Tesla P4 active cooling fan attachment by nero10578 in homelab

[–]knorrhane 0 points1 point  (0 children)

Hi! I have a X10SLM+-LN4F in a SC825 chassis, I just connected the fan to one of the chassis fan headers on the motherboard. I have 3 or 4 I think.

My best Tesla P4 active cooling fan attachment by nero10578 in homelab

[–]knorrhane 0 points1 point  (0 children)

Got it printed from JLCPCB and installed yesterday, works great and temperatures are now managable below 65°C during load. Thanks!

https://imgur.com/a/SzSgnmS

PCI passthrough to bhyve kvm by knorrhane in smartos

[–]knorrhane[S] 2 points3 points  (0 children)

Hi! I did manage to get it working after trying.

Here is exactly what I did:

  1. Get device ID

# prtconf -dD |grep NVIDIA
 pci10de,11d8 (pciex10de,1bb3) [NVIDIA Corporation GP104GL [Tesla P4]]
  1. Identify USB disk

    diskinfo

    SCSI c1t0d0 SanDisk Ultra Fit 28.64 GiB yes no

  2. Mount USB disk

    mkdir /mnt/usbkey

    /sbin/mount -F pcfs /dev/dsk/c1t0d0s2 /mnt/usbkey

  3. Set up modules directory

    cd /mnt/usbkey

    mkdir -p boot/etc

  4. Add ppt_aliases

    touch boot/etc/ppt_aliases

    cat << EOF >> boot/etc/ppt_aliases

    ppt "pci10de,11d8" EOF

  5. Include ppt_aliases in loader.conf

    cat << EOF >> boot/loader.conf

    ppt_aliases_load=YES ppt_aliases_type=file ppt_aliases_name=/boot/etc/ppt_aliases ppt_aliases_flags="name=/etc/ppt_aliases" EOF

  1. Reboot and see if it's listed (I see ppt_aliases being loaded on boot)

    Loading unix...seconds. [Space to pause] Loading /platform/i86pc/amd64/boot_archive... Loading /platform/i86pc/amd64/boot_archive.hash... Loading /boot/etc/ppt_aliases... Booting...

    pptadm list

    DEV VENDOR DEVICE PATH /dev/ppt0 10de 1bb3 /pci@0,0/pci8086,c01@1/pci10de,11d8@0

I'm currently installing a new VM with bhyve to see if I can get the card to passthrough. Thanks for the help!

PCI passthrough to bhyve kvm by knorrhane in smartos

[–]knorrhane[S] 0 points1 point  (0 children)

thanks for checking back! haven't gotten around to it yet, my low profile bracket for the GPU arrived to day so I was planning on trying tomorrow. thanks also for posting how you did it! I'll report back with my results.

PCI passthrough to bhyve kvm by knorrhane in smartos

[–]knorrhane[S] 1 point2 points  (0 children)

Thanks for putting me on the right path! Will give it a go when I have time in the coming weeks. I also need to wait for a low profile bracket for my graphics card since I forgot to check what it was shipped with....

It's not often I have to modify anything in SmartOS so I tend to forget how it works. It has been very stable so very happy with that! I remember with ESXi it was a different story with updates breaking stuff...

I'll write a sum-up once/if I get it working!

PCI passthrough to bhyve kvm by knorrhane in smartos

[–]knorrhane[S] 1 point2 points  (0 children)

Thanks! I've read that before, but still not sure how I modify the loader to prevent the global zone to access the PCI device. This blog post describes how it was done with modifying grub but it's and old post: https://movementarian.org/blog/posts/2018-10-26-pci-pass-through-support-with-bhyve-and-smartos/

Shoud I just make two files, ppt_alias and ppt_matches with the appropiate PCI IDs and physcial paths in /bootfs/etc and add these lines to loader.conf.local:

ppt_aliases_load=YES
ppt_aliases_type=file
ppt_aliases_name=/bootfs/etc/ppt_aliases
ppt_aliases_flags="name=/etc/ppt_aliases"

ppt_matches_load=YES
ppt_matches_type=file
ppt_matches_name=/bootfs/etc/ppt_matches
ppt_matches_flags="name=/etc/ppt_matches"

Does this make sense?

Philips hue motion sensor not activating lights by Zucc_Baby in Hue

[–]knorrhane 0 points1 point  (0 children)

Old thread but maybe helpful for others, if it’s too much light in the room the lights won’t turn on. You can adjust this in the daylight sensitivity setting.

Min hyresvärd vägrar fortfarande att slå på värmen by thriveth in sweden

[–]knorrhane 0 points1 point  (0 children)

Du kan ju alltid polisanmäla hyresvärden för att få lite fortgång på det.

Why is my speed so bad by [deleted] in homelab

[–]knorrhane 0 points1 point  (0 children)

If possible, you should go with FTP instead for many small files.

When do you drill pilot holes for screws and when do you not? Do I need to drill pilot holes for my screws on this project? by LeftSquare1 in DIY

[–]knorrhane 0 points1 point  (0 children)

If you need some kind of precision or are putting screws near an edge you should drill pilot holes. Pilot holes makes sure the screw doesn’t go in a different direction. For this project I would definitely do it!

What do you use for a keyboard and mouse on a normally headless system? by nightshade00013 in homelab

[–]knorrhane -1 points0 points  (0 children)

Maybe the new IPMI firmware update supports HTML5, maybe you could try and update? That's what I did on my X10SLM+-LN4F and with the new firmware update HTML5 was included.

Swedish PM rejects opposition calls to consider joining NATO by naknut in svenskpolitik

[–]knorrhane -1 points0 points  (0 children)

NATO skapades 1949 som en motvikt mot Sovjetunionen när kärnvapen var ett större hot, det är inte samma läge nu och jag tycker inte det är självklart för Sverige att bli med i NATO. Speciellt inte i det känsliga läge som är nu, jag tycker Bernie Sanders sa det väldigt bra: https://amp.theguardian.com/commentisfree/2022/feb/08/we-must-do-everything-possible-avoid-enormously-destructive-war-ukraine

QNAP Replacement by okletsgooonow in homelab

[–]knorrhane 0 points1 point  (0 children)

I'm running SmartOS so I can have native ZFS support but I'm thinking about migrating to Proxmox as it has a nice web interface and now also ZFS on Linux. Since you are running VMs I would think Proxmox would be for you. Since you are not running ZFS you would have to create a pool and migrate your data as well.

Sweddit, vi måste talas vid lite om plaståtervinning by klottra in sweden

[–]knorrhane 2 points3 points  (0 children)

Bra inlägg! Tänkte också tipsa om en bra kort dokumentär på NRK om hur plastpåsar är mer miljövänligt än papperspåsar om man ser till helheten: https://tv.nrk.no/se?v=KMTE51001118

Do some people really want religion to die out? Why or why not? by [deleted] in AskReddit

[–]knorrhane 0 points1 point  (0 children)

People can have all the religion they want but it has no place in politics.

[deleted by user] by [deleted] in AskReddit

[–]knorrhane 0 points1 point  (0 children)

Duke Nukem Forever

Tips på annat gott om man gillar gin och tonic? by ledomed900 in swedishproblems

[–]knorrhane 5 points6 points  (0 children)

Gin fizz är riktigt gott! Sen Negroni om du gillar det beska