LeeReamond
V2EX  ›  问与答

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

  •  
  •   LeeReamond · Jun 11, 2022 · 1856 views
    This topic created in 1483 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
        1
    Yien  
       Jun 11, 2022 via Android
    虚拟机的网卡处设置
    hm20062006ok
        2
    hm20062006ok  
       Jun 11, 2022
    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
        3
    guowq  
       Jun 11, 2022 via Android
    在硬件里网络设备设置一下就行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1053 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 18:20 · PVG 02:20 · LAX 11:20 · JFK 14:20
    ♥ Do have faith in what you're doing.