From owner-freebsd-virtualization@FreeBSD.ORG Tue May 12 11:31:08 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E73F5106566B for ; Tue, 12 May 2009 11:31:07 +0000 (UTC) (envelope-from m.borsatino@alice.it) Received: from smtp-out113.alice.it (smtp-out113.alice.it [85.37.17.113]) by mx1.freebsd.org (Postfix) with ESMTP id 734108FC0A for ; Tue, 12 May 2009 11:31:06 +0000 (UTC) (envelope-from m.borsatino@alice.it) Received: from FBCMMO03.fbc.local ([192.168.68.197]) by smtp-out113.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 May 2009 13:18:59 +0200 Received: from FBCMST11V01.fbc.local ([192.168.171.19]) by FBCMMO03.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 12 May 2009 13:18:40 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 12 May 2009 13:14:05 +0200 Message-ID: <3B419C0DD853DC47AA4FA65D0FC92B5FE5C8FF@FBCMST11V01.fbc.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: qemu virtual network Thread-Index: AcnS8sNgyb3JYzadTDqUWmjz19qznQ== From: To: X-OriginalArrivalTime: 12 May 2009 11:18:40.0554 (UTC) FILETIME=[671BF0A0:01C9D2F3] X-Mailman-Approved-At: Thu, 14 May 2009 22:11:58 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: qemu virtual network X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2009 11:31:08 -0000 Hi to all. I'd like to implement a little virtual network using QEMU 0.10.2, but, = until now, I have failed. This is the situation. Host: AMD 64 running FreeBSD 7.2 #ifconfig nfe0: flags=3D8843 metric 0 mtu = 1500 options=3D10b ether 00:15:f2:44:2d:f9 inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (100baseTX ) status: active plip0: flags=3D108810 metric 0 = mtu 1500 lo0: flags=3D8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3=20 inet6 ::1 prefixlen 128=20 inet 127.0.0.1 netmask 0xff000000=20 I've create an image using the FreeBSD 7.2 DVD: #qemu-img create -f qcow2 hda fbsd72.img 10G The image has been created. #qemu -L /usr/local/share/qemu/ -cdrom /dev/acd0 -m 512 -boot d = fbsd72.img Alfter a long time, the installation of the guest system has been = completed. When the installation program asked for information about network = configuration, as a first step, I chose DHCP configuration and, as = usualy, the network has been set like this: IP 10.0.2.15/255.255.255.0 gateway 10.0.2.2 nameserver 10.0.2.3 When the installation of the guest PC was finished, I've copied the = image to pc01.img, to keep the original untouched. After that I've = started qemu like this: #qemu -L /usr/local/share/qemu -localtime -net = nic,macaddr=3D00:15:f2:44:2d:01 -net socket,mcast=3D230.0.0.1:1234 -hda = pc01.img -cdrom /dev/acd0 & but the network in the guest system does not work. ifconfig in the guest system tells: #ifconfig -a ed0: flags=3D8843 metric 0 mtu = 1500 ether 00:15:f2:44:2d:01 media: Ethernet 10baseT/UTP plip0: ... lo0: ... If I try: #ping 10.0.2.2 (the gateway) all packets are lost. For this reason, I've tryed a static IP = configuration like this: IP 10.0.2.4/255.255.255.0 gateway 10.0.2.2 nameserver 10.0.2.3 but the gateway does not respond. So it is useless to try with a second = guest system. Please help. Sorry for my bad english. Marco