From owner-freebsd-xen@FreeBSD.ORG Mon Jan 17 10:21:50 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C68091065670 for ; Mon, 17 Jan 2011 10:21:50 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6688FC08 for ; Mon, 17 Jan 2011 10:21:50 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0HALnNj023793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Jan 2011 10:21:49 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0HALnNj023793 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295259709; x=1295864509; bh=JpXW2hb97ls2PLwsdM9CowdRj4Ma2qVH88r6mxggyGA=; h=Date:From:To:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=ob4CrdDKMN2239H8hj5t7OZ7oKi2Gszfhxo5F7nBxdzTdNH+DdCHZJnf7ekrrocEm vF4uBf/uKswjY19lXF+kGuwNYL62DgX3raAH/WfqUY/ZW/cWna12yKfiA3PLhXkowV c4NxIoODPNzuH4bKlykKe1q6+KhlmiVUDF7virvA= Date: Mon, 17 Jan 2011 10:21:49 +0000 (UTC) From: Janne Snabb To: freebsd-xen@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Mon, 17 Jan 2011 10:21:49 +0000 (UTC) Subject: Re: xn0: Error 2 parsing device/vif/0/mac [PATCH] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 10:21:50 -0000 On Sat, 15 Jan 2011, Janne Snabb wrote: > On Sat, 15 Jan 2011, Janne Snabb wrote: > > > It appears that that the netfront driver fails to get the vif mac > > address which leads to panic shortly afterwards. > > The patch at the bottom of this message solves the problem for me. This patch might be a bit neater. I found out about xenbus_get_otherend_path(). Best Regards, -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ --- sys/dev/xen/netfront/netfront.c.orig 2010-12-21 17:09:25.000000000 +0000 +++ sys/dev/xen/netfront/netfront.c 2011-01-17 10:11:06.000000000 +0000 @@ -401,13 +401,14 @@ xen_net_read_mac(device_t dev, uint8_t mac[]) { int error, i; char *s, *e, *macstr; - error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, - (void **) &macstr); - if (error) + if ((error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, + (void **) &macstr)) != 0 && + (error = xs_read(XST_NIL, xenbus_get_otherend_path(dev), + "mac", NULL, (void **) &macstr) != 0)) return (error); s = macstr; for (i = 0; i < ETHER_ADDR_LEN; i++) { mac[i] = strtoul(s, &e, 16); From owner-freebsd-xen@FreeBSD.ORG Mon Jan 17 10:28:54 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A42F106566B for ; Mon, 17 Jan 2011 10:28:54 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id C827B8FC12 for ; Mon, 17 Jan 2011 10:28:53 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0HASrbU033243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Jan 2011 10:28:53 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0HASrbU033243 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295260133; x=1295864933; bh=2mwFdTNZDxHCUgx/uXTXRSvigLBA+9C9lkwgc3/umE4=; h=Date:From:To:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=V51uxgaw2PAujW/EdtjQEgyVlXKpbDPhOqi/h+YIpQCblTi5k6fYvkKdWIwBCLu9Y MKPf7gu5xqPivTXUm9HqMrCADoJwHK0qAsRDn5IVE/DJcCzL2Kk+umbqL6F0WNhvtM Zsksu8YgAoBjrMdGl7qO2YAkPCiRepAjr4j8VzJQ= Date: Mon, 17 Jan 2011 10:28:53 +0000 (UTC) From: Janne Snabb To: freebsd-xen@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Mon, 17 Jan 2011 10:28:53 +0000 (UTC) Subject: Re: xn0: Error 2 parsing device/vif/0/mac [PATCH] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 10:28:54 -0000 On Mon, 17 Jan 2011, Janne Snabb wrote: > This patch might be a bit neater. Oops, bug. A bracket at the wrong place. This one should be better. Sorry about the noise, -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ --- sys/dev/xen/netfront/netfront.c.orig 2010-12-21 17:09:25.000000000 +0000 +++ sys/dev/xen/netfront/netfront.c 2011-01-17 10:11:06.000000000 +0000 @@ -401,13 +401,14 @@ xen_net_read_mac(device_t dev, uint8_t mac[]) { int error, i; char *s, *e, *macstr; - error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, - (void **) &macstr); - if (error) + if ((error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, + (void **) &macstr)) != 0 && + (error = xs_read(XST_NIL, xenbus_get_otherend_path(dev), + "mac", NULL, (void **) &macstr)) != 0) return (error); s = macstr; for (i = 0; i < ETHER_ADDR_LEN; i++) { mac[i] = strtoul(s, &e, 16); From owner-freebsd-xen@FreeBSD.ORG Mon Jan 17 10:52:28 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A165D1065693 for ; Mon, 17 Jan 2011 10:52:28 +0000 (UTC) (envelope-from got.andras@deployis.eu) Received: from mail.deployis.eu (mail.deployis.eu [217.20.135.253]) by mx1.freebsd.org (Postfix) with ESMTP id 584788FC08 for ; Mon, 17 Jan 2011 10:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deployis.eu; s=default; h=Subject:To:From:Date; bh=arO3zECshnfbrkao3HWVNRuxRCT4TGHMm8LDmhs2oww=; b=ihbwO1py23QlprqAqVnmvf2J5hkr275n3wEbCQvLVVVVKWGUOqaaGbfK07kFVMN/vpmIAVt6E94eaCbs5JohNVbye7Z5y0nautfll9Y5n6vKwYObEaLP8xWlkLWPTIwE; Received: from [80.95.75.131] (port=38206 helo=[192.168.2.194]) by mail.deployis.eu with esmtpsa (Exim 4.71 #1 (Debian)) id 1PemhH-0004HU-45 from ; Mon, 17 Jan 2011 11:52:27 +0100 Message-ID: <4D341F6A.2010804@deployis.eu> Date: Mon, 17 Jan 2011 11:52:26 +0100 From: =?ISO-8859-1?Q?G=F3t_Andr=E1s?= User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Janne Snabb References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DKIM-Status: None (from 80.95.75.131) X-Mail-Status-postahivatal: trustedmail (from 80.95.75.131) Cc: freebsd-xen@freebsd.org Subject: Re: xn0: Error 2 parsing device/vif/0/mac [PATCH] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 10:52:28 -0000 I'll give it a try today or later tomorrow with AMD and Xeon machines with Xen 3.4.3. I hope Colin can also make this for 8.2 release, if these are fine. Janne Snabb wrote: > On Mon, 17 Jan 2011, Janne Snabb wrote: > >> This patch might be a bit neater. > > Oops, bug. A bracket at the wrong place. This one should be better. > > Sorry about the noise, > -- > Janne Snabb / EPIPE Communications > snabb@epipe.com - http://epipe.com/ > > > --- sys/dev/xen/netfront/netfront.c.orig 2010-12-21 17:09:25.000000000 +0000 > +++ sys/dev/xen/netfront/netfront.c 2011-01-17 10:11:06.000000000 +0000 > @@ -401,13 +401,14 @@ > xen_net_read_mac(device_t dev, uint8_t mac[]) > { > int error, i; > char *s, *e, *macstr; > > - error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, > - (void **) &macstr); > - if (error) > + if ((error = xs_read(XST_NIL, xenbus_get_node(dev), "mac", NULL, > + (void **) &macstr)) != 0 && > + (error = xs_read(XST_NIL, xenbus_get_otherend_path(dev), > + "mac", NULL, (void **) &macstr)) != 0) > return (error); > > s = macstr; > for (i = 0; i < ETHER_ADDR_LEN; i++) { > mac[i] = strtoul(s, &e, 16); > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" From owner-freebsd-xen@FreeBSD.ORG Mon Jan 17 11:07:13 2011 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56B4E1065670 for ; Mon, 17 Jan 2011 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 452738FC15 for ; Mon, 17 Jan 2011 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0HB7D82049082 for ; Mon, 17 Jan 2011 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0HB7CnV049080 for freebsd-xen@FreeBSD.org; Mon, 17 Jan 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Jan 2011 11:07:12 GMT Message-Id: <201101171107.p0HB7CnV049080@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 11:07:13 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/153789 xen [xen] [regression] FreeBSD 8.2-RC1 crashes under Solar o kern/153674 xen [xen] i386/XEN idle thread shows wrong percentages o kern/153672 xen [xen] [panic] i386/XEN panics under heavy fork load o kern/153620 xen [xen] Xen guest system clock drifts in AWS EC2 (FreeBS o kern/153477 xen [xen] XEN pmap code abuses vm page queue lock o kern/153150 xen [xen] xen/ec2: disable checksum offloading on interfac o kern/152228 xen [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 o kern/144629 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143398 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143340 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor f kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after f kern/135667 xen ufs filesystem corruption on XEN DomU system f kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. f kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i o kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all f i386/124516 xen [xen] FreeBSD-CURRENT Xen Kernel Segfaults when config 16 problems total. From owner-freebsd-xen@FreeBSD.ORG Wed Jan 19 13:12:49 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D14FA1065675 for ; Wed, 19 Jan 2011 13:12:49 +0000 (UTC) (envelope-from c2n@c2n.pl) Received: from eden.c2n.pl (mail.c2n.pl [178.212.43.134]) by mx1.freebsd.org (Postfix) with ESMTP id AC64D8FC1C for ; Wed, 19 Jan 2011 13:12:48 +0000 (UTC) Received: from [192.168.0.141] (unknown [178.212.43.133]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: c2n@c2n.pl) by eden.c2n.pl (Postfix) with ESMTPSA id 525625C024 for ; Wed, 19 Jan 2011 13:54:40 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.3 eden.c2n.pl 525625C024 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=c2n.pl; s=dkim_3; t=1295441680; bh=7NkhyTEkbMg1rqU01s8Wo+cm7e11tPhKf7dSxkYeh9I=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=TxkIGAriToXtLejKkpZYIPAy+dktAJBAeiqrGMprBISjFVi4c28ynVbfnMKDa5Ws3 IXdg9SmJUnyMwA+HPCAmKkmodsDhDoGKTQHL8S1389VxyWu01nTZ3GJRh/95VTLu5w Vrcn8fW75zoTk3ZIdU0DElzMCwt4bh34HNhl1RjE= Message-ID: <4D36DF0E.5010403@c2n.pl> Date: Wed, 19 Jan 2011 13:54:38 +0100 From: C2N Grzegorz Rybicki Organization: C2N Grzegorz Rybicki User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: I have a problem with iSCSI on AMD64 Xen HVM X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 13:12:49 -0000 hello, I have a problem with ISCSI and XEN. Host: IBM Blade HS21 Citrix XenServer 5.6 Guest: Jan 19 13:12:38 mysql syslogd: kernel boot file is /boot/kernel/kernel Jan 19 13:12:38 mysql kernel: Copyright (c) 1992-2011 The FreeBSD Project. Jan 19 13:12:38 mysql kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Jan 19 13:12:38 mysql kernel: The Regents of the University of California. All rights reserved. Jan 19 13:12:38 mysql kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Jan 19 13:12:38 mysql kernel: FreeBSD 8.2-RC2 #3: Tue Jan 18 13:24:03 CET 2011 Jan 19 13:12:38 mysql kernel: ryba@mysql.c2n.pl:/usr/obj/usr/src/sys/EDEN amd64 Jan 19 13:12:38 mysql kernel: Timecounter "i8254" frequency 1193182 Hz quality 0 Jan 19 13:12:38 mysql kernel: CPU: Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (3000.16-MHz K8-class CPU) Jan 19 13:12:38 mysql kernel: Origin = "GenuineIntel" Id = 0x6f6 Family = 6 Model = f Stepping = 6 Jan 19 13:12:38 mysql kernel: Features=0x781fbff Jan 19 13:12:38 mysql kernel: Features2=0x80002201> Jan 19 13:12:38 mysql kernel: AMD Features=0x20000800 Jan 19 13:12:38 mysql kernel: AMD Features2=0x1 Jan 19 13:12:38 mysql kernel: TSC: P-state invariant Jan 19 13:12:38 mysql kernel: real memory = 632291328 (603 MB) Jan 19 13:12:38 mysql kernel: avail memory = 597741568 (570 MB) Jan 19 13:12:38 mysql kernel: ACPI APIC Table: Jan 19 13:12:38 mysql kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Jan 19 13:12:38 mysql kernel: FreeBSD/SMP: 2 package(s) x 1 core(s) Jan 19 13:12:38 mysql kernel: cpu0 (BSP): APIC ID: 0 Jan 19 13:12:38 mysql kernel: cpu1 (AP): APIC ID: 2 Jan 19 13:12:38 mysql kernel: ioapic0: Changing APIC ID to 1 Jan 19 13:12:38 mysql kernel: MADT: Forcing active-low polarity and level trigger for SCI Jan 19 13:12:38 mysql kernel: ioapic0 irqs 0-47 on motherboard Jan 19 13:12:38 mysql kernel: iscsi: version 2.2.4.2 Jan 19 13:12:38 mysql kernel: kbd1 at kbdmux0 Jan 19 13:12:38 mysql kernel: acpi0: on motherboard Jan 19 13:12:38 mysql kernel: acpi0: [ITHREAD] Jan 19 13:12:38 mysql kernel: acpi0: Power Button (fixed) Jan 19 13:12:38 mysql kernel: acpi0: Sleep Button (fixed) Jan 19 13:12:38 mysql kernel: Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 Jan 19 13:12:38 mysql kernel: acpi_timer0: <32-bit timer at 3.579545MHz> port 0x1f48-0x1f4b on acpi0 Jan 19 13:12:38 mysql kernel: cpu0: on acpi0 Jan 19 13:12:38 mysql kernel: cpu1: on acpi0 Jan 19 13:12:38 mysql kernel: pcib0: port 0xcf8-0xcff on acpi0 Jan 19 13:12:38 mysql kernel: pci0: on pcib0 Jan 19 13:12:38 mysql kernel: isab0: at device 1.0 on pci0 Jan 19 13:12:38 mysql kernel: isa0: on isab0 Jan 19 13:12:38 mysql kernel: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc320-0xc32f at device 1.1 on pci0 Jan 19 13:12:38 mysql kernel: ata0: on atapci0 Jan 19 13:12:38 mysql kernel: ata0: [ITHREAD] Jan 19 13:12:38 mysql kernel: ata1: on atapci0 Jan 19 13:12:38 mysql kernel: ata1: [ITHREAD] Jan 19 13:12:38 mysql kernel: pci0: at device 1.2 (no driver attached) Jan 19 13:12:38 mysql kernel: pci0: at device 1.3 (no driver attached) Jan 19 13:12:38 mysql kernel: vgapci0: mem 0xf0000000-0xf1ffffff,0xf3000000-0xf3000fff irq 24 at device 2.0 on pci0 Jan 19 13:12:38 mysql kernel: xenpci0: port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 30 at device 3.0 on pci0 Jan 19 13:12:38 mysql kernel: xs_probe: Probe retuns 0 Jan 19 13:12:38 mysql kernel: xenstore0: on xenpci0 Jan 19 13:12:38 mysql kernel: acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Jan 19 13:12:38 mysql kernel: Timecounter "HPET" frequency 62500000 Hz quality 900 Jan 19 13:12:38 mysql kernel: atrtc0: port 0x70-0x71 irq 8 on acpi0 Jan 19 13:12:38 mysql kernel: atrtc0: port 0x70-0x71 irq 8 on acpi0 Jan 19 13:12:38 mysql kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 Jan 19 13:12:38 mysql kernel: atkbd0: irq 1 on atkbdc0 Jan 19 13:12:38 mysql kernel: kbd0 at atkbd0 Jan 19 13:12:38 mysql kernel: atkbd0: [GIANT-LOCKED] Jan 19 13:12:38 mysql kernel: atkbd0: [ITHREAD] Jan 19 13:12:38 mysql kernel: psm0: irq 12 on atkbdc0 Jan 19 13:12:38 mysql kernel: psm0: [GIANT-LOCKED] Jan 19 13:12:38 mysql kernel: psm0: [ITHREAD] Jan 19 13:12:38 mysql kernel: psm0: model IntelliMouse Explorer, device ID 4 Jan 19 13:12:38 mysql kernel: fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 Jan 19 13:12:38 mysql kernel: fdc0: does not respond Jan 19 13:12:38 mysql kernel: device_attach: fdc0 attach returned 6 Jan 19 13:12:38 mysql kernel: uart0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 Jan 19 13:12:38 mysql kernel: uart0: [FILTER] Jan 19 13:12:38 mysql kernel: orm0: at iomem 0xc9000-0xc97ff on isa0 Jan 19 13:12:38 mysql kernel: sc0: at flags 0x100 on isa0 Jan 19 13:12:38 mysql kernel: sc0: VGA <16 virtual consoles, flags=0x300> Jan 19 13:12:38 mysql kernel: vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Jan 19 13:12:38 mysql kernel: Timecounters tick every 10.000 msec Jan 19 13:12:38 mysql kernel: acd0: CDROM at ata1-slave WDMA2 Jan 19 13:12:38 mysql kernel: xenbusb_front0: on xenstore0 Jan 19 13:12:38 mysql kernel: xn0: at device/vif/0 on xenbusb_front0 Jan 19 13:12:38 mysql kernel: xn0: Ethernet address: 02:b5:d6:76:27:ee Jan 19 13:12:38 mysql kernel: xn1: at device/vif/1 on xenbusb_front0 Jan 19 13:12:38 mysql kernel: xn1: Ethernet address: 4a:bf:b0:1e:ee:af Jan 19 13:12:38 mysql kernel: xenbusb_back0: on xenstore0 Jan 19 13:12:38 mysql kernel: xctrl0: on xenstore0 Jan 19 13:12:38 mysql kernel: xbd1: 8192MB at device/vbd/768 on xenbusb_front0 Jan 19 13:12:38 mysql kernel: xbd1: attaching as ad0 Jan 19 13:12:38 mysql kernel: SMP: AP CPU #1 Launched! Jan 19 13:12:38 mysql kernel: GEOM: ad0s1: geometry does not match label (16h,63s != 255h,63s). Jan 19 13:12:38 mysql kernel: Trying to mount root from ufs:/dev/ad0s1a Jan 19 13:12:38 mysql kernel: xn0: 2 link states coalesced And here I have a problem: xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! (da1:iscsi0:0:0:1): WRITE(6). CDB: a 0 0 3f 1 0 (da1:iscsi0:0:0:1): CAM status: SCSI Status Error (da1:iscsi0:0:0:1): SCSI status: Check Condition (da1:iscsi0:0:0:1): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) (da1:iscsi0:0:0:1): Invalidating pack It seems to me that iSCSI works, but something is not such a network interface. Do you have any idea? Regards From owner-freebsd-xen@FreeBSD.ORG Wed Jan 19 14:38:44 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C11E31065672 for ; Wed, 19 Jan 2011 14:38:44 +0000 (UTC) (envelope-from c2n.rybicki@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2287D8FC21 for ; Wed, 19 Jan 2011 14:38:43 +0000 (UTC) Received: by ewy24 with SMTP id 24so429063ewy.13 for ; Wed, 19 Jan 2011 06:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=tFSRcGAbbYNjwP1E/gXtm9DX/6nNagaRe7ya+GzP+f4=; b=TZRbEFM+qU7ZWIFmMLUX2x+QrnJJBdqMSrKiwUld7zwBBxq39+2mJTTJsCHNNkD09n v7NtdjY2jst4U3IlvYh1djwfCxJ2Hc7YUKDPY8Ony/DRFuzsNbw+hIkx2cGdEENwkd6J mnGGBa3Yjnbg9UL019pvi5qGQbSXIKwlqMehg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xZD1WiFIfrKjySMMYFB43XNYuQu3vgq2AVzq0K1IGArFvGmYzHBL/oQP5dNps/R0UW op3PE7nN9okQ3Pa7UzpEli+CSCp/qW8FkN7SYucQxrYaOtcv5otbdwXcpT/5oJ2OexiJ NarBgcCpk7H7MHNlDW+47NXGEnPXTBs+/XYcA= MIME-Version: 1.0 Received: by 10.213.7.70 with SMTP id c6mr1034545ebc.82.1295446292640; Wed, 19 Jan 2011 06:11:32 -0800 (PST) Received: by 10.213.2.196 with HTTP; Wed, 19 Jan 2011 06:11:32 -0800 (PST) Date: Wed, 19 Jan 2011 15:11:32 +0100 Message-ID: From: Grzegorz Rybicki To: freebsd-xen@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: I have a problem with iSCSI on AMD64 Xen HVM X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 14:38:44 -0000 hello, I have a problem with ISCSI and XEN. Host: IBM Blade HS21 Citrix XenServer 5.6 Guest: Jan 19 13:12:38 mysql syslogd: kernel boot file is /boot/kernel/kernel Jan 19 13:12:38 mysql kernel: Copyright (c) 1992-2011 The FreeBSD Project. Jan 19 13:12:38 mysql kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Jan 19 13:12:38 mysql kernel: The Regents of the University of California. All rights reserved. Jan 19 13:12:38 mysql kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Jan 19 13:12:38 mysql kernel: FreeBSD 8.2-RC2 #3: Tue Jan 18 13:24:03 CET 2011 Jan 19 13:12:38 mysql kernel: ryba@mysql.c2n.pl:/usr/obj/usr/src/sys/EDENamd64 Jan 19 13:12:38 mysql kernel: Timecounter "i8254" frequency 1193182 Hz quality 0 Jan 19 13:12:38 mysql kernel: CPU: Intel(R) Xeon(R) CPU 5160 @ 3.00GHz (3000.16-MHz K8-class CPU) Jan 19 13:12:38 mysql kernel: Origin = "GenuineIntel" Id = 0x6f6 Family = 6 Model = f Stepping = 6 Jan 19 13:12:38 mysql kernel: Features=0x781fbff Jan 19 13:12:38 mysql kernel: Features2=0x80002201> Jan 19 13:12:38 mysql kernel: AMD Features=0x20000800 Jan 19 13:12:38 mysql kernel: AMD Features2=0x1 Jan 19 13:12:38 mysql kernel: TSC: P-state invariant Jan 19 13:12:38 mysql kernel: real memory = 632291328 (603 MB) Jan 19 13:12:38 mysql kernel: avail memory = 597741568 (570 MB) Jan 19 13:12:38 mysql kernel: ACPI APIC Table: Jan 19 13:12:38 mysql kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Jan 19 13:12:38 mysql kernel: FreeBSD/SMP: 2 package(s) x 1 core(s) Jan 19 13:12:38 mysql kernel: cpu0 (BSP): APIC ID: 0 Jan 19 13:12:38 mysql kernel: cpu1 (AP): APIC ID: 2 Jan 19 13:12:38 mysql kernel: ioapic0: Changing APIC ID to 1 Jan 19 13:12:38 mysql kernel: MADT: Forcing active-low polarity and level trigger for SCI Jan 19 13:12:38 mysql kernel: ioapic0 irqs 0-47 on motherboard Jan 19 13:12:38 mysql kernel: iscsi: version 2.2.4.2 Jan 19 13:12:38 mysql kernel: kbd1 at kbdmux0 Jan 19 13:12:38 mysql kernel: acpi0: on motherboard Jan 19 13:12:38 mysql kernel: acpi0: [ITHREAD] Jan 19 13:12:38 mysql kernel: acpi0: Power Button (fixed) Jan 19 13:12:38 mysql kernel: acpi0: Sleep Button (fixed) Jan 19 13:12:38 mysql kernel: Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 Jan 19 13:12:38 mysql kernel: acpi_timer0: <32-bit timer at 3.579545MHz> port 0x1f48-0x1f4b on acpi0 Jan 19 13:12:38 mysql kernel: cpu0: on acpi0 Jan 19 13:12:38 mysql kernel: cpu1: on acpi0 Jan 19 13:12:38 mysql kernel: pcib0: port 0xcf8-0xcff on acpi0 Jan 19 13:12:38 mysql kernel: pci0: on pcib0 Jan 19 13:12:38 mysql kernel: isab0: at device 1.0 on pci0 Jan 19 13:12:38 mysql kernel: isa0: on isab0 Jan 19 13:12:38 mysql kernel: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc320-0xc32f at device 1.1 on pci0 Jan 19 13:12:38 mysql kernel: ata0: on atapci0 Jan 19 13:12:38 mysql kernel: ata0: [ITHREAD] Jan 19 13:12:38 mysql kernel: ata1: on atapci0 Jan 19 13:12:38 mysql kernel: ata1: [ITHREAD] Jan 19 13:12:38 mysql kernel: pci0: at device 1.2 (no driver attached) Jan 19 13:12:38 mysql kernel: pci0: at device 1.3 (no driver attached) Jan 19 13:12:38 mysql kernel: vgapci0: mem 0xf0000000-0xf1ffffff,0xf3000000-0xf3000fff irq 24 at device 2.0 on pci0 Jan 19 13:12:38 mysql kernel: xenpci0: port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 30 at device 3.0 on pci0 Jan 19 13:12:38 mysql kernel: xs_probe: Probe retuns 0 Jan 19 13:12:38 mysql kernel: xenstore0: on xenpci0 Jan 19 13:12:38 mysql kernel: acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Jan 19 13:12:38 mysql kernel: Timecounter "HPET" frequency 62500000 Hz quality 900 Jan 19 13:12:38 mysql kernel: atrtc0: port 0x70-0x71 irq 8 on acpi0 Jan 19 13:12:38 mysql kernel: atrtc0: port 0x70-0x71 irq 8 on acpi0 Jan 19 13:12:38 mysql kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 Jan 19 13:12:38 mysql kernel: atkbd0: irq 1 on atkbdc0 Jan 19 13:12:38 mysql kernel: kbd0 at atkbd0 Jan 19 13:12:38 mysql kernel: atkbd0: [GIANT-LOCKED] Jan 19 13:12:38 mysql kernel: atkbd0: [ITHREAD] Jan 19 13:12:38 mysql kernel: psm0: irq 12 on atkbdc0 Jan 19 13:12:38 mysql kernel: psm0: [GIANT-LOCKED] Jan 19 13:12:38 mysql kernel: psm0: [ITHREAD] Jan 19 13:12:38 mysql kernel: psm0: model IntelliMouse Explorer, device ID 4 Jan 19 13:12:38 mysql kernel: fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 Jan 19 13:12:38 mysql kernel: fdc0: does not respond Jan 19 13:12:38 mysql kernel: device_attach: fdc0 attach returned 6 Jan 19 13:12:38 mysql kernel: uart0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 Jan 19 13:12:38 mysql kernel: uart0: [FILTER] Jan 19 13:12:38 mysql kernel: orm0: at iomem 0xc9000-0xc97ff on isa0 Jan 19 13:12:38 mysql kernel: sc0: at flags 0x100 on isa0 Jan 19 13:12:38 mysql kernel: sc0: VGA <16 virtual consoles, flags=0x300> Jan 19 13:12:38 mysql kernel: vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Jan 19 13:12:38 mysql kernel: Timecounters tick every 10.000 msec Jan 19 13:12:38 mysql kernel: acd0: CDROM at ata1-slave WDMA2 Jan 19 13:12:38 mysql kernel: xenbusb_front0: on xenstore0 Jan 19 13:12:38 mysql kernel: xn0: at device/vif/0 on xenbusb_front0 Jan 19 13:12:38 mysql kernel: xn0: Ethernet address: 02:b5:d6:76:27:ee Jan 19 13:12:38 mysql kernel: xn1: at device/vif/1 on xenbusb_front0 Jan 19 13:12:38 mysql kernel: xn1: Ethernet address: 4a:bf:b0:1e:ee:af Jan 19 13:12:38 mysql kernel: xenbusb_back0: on xenstore0 Jan 19 13:12:38 mysql kernel: xctrl0: on xenstore0 Jan 19 13:12:38 mysql kernel: xbd1: 8192MB at device/vbd/768 on xenbusb_front0 Jan 19 13:12:38 mysql kernel: xbd1: attaching as ad0 Jan 19 13:12:38 mysql kernel: SMP: AP CPU #1 Launched! Jan 19 13:12:38 mysql kernel: GEOM: ad0s1: geometry does not match label (16h,63s != 255h,63s). Jan 19 13:12:38 mysql kernel: Trying to mount root from ufs:/dev/ad0s1a Jan 19 13:12:38 mysql kernel: xn0: 2 link states coalesced And here I have a problem: xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! xn_txeof: WARNING: response is -1! (da1:iscsi0:0:0:1): WRITE(6). CDB: a 0 0 3f 1 0 (da1:iscsi0:0:0:1): CAM status: SCSI Status Error (da1:iscsi0:0:0:1): SCSI status: Check Condition (da1:iscsi0:0:0:1): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) (da1:iscsi0:0:0:1): Invalidating pack It seems to me that iSCSI works, but something is not such a network interface. Do you have any idea? Regards From owner-freebsd-xen@FreeBSD.ORG Wed Jan 19 20:47:09 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2316F106564A for ; Wed, 19 Jan 2011 20:47:09 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by mx1.freebsd.org (Postfix) with ESMTP id DC5B08FC08 for ; Wed, 19 Jan 2011 20:47:08 +0000 (UTC) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by koef.zs64.net (8.14.4/8.14.4) with ESMTP id p0JKl7mV009185 for ; Wed, 19 Jan 2011 21:47:07 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.4/8.14.4/Submit) id p0JKl7Qf009184 for freebsd-xen@freebsd.org; Wed, 19 Jan 2011 15:47:07 -0500 (EST) (envelope-from cracauer) Date: Wed, 19 Jan 2011 15:47:07 -0500 From: Martin Cracauer To: freebsd-xen@freebsd.org Message-ID: <20110119204707.GA50536@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 20:47:09 -0000 I anyone able to run a amd64 FreeBSD guest in the Xen-4.0 that ships with Debian-Squeeze? Dom0 is Debian's 2.6.32.25 Xen kernel. Hardware is a Phenom II. I get a sig11 in xend. I compiled XENHVM on FreeBSD-9.0-current as of Jan 10. I am using this Xen config file just to test booting the kernel: kernel = '/home/xen/boot/freebsd-amd64-90current-2011019-kernel' memory = '256' name = 'freebsd' builder = 'hvm' (the builder= line is required, otherwise the python script doesn't recognize the kernel as a valid kernel) [2011-01-19 08:28:29 1313] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain [2011-01-19 08:28:29 1313] DEBUG (balloon:220) Balloon: 1706900 KiB free; need 16384; done. [2011-01-19 08:28:29 1313] DEBUG (XendDomain:464) Adding Domain: 1 [2011-01-19 08:28:29 1313] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 1 256 [2011-01-19 08:28:30 1313] DEBUG (image:891) args: boot, val: c [2011-01-19 08:28:30 1313] DEBUG (image:891) args: fda, val: None [2011-01-19 08:28:30 1313] DEBUG (image:891) args: fdb, val: None [2011-01-19 08:28:30 1313] DEBUG (image:891) args: soundhw, val: None [2011-01-19 08:28:30 1313] DEBUG (image:891) args: localtime, val: 0 [2011-01-19 08:28:30 1313] DEBUG (image:891) args: serial, val: None [2011-01-19 08:28:30 1313] DEBUG (image:891) args: std-vga, val: 0 [2011-01-19 08:28:30 1313] DEBUG (image:891) args: isa, val: 0 [2011-01-19 08:28:30 1313] DEBUG (image:891) args: acpi, val: 1 [2011-01-19 08:28:30 1313] DEBUG (image:891) args: usb, val: 0 [2011-01-19 08:28:30 1313] DEBUG (image:891) args: usbdevice, val: None [2011-01-19 08:28:30 1313] DEBUG (image:891) args: gfx_passthru, val: None [2011-01-19 08:28:30 1313] INFO (image:822) Need to create platform device.[domid:1] [2011-01-19 08:28:30 1313] DEBUG (XendDomainInfo:2845) _initDomain:shadow_memory=0x0, memory_static_max=0x10000000, memory_static_min=0x0. [2011-01-19 08:28:30 1313] INFO (image:182) buildDomain os=hvm dom=1 vcpus=1 [2011-01-19 08:28:30 1313] DEBUG (image:949) domid = 1 [2011-01-19 08:28:30 1313] DEBUG (image:950) image = /home/xen/boot/freebsd-amd64-90current-2011019-kernel [2011-01-19 08:28:30 1313] DEBUG (image:951) store_evtchn = 2 [2011-01-19 08:28:30 1313] DEBUG (image:952) memsize = 256 [2011-01-19 08:28:30 1313] DEBUG (image:953) target = 256 [2011-01-19 08:28:30 1313] DEBUG (image:954) vcpus = 1 [2011-01-19 08:28:30 1313] DEBUG (image:955) vcpu_avail = 1 [2011-01-19 08:28:30 1313] DEBUG (image:956) acpi = 1 [2011-01-19 08:28:30 1313] DEBUG (image:957) apic = 1 [2011-01-19 08:28:31 1312] CRITICAL (SrvDaemon:232) Xend died due to signal 11! Restarting it. From owner-freebsd-xen@FreeBSD.ORG Thu Jan 20 00:09:50 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0416B1065672 for ; Thu, 20 Jan 2011 00:09:50 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id BEE588FC2B for ; Thu, 20 Jan 2011 00:09:49 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0K09jYI081989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Jan 2011 00:09:46 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0K09jYI081989 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295482186; x=1296086986; bh=oDrRJVDiBlH/Ru0jIqc0gHSaSUpotflt8aVpCj5UvW4=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=f6UDvzI/+fZ7Ep8Iu73zS9hJJTOTQdrpm5rLBCFY+qsAm5v2nqqhXWs4ykere4/F0 3np4i8dbfQkVIyXm1X9YhK68/PW0ETNeIvuetPPL52SuUbI0M3jkuUQZz37JCy/vBh 2258B6LPi3jlaYymCb0SOlwC7kJdZsXzerBqnVcc= Date: Thu, 20 Jan 2011 00:09:45 +0000 (UTC) From: Janne Snabb To: Martin Cracauer In-Reply-To: <20110119204707.GA50536@cons.org> Message-ID: References: <20110119204707.GA50536@cons.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Thu, 20 Jan 2011 00:09:46 +0000 (UTC) Cc: freebsd-xen@freebsd.org Subject: Re: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 00:09:50 -0000 On Wed, 19 Jan 2011, Martin Cracauer wrote: > I anyone able to run a amd64 FreeBSD guest in the Xen-4.0 that ships > with Debian-Squeeze? Dom0 is Debian's 2.6.32.25 Xen kernel. Hardware > is a Phenom II. My all test configurations are different... > I get a sig11 in xend. > > I compiled XENHVM on FreeBSD-9.0-current as of Jan 10. I am using > this Xen config file just to test booting the kernel: > > kernel = '/home/xen/boot/freebsd-amd64-90current-2011019-kernel' > memory = '256' > name = 'freebsd' > builder = 'hvm' > > (the builder= line is required, otherwise the python script doesn't > recognize the kernel as a valid kernel) ...but my understanding is that with HVM mode you normally have: kernel = "/usr/lib/xen/boot/hvmloader" ...(or similar) and the kernel gets loaded by the normal boot loader which is launched by hvmloader from the virtual machine's disk. In PV mode (builder = 'linux' which is the default) the kernel is loaded with the "kernel" configuration line unless py-grub or similar is in use. I am not sure if this is the cause of your problem though, but your configuration might create an environment which is not suitable for the HVM kernel to run. Note that amd64 XENHVM kernel is a HVM kernel (similar to GENERIC) with just additional support for XEN-specific PV drivers while the VM otherwise runs in HVM mode. PV kernel is only available for i386 (XEN kernel config file). That kernel should be loaded as you do now, but with "builder = 'linux'". Does it make a difference if you boot your VM from a normal (GENERIC amd64) installation ISO, install the system as usual to a virtual hard disk and then install the XENHVM kernel there? You will need to use VNC console briefly during installation until you can switch to using serial console. Best Regards, -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Thu Jan 20 05:08:02 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A56B106564A for ; Thu, 20 Jan 2011 05:08:02 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id D33348FC08 for ; Thu, 20 Jan 2011 05:08:01 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0K57vmK092959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Jan 2011 05:07:57 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0K57vmK092959 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295500078; x=1296104878; bh=vpSPxx9k4+RFh7RLAiVsk5WRDODXmFYmjq0kW0q+6Us=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=YN30JKWMmp7WNPlMULC0dO7fR/Syb5MZbr4iOsKujMvrBsfk4g68IzB/WVC4Vffwk Xq53r3saIGWW37s3GY6M4arhCK0uB90nmRqDyymPwLSUhwBFJXnGC3DV+QTVPanAFn 0wKXsV3LPEY9sA+hNhjjW+dTQ2gbXXwHKVUYwq5Q= Date: Thu, 20 Jan 2011 05:07:57 +0000 (UTC) From: Janne Snabb To: Martin Cracauer In-Reply-To: Message-ID: References: <20110119204707.GA50536@cons.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Thu, 20 Jan 2011 05:07:58 +0000 (UTC) Cc: freebsd-xen@freebsd.org Subject: Re: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 05:08:02 -0000 On Thu, 20 Jan 2011, Janne Snabb wrote: > I am not sure if this is the cause of your problem though, but your > configuration might create an environment which is not suitable for > the HVM kernel to run. Martin, I tried this out with Xen 4.0.1 and had the same effect as you: "Xend died due to signal 11!" if I attempted loading the XENHVM kernel with kernel = "/within/dom0/path/to/freebsd/kernel" in xen config. With kernel = "/path/to/hvmloader" things work fine (the FreeBSD kernel and boot loader residing within the virtual disk of the virtual machine, the same way as it would be on a physical machine). This is the proper way to use the amd64 XENHVM kernel. Best Regards, -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Thu Jan 20 13:14:46 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFC88106566C for ; Thu, 20 Jan 2011 13:14:46 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by mx1.freebsd.org (Postfix) with ESMTP id 917F48FC14 for ; Thu, 20 Jan 2011 13:14:46 +0000 (UTC) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by koef.zs64.net (8.14.4/8.14.4) with ESMTP id p0KDE1AL050406; Thu, 20 Jan 2011 14:14:01 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.4/8.14.4/Submit) id p0KDE1q7050404; Thu, 20 Jan 2011 08:14:01 -0500 (EST) (envelope-from cracauer) Date: Thu, 20 Jan 2011 08:14:01 -0500 From: Martin Cracauer To: Janne Snabb Message-ID: <20110120131401.GA49672@cons.org> References: <20110119204707.GA50536@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-xen@freebsd.org Subject: Re: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 13:14:46 -0000 Janne Snabb wrote on Thu, Jan 20, 2011 at 05:07:57AM +0000: > On Thu, 20 Jan 2011, Janne Snabb wrote: > > > I am not sure if this is the cause of your problem though, but your > > configuration might create an environment which is not suitable for > > the HVM kernel to run. > > Martin, > > I tried this out with Xen 4.0.1 and had the same effect as you: > "Xend died due to signal 11!" if I attempted loading the XENHVM > kernel with kernel = "/within/dom0/path/to/freebsd/kernel" in xen > config. > > With kernel = "/path/to/hvmloader" things work fine (the FreeBSD > kernel and boot loader residing within the virtual disk of the > virtual machine, the same way as it would be on a physical machine). > This is the proper way to use the amd64 XENHVM kernel. Thanks for the update. Just to be clear: the disk file has to be a whole disk, with partitions, right? hvmloader would then proceed through the regular bootloaders in the boot sector? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ From owner-freebsd-xen@FreeBSD.ORG Thu Jan 20 14:56:31 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E6F3106564A for ; Thu, 20 Jan 2011 14:56:31 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by mx1.freebsd.org (Postfix) with ESMTP id 624608FC13 for ; Thu, 20 Jan 2011 14:56:31 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:1828:0:3::2]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id p0KEuS8W036852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Jan 2011 14:56:28 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com p0KEuS8W036852 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1295535388; x=1296140188; bh=cmMNMjt6ra1+Q0XeVxs8LZ1/R6HUEVDT0e+N/yf/k1s=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=br4h2X5fIVOjQfLfzuMvFUedDiNayeQdc2f6eyy0ZZ3sBhPaWU0+DdawYIKmT43bx pZrf5j3CEZptpnLON1XgUhDH0+r+8/kRnXmHU40EbrnbJSK1PsjKxPSzGG+NibwOym kPNNsPYuBUSaNTQm4xz7tIkFkr+8XWk5eZFVE344= Date: Thu, 20 Jan 2011 14:56:28 +0000 (UTC) From: Janne Snabb To: Martin Cracauer In-Reply-To: <20110120131401.GA49672@cons.org> Message-ID: References: <20110119204707.GA50536@cons.org> <20110120131401.GA49672@cons.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.6 (tiktik.epipe.com [IPv6:2001:1828:0:3::2]); Thu, 20 Jan 2011 14:56:28 +0000 (UTC) Cc: freebsd-xen@freebsd.org Subject: Re: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 14:56:31 -0000 On Thu, 20 Jan 2011, Martin Cracauer wrote: > Just to be clear: the disk file has to be a whole disk, with > partitions, right? hvmloader would then proceed through the regular > bootloaders in the boot sector? Short answer: yes. Anything that should work on a real machine should work as the disk image of a Xen HVM instance. The simplest way is to run the sysinstall tool from an installation ISO that you attach to your virtual machine. It will create MBR partition table and BSD disklabel for you as well as install the required boot blocks/loaders. You could alternatively do the same steps manually, using mdconfig to attach your (empty) disk image file to an existing FreeBSD box as a virtual disk and do the required steps with tools such as fdisk, gpart, boot0cfg, disklabel, newfs, etc. and then move that image file to your Xen machine. You could also use a hard disk from an existing FreeBSD machine (a real one), attach that disk to another machine (or boot from USB stick) and read the whole hard disk image with dd or similar tool and use that as the virtual disk for the Xen HVM instance. -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/ From owner-freebsd-xen@FreeBSD.ORG Thu Jan 20 23:12:59 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D1B5106566C for ; Thu, 20 Jan 2011 23:12:59 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by mx1.freebsd.org (Postfix) with ESMTP id F13D68FC15 for ; Thu, 20 Jan 2011 23:12:58 +0000 (UTC) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by koef.zs64.net (8.14.4/8.14.4) with ESMTP id p0KNCpA3079843; Fri, 21 Jan 2011 00:12:51 +0100 (CET) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.4/8.14.4/Submit) id p0KNCplx079841; Thu, 20 Jan 2011 18:12:51 -0500 (EST) (envelope-from cracauer) Date: Thu, 20 Jan 2011 18:12:51 -0500 From: Martin Cracauer To: Janne Snabb Message-ID: <20110120231251.GA78349@cons.org> References: <20110119204707.GA50536@cons.org> <20110120131401.GA49672@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-xen@freebsd.org Subject: Re: FreeBSD-amd64 in Xen 4.0? X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 23:12:59 -0000 Janne Snabb wrote on Thu, Jan 20, 2011 at 02:56:28PM +0000: > On Thu, 20 Jan 2011, Martin Cracauer wrote: > > > Just to be clear: the disk file has to be a whole disk, with > > partitions, right? hvmloader would then proceed through the regular > > bootloaders in the boot sector? > > Short answer: yes. Thanks again. I think I'll stay with PV for now and if I want amd64/HVM I'll go the PXE boot route. I didn't try Xen's PXE support but it sounds much more attractive than having a BSD-labeled and BSD-filesystemed vnode file floating around in the Linux dom0. Plus I already have a PXE boot environment for all these guests. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ From owner-freebsd-xen@FreeBSD.ORG Sat Jan 22 06:04:59 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B69D5106564A for ; Sat, 22 Jan 2011 06:04:59 +0000 (UTC) (envelope-from nsayer@kfu.com) Received: from quack.kfu.com (kfu-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:e09::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6138D8FC0C for ; Sat, 22 Jan 2011 06:04:59 +0000 (UTC) Received: from arachne.kfu.com (arachne.kfu.com [IPv6:2001:470:1f05:16b7:5a55:caff:fef2:4efb]) (authenticated bits=0) by quack.kfu.com (8.14.4/8.14.4) with ESMTP id p0M64r1m001698 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 21 Jan 2011 22:04:58 -0800 (PST) (envelope-from nsayer@kfu.com) X-DKIM: Sendmail DKIM Filter v2.8.3 quack.kfu.com p0M64r1m001698 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kfu.com; s=KFU; t=1295676298; bh=1W2gmRIhqWElTh8P/uorcDMN9Qo+dAzoZH2vxSJM0To=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=Qih+9V2SRYmwUfrIpjcUBQMPg0DNc1xKCXaw1bfy+Vr2j4Ccf4vDB/Twjnd7Z/d+7 mgjtPyxm8a2xf90Gbzr60OzlX4BEs1B1C+HRj4WPFgFOB+9kFIuaqHnBHsg4h6cSfD JcGq7dXr9IOr24GGIaglKSRTKI4k22RbNtIo1Cfg= From: Nick Sayer Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 21 Jan 2011 22:04:53 -0800 Message-Id: <8ED72DD4-E865-4BF2-87C9-643B89D5E9AC@kfu.com> To: freebsd-xen@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (quack.kfu.com [IPv6:2001:470:1f07:e09:216:3eff:fe2d:5c32]); Fri, 21 Jan 2011 22:04:58 -0800 (PST) Subject: Re: xn0: Error 2 parsing device/vif/0/mac [PATCH] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2011 06:04:59 -0000 +1 to the patch Janne Snabb posted. I have a domU at rootbsd and had = suffered the exact same "do something smart" panic when I tried to build = a xen kernel, but his patch fixed it for me.=