PVE中VLAN的设置要点

使用这个拓扑进行连接无法直接访问PVE

PVE 设置如下:

核心重点:PVE 的 vmbr0 接口直接绑定了 enp2s0,这会导致 VLAN 流量无法正确处理,因为 PVE 没有专门为 VLAN 3 配置接口。

1.vmbr0 和 vmbr0.3 都是绑定在物理接口 enp2s0 上,PVE 会视它们为两个逻辑接口。

2.如果 vmbr0 和 vmbr0.3 的 CIDR 不同,系统可能会优先使用 vmbr0 的路由表(取决于默认路由或优先级设置),导致无法正确处理通过 VLAN 3 的流量。

将enp2s0的CIDR 删除重新配置

第一种

第二种( Linux bridge 在设置的需要注意,vmbr0.3 在从属于vmbr2 时是不许拥有CIDR的 ) 

综上即可通过192.168.10.4 和192.168.10.3 等任意设置IP随时访问PVE 

优化版拓扑图

The first path (light-blue arrows): Egress mirroring is enabled on Sample port X by EPCL. An EPCL rule matches the packet, assigns it any of the target analyzer IDs (1-7), and triggers a PHA thread to save target information into the copy-reserved descriptor field. The Egress Replication Engine (EREP) duplicates packet descriptor, and assigns the mirrored packet to the target analyzer ID configured by EPCL. Then, the pre-Egress engine (EQ) maps the target analyzer ID to Analyzer port (loopback port Y). A second EPCL rule matches the mirrored packet, and binds it to a second PHA thread. This second PHA thread adds an sFlow header prefixing the mirrored packet; this header incorporate most of the header fields except those of the tunnel header. PTP TSU (TimeStamping Unit) adds a Tx timestamp to the sFlow header. Port Y is set as a loopback port. The second path (blue arrows): Once packet is looped back to pipeline, a Private VLAN Edge (PVE), or an IPCL rule, matches the looped back traffic, and assigns a target ePort with a Tunnel start attribute. The ePort to Physical port (E2PHY) maps the target ePort to an output port, from which it is streamed to a Collector unit. A third EPCL rule matches the looped back traffic, and binds it to a third PHA thread, which sets the tunnel start field in the sFlow header. CPSS Implementation Considerations The application is responsible for setting the following CPSS parameters: Sampling Port, formatted as dev_id/port_num, and sampling rate 1:N Target analyzer ID: ranged 1-7 Target ePort number for Tunnel start Analyzer port number – loopback port Y in illustration Tunnel Start (TS) entry pointer Physical Analyzer port, formatted as dev_id/port_num, connected to the Collector unit – output port A in illustration Analyzer Node IP address – 32bits representing dev_id, and used for setting IP_High and IP_Low fields Second EPCL rule NOTE: The second EPCL rule priority must be higher than that of the first one Match mirrored traffic, and trigger the second PHA thread THR66_enhanced_sFlow Key: UDB Metadata <Egress Mtag Cmd> = TO_ANALYZER UDB Metadata <Analyzer Target ePort> = Analyzer port number (loopback port Y) Action: Disable OAM engine by <OAM Processing En> = 0. PHA counts Packet number with flow ID as index Use analyzer ID as flow index by <Flow-ID> = Target analyzer ID. Flow index is used by second PHA thread THR66_enhanced_sFlow <PHA Thread Number Assignment Enable> = 1 <PHA Thread number> = THR66_enhanced_sFlow 为何在这个过程中禁用OAM 依据是什么 设置flow-ID目的是什么
09-29
PVE(Proxmox Virtual Environment)是一款基于Linux的开源虚拟化平台,用于创建和管理虚拟机及容器。配置PVE上虚拟机的CPU设置对于优化性能至关重要。 ### PVE 虚拟机 CPU 设置 在 Proxmox VE 中设置虚拟机的 CPU 配置包括以下几个关键步骤: #### 1. 分配核心数 你可以指定分配给每个虚拟机的核心数量。这通常取决于宿主机物理处理器的能力以及预期的工作负载需求。更多核心可以提高并发处理能力,但也意味着更多的资源消耗。 **命令行示例:** ```bash qm set VMID --cores X ``` 其中 `VMID` 是你要修改的虚拟机 ID;`X` 表示你想赋予该虚拟机多少个 vCPU 核心。 #### 2. 设置 Socket 数量 除了单核外,还可以模拟多插槽架构,即增加 socket 的数目,并将一定比例的核心放置于各个 sockets 下面。这对某些特定应用程序可能会带来更好的兼容性和性能提升。 **命令行示例:** ```bash qm set VMID --sockets Y --corespersocket Z ``` 这里 `Y` 指的是总的 sockets 数目;而 `Z` 则表示每插座上有几个核心。 #### 3. 启用/禁用硬件辅助特性 如 KVM、VT-x 等技术能极大增强虚拟化的效率,在条件允许的情况下建议开启这些选项以充分利用底层硬件提供的支持。 **通过 Web UI:** - 登录到 Proxmox Web 控制台; - 寻找目标 VM 并进入其编辑界面; - 查看“Options”部分下的 Hardware Acceleration 开关并启用它。 #### 4. 调整优先级和其他调度策略 为了确保重要任务获得足够的计算时间片,合理调整各实例间的相对权重是非常必要的。此外还有诸如实时进程(RT)等特殊模式可供选择。 --- 以上就是在 PVE 上针对虚拟机进行基本 CPU 参数设定的内容概述了。希望对您有所帮助!
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值