[sticky entry] Sticky: Point of contact

Apr. 3rd, 2021 15:50
gemelen: (Mage)
Email: dw@gemelen.net
Line ID: gemelen
Mastodon: mammut.moe/@gemelen
gemelen: (Default)

PCI Device Passthrough Guide for illumos (bhyve) Zone

Mostly a compilation of already existing guides on how to pass a PCI device into illumos (bhyve) zone.

Task:

Tuxedo InfinityBook v4 is bundled with an Intel Corporation Wi-Fi 5(802.11ac) Wireless-AC 9x6x (Thunder Peak) adapter, which has no relevant driver on illumos.

As an experiment, I'd like to passthrough this adapter to a VM that has a driver for it, thus could provide a connectivity. For the test stage, bhyve zone with Ubuntu 24.04 would be good enough.

Pre-requisites:

  • SmartOS set up on the laptop
  • Ubuntu 24.04 zvol image imported via imgadm
  • Ubuntu bhyve zone manifest created with NICs a) for initial stage, would be removed later b) for communication with global zone
  • bhyve zone created, booted and reachable via ssh (or serial console)

Steps:

1. Find a PCI id of the adapter

prtconf -Dd

...
i86pc (driver name: rootnex)
    ...
    pci, instance #0 (driver name: npe)
        ...
        pci8086,9db1 (pciex8086,9db1) [Intel Corporation Cannon Point-LP PCI Express Root Port #10], instance #4 (driver name: pcieb)
            pci8086,14 (pciex8086,2526) [Intel Corporation Wi-Fi 5(802.11ac) Wireless-AC 9x6x [Thunder Peak]], instance #0

2. Configure PCI passthrough

As I'm using piadm to manage platform images, there is more than one such image. For the sake of simplicity, I'm taking a shortcut and placing configuration files directly under the current platform directory hierarchy, leaving their persistence across platform upgrades out of this manual

Create a ppt_aliases configuration to bind a device to a ppt driver

echo 'ppt "pci8086,14"' >> /zones/boot/boot/etc/ppt_aliases

Create a loader configuration that will instruct the loader to use that binding

cat <<EOF >> /zones/boot/boot/loader.conf.local
ppt_aliases_load=YES
ppt_aliases_type=file
ppt_aliases_name=/boot/etc/ppt_aliases
ppt_aliases_flags="name=/etc/ppt_aliases"
EOF

3. Reboot and verify that the device now is handled by the ppt driver

pptadm list

DEV        VENDOR DEVICE PATH
/dev/ppt0  8086   2526   /pci@0,0/pci8086,9db1@1d,1/pci8086,14@0

4. Get the target zone's id and add the device to it

zonecfg -z <zoneid>
zonecfg:<zoneid>> add device
zonecfg:<zoneid>:device> set match="/devices//pci@0,0/pci8086,9db1@1d,1/pci8086,14@0"
zonecfg:<zoneid>:device> add property (name=model,value="passthru")
zonecfg:<zoneid>:device> add property (name=pci-slot,value="0:8:0")
zonecfg:<zoneid>:device> end
zonecfg:<zoneid>> exit

5. Reboot the zone and login to it. We might need to install firmware and relevant kernel module

apt install linux-firmware linux-modules-iwlwifi-`uname -r`
# optionally
apt install network-manager
modprobe -v iwlwifi

6. Verify the result

lspci
...
00:08.0 Network controller: Intel Corporation Wi-Fi 5(802.11ac) Wireless-AC 9x6x [Thunder Peak] (rev 29)
...
gemelen: (Default)

In response to Richard Brown of openSUSE, in https://www.reddit.com/r/openSUSE/comments/1ix1f4z/comment/mej6yhz/ (not totally related to the problems in the comment below):

Honestly, it becomes a disturbingly common thing to see how a person with a project flare and affiliation (you were the board member for 7 years according to your public profile and also are a distro architect at the moment) is flexing over a regular users opinion just because they can. Please, step back for a sec and imagine yourself as a regular openSUSE user not knowing anything about your job and problems.

Yes, SUSE team, and thus distributives, has a (strong) opinion on what is a good repo/kernel module/package/policy/etc and has a full right to do. As a software engineer that cares about quality and consequences myself, I'd be glad to support project's and your's stance on (not) adding a policy-less repo.

At the same time, users have their needs, which any particular project may or may not fulfill, completely or partially.

It was and still is the norm that a regular distro user would almost always include the Packman repo, because they need these few bits that are provided from there, to access these pesky media files.

I have been using openSUSE distros as about as long as you do (so about 20-ish years) and I have been seeing and doing this every (desktop) install. Because it's an eaiest way to get things done and proceed with what I'm doing with my computers besides installing the OS and adding repos.

I'd like not to do this zypper ar ... for Packman. I'd like to use ZFS on openSUSE (or on Linux in general) without pain. But I could not and, quite likely, never would be able to.

And this makes me quite sensitive to comments like yours from people like you (sorry to make it seem a personal quarrel, it's not) - strong and lacking any sign of understanding of your opponents, these mere users.


This comment https://fosstodon.org/@sysrich/111194234087319312 looks like a hipocrisy after all that.

gemelen: (Default)
Иногда вот такое всплывает и уносит (меня) своими ассоциациями с прошлым. Вопрос в коммьюнити обыденный - новоприбывшие (скорее всего иммигранты, нежели туристы) из США спрашивают местное название, и лишь у отдельной группы может всплыть своё, к ответу на вопрос не относящееся, но являющееся немедленной реакций - КРАВЧУЧКА :)
В местных реалиях кстати вещь достаточно обыденная и которой пользуются не только пожилые люди, а и многие молодые, и которую можно купить не только в "магазине хозтоваров" но и просто в том же супермаркете. И используют её как для похода за более дешёвыми продуктами на недельной ферии (микс farmer market, flea market и торговлей контрабасом из Бразилии, Аргентины и Парагвая), так и просто в магазин на углу.
Что забавно, в рашке ж сумку-тележку тоже называли так, заимственным словом, так и не найдя что-то взамен. И, более того, это название живее всех живых: когда я смотрел поисковую выдачу при написании этого поста, одна из ссылок вела в яндекс, где в поиск подставляло именно это название.
Бонус: kravchuchka.com.ua
gemelen: (Default)

Российская "оппозиция" (ФБК и Ко) выпустила новый документальный фильм об олигархах, "предавших народ страны и приведших путина к власти"...

Материал сам по себе имеет отношение к реальности 90ых, но позиция этой части истеблишмента настолько бесполезна, что, кроме как тратой времени всех кого она может вынудить действовать, трудно подобрать ей описание.

Если попробовать найти историческую параллель, то что приходит в голову - как если б антигитлеровское движение в Германии (во всех его проявлениях) вместо покушений и прочих акций, например, издавало б в Великобритании памфлеты на темы "Гитлер - ставленник Круппа", "Шахт украл ваши сбережения" и так далее.

"Как олигархи ограбили Россию, а «демократы» украли выборы. ПРЕДАТЕЛИ..." - вещают с экрана на двадцать пятый год власти одного и того же круга людей и на третий год полномасштабной войны, в очередной раз ставя себя в позицию жертвы, даже не задумывающейся об опциях "свергнуть автократический режим" или хотя бы "проявить неповиновение".

PS: пишущие про массовые акции в россии любят свои события, как то "день протеста" на "президентских выборах" 2024, или даже протесты в Хабаровском крае в поддержку Фургала. Ну и конечно, свою "великую битву" на Болотной.

В то же время, последним этапом в россии, где люди выходили на улицы практически во всех городах, а не только в столицах или в одном конкретном регионе, являются уже совершенно забытые протесты против монетизации льгот 2004-2005 годов. Отличающим аспектом того момента было участие всего спектра политического сообщества.

С того же момента, последние двадцать лет, россияне жуют сраку "надо перетерпеть".

gemelen: (Default)

Ок, Jon Pretty выиграл суд против подписантов открытого письма коммьюнити против него (основанного на обвинении Jon'а третьими лицами). Прочитав документ из суда, можно заключить только это. Суд не вынес решение о том, не виновен он или виновен, это не было предметом процесса.

Daniel Spiewak написал про это и прочие смежные обстоятельства, тут, на сабреддите

...

None of Zainab, Miles, or Noel were involved in the direct investigation or confrontation process which preceeded the public announcement. In fact, it appears Jon only decided to sue these precise individuals because they were signatories on the open letter who happen to reside within UK jurisdiction, which should tell you something in and of itself. They would not have posessed any material information beyond what was publicly shared with all of us. Note that this is not the same as saying that such information does not exist. I have in fact seen evidence beyond what was publicly shared, so I'm very well aware that it exists, and my guess is they collectively decided it was better to pay the settlement rather than force Yifan and others back into the public eye.

...

Finally, I'll repeat something I said way back when this first became public: as a leader and a respected figurehead within a large community, Jon (like myself, and like those named in the suit, and like several others) must be held to a higher standard. Those of us who are well known within the community directly profit and benefit from our renown. Perhaps that's a bit gouche to say, but it's true and it shouldn't be surprising. But along with these benefits comes greater accountability: we represent and to a large extent shape the Scala community, and thus the expectations for behavior are higher and the burden of proof is lower. The community is not a court of law, nor should it be expected to be. Jon based his career on his standing within the community, and he also chose to leverage that standing in coercive ways, and the evidence already in existence is sufficient to act within the context of that community. ...

gemelen: (Default)

Приблизительно 9 лет назад был написан вот этот норкоманский текст, а я положил его в рсс-ридере под тег prediction, бо одна только фраза <<<Под видом беженцев за последние две недели в Москву нагнали несколько десятков днепропетровских и харьковских "ультрас">>> чего только тогда стоила.

gemelen: (Default)

Здесь Рождество - тоже семейный праздник (иногда в широком смысле, навроде землячества) и поэтому отмечают долго, готовясь загодя и отдыхая потом ещё пару дней так, что и так вымирающий в воскресенье Старый Город будет пустее города призраков, что я уже замечал в самые первые дни по приезду, попадя в национальный праздник.

Сегодня в моллах было своеобразное явление Судного Дня, да - толпы, по местным меркам, конечно. С другой стороны, всё - по-прежнему неспешно.

Вот я сижу в своих четырёх стенах, слушая уже несколько часов мотивы лёгких песенок, доносящиеся из перуанского ресторанчика в соседнем доме внизу. По уже имеющемуся опыту, часов до 2-3 утра можно и не надеяться на тишину :) А поскольку ресторанчик небольшой, семейного типа, да ещё в Монтевидео - те же несколько часов доносится и древесный дым из вынесенной на тротуар чудовищного вида ржавой бочки на треноге, в которой готовят угли. Древесный дым здесь норма, ибо половина уругвайской (и смежных) кухни - asado, то есть (прямо цитируя википедию - техника и социальный ивент по приготовлению мяса и иных продуктов на углях) жареное мясо, пожаренное рядом с другим мясом и приправленное мясом. В качестве исключения, на углях также может лежать один-два овоща. There is no place for vegetarians here.

Опыт проживания празднеств в новой культуре у меня есть, включяя пару Новых Годов посреди Бангкока, равно как и многолетний опыт проживания их одиноко. Поэтому я не ожидаю что этот раз будет хуже других. Тож можно и написать - Felices Fiestas.

Update: звучит всё это приблизительно так

TWIMC

Sep. 14th, 2023 18:45
gemelen: uruguay-mate-allah (uruguay)

I had to leave Ukraine by last June and to move somewhere, where it'd be possible to live in my circumstances.

I knew that such a day would come since about a year ago, when there was no any sign of progress in my permanent residency application (which I made on the 1st of June of 2021) for more time than it's allowed by Ukrainian law already. And I started to prepare: talking with the company I work with regarding that, continuing to reseach options for a residency in a new world situation, collecting documents and, finally, moving away.

I joked about my options from time to time, that I, like any other citizen of a fascist state that went into the war, would end up in South America. And I did.

There is no much secret, as I wrote enough on Mastodon about things around me, so I'll write it here too. Now I live in Uruguay, and I hope to stay here for long enough to get a citizenship of that state. I won't say I'm too grateful, as I'd prefer to live in Ukraine if it'd be possible, but I'm at that stage of dealing with a new country that this is expected.

gemelen: (Default)

В момент просветления текущий, пусть и во время болезни, дошел до того чтобы пересмотреть отложенное на "посмотреть после" в ютубе. В том списке было и видео, оказавшееся настолко от русни, что я сгорел многажды и решил написать сюда в том числе. Собственно, ссылка на видео - https://youtu.be/RMERYsjp1Zc

О чём: две предствительницы классической советско-/постсоветской "творческой интеллигенции", явно из москвы и московской тусовки, пусть одна нынче живёт в Тбилиси, а иная - на Кипре, обсуждают свои ощущения "год спустя после начала войны" (с ремаркой посреди экрана что слово война в россии употреблять нельзя). Совершенно импотентский и с попыткой привести к ничегонеделанию разговор, мол "русский мир же не весь такой, из прилепиных", и то что "лермонтов писал из своего времени" поэтому можно и не упоминать про его имперскость. Не на часі, если позволите. Как и про современников - тоже не сейчас. Давайте подождём пару поколений, потом может кто-то напишет и наши внуки расценят как надо.

Жаль, что вот эту гниль не отменят на самом деле, так чтоб и следа не осталось от литературной деятельности и их, и всех прочих. Бо единственное чего бы они могли сделать полезного для истории - признать имперскость себя и своей культуры, дабы не было сомнений, - вот этого они не видят, не хотят, и всеми силами ещё будут тормозить.

gemelen: (Default)

Зацепился за пост про коммьюнити...

Шо John DeGoes, шо Jon Pretty - хуилы. Разница только в манерах, ну и в том что первый ещё и фашня. Поддержка ваша им нужна лишь до поры пока она конвертируется в деньги, ваши или чьи-то ещё.

gemelen: (Default)

And soon enough after last teapot, I've received one ordered from Japanese art-studio.

This is a Tokoname-yaki mogake kyusu, which means: Tokoname-yaki - something made in the area of a Tokoname city, Aichi prefecture, Japan; known as one of a six distinguished kilns, which in other words say that people has been making and firing pottery items there at least since medieval times; thus keeping related traditions in craft

kyusu - clay teapot with a side handle, one of the four main shapes of a Japanese teapots

mogake - [seaweed wrapping]; clayware production technique that includes 3-stage firing: initial to fix the shape, second with a seaweed tied to a piece to produce unique pattern of a burnt lines, third "reduction"-style to transform colours to a final tones

Teapot is mastered by Kato Tadaomi.

It's a relatively small teapot, 180 ml to the brim, so it serves for a single- or two-person sessions mostly. Additionally, from functional point of view, it has a clay "ball"-shape filter at the spout base, making it clay-only teapot without any metallic meshes that are usually used in a cheaper pieces (cause it takes way more talent and craftsmanship to go for a clay one). Also teapot is thicker in some areas than I used to from my experience with the kyusus I own, which again holds an artistic and a functional sides of a teaware piece.

Teapot, its wooden box, inside and outside packaging shows overall care about customer and real feeling of being proud for your work, which you could not just buy. To observe that makes you to want to go for such service once more.

gemelen: (Default)

Around New Year I've purchased two more kyusu-style teapots, so it's time to update info on my teaware.

For the beginning, at this point it is more about aesthetics already than being strictly functional with a particular piece of teaware. Nevertheless, kyusu are still quite versatile vessels even if they most suited for Japanese green teas.

First pot was bought via my friends (many thanks to them for that) during their recent visit to Berlin and I've received it yesterday. It's relatively cheap, being only 49 euros, but it's of a quality better than my previous (which was about x3 more expensive). It has traditional shape, remarkable balance (so you could place it standing on its handle) and minimalistic but beautiful look. So, I'm pleased with it already.

Only one minor thin - stainless steel filter, which gives away it's not fully handcrafted. For that I'd have next one teapot, so stay tuned!

Pictures:

gemelen: (Default)

Still alive, ага. Олсо, не было фейерверков - наконец-то.

На длинную форму как-то не хватает, поэтому вся активность в мастадоне.

gemelen: (Default)

И вот эту вот имитацию человека не только принимают за собеседника, но даже местами за авторитета

at

TFW

Jul. 29th, 2022 09:58
gemelen: (Default)

...after an civil defence siren you wonder if you would ever reach a rank in a tea-related Discord chat to be able to see group buy channel.

gemelen: (Default)

Google at its finest way of breaking things that were working previously: before last Friday, 22nd of July, outside the US there was one payment processing service from Google - Google Pay. It was introduced in 2018 as a merge between two different services, but that's another story.

Since then it was good enough to widespread, first of all because it worked. Add a card and pay everywhere, both online and offline (contactless via any NFC-enabled device).

Last Friday the new (to the global audience) application was released - Google Wallet. It's just a reincarnation of old wallet app from Google, but again, it doesn't matter for now. And from there thigs get hairy.

Your bank or another service like Wise (which I use because ... war) allows you to add a card from them to the Google payments app. Since Friday this adds your card to Google Wallet, but not Google Pay, what a surprise! An attempt to add a Wise card to Google Pay ends with an error, so you don't have an online part of being able to pay with it. And, I guess, contactless pay via Google Wallet is broken too (will check later on).

Why? Because fuck you, that's why. This is a Google motto, so shut up and suffer on your own.

gemelen: (Default)

Годы потребления англоязычного контента и основной линии подачи своего мнения (у тех, кого я смотрю и читаю) привели к тому, что фраза "я не специалист, но ...", случайно оброненная автором (русским) в ролике, высаживает напрочь.

Что мешало сказать "мне кажется что ..."? Возведение себя в авторитеты. Всё та же "страна советов", непрошенных конечно же.

gemelen: (Default)

Today (like an hour ago) I received my custom-built Kinesis keyboard and it were money well spent: way more quiet, new and shiny (literally, cause of glossy white finish) and ready to server for many years to come (if some rogue missile won't end my life abruptly).

Both are the same model - Kinesis Advantage 2, where second one is a custom build of Signatures Series done by Upgrade Keyboards service. Switches in stock version: Cherry MX Brown, tactile. In custom build: Durock Shrimp - Silent T1 Tactile

Just a short video to compare the one that I used before that moment and the new:

Profile

gemelen: (Default)
gemelen

June 2025

M T W T F S S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 16th, 2025 23:49
Powered by Dreamwidth Studios