LeeReamond
V2EX  ›  问与答

pve 有办法设置单台虚拟机的最大带宽吗

  •  
  •   LeeReamond · Jun 11, 2022 · 2144 views
    This topic created in 1624 days ago, the information mentioned may be changed or developed.

    和朋友合合租一台机器用 pve 虚拟化,他用来挂 PT 之类的跑的流量带宽都很高,我则是用来跑一些网络服务占用不大但是需要确保稳定,有办法限制比如他的机器限制最多占用 90%带宽带宽这种的吗,我俩都不是很会用 pve

    3 replies  •  2022-06-11 19:25:23 +08:00
    Yien
    Yien
    Jun 11, 2022 via Android
    1
    虚拟机的网卡处设置
    hm20062006ok
    hm20062006ok
    Jun 11, 2022
    2
    https://forum.proxmox.com/threads/limit-network-speed.41933/.




    use
    Code:
    qm config <VMID>
    to get the config.


    than take the netX line
    Code:
    net0: virtio=46:83:4B:6B:15:8B,bridge=vmbr0
    and add the rate at the end of the line
    Code:
    qm set <VMID> -net0 virtio=46:83:4B:6B:15:8B,bridge=vmbr0,rate=12
    guowq
    guowq
    Jun 11, 2022 via Android
    3
    在硬件里网络设备设置一下就行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1905 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:05 · PVG 13:05 · LAX 21:05 · JFK 00:05
    ♥ Do have faith in what you're doing.