|
|
|
|
|
|
|
|
|
|
xen-bugs
[Xen-bugs] [Bug 1281] New: Bridge name is not transmitted in the script
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1281
Summary: Bridge name is not transmitted in the script qemu-ifup
Product: Xen
Version: unstable
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Tools
AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
ReportedBy: nicknnn@xxxxxxxxx
/usr/lib64/xen/bin/qemu-dm -d 385 -domain-name zhttp000 -vnc 0.0.0.0:0,password
-vncunused -vcpus 2 -boot c -acpi -net
nic,vlan=1,macaddr=00:16:3e:13:a1:b2,model=rtl8139 -net tap,bridge=test1 -net
nic,vlan=2,macaddr=00:16:3e:13:a1:a2,model=rtl8139 -net tap,vlan=2,bridge=test2
-M xenfv
cat /var/log/xen/qemu-dm-385.log
config qemu network with xen bridge for tap7
Bridge
vif tap7
Incorrect number of arguments for command
Usage: brctl addif <bridge> <device> add interface to bridge
config qemu network with xen bridge for tap8
Bridge
vif tap8
Incorrect number of arguments for command
Usage: brctl addif <bridge> <device> add interface to bridge
shift keysym 003e keycode 86
shift keysym 00a6 keycode 86
keypad keysym ffae keycode 83
keypad keysym ffac keycode 83
keypad keysym ffb0 keycode 82
keypad keysym ffb1 keycode 79
keypad keysym ffb2 keycode 80
<skip>
cat /etc/xen/qemu-ifup
#!/bin/sh
#. /etc/rc.d/init.d/functions
#ulimit -c unlimited
echo 'config qemu network with xen bridge for ' $*
echo 'Bridge' "$2"
echo 'vif' "$1"
bridge=$2
#
# Old style bridge setup with netloop, used to have a bridge name
# of xenbrX, enslaving pethX and vif0.X, and then configuring
# eth0.
#
# New style bridge setup does not use netloop, so the bridge name
# is ethX and the physical device is enslaved pethX
#
# So if...
#
# - User asks for xenbrX
# - AND xenbrX doesn't exist
# - AND there is a ethX device which is a bridge
#
# ..then we translate xenbrX to ethX
#
# This lets old config files work without modification
#
if [ ! -e "/sys/class/net/$bridge" ] && [ -z "${bridge##xenbr*}" ]
then
if [ -e "/sys/class/net/eth${bridge#xenbr}/bridge" ]
then
bridge="eth${bridge#xenbr}"
fi
fi
ifconfig $1 0.0.0.0 up
brctl addif $bridge $1 || true
--
Configure bugmail:
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-bugs] [Bug 1281] New: Bridge name is not transmitted in the script qemu-ifup,
bugzilla-daemon <=
|
|
|
|
|