LoginSignup
0
0

注意

本稿は実機のserverにinstallしている都合で実写の写真が多くなっています。
ご留意ください。

環境

CPU: Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
GPU: NVIDIA GeForce RTX 3070
Mem: 32G
Disk: SSD 240G, M.2 SSD 1T
Wallet: Metamask

要件

  • CPUがIOMMU(IntelだとVT-d)に対応している。
  • GPUがNVIDIAの3000番台で8GBのVRAM
  • VRAMと同量のRAM,できれば倍以上
  • 最低64GBのSSD,または高速USB(非推奨)
  • 最低100Mbpsのネットワーク
  • ETH walletを所有

imageの作成

この作業はMacで行なっています。
webからimage fileを取得します。

$ wget https://gpu-provider.dev.golem.network/golem-gpu-live-latest.img.xz
$ gunzip golem-gpu-live-latest.img.xz

外付けSSDをMacに接続します。
私は下記のAmazonの商品を持っていたのでそれで接続しました。

DiskUtilityでSSDをformatします。
balenaEtcherを開き、SSDにgolem-gpu-live-latest.imgをflashします。
sizeが大きいとBalenaetcherがAre you sure the selected drive is not a storage drive?と聞いてくるのでYes,I'm sureと返しましょう。

起動

SSDをserverに接続し、電源をつけます。
自分はMouse PCで動作させているためDel key + Esc keyを連打してBIOSに入りました。
設定を確認するところが二つあります。

  • UEFI bootが有効になっているか
  • (Intelの場合)Intel Virtualization Technology for Directed I/O (VT-d)が有効になっているか
  • (AMDの場合)IOMMUが有効になっているか
    私の場合は元からUEFIだったのでVT-dをenableにしました。
    IMG20240626011534 2.jpg
    これを確認したら、rebootしてgolem-liveを起動します。
    IMG20240626002730 2.jpg
    Welcom to the wizerd!と表示されるのでOKを押します。
    IMG20240626002748 2.jpg
    利用規約に同意しろと出るので同意します。
    IMG20240626002819 2.jpg
    storage partitionを選ぶ画面になるため、storageを選択します。
    基本的にはroot filesystem以外を選ぶのが良いと思います。
    IMG20240626002832 2.jpg
    passwordが自動生成されるので保存しておきます。
    IMG20240626002841 2.jpg
    networkの設定をします。DHCPなら勝手に認識します。先ほどLAN cableを抜いた人は挿しておいてください。
    IMG20240626002920 2.jpg
    walletのaddressを入力します。
    IMG20240626002929.jpg
    1時間ごとの値段を設定します。自分は0.015と安めに設定しました。
    IMG20240626003226 2.jpg
    GPUを選択します。ここでIOMMUを有効化しておかないと下記のようなerrorが発生します。
    IMG20240626003236 2.jpg
    設定しておくと下記のように選択できるので選択してください。
    IMG20240626012710 2.jpg
    IMG20240626012743 2.jpg
    これで完了です。
    IMG20240626012759 2.jpg
    このあと、すぐにrebootが実行されます。
    その後は画面出力がなくなるのでipにsshして操作します。
    ipとpasswordは先に出力されたもので、userはgolemです。

設定

sshして下記を実行してみましょう。

$ golemsp status
┌─────────────────────────────────┬──────────────────────────────────────────────────┬───────────────────────────┐
│  Status                         │  Wallet                                          │  Tasks                    │
│                                 │  0x****************************************      │                           │
│  Service      is running        │                                                  │  last 1h processed     0  │
│  New Version  0.15.2 released!  │  network               mainnet                   │  last 1h in progress   0  │
│  Version      0.3.0             │  amount (total)        0.103832940381894044 GLM  │  total processed       0  │
│  Commit       UNKNOWN           │      (on-chain)        0.000000000000000000 GLM  │  (including failures)     │
│  Date         2024-04-03        │      (polygon)         0.103832940381894044 GLM  │                           │
│  Build        420               │                                                  │                           │
│                                 │  pending               0 GLM (0)                 │                           │
│  Node Name    nyahahanoha-node  │  issued                0 GLM (0)                 │                           │
│  Subnet       public            │                                                  │                           │
│  VM           valid             │                                                  │                           │
│                                 │                                                  │                           │
│  Driver       Ok                │                                                  │                           │
└─────────────────────────────────┴──────────────────────────────────────────────────┴───────────────────────────┘

とまあ、このようにVersionがめっちゃ古いのでUpdateします。

$ golemsp stop
$ curl -sSf https://join.golem.network/as-provider | bash -

By installing & running this software you declare that you have read, understood and hereby accept the disclaimer and
privacy warning found at https://handbook.golem.network/see-also/terms

golem-installer: installing to /usr/bin
 Component                             Version
-----------               --------------------
golem core                              0.15.2 [done]
wasi runtime                             0.2.2 [done]
vm runtime                               0.3.0 [done]
golem-installer: to install to /usr/bin, root privileges required
cp: cannot create regular file '/usr/bin/yagna': Text file busy

                                             ```
                                             ```
                                             ```
                  ```                        ```
       `````````````        `````````        ```        `````````         ``````````````````
     ````      ```        ```       ```      ```      ```       ```       ```     ``     ```
     ``          ``      ```         ```     ```      ``         ```      ``      ``     ```
    ```          ``      ``           ``     ```     ```````````````      ``      ``     ```
     ``          ``      ```         ```     ```      ``                  ``      ``     ```
     ```       ```        ```       ```      ```      ```        `        ``      ``     ```
       `````````            `````````        ```        ``````````        ``      ``     ```
          ```
          ```               version: 0.15.2
       `````````
     ```       ```          commit: 64cdac0b
     ``          ``
    ```          ``         date: 2024-06-20
     ``          ``
     ````      ```          build: 456
       `````````

Initial node setup
Node name  (default=nyahahanoha-node):
Ethereum mainnet wallet address (default=0x096356379d4d2bb7ec0a6e8357729976653cc8b7):
Downloading certificates and whitelists                           [done]

yagnaを止め忘れたのでめっちゃ怒られてるけど、気にせずrebootしたら直ります。
rebootし終わると、versionが上がっています。

$ golemsp status
┌───────────────────────────────────┬───────────────────────────────────────────────────┬───────────────────────────┐
│  Status                         │  Wallet                                         │  Tasks                  │
│                                   │  0x****************************************     │                           │
│  Service      is running        │                                                   │  last 1h processed     0  │
│  New Version  0.15.2 released!  │  network                mainnet                 │  last 1h in progress   0  │
│  Version      0.15.2              │  amount (total)         0.103832940381894044 GLM  │  total processed       0  │
│  Commit       64cdac0b            │      (on-chain)         0.000000000000000000 GLM  │  (including failures)     │
│  Date         2024-06-20          │      (polygon)          0.103832940381894044 GLM  │                           │
│  Build        456                 │                                                   │                           │
│                                   │  pending                0 GLM (0)                 │                           │
│  Node Name    nyahahanoha-node    │  issued                 0 GLM (0)                 │                           │
│  Subnet       public              │                                                   │                           │
│  VM           valid             │                                                   │                           │
│                                   │                                                   │                           │
│  Driver       Ok                │                                                   │                           │
└───────────────────────────────────┴───────────────────────────────────────────────────┴───────────────────────────┘

表示がめっちゃ崩れてるけど、こうなる理由は分かりません。
node-nameを変更します。

$ golemsp settings set --node-name "node名"

変更し終わってある程度時間が経ったら、下記のURLを見に言ってnode名で検索をかけてみてください。
画像のような画面が見えるはずです。

スクリーンショット 0006-06-26 1.47.19.png

できました。

まとめ

私のようにgaming PCを買ったは良いけどインフラ構築が楽しすぎてgameをしなくなってしまった方はgolemに提供してみてはいかがでしょうか。

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0