0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ProxmoxのLXCでArchlinuxを動作させたときのメモ

Last updated at Posted at 2024-06-21

いくつかエラーが出たので対処方法のメモ

  • network InterfaceがDOWNになってる / IP振れない / reboot できない

    • Option -> Features -> nesting=1 (有効化,ただし非推奨とのこと)
      ※ 訂正: --unprivileged オプションの有無は関係なし

      CLIでの作例
      $ pct create 999 local:vztmpl/archlinux-base_20230608-1_amd64.tar.zst \
           --storage local-lvm --hostname cthostname01 --timezone Asia/Tokyo \
           --nameserver=192.168.xx.1 \
           --net0 name=eth0,bridge=vmbr0,gw=192.168.xx.1,ip=192.168.xx.yy/24 \
           --ssh-public-keys /path/to/.ssh/authorized_keys \
           --features nesting=1
      
    • 上記で意図的にrootにパスワードを設けていないので、このコンテナの端末操作にはホストのshellで pct exec 999 /bin/bash を使う

  • pacman実行で keyringのエラーがいっぱい

    error: keyring is not writable
    error: required key missing from keyring
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    
    • 以下で対処
      $ pacman-key --init
      $ pacman-key --populate archlinux
      $ pacman -Sy archlinux-keyring
      
  • pacman -Syu 実行でめっちゃ遅い

    • /etc/pacman.d/mirrorlist をJapanのみ有効化
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?