Skip to content

Proxmox initial setting

デフォルトゲートウェイ設定

  • /etc/network/interfaces
    auto lo
    iface lo inet loopback
    
    iface enp9s0 inet manual
    
    auto vmbr0
    iface vmbr0 inet static
        address 192.168.0.151/24
        gateway 192.168.0.1
        bridge-ports enp9s0
        bridge-stp off
        bridge-fd 0
    


ネームサーバ設定

  • vi /etc/resolv.conf
    search local
    nameserver 192.168.0.1
    


無料リポジトリ設定

  • 無料リポジトリを指定する。

    touch /etc/apt/sources.list.d/pve-no-subscription.list
    

  • /etc/apt/sources.list.d/pve-no-subscription.list

    deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
    #deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
    

  • comment out. /etc/apt/sources.list.d/pve-enterprise.list

    #deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
    

  • https://pve.proxmox.com/wiki/Package_Repositories


時刻同期(chrony)

  • Public用NTPを作成。

    touch /etc/chrony/conf.d/pub-ntp.conf
    

  • /etc/chrony/conf.d/pub-ntp.conf

server 0.jp.pool.ntp.org iburst
server 1.jp.pool.ntp.org iburst
server 2.jp.pool.ntp.org iburst
server 3.jp.pool.ntp.org iburst

minsources 2

allow 192.168.0.0/24

port 0


タイムゾーン設定

timedatectl list-timezones | grep "Tokyo"
timedatectl set-timezone Asia/Tokyo
timedatectl 

アップデート

```bash