2014-12-26 11 views
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 

상기 명령의 출력은 기계가 8021q보고대로

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= 

보고 부팅 동안에 지금

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 

아래에 주어진다 : HW에 VLAN 0을 추가 장치 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에 추가하기 왜 어떤 생각.

답변

0

CPU e5500에 대해 모르겠지만 ppc64의 경우 spapr-vlan 장치를 매우 성공적으로 사용하고 있습니다.

qemu-system-ppc64 -enable-kvm -nographic -nodefaults -monitor stdio -serial pty -M pseries -smp 1,cores=1,threads=8 -m 4G -device spapr-vlan,netdev=net0,mac=4c:45:42:45:02:02 -netdev bridge,id=net0,br=br0 
+0

가 나중에 OpenVPN의 터널 메카니즘을 사용하여 해결 :

제가 사용 QEMU 라인이다. – Abhinav