2023年11月13日 星期一

2025 2023 Promox on Morefine N6000 16GB 512GB

2025 Feb Continue

# reference

https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_12_Bookworm

# Install a standard Debian Bookworm (amd64)
gnome
openssh server
standard system utilities

# useful
cat /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main
deb http://deb.debian.org/debian bookworm-updates main
deb http://deb.debian.org/debian-security bookworm-security main
https://extensions.gnome.org/extension/1160/dash-to-panel/

# cockpit
sudo apt-get install cockpit
http://192.168.1.60:9090

# check
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm

# hosts
cat /etc/hosts
127.0.0.1  localhost
::1        localhost ip6-localhost ip6-loopback
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters
# This host address
127.0.1.1  n6000
192.168.1.61   n6000.proxmox.com n6000

# check hostname
hostname --ip-address
127.0.1.1 192.168.1.61

# Adapt your sources.list
sudo su root
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
sha512sum /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
7da6fe34168adc6e479327ba517796d4702fa2f8b4f0a9833f5ea6e6b48f6507a6da403a274fe201595edc86a84463d50383d07f64bdde2e3658108db7d6dc87  /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
apt update && apt full-upgrade

# Install the Proxmox VE Kernel
apt install proxmox-default-kernel
systemctl reboot

# may need below #1 (n6000)
# see https://forum.proxmox.com/threads/solved-pve-firmware-package-error-when-installing-proxmox-8-over-debian-12-bookworm.132671/
sudo dpkg --purge --force-all firmware-ath9k-htc
sudo apt --fix-broken install
# may need above #1

# may need below #2 (3700x, n6000)
# dpkg: error processing archive /var/cache/apt/archives/pve-firmware_3.14-3_all.deb (--unpack):
# trying to overwrite '/lib/firmware/rtl_bt/rtl8723cs_xx_config.bin', # which is also in package firmware-realtek-rtl8723cs-bt 20181104-2
# https://free-pmx.pages.dev/guides/error-dpkg-conflict/
apt install -fo Dpkg::Options::="--force-overwrite"
# may need above #2

# Install the Proxmox VE packages
sudo su root
apt install proxmox-ve postfix open-iscsi chrony
choose local only

# Remove the Debian Kernel
# local only
# leave the system name as is
apt remove linux-image-amd64 'linux-image-6.1*'
update-grub

# Recommended: Remove the os-prober Package
apt remove os-prober

# reboot
echo last chance to make sure static ip address
sudo reboot -h now

# comment
on 2025-02-16, failed after reboot. machine status unknown. cannot connect. 10.20.15.101.
on 2025-02-25, n6000 can

# if not dhcp address, change from
cat /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
# to
# to unknown
# auto enp0s3
# iface enp0s3 inet dhcp
# sudo ifdown enp0s3
# sudo ifup enp0s3
# ip -br a
# lo               UNKNOWN        127.0.0.1/8 ::1/128
# enp0s3           UP             10.20.15.101/24 # fe80::a00:27ff:fec1:1a95/64 

# comment
successful! has desktop, cockpit port 9090 working. promox port 8006 working.

# iso
cd /var/lib/vz/template/iso/
scp ricky@10.20.15.101:/var/lib/vz/template/iso/ubuntu-22.04.4-desktop-amd64.iso .

# if 1024x768 only
https://askubuntu.com/questions/206283/how-can-i-uninstall-a-nvidia-driver-completely
dpkg -l | grep -i nvidia
sudo apt-get remove --purge '^nvidia-.*'
sudo reboot -h now

# Usual config
Options > Start at boot > No to Yes
Options > QEMU Guest Agent > Default Disabled to Enabled

# install guest agent
user@guest:~#
sudo apt update
sudo apt-get -y install qemu-guest-agent
sudo systemctl enable qemu-guest-agent
sudo systemctl start qemu-guest-agent
sudo systemctl status qemu-guest-agent

# ksm sharing

https://forum.proxmox.com/threads/ksm-sharing.75774/
root@promox-ve:~# 
apt-get install -y ksmtuned
systemctl enable ksmtuned
systemctl start ksmtuned
systemctl enable --now ksm.service
systemctl status ksmtuned

# nvidia driver
https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver
https://www.reddit.com/r/Proxmox/comments/1coquzo/did_anyone_succesfully_installed_nvidiadriver_on/
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
sudo reboot
sudo apt install -y dkms pve-headers wget
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.78/NVIDIA-Linux-x86_64-550.78.run
chmod +x NVIDIA-Linux-x86_64-550.78.run
sudo ./NVIDIA-Linux-x86_64-550.78.run --dkms
# comment: smooth. excellent. on 2025-03-04

# openwrt on promox
https://i12bretro.github.io/tutorials/0405.html
cd /var/lib/vz/images/100/
wget https://downloads.openwrt.org/releases/24.10.0/targets/x86/64/openwrt-24.10.0-x86-64-generic-ext4-combined.img.gz
qm importdisk 100 openwrt.raw local --format raw
unused1: successfully imported disk 'local:100/vm-100-disk-3.raw'

# TrueNAS Scale
https://blog.csdn.net/weixin_44924918/article/details/142478446
https://blog.csdn.net/luoqingyong/article/details/139901002#:~:text=TrueNAS%20SCALE%E7%9A%84%E6%9C%80%E4%BD%8E%E7%A1%AC%E4%BB%B6,8%20GB%E5%86%85%E5%AD%98%EF%BC%88%E6%8E%A8%E8%8D%9016GB%EF%BC%89
TrueNas-SCALE-24.10.2.iso
4vCPU 8GB

# assign a disk to vm
# if n6000
Choose "Raw Device 0000:02:00.0" as "PCI Device (hostpci0)"
# else 
qm set 100 -scsi2 none
qm set 100 -scsi2 /dev/nvme0n1
# or
qm set 100 -vertio0 /dev/nvme0n1


# vmbr0

# iface vmbr0 inet dhcpworks. but remember to re-attach nic to vm.

cat /etc/network/interfaces

source /etc/network/interfaces.d/*

auto lo

iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0

iface vmbr0 inet dhcp

        bridge-ports enp1s0

        bridge-stp off

        bridge-fd 0


# vmbr1

# comment: vm can use wifi nat

auto wlo1

iface wlo1 inet dhcp

auto vmbr1

iface vmbr1 inet static

        address 10.10.10.1/24

        bridge-ports none

        bridge-stp off

        bridge-fd 0

        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward

        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o wlo1 -j MASQUE>

        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o wlo1 -j MASQUE>

#internal 10.10.10.1

# win10

10.10.10.2

255.255.255.0

10.10.10.1

8.8.8.8

ping 10.10.10.1

ok

ping 8.8.8.8

ok


# host route

# can ping if

ricky@n6000:~$ ping 10.20.15.159

PING 10.20.15.159 (10.20.15.159) 56(84) bytes of data.

64 bytes from 10.20.15.159: icmp_seq=1 ttl=61 time=22.1 ms

ip route show

default via 192.168.137.1 dev vmbr0 

default via 192.168.1.1 dev wlo1 proto dhcp src 192.168.1.60 metric 600 

169.254.0.0/16 dev wlo1 scope link metric 1000 

192.168.1.0/24 dev wlo1 proto kernel scope link src 192.168.1.60 metric 600 

192.168.137.0/24 dev vmbr0 proto kernel scope link src 192.168.137.162

sudo ip route del 169.254.0.0/16

ip -br a

lo               UNKNOWN        127.0.0.1/8 ::1/128 

enp1s0           UP             

wlo1             DOWN           169.254.9.171/16 

vmbr0            UP             192.168.137.162/24 fe80::200:ff:fe00:13/64 

tap100i0         UNKNOWN        

fwbr100i0        UP             

fwpr100p0@fwln100i0 UP             

fwln100i0@fwpr100p0 UP       








2023 Promox on Morefine N6000 16GB 512GB (failed)

Software

Etcher 100MB (not but can be rufus-4.3.exe 1.4MB)
Proxmox VE 7.4 ISO Installer (1st ISO release) 1GB

Console

root
Sky4dots

Web

https://192.168.1.60:8006

Reference

Google "proxmox 安裝教學"

https://post.smzdm.com/p/agqw24zw/



沒有留言:

張貼留言

2025 My Hardware Personal Computer Used

 2025 My Hardware Personal Computer Used Check Ubunut sudo dmidecode -t 2 sudo lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL 2025 Intel(R...