V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Eaglemask
V2EX  ›  程序员

PVE8 更改国内源的地址有了吗?

  •  
  •   Eaglemask · 301 天前 · 5192 次点击
    这是一个创建于 301 天前的主题,其中的信息可能已经有所发展或是发生改变。

    PVE8 也就发布不到 1 周, 请问有人发布了国内源了吗?

    另外那个 pvetools 的脚本有人发布对应 PVE8 的更新了吗?

    30 条回复    2023-07-16 15:43:13 +08:00
    LokiSharp
        1
    LokiSharp  
       301 天前 via iPhone
    我用清华源更新的
    HarveyLiu
        2
    HarveyLiu  
       301 天前
    先编辑这个文件:vi /etc/apt/sources.list

    清空,并输入下面清华源,保存退出(记住 7.X 升级 8.X 先要保证你已经更新到了官方最新 7.4-15)
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
    # security updates
    # deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
    deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
    matony
        3
    matony  
       301 天前
    @HarveyLiu 请问 hddtemp 和 intel-microcode 这些包找不到,应该用什么源
    SoFarSoGood
        5
    SoFarSoGood  
       301 天前
    @hellowoodes
    # Downlaod and Install debian 12 sourcelist
    curl -fsSL https://mirrors.ustc.edu.cn/repogen/conf/debian-https-4-bookworm -o /etc/apt/sources.list
    SoFarSoGood
        6
    SoFarSoGood  
       301 天前
    参看我的博客, 一直用中科大的源,很好用。
    https://echowings.github.io/p/how-to-install-proxmox-ve-8-on-debian-12/
    SoFarSoGood
        7
    SoFarSoGood  
       301 天前
    pvetools 的脚本都可以自己实现,完全没必要。可有可无。自己手动设置即可。
    zero47
        8
    zero47  
       301 天前
    借楼问一下 8 更新了啥啊?值得这么早去更新?
    laincat
        9
    laincat  
       301 天前
    # sources.list

    deb http://ftp.debian.org/debian sid contrib main non-free non-free-firmware

    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

    deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

    # sources.list.d/pve-enterprise.list
    deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
    hongyichao
        10
    hongyichao  
       300 天前
    PVE 最近老提升这个,我装完都没去动过他
    TASK ERROR: command 'apt-get update' failed: exit code 100
    EvineDeng
        11
    EvineDeng  
       300 天前
    debian 12 删除了 hddtemp 这个非常老的包了,直接用 smartctl 来获取硬盘温度吧。微码其实可以不用装。
    documentzhangx66
        12
    documentzhangx66  
       300 天前
    1 到目前为止,安装 PVE 8 正确的方式是,先安装 Debian 11 ,然后再按照 PVE 官方文档:
    https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_11_Bullseye
    来继续安装 PVE 8 。

    2.如果需要 apt install ,正确方法是,让 apt 走梯子。具体方法去谷歌百度一下:
    debian 11 apt proxy

    3.想玩 PVE 的,建议去加 K 佬的微信群。他的微信:
    KernerX
    加他微信时,备注就写加 PVE 群。他群里有不少玩 PVE 的大佬,可以互相交流。
    SoFarSoGood
        13
    SoFarSoGood  
       300 天前
    SoFarSoGood
        14
    SoFarSoGood  
       300 天前
    @zero47 debian 12
    ctermiii
        15
    ctermiii  
       300 天前 via iPhone
    @documentzhangx66 何来定义正确方法? 7to8 也可以 8iso 直接装也可以
    shierji
        16
    shierji  
       300 天前 via Android
    ???直接装 pve 的镜像不行么,为啥非要从 Debian 搞过去?
    @documentzhangx66
    sbilly
        17
    sbilly  
       300 天前
    已经找了台从 pve7 升级到 pve8
    knives
        18
    knives  
       300 天前
    按照官方文档将自用的 pve7 升级到了 pve8 ,没出什么幺蛾子。之前就一直在用清华的源,按官方那一套操作下来也是走的清华源。
    documentzhangx66
        19
    documentzhangx66  
       300 天前
    @shierji

    PVE 官方镜像的 btrfs 安装方式,由于 PVE 官方偷懒,没做 swap 空间。如果你不选 btrfs ,你又会失去物理机对/root 进行快照与还原的功能。

    所以稳妥的办法,是自己先用 btrfs + swap 的方式安装 Debian 11 ,然后再装 PVE 。
    documentzhangx66
        20
    documentzhangx66  
       300 天前   ❤️ 1
    @ctermiii

    1.软件系统,与 OS ,不建议使用升级的方法去安装,原因很简单,全新安装的测试覆盖率,比升级测试覆盖率要高得多,且工作量要小得多。所以升级安装更容易出问题。

    2.不建议使用 PVE 官方 iso 进行安装,因为 PVE 官方镜像的 btrfs 安装方式,由于 PVE 官方偷懒,没做 swap 空间。如果你不选 btrfs ,你又会失去物理机对 /root 进行快照与还原的功能。
    documentzhangx66
        21
    documentzhangx66  
       300 天前
    @SoFarSoGood

    谢谢,这我早就知道了。

    但软件与系统,新版本出来后,我就算是尝鲜,也会先等 1 年。等网友们把坑都踩完了,把解决方案都发出来后,再去试。
    SoFarSoGood
        22
    SoFarSoGood  
       299 天前 via iPhone
    @documentzhangx66 。debian 号称坚如磐石,debian beta 已经很稳定了. release 还不放心?你多虑了! pve iso 可以直接装 zfs 模式的. pve iso 还是 debian 安装一样稳定.区别是有的时候 console 启动,先装 debian 再装 pve 可以实现无显设备安装
    Eaglemask
        23
    Eaglemask  
    OP
       299 天前
    @SoFarSoGood exfat 可以转为 zfs 吗?
    SoFarSoGood
        24
    SoFarSoGood  
       299 天前
    @Eaglemask 应该不行,全新安装吧
    documentzhangx66
        25
    documentzhangx66  
       299 天前
    @SoFarSoGood

    号称而已。我遇到过的问题:

    1.nonFree 缺网卡驱动。

    2.debian apt update 后,PVE 挂掉。
    SoFarSoGood
        26
    SoFarSoGood  
       299 天前
    @documentzhangx66 螃蟹卡么? 主流 intel 应该都有吧?
    SoFarSoGood
        27
    SoFarSoGood  
       299 天前
    @documentzhangx66 pve7 升级 pve8 完全没问题,很丝滑,任何变更都是有风险的,做好备份还原。这是常识。你想改变就要接受风险。小马过河,试试才能知道深浅。
    shierji
        28
    shierji  
       286 天前 via Android
    @documentzhangx66 可以直接 swap file 吧?
    documentzhangx66
        29
    documentzhangx66  
       286 天前
    @shierji

    swap file 比 swap partition 多了不止一层抽象,在负载高的时候,性能会大降。

    具体一点是,分区 swap ,进行 IO 时,系统只需要考虑扇区计算,但如果是文件,需要计算扇区、处理文件系统逻辑、处理 OS 文件缓存逻辑等等问题,甚至如果有 raid 卡或 ASIC 芯片,硬件上还要进行一次负载,雪上加霜。
    documentzhangx66
        30
    documentzhangx66  
       286 天前
    @SoFarSoGood

    是你完全没问题。

    我在 PVE 群里,看到有些小伙伴,开机都开不了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2828 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 09:56 · PVG 17:56 · LAX 02:56 · JFK 05:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.