From kmacy at freebsd.org Sat Oct 18 23:17:15 2008 From: kmacy at freebsd.org (Kip Macy) Date: Sat Oct 18 23:17:22 2008 Subject: RELENG_6 and 6.3 availability Message-ID: <3c1674c90810181552m576c2b83vb0ccd22d8bf0370b@mail.gmail.com> RELENG_6 and 6.3 RELEASE support for xen are now available. SMP is still not done. I hope to have that working by the beginning of next week. RELENG_7 will probably be available by the end of the month. 6.3-RELEASE: http://svn.freebsd.org/base/projects/release_6_3_xen/ RELENG_6: http://svn.freebsd.org/base/projects/releng_6_xen Please let me know if you have any questions that are not answered by the wiki entry. Cheers, Kip From mephist at zenon.net Sun Oct 19 06:20:59 2008 From: mephist at zenon.net (Nikolenko Maxim) Date: Sun Oct 19 06:21:06 2008 Subject: erw Message-ID: <48FAC3A8.5030701@zenon.net> -- Maxim Nikolenko, Zenon N.S.P. Technical support department Moscow: +7-495-232-3736, SPb: +7-812-363-1605, http://www.zenon.net From volker at thalreit.de Mon Oct 20 21:18:21 2008 From: volker at thalreit.de (Volker Jahns) Date: Mon Oct 20 21:18:27 2008 Subject: RELENG_6 and 6.3 availability In-Reply-To: <3c1674c90810181552m576c2b83vb0ccd22d8bf0370b@mail.gmail.com> References: <3c1674c90810181552m576c2b83vb0ccd22d8bf0370b@mail.gmail.com> Message-ID: <48FCF2A0.2080607@thalreit.de> Kip Macy wrote: > RELENG_6 and 6.3 RELEASE support for xen are now available. SMP is > still not done. I hope to have that working by the beginning of next > week. RELENG_7 will probably be available by the end of the month. > > 6.3-RELEASE: > http://svn.freebsd.org/base/projects/release_6_3_xen/ > > RELENG_6: > http://svn.freebsd.org/base/projects/releng_6_xen > > Please let me know if you have any questions that are not answered by > the wiki entry. > > Cheers, > Kip > > Checking out release_6_3_xen http://svn.freebsd.org/base/projects/release_6_3_xen/ however, it dows not contain a XEN configuration file for kernel compilation :-( -- [jahns@caspar /usr/src/sys/i386/conf]$ ls DEFAULTS GENERIC.hints NOTES SMP GENERIC Makefile PAE XBOX -- releng_6_xen has a XEN config file, will use that one for the moment. -- Volker Jahns, volker@thalreit.de From Benoit.Calvez at gmail.com Mon Oct 20 21:55:10 2008 From: Benoit.Calvez at gmail.com (Benoit Calvez) Date: Mon Oct 20 21:55:16 2008 Subject: RELENG_6 and 6.3 availability In-Reply-To: <48FCF2A0.2080607@thalreit.de> References: <3c1674c90810181552m576c2b83vb0ccd22d8bf0370b@mail.gmail.com> <48FCF2A0.2080607@thalreit.de> Message-ID: <3481d8e60810201430k32c83037tef0d057ef4269683@mail.gmail.com> On Mon, Oct 20, 2008 at 11:05 PM, Volker Jahns wrote: > Kip Macy wrote: > >> RELENG_6 and 6.3 RELEASE support for xen are now available. SMP is >> still not done. I hope to have that working by the beginning of next >> week. RELENG_7 will probably be available by the end of the month. >> >> 6.3-RELEASE: >> http://svn.freebsd.org/base/projects/release_6_3_xen/ >> >> RELENG_6: >> http://svn.freebsd.org/base/projects/releng_6_xen >> >> Please let me know if you have any questions that are not answered by >> the wiki entry. >> >> Cheers, >> Kip >> >> >> > Checking out release_6_3_xen > > http://svn.freebsd.org/base/projects/release_6_3_xen/ > > however, it dows not contain a XEN configuration file for kernel > compilation :-( > -- > [jahns@caspar /usr/src/sys/i386/conf]$ ls > DEFAULTS GENERIC.hints NOTES SMP GENERIC Makefile > PAE XBOX > -- > releng_6_xen has a XEN config file, will use that one for the moment. > XEN configuration file is accessible from -current sources don't know if it's help but take a look at : http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/conf/XEN > > -- > Volker Jahns, volker@thalreit.de > > > _______________________________________________ > 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 kmacy at freebsd.org Tue Oct 21 02:48:20 2008 From: kmacy at freebsd.org (Kip Macy) Date: Tue Oct 21 02:48:27 2008 Subject: RELENG_6 and 6.3 availability In-Reply-To: <48FCF2A0.2080607@thalreit.de> References: <3c1674c90810181552m576c2b83vb0ccd22d8bf0370b@mail.gmail.com> <48FCF2A0.2080607@thalreit.de> Message-ID: <3c1674c90810201948k45f0b158i69d6c06012701d48@mail.gmail.com> Fixed. Thanks, Kip On Mon, Oct 20, 2008 at 9:05 PM, Volker Jahns wrote: > Kip Macy wrote: >> >> RELENG_6 and 6.3 RELEASE support for xen are now available. SMP is >> still not done. I hope to have that working by the beginning of next >> week. RELENG_7 will probably be available by the end of the month. >> >> 6.3-RELEASE: >> http://svn.freebsd.org/base/projects/release_6_3_xen/ >> >> RELENG_6: >> http://svn.freebsd.org/base/projects/releng_6_xen >> >> Please let me know if you have any questions that are not answered by >> the wiki entry. >> >> Cheers, >> Kip >> >> > > Checking out release_6_3_xen > > http://svn.freebsd.org/base/projects/release_6_3_xen/ > > however, it dows not contain a XEN configuration file for kernel compilation > :-( > -- > [jahns@caspar /usr/src/sys/i386/conf]$ ls > DEFAULTS GENERIC.hints NOTES SMP GENERIC Makefile PAE > XBOX > -- > releng_6_xen has a XEN config file, will use that one for the moment. > > -- > Volker Jahns, volker@thalreit.de > > From volker at thalreit.de Thu Oct 23 09:37:00 2008 From: volker at thalreit.de (Volker Jahns) Date: Thu Oct 23 09:37:07 2008 Subject: Boot success of FreeBSD 6.3-RELEASE XEN domU Message-ID: <490045B3.4050703@thalreit.de> Hurra, there is boot success of FreeBSD 6.3-RELEASE XEN kernel. See the following transcript -- root@xenon xen # sudo xm create -c freebsd Using config file "./freebsd". Started domain freebsd WARNING: loader(8) metadata is missing! GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.3-RELEASE #0: Tue Oct 21 11:22:27 CEST 2008 root@caspar.thalreit:/usr/obj/usr/src/sys/CASPARXEN Xen reported: 1598.642 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz (1598.64-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf12 Stepping = 2 Features=0x3febfbff real memory = 536870912 (512 MB) avail memory = 516378624 (492 MB) Security auditing service present BSM auditing present kbd0 at kbdmux0 xc0: on motherboard cpu0 on motherboard Timecounters tick every 1.000 msec [XEN] Initialising virtual ethernet driver. xs_single device xs_talkv read_reply event=1 itype=1 htype=1 len=12 xs_single device/vif xs_talkv read_reply event=1 itype=1 htype=1 len=2 gather xs_read xs_single device/vif/0/state xs_talkv read_reply event=2 itype=2 htype=2 len=NULL 1 gather xs_read xs_single device/vif/0/backend-id xs_talkv read_reply event=2 itype=2 htype=2 len=NULL 0 xs_read xs_single device/vif/0/backend xs_talkv read_reply event=2 itype=2 htype=2 len=NULL /local/domain/0/backend/vif/1/0 xs_single /local/domain/0/backend/vif/1/0 xs_talkv read_reply event=1 itype=1 htype=1 len=140 netfront_probe() xs_read xs_single device/vif/0/mac xs_talkv read_reply event=2 itype=2 htype=2 len=NULL xn0: Ethernet address: 00:16:3e:5e:c3:1a xs_talkv read_reply event=4 itype=4 htype=4 len=NULL xs_single device/console xs_talkv read_reply event=1 itype=1 htype=1 len=2 gather xs_read xs_single /local/domain/0/backend/vif/1/0/state xs_talkv read_reply event=2 itype=2 htype=2 len=NULL 2 [XEN] network_connect xs_read xs_single /local/domain/0/backend/vif/1/0/feature-rx-copy xs_talkv read_reply event=2 itype=2 htype=2 len=NULL xs_read xs_single /local/domain/0/backend/vif/1/0/feature-rx-flip xs_talkv read_reply event=2 itype=2 htype=2 len=NULL xs_read xs_single device/vif/0/mac xs_talkv read_reply event=2 itype=2 htype=2 len=NULL xs_single xs_talkv read_reply event=6 itype=6 htype=6 len=NULL xenbus_write dir=device/vif/0 val=768 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_write dir=device/vif/0 val=769 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_write dir=device/vif/0 val=4 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_write dir=device/vif/0 val=1 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_write dir=device/vif/0 val=1 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_write dir=device/vif/0 val=1 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_write dir=device/vif/0 val=1 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL xenbus_transaction_end xs_single T xs_talkv read_reply event=7 itype=7 htype=7 len=NULL xs_read xs_single device/vif/0/state xs_talkv read_reply event=2 itype=2 htype=2 len=NULL xenbus_write dir=device/vif/0 val=4 xs_talkv read_reply event=11 itype=11 htype=11 len=NULL gather xs_read xs_single device/console/0/state xs_talkv read_reply event=2 itype=2 htype=2 len=NULL gather xs_read xs_single /local/domain/0/backend/vif/1/0/state xs_talkv read_reply event=2 itype=2 htype=2 len=NULL 4 [XEN] 1 xs_talkv read_reply event=4 itype=4 htype=4 len=NULL xs_single backend xs_talkv read_reply event=16 itype=1 htype=16 len=7 xs_talkv read_reply event=4 itype=4 htype=4 len=NULL xs_talkv read_reply event=4 itype=4 htype=4 len=NULL Manual root filesystem specification: : Mount using filesystem eg. ufs:da0s1a ? List valid disk boot devices Abort manual input mountroot> -- FreeBSD 6.3-RELEASE XEN running as domU on openSUSE 11.0 - 2.6.25.16-0.1 XEN -- Volker Jahns, volker@thalreit.de From volker at thalreit.de Thu Oct 23 14:06:53 2008 From: volker at thalreit.de (Volker Jahns) Date: Thu Oct 23 14:07:24 2008 Subject: Boot success of FreeBSD 6.3-RELEASE XEN domU In-Reply-To: <490045B3.4050703@thalreit.de> References: <490045B3.4050703@thalreit.de> Message-ID: <490084F5.2000209@thalreit.de> Volker Jahns wrote: > there is boot success of FreeBSD 6.3-RELEASE XEN kernel. > -- > root@xenon xen # sudo xm create -c freebsd > Using config file "./freebsd". > Started domain freebsd > WARNING: loader(8) metadata is missing! > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 6.3-RELEASE #0: Tue Oct 21 11:22:27 CEST 2008 > root@caspar.thalreit:/usr/obj/usr/src/sys/CASPARXEN > > > Manual root filesystem specification: > : Mount using filesystem > eg. ufs:da0s1a > ? List valid disk boot devices > Abort manual input > > mountroot> > -- > > FreeBSD 6.3-RELEASE XEN running as domU on openSUSE 11.0 - > 2.6.25.16-0.1 XEN > In fact the kernel boots now into full multiuser mode, network working also fine, using this xen configuration file, -- # # FreeBSD 6.3 RELEASE XEN configuration # Volker Jahns, volker@thalreit.de # name = 'nemo' memory = '512' disk = [ 'phy:/dev/sr0,cdrom,r', 'phy:/dev/sdc,hda,w' ] vif = [ 'mac=aa:cc:00:00:00:02, bridge=xenbr0' ] on_shutdown = 'destroy' on_reboot = 'destroy' on_crash = 'destroy' kernel = '/usr/lib/xen-freebsd/kernel-FreeBSD-6.3-releng' on_crash = 'preserve' extra = 'boot_verbose' extra += ',boot_single' extra += ',vfs.root.mountfrom=ufs:/dev/xbd1s1a' extra += ',xencons=tty' -- On domU the following files had to be adapted: /etc/rc.conf - network config for xn0 and disable usbd -- #ifconfig_fxp0="inet xx.yy.zz.tt netmask 255.255.255.0" ifconfig_xn0="inet xx.yy.zz.tt netmask 255.255.255.0" #usbd_enable="YES" -- /etc/fstab - using hard drive /dev/sdc ( D:) -- /dev/xbd1s1b none swap sw 0 0 /dev/xbd1s1a / ufs rw 1 1 /dev/xbd1s1e /tmp ufs rw 2 2 /dev/xbd1s1f /usr ufs rw 2 2 /dev/xbd1s1d /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 -- /etc/ttys - added the following line -- xc0 "/usr/libexec/getty Pc" cons25 on secure -- Please, I would like to take the opportunity and to express my full appreciation on what has been done on the FreeBSD XEN port thus far. Thank you very much, Kip! -- Volker Jahns, volker@thalreit.de From kmacy at freebsd.org Fri Oct 24 08:00:39 2008 From: kmacy at freebsd.org (Kip Macy) Date: Fri Oct 24 08:01:18 2008 Subject: SMP support now in HEAD Message-ID: <3c1674c90810240100h5d415deal50cd72bd760d237f@mail.gmail.com> There are some bits that still need attending to, but we can now boot with vcpus > 1. Cheers, Kip Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #292: Fri Oct 24 00:47:44 PDT 2008 kmacy@delirium.fsmware.com:/usr/home/kmacy/devel/objdir/i386/usr/home/kmacy/devel/svn_checkouts/HEAD_xen/sys/XEN WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2394.000 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz (2394.00-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fb Stepping = 11 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 4 Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 4096 kbytes, 16-way associative, 64 bytes/line real memory = 134217728 (128 MB) Physical memory chunk(s): 0x00000000005fb000 - 0x0000000007d7dfff, 125317120 bytes (30595 pages) avail memory = 123691008 (117 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) SMP: Added CPU 1 (AP) gdtpfn=ae57 pdptpfn=446e INTR: Adding local APIC 1 as a target FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 <...> demo# uname -a FreeBSD demo.freebsd.org 8.0-CURRENT FreeBSD 8.0-CURRENT #292: Fri Oct 24 00:47:44 PDT 2008 kmacy@delirium.fsmware.com:/usr/home/kmacy/devel/objdir/i386/usr/home/kmacy/devel/svn_checkouts/HEAD_xen/sys/XEN i386 demo# sysctl hw.ncpu hw.ncpu: 2 From steve at energistic.com Fri Oct 24 14:54:53 2008 From: steve at energistic.com (Steve Ames) Date: Fri Oct 24 14:55:00 2008 Subject: SMP support now in HEAD In-Reply-To: <3c1674c90810240100h5d415deal50cd72bd760d237f@mail.gmail.com> References: <3c1674c90810240100h5d415deal50cd72bd760d237f@mail.gmail.com> Message-ID: <20081024142731.GA53249@energistic.com> Better and better. Does anyone have an Idiots Guide to creating a FreeBSD xen image and getting it working? I'm failing there somewhere and so can't get to a testing point at all :( On Fri, Oct 24, 2008 at 08:00:38AM +0000, Kip Macy wrote: > There are some bits that still need attending to, but we can now boot > with vcpus > 1. > > Cheers, > Kip > > > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #292: Fri Oct 24 00:47:44 PDT 2008 > kmacy@delirium.fsmware.com:/usr/home/kmacy/devel/objdir/i386/usr/home/kmacy/devel/svn_checkouts/HEAD_xen/sys/XEN > WARNING: WITNESS option enabled, expect reduced performance. > Xen reported: 2394.000 MHz processor. > Timecounter "ixen" frequency 1000000000 Hz quality 0 > CPU: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz (2394.00-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x6fb Stepping = 11 > Features=0xbfebfbff > Features2=0xe3bd > AMD Features=0x20100000 > AMD Features2=0x1 > Cores per package: 4 > > Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries > 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size > 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size > L2 cache: 4096 kbytes, 16-way associative, 64 bytes/line > real memory = 134217728 (128 MB) > > Physical memory chunk(s): > 0x00000000005fb000 - 0x0000000007d7dfff, 125317120 bytes (30595 pages) > avail memory = 123691008 (117 MB) > APIC: Using the MPTable enumerator. > SMP: Added CPU 0 (BSP) > SMP: Added CPU 1 (AP) > gdtpfn=ae57 pdptpfn=446e > INTR: Adding local APIC 1 as a target > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > <...> > > demo# uname -a > FreeBSD demo.freebsd.org 8.0-CURRENT FreeBSD 8.0-CURRENT #292: Fri Oct > 24 00:47:44 PDT 2008 > kmacy@delirium.fsmware.com:/usr/home/kmacy/devel/objdir/i386/usr/home/kmacy/devel/svn_checkouts/HEAD_xen/sys/XEN > i386 > demo# sysctl hw.ncpu > hw.ncpu: 2 > _______________________________________________ > 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 volker at thalreit.de Fri Oct 24 16:23:52 2008 From: volker at thalreit.de (Volker Jahns) Date: Fri Oct 24 16:23:59 2008 Subject: SMP support now in HEAD In-Reply-To: <20081024142731.GA53249@energistic.com> References: <3c1674c90810240100h5d415deal50cd72bd760d237f@mail.gmail.com> <20081024142731.GA53249@energistic.com> Message-ID: <4901F683.8000103@thalreit.de> Steve Ames wrote: > Better and better. > > Does anyone have an Idiots Guide to creating a FreeBSD xen > image and getting it working? I'm failing there somewhere > and so can't get to a testing point at all :( > > for FreeBSD 6.3-RELEASE you might try something like Installation FreeBSD 6.3-RELEASE xen Hardware x86 Pentium 4 1.7 GHz, 1 GB RAM dom0 on minimal 2GB Compactflash (OpenSUSE 11.0 e.g.) using 256 MB dom0 memory a couple of harddrives Installation procedure - do fresh installation FreeBSD 6.2 on harddrive ( chosen to install everything) - login into system and do - cd /var/tmp - svn co http://svn.freebsd.org/base/projects/release_6_3_xen/ release_6_3_xen - mv /usr/src /usr/src.ORG - mv /var/tmp/release_6_3_xen /usr/src then usual make world cd /usr/src/sys/i386/conf cp XEN cd /usr/src make buildworld KERNCONF= make buildkernel KERNCONF= make installkernel KERNCONF= make installworld KERNCONF= the installed xen kernel will not boot, use kernel.old instead - cp FreeBSD xen kernel from /boot/kernel/kernel to dom0 partition - create xm config file using vi ---- # # FreeBSD 6.3 RELEASE XEN configuration # Volker Jahns, volker@thalreit.de # name = 'nemo' memory = '512' disk = [ 'phy:/dev/sr0,cdrom,r', 'phy:/dev/sdc,hda,w' ] vif = [ 'mac=aa:cc:00:00:00:02, bridge=xenbr0' ] on_shutdown = 'destroy' on_reboot = 'destroy' on_crash = 'destroy' kernel = '/usr/lib/xen-freebsd/kernel-FreeBSD-6.3-releng' on_crash = 'preserve' extra = 'boot_verbose' extra += ',boot_single' extra += ',vfs.root.mountfrom=ufs:/dev/xbd1s1a' extra += ',xencons=tty' ---- - start domU xm create -c /etc/xen/ The config above uses a physical harddrive ( Letter D: or /dev/sdc in Linux syntax). These instructions should serve only as a guidance, and contain probably errors as it is just a quick writeup. -- Volker Jahns, volker@thalreit.de From kmacy at freebsd.org Sat Oct 25 04:43:08 2008 From: kmacy at freebsd.org (Kip Macy) Date: Sat Oct 25 04:43:15 2008 Subject: Xen SMP support on RELENG_6 and 6.3 Message-ID: <3c1674c90810242143x69188842vea0b22bd3fbd7fd6@mail.gmail.com> I've MFC'd the SMP support from head to RELENG_6 and 6.3. Cheers, Kip