0
我想模擬使用QEMU PPC64e5500 CPU,但試圖調出機器中的以太網接口我得到沒有對等警告。qemu-system-ppc64沒有對等警告,而試圖啓動,並提出以太網接口
$sudo ~/QorIQ-SDK-V1.6-20140619-yocto/build_t1040rdb_release/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64 -cpu e5500 -nographic -m 256 -M ppce500 -kernel uImage -initrd fsl-image-minimal-t1040rdb-20141223093206.rootfs.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200 ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M" -serial tcp::4444,server,telnet -net nic -net tap,ifname=tap0,script=no,downscript=no -device e1000
上述命令的輸出如下
QEMU 1.7.0 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: telnet:0.0.0.0:4444,server
Warning: nic e1000.0 has no peer
現在給出甚至在機器啓動它報告
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
fsl_dpa_macless: FSL DPAA MACless Ethernet driver()
fsl_dpa_generic: FSL DPAA Generic Ethernet driver()
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
**8021q: adding VLAN 0 to HW filter on device eth0**
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
IP-Config: Complete:
device=eth0, hwaddr=52:54:00:12:34:57, ipaddr=192.168.7.2, mask=255.255.255.0, gw=192.168.7.1
host=192.168.7.2, domain=, nis-domain=(none)
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
由於它報告8021q:添加VLAN 0到HW過濾設備eth0,所以我甚至無法ping通網關,因爲可以驗證下面的網關
[email protected]:~# ping 192.168.7.1
PING 192.168.7.1 (192.168.7.1): 56 data bytes
--- 192.168.7.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
路線-n顯示如下輸出
[email protected]:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 eth0
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
那麼,爲什麼eth0已經被添加到該VLAN,因爲即使我沒有創建一個,以及如何解決它的任何想法。
我以後使用OpenVPN的隧道機制解決了這個問題。 – Abhinav