From owner-freebsd-questions@FreeBSD.ORG Thu May 14 06:14:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81D83106564A for ; Thu, 14 May 2009 06:14:14 +0000 (UTC) (envelope-from marco.borsatino@poste.it) Received: from relay-pt1.poste.it (relay-pt1.poste.it [62.241.4.164]) by mx1.freebsd.org (Postfix) with ESMTP id 405EF8FC1B for ; Thu, 14 May 2009 06:14:13 +0000 (UTC) (envelope-from marco.borsatino@poste.it) Received: from poste.it (192.168.44.50) by relay-pt1.poste.it (7.3.122) id 4A0B5F4800000F69 for freebsd-questions@freebsd.org; Thu, 14 May 2009 07:53:32 +0200 Date: Thu, 14 May 2009 07:53:32 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: "marco\.borsatino\@poste\.it" To: freebsd-questions@freebsd.org X-XaM3-API-Version: 5.0(R1) X-SenderIP: 79.25.226.154 Subject: virtual network with qemu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2009 06:14:14 -0000 Hi to all. I'd like to implement a little virtual network using QEMU 0.10.2, but, un= til now, I have failed. This is the situation. Host: AMD 64 running FreeBSD 7.2 #ifconfig nfe0: flags=3D8843 metric 0 mtu 1= 500 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 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 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.im= g Alfter a long time, the installation of the guest system has been complet= ed. When the installation program asked for information about network configu= ration, as a first step, I chose DHCP configuration and, as usualy, the network has be= en 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 starte= d 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 15= 00 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 configurati= on 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 g= uest system. Please help. Sorry for my bad english. Marco