大网数据广告活动
服务器运维问答

How do I use qemu-bridge-helper to get a virtual server running on my local network?

· 52CE 我爱测

I would like to access my virtual server from anywhere on my local network. I'd prefer to use qemu-bridge-helper so as to simplify the networking, since i'm weak in that area. After reading the Arch wiki , attempting to comprehen…

问题原文

原帖链接 · Noob Saibot · CC BY-SA 3.0

I would like to access my virtual server from anywhere on my local network. I'd prefer to use qemu-bridge-helper so as to simplify the networking, since i'm weak in that area. After reading the Arch wiki, attempting to comprehend the Gentoo wiki, and watching an unsuccessful tutorial on YouTube, i figured i've boiled down my needs to a few simple commands--but i still don't know where i'm going wrong. Below is my configuration:

Host Configuration (arch linux)

# Create the bridge
ip link add name br0 type bridge
ip link set dev br0 up

# Not sure if this is necessary. Causes loss of connectivity on host.
ip link set eth0 master br0

# Assign an IP address to the bridge
dhcpd br0

# Firewall passthrough?
sysctl net.ipv4.ip_forward=1

# /etc/qemu/bridge.conf
allow br0

qemu script

# `qemu-bridge-helper` creates & configures a `tap0` interface, and also sets it as the bridge's master
qemu-start-script -net nic,model=virtio -net bridge,br=br0

Guest/Server Configuration (arch linux)

systemctl start dhcpcd

Basic network connectivity from VM-to-router is all i'm after. What am i missing?

已采纳解答

原帖链接 · Noob Saibot · CC BY-SA 4.0

The issue was a conflict with using both netctl and NetworkManager to connect the Host to the internet. Switching exclusively to NetworkManager resolved the issue.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-10-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。