<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16455"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>1. First, I create a vm on computer14, i saw network interfaces
below:</DIV>
<DIV>[oneadmin@computer14 ~]$ ifconfig </DIV>
<DIV>
<DIV>eth0 Link encap:Ethernet HWaddr E8:39:35:18:A1:60 </DIV>
<DIV> inet addr:10.72.24.216 Bcast:10.72.24.255 Mask:255.255.255.0</DIV>
<DIV> inet6 addr: fe80::ea39:35ff:fe18:a160/64 Scope:Link</DIV>
<DIV> UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1</DIV>
<DIV> RX packets:21587155 errors:0 dropped:0 overruns:0 frame:0</DIV>
<DIV> TX packets:8407735 errors:0 dropped:0 overruns:0 carrier:0</DIV>
<DIV> collisions:0 txqueuelen:1000 </DIV>
<DIV> RX bytes:22927887802 (21.3 GiB) TX bytes:667899749 (636.9 MiB)</DIV>
<DIV> Memory:fbe60000-fbe80000 </DIV>
<DIV> </DIV>
<DIV>eth0.100 Link encap:Ethernet HWaddr E8:39:35:18:A1:60 </DIV>
<DIV> inet6 addr: fe80::ea39:35ff:fe18:a160/64 Scope:Link</DIV>
<DIV> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</DIV>
<DIV> RX packets:0 errors:0 dropped:0 overruns:0 frame:0</DIV>
<DIV> TX packets:16672 errors:0 dropped:0 overruns:0 carrier:0</DIV>
<DIV> collisions:0 txqueuelen:0 </DIV>
<DIV> RX bytes:0 (0.0 b) TX bytes:784568 (766.1 KiB)</DIV>
<DIV> </DIV></DIV>
<DIV>
<DIV>onebr100 Link encap:Ethernet HWaddr E8:39:35:18:A1:60 </DIV>
<DIV> inet6 addr: fe80::acb0:e4ff:fe95:6f08/64 Scope:Link</DIV>
<DIV> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</DIV>
<DIV> RX packets:13746 errors:0 dropped:0 overruns:0 frame:0</DIV>
<DIV> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0</DIV>
<DIV> collisions:0 txqueuelen:0 </DIV>
<DIV> RX bytes:398936 (389.5 KiB) TX bytes:468 (468.0 b)</DIV>
<DIV>
<DIV> </DIV>
<DIV>vnet0 Link encap:Ethernet HWaddr FE:00:DD:67:22:02 </DIV>
<DIV> inet6 addr: fe80::fc00:ddff:fe67:2202/64 Scope:Link</DIV>
<DIV> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</DIV>
<DIV> RX packets:0 errors:0 dropped:0 overruns:0 frame:0</DIV>
<DIV> TX packets:10 errors:0 dropped:0 overruns:0 carrier:0</DIV>
<DIV> collisions:0 txqueuelen:500 </DIV>
<DIV> RX bytes:0 (0.0 b) TX bytes:732 (732.0 b)</DIV>
<DIV> </DIV>
<DIV>2. Then, i reboot computer14</DIV>
<DIV>[oneadmin@computer14 ~]$ sudo shutdown -r now
</DIV>
<DIV> </DIV>
<DIV>3. After this operation,i saw vconfig network interface has gone (<SPAN
style="COLOR: #0000ff; FONT-WEIGHT: bold">eth0.100, onebr100</SPAN>)</DIV>
<DIV>
<DIV>[oneadmin@computer14 ~]# ifconfig </DIV>
<DIV>eth0 Link encap:Ethernet HWaddr E8:39:35:18:A1:60 </DIV>
<DIV> inet addr:10.72.24.216 Bcast:10.72.24.255 Mask:255.255.255.0</DIV>
<DIV> inet6 addr: fe80::ea39:35ff:fe18:a160/64 Scope:Link</DIV>
<DIV> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</DIV>
<DIV> RX packets:122 errors:0 dropped:0 overruns:0 frame:0</DIV>
<DIV> TX packets:102 errors:0 dropped:0 overruns:0 carrier:0</DIV>
<DIV> collisions:0 txqueuelen:1000 </DIV>
<DIV> RX bytes:13317 (13.0 KiB) TX bytes:12829 (12.5 KiB)</DIV>
<DIV> Memory:fbe60000-fbe80000 </DIV></DIV>
<DIV> </DIV>
<DIV>4. When I create that vm, error occurred below:</DIV>
<DIV>
<DIV>[root@computer14 images]# pwd</DIV>
<DIV>/one_images/25/images</DIV>
<DIV>
<DIV>[root@computer14 images]# ls</DIV>
<DIV>deployment.0 disk.0 disk.1</DIV></DIV></DIV>
<DIV>
<DIV>[root@computer14 images]# virsh create deployment.0 </DIV>
<DIV>error: Failed to create domain from deployment.0</DIV>
<DIV>error: Failed to add tap interface to bridge 'onebr100': No such device</DIV></DIV></DIV></DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN><SPAN
style="FONT-FAMILY: Calibri; COLOR: #800080; FONT-SIZE: 10pt">于长江 |
东软</SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:andreas.calvo@scytl.com">Andreas Calvo
Gómez</A></DIV>
<DIV><B>Date:</B> 2012-11-30 20:33</DIV>
<DIV><B>To:</B> <A
href="mailto:yuchj@neusoft.com">yuchj@neusoft.com</A></DIV>
<DIV><B>CC:</B> <A
href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</A></DIV>
<DIV><B>Subject:</B> Re: help: with 8021q driver, network configuration
won't work, after host reboot (???)</DIV></DIV></DIV>
<DIV>
<DIV>We've been using 802.1Q under CentOS 6 without problems for quite a long </DIV>
<DIV>time.</DIV>
<DIV>Can you post a detailed description of what is happening?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>On 30/11/12 07:57, users-request@lists.opennebula.org wrote:</DIV>
<DIV>></DIV>
<DIV>> Message: 2</DIV>
<DIV>> Date: Fri, 30 Nov 2012 14:56:47 +0800</DIV>
<DIV>> From: ??? <yuchj@neusoft.com></DIV>
<DIV>> To: users <users@lists.opennebula.org></DIV>
<DIV>> Subject: [one-users] help: with 8021q driver,
network configuration</DIV>
<DIV>> won't work after host reboot</DIV>
<DIV>> Message-ID: <201211301456470519356@neusoft.com></DIV>
<DIV>> Content-Type: text/plain; charset="gb2312"</DIV>
<DIV>></DIV>
<DIV>> As i said, with 8021q driver, network configuration won't work after host reboot. Does One notice this?</DIV>
<DIV>></DIV>
<DIV>> Here is my solution for rhel below: (Is this ok?)</DIV>
<DIV>> # cat $ONE_LOCATION/var/remotes/vnm/802.1Q/HostManaged.rb</DIV>
<DIV>> require 'OpenNebulaNetwork'</DIV>
<DIV>> ...</DIV>
<DIV>> def create_bridge(bridge)</DIV>
<DIV>> OpenNebula.exec_and_log_no_exit("#{COMMANDS[:brctl]} addbr #{bridge}")</DIV>
<DIV>> OpenNebula.exec_and_log_no_exit("sudo sh -c 'echo brctl addbr #{bridge} >> /etc/rc.d/rc.local'")</DIV>
<DIV>> end</DIV>
<DIV>> ...</DIV>
<DIV>> def create_dev_vlan(dev, vlan)</DIV>
<DIV>> OpenNebula.exec_and_log("#{COMMANDS[:vconfig]} add #{dev} #{vlan}")</DIV>
<DIV>> OpenNebula.exec_and_log("sudo sh -c 'echo vconfig add #{dev} #{vlan} >> /etc/rc.d/rc.local'")</DIV>
<DIV>> end</DIV>
<DIV>> ...</DIV>
<DIV>> def attach_brigde_dev(bridge, dev, vlan=nil)</DIV>
<DIV>> dev = "#{dev}.#{vlan}" if vlan</DIV>
<DIV>> OpenNebula.exec_and_log("#{COMMANDS[:brctl]} addif #{bridge} #{dev}")</DIV>
<DIV>> OpenNebula.exec_and_log("sudo sh -c 'echo brctl addif #{bridge} #{dev} >> /etc/rc.d/rc.local'")</DIV>
<DIV>> end</DIV>
<DIV>> ...</DIV>
<DIV>> def ifup(dev, vlan=nil)</DIV>
<DIV>> dev = "#{dev}.#{vlan}" if vlan</DIV>
<DIV>> OpenNebula.exec_and_log("#{COMMANDS[:ip]} link set #{dev} up")</DIV>
<DIV>> OpenNebula.exec_and_log("sudo sh -c 'echo ip link set #{dev} up >> /etc/rc.d/rc.local'")</DIV>
<DIV>> end</DIV>
<DIV>> ...</DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>> ??? | ??</DIV>
<DIV>> ---------------------------------------------------------------------------------------------------</DIV>
<DIV>> Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)</DIV>
<DIV>> is intended only for the use of the intended recipient and may be confidential and/or privileged of</DIV>
<DIV>> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is</DIV>
<DIV>> not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying</DIV>
<DIV>> is strictly prohibited, and may be unlawful.If you have received this communication in error,please</DIV>
<DIV>> immediately notify the sender by return e-mail, and delete the original message and all copies from</DIV>
<DIV>> your system. Thank you.</DIV>
<DIV>> ---------------------------------------------------------------------------------------------------</DIV>
<DIV>></DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Andreas Calvo Gómez</DIV>
<DIV>Systems Engineer</DIV>
<DIV>Scytl Secure Electronic Voting</DIV>
<DIV>Plaça Gal·la Placidia, 1-3, 1st floor · 08006 Barcelona</DIV>
<DIV>Phone: + 34 934 230 324</DIV>
<DIV>Fax: + 34 933 251 028</DIV>
<DIV>http://www.scytl.com</DIV>
<DIV> </DIV>
<DIV>NOTICE: The information in this e-mail and in any of its attachments is</DIV>
<DIV>confidential and intended solely for the attention and use of the named</DIV>
<DIV>addressee(s). If you are not the intended recipient, any disclosure,</DIV>
<DIV>copying,</DIV>
<DIV>distribution or retaining of this message or any part of it, without the</DIV>
<DIV>prior</DIV>
<DIV>written consent of Scytl Secure Electronic Voting, SA is prohibited and</DIV>
<DIV>may be</DIV>
<DIV>unlawful. If you have received this in error, please contact the sender</DIV>
<DIV>and</DIV>
<DIV>delete the material from any computer.</DIV>
<DIV> </DIV></DIV><p>---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</p></BODY></HTML>