快速业务通道

[FMB-100120] QEMU NIC JOY

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-25
在昨天基础上修正zerg VenderID & DeviceID , 显然内核无法辨认. 修正内核代码中设备识别ne2k_pci_chipsets、pci_clone_list、ne2k_pci_tbl中增加一种zerg VenderID & DeviceID 相关n2k 兼容设备,make && copy kenrnel to grub, restart:
ptg ~ # lspci00:00.0 Host bridge: 英特尔 Corporation 440FX - 82441FX PMC [Natoma] (rev 02)00:01.0 ISA bridge: 英特尔 Corporation 82371SB PIIX3 ISA [Natoma/Triton II]00:01.1 IDE interface: 英特尔 Corporation 82371SB PIIX3 IDE [Natoma/Triton II]00:01.3 Bridge: 英特尔 Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)00:02.0 VGA compatible controller: Cirrus Logic GD 544600:03.0 Ethernet controller: 英特尔 Corporation 82540EM Gigabit Ethernet Controller (rev 03)00:04.0 Ethernet controller: Device aabb:0001ptg ~ # ifconfig eth1eth1 Link encap:Ethernet HWaddr 52:54:00:12:34:57 inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3457/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:111 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10473 (10.2 KiB) TX bytes:11837 (11.5 KiB) Interrupt:10 Base address:0xc100


可以工作,一乐. 另外,现在的启动脚本比较管用,备忘如下:ON:qemu -M pc -m 1024 -hda ~/pok/imgs/qlnx/lnx.img -k en-us -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no -net nic,model=zerg,vlan=1 -net tap,vlan=1,ifname=tap1,script=no -localtime -boot c &NET-ON:openvpn --mktun --dev tap0openvpn --mktun --dev tap1ifconfig tap0 hw ether 00:e0:fc:00:00:01ifconfig tap0 172.16.0.1/24ifconfig tap0 upifconfig tap1 hw ether 00:e0:fc:00:01:01ifconfig tap1 172.16.1.1/24ifconfig tap1 up
NET-OFF:ifconfig tap0 down ifconfig tap1 downopenvpn --rmtun --dev tap0openvpn --rmtun --dev tap1

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号