Hi there, just playing with Xen, wondering whether it could be used to host a virtual Grid (or rather: an LCFGng server + a user-interface, worker node, computing element and storage element, each in its own virtual host). The problem here is that usually the UI, WN, etc. boot from the LCFGng server via PXE. I cannot find that Xen does support this boot method, although this could be a typical case of RTFM, where there is no sufficient response from Google :-) Have a good day, Ruediger ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> just playing with Xen, wondering whether it could be used > to host a virtual Grid (or rather: an LCFGng server + > a user-interface, worker node, computing element and storage > element, each in its own virtual host).Sure. I think Greg Newby has done something quite similar to this.> The problem here is that usually the UI, WN, etc. boot from > the LCFGng server via PXE. I cannot find that Xen does support > this boot method, although this could be a typical case of > RTFM, where there is no sufficient response from Google :-)Xen currently doesn''t support booting domains via PXE, though at some point someone talked about adding it. Basically, the domain builder would do the PXE request and tftp the kernel image that would be place in the domain. I''m sure you could get the domains booting sans PXE without too much hassle anyhow. Ian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Hi there,> Xen currently doesn''t support booting domains via PXE, though at > some point someone talked about adding it. Basically, the domain > builder would do the PXE request and tftp the kernel image that > would be place in the domain. > > I''m sure you could get the domains booting sans PXE without too > much hassle anyhow.I would assume that it would probably be sufficient to modify the domain builder in a way that, upon request, it executes a script (kind of like a constructor) before the domain starts up. One could do things like setting up a disk image with all needed data (like the kernel image) in that. As everything is physically handled in domain0, this could easily replace the PXE boot. And one could of course do many other cool things in such a constructor (and destructor type) script. Or maybe I''m wrong. Have fun, Ruediger ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Hi there, > > > Xen currently doesn''t support booting domains via PXE, though at > > some point someone talked about adding it. Basically, the domain > > builder would do the PXE request and tftp the kernel image that > > would be place in the domain. > > > > I''m sure you could get the domains booting sans PXE without too > > much hassle anyhow. > > I would assume that it would probably be sufficient to modify the > domain builder in a way that, upon request, it executes a script > (kind of like a constructor) before the domain starts up. One could do > things like setting up a disk image with all needed data (like the kernel > image) in that. As everything is physically handled in domain0, this could > easily replace the PXE boot. And one could of course do many other cool > things in such a constructor (and destructor type) script. Or maybe > I''m wrong.The domain''s kernel image is placed in memory by the domain builder, so doesn''t need to come off the domain''s virtual disk. PXE is basically a combination of DHCP and tftp. We could have the domain builder issue a DHCP request using the domain it''s building''s MAC address, then use tftp to fetch the kernel image into a temporary file that the domain builder can then use. Adding support to xend to do this shouldn''t be hard. The only slightly non trivial bit is sending a DHCP request using someone else''s MAC -- rather than hacking dhclient it''s probably easiest to hand craft something one-shot as you don''t need a daemon (presumably you can rely on the server giving the same address to the same MAC if asked in quick succession) Ian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
I haven''t got to it yet, but I was hoping ot use SISuite and/or xCAT to build domains somehow. On Thu, 29 Jul 2004 19:32, Ian Pratt wrote:> > Hi there, > > > > > Xen currently doesn''t support booting domains via PXE, though at > > > some point someone talked about adding it. Basically, the domain > > > builder would do the PXE request and tftp the kernel image that > > > would be place in the domain. > > > > > > I''m sure you could get the domains booting sans PXE without too > > > much hassle anyhow. > > > > I would assume that it would probably be sufficient to modify the > > domain builder in a way that, upon request, it executes a script > > (kind of like a constructor) before the domain starts up. One could do > > things like setting up a disk image with all needed data (like the kernel > > image) in that. As everything is physically handled in domain0, this > > could easily replace the PXE boot. And one could of course do many > > other cool things in such a constructor (and destructor type) script. Or > > maybe I''m wrong. > > The domain''s kernel image is placed in memory by the domain > builder, so doesn''t need to come off the domain''s virtual disk. > > PXE is basically a combination of DHCP and tftp. > > We could have the domain builder issue a DHCP request using the > domain it''s building''s MAC address, then use tftp to fetch the > kernel image into a temporary file that the domain builder can > then use. > > Adding support to xend to do this shouldn''t be hard. The only > slightly non trivial bit is sending a DHCP request using someone > else''s MAC -- rather than hacking dhclient it''s probably easiest > to hand craft something one-shot as you don''t need a daemon > (presumably you can rely on the server giving the same address to > the same MAC if asked in quick succession) > > Ian > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
hi, I''ve asked about eth0, but now I''m really desperate. -first, I built xen-unstable on a machine with NIC e100, but there''s no eth0, ifconfig only shows loopback. And I''m sure in the .config file ''CONFIG_E100=y''. -then, I tried another machine with NIC 3c59x, and eth0 worked perfectly fine. -so I just guess maybe Xen isn''t friendly to e100. And I''ve got another 3c59x card to plugin the first machine. Coz the e100 NIC is on board, so 3c59x card is just eth1. And I disabled the on board card e100 in bios. This time, ifconfig showed both eth0 and eth1, but I cannot ping anything. Anyone can help me? Thanks, Qian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> I''ve asked about eth0, but now I''m really desperate. > > -first, I built xen-unstable on a machine with NIC e100, but there''s no > eth0, ifconfig only shows loopback. And I''m sure in the .config file > ''CONFIG_E100=y''.Can you post the output from booting xen and domain 0 (xenlinux)? You might also like to check if the e100 is found and operates correctly under regular linux... cheers, S. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
e100 works fine in regular linux, and actually I tried in another machine with e100, just the same problem. and the second machine with 2 NICs also works fine in regular machine, using eth1. And here''s the msg from dmesg and XendDmesg.py. This is for the machine only with e100. --------------- Linux version 2.4.26-xen0 (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #3 Wed Jul 14 14:54:34 EDT 2004 On node 0 totalpages: 32768 zone(0): 4096 pages. zone(1): 28672 pages. zone(2): 0 pages. Kernel command line: /vmlinuz-2.4.26-xen0 root=/dev/hda3 ro console=tty0 3 Initializing CPU#0 Xen reported: 1595.203 MHz processor. Console: colour VGA+ 80x25 Calibrating delay loop... 15938.35 BogoMIPS Memory: 125996k/131072k available (2242k kernel code, 5076k reserved, 697k data, 116k init, 0k highmem) Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 8192 (order: 3, 32768 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) CPU: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0 CPU: L1 I cache: 12K, L1 D cache: 8K CPU: L2 cache: 256K CPU: After vendor init, caps: 3febfbff 00000000 00000000 00000000 CPU: After generic, caps: 3febfbff 00000000 00000000 00000000 CPU: Common caps: 3febfbff 00000000 00000000 00000000 CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz stepping 02 POSIX conformance testing by UNIFIX PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Probing PCI hardware (bus 01) PCI: Probing PCI hardware (bus 02) Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd Journalled Block Device driver loaded Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Event-channel device installed. Xen virtual console successfully installed as ttyS Starting Xen Balloon driver Detected PS/2 Mouse Port. pty: 256 Unix98 ptys configured RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Intel(R) PRO/1000 Network Driver - version 5.2.30.1-k1 Copyright (c) 1999-2004 Intel Corporation. pcnet32.c:v1.28 02.20.2004 tsbogend@alpha.franken.de Intel(R) PRO/100 Network Driver - version 2.3.38-k1 Copyright (c) 2004 Intel Corporation PCI: Obtained IRQ 11 for device 02:0a.0 e100: selftest timeout e100: Failed to initialize, instance #0 Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ICH2: IDE controller at PCI slot 00:1f.1 ICH2: chipset revision 4 ICH2: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio hda: C/H/S=0/0/0 from BIOS ignored hda: MAXTOR 6L040J2, ATA DISK drive hdc: AOPEN 16XDVD-ROM/AMH 20011108, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: host protected area => 1 hda: 78177792 sectors (40027 MB) w/1818KiB Cache, CHS=77557/16/63, UDMA(33) hdc: attached ide-cdrom driver. hdc: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.12 Partition check: hda: [PTBL] [4866/255/63] hda1 hda2 hda3 hda4 < hda5 > SCSI subsystem driver Revision: 1.00 Red Hat/Adaptec aacraid driver (1.1-3 Jul 14 2004 14:49:49) megaraid: v1.18k (Release Date: Thu Aug 28 10:05:11 EDT 2003) megaraid: no BIOS enabled. scsi0 : SCSI host adapter emulation for IDE ATAPI devices Initialising Xen netif backend NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 1024 buckets, 8Kbytes TCP: Hash tables configured (established 8192 bind 16384) ip_conntrack version 2.1 (1024 buckets, 8192 max) - 288 bytes per conntrack ip_tables: (C) 2000-2002 Netfilter core team NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge 008 for NET4.0 Bridge firewalling registered kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 116k freed EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal Adding Swap: 522072k swap-space (priority -1) kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal EXT3-fs: mounted filesystem with ordered data mode. ioperm not fully supported - set iopl to 3 ioperm not fully supported - set iopl to 3 ioperm not fully supported - set iopl to 3 ioperm not fully supported - set iopl to 3 ----------------- __ __ _ _____ _ _ \ \/ /___ _ __ / | |___ / __| | _____ _____| | \ // _ \ ''_ \ | | |_ \ __ / _` |/ _ \ \ / / _ \ | / \ __/ | | | | |_ ___) |__| (_| | __/\ V / __/ | /_/\_\___|_| |_| |_(_)____/ \__,_|\___| \_/ \___|_| http://www.cl.cam.ac.uk/netos/xen University of Cambridge Computer Laboratory Xen version 1.3-devel (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) Wed Jul 14 14:55:27 EDT 2004 (XEN) Initialised 255MB memory (65472 pages) on a 255MB machine (XEN) Xen heap size is 10823KB (XEN) CPU0: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0 (XEN) CPU caps: 2febfbff 00000000 00000000 00000000 (XEN) Using scheduler: Borrowed Virtual Time (bvt) (XEN) Initializing CPU#0 (XEN) Detected 1595.203 MHz processor. (XEN) Found and enabled local APIC! (XEN) CPU0: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0 (XEN) CPU caps: 2febfbff 00000000 00000000 00000000 (XEN) CPU0 booted (XEN) SMP motherboard not detected. (XEN) enabled ExtINT on CPU#0 (XEN) ESR value before enabling vector: 00000000 (XEN) ESR value after enabling vector: 00000000 (XEN) Using local APIC timer interrupts. (XEN) Calibrating APIC timer for CPU0... (XEN) ..... CPU speed is 1595.1718 MHz. (XEN) ..... Bus speed is 99.6981 MHz. (XEN) ..... bus_scale = 0x00006617 (XEN) Time init: (XEN) .... System Time: 20001858ns (XEN) .... cpu_freq: 00000000:5F14E010 (XEN) .... scale: 00000001:40F65066 (XEN) .... Wall Clock: 1091069944s 40000us (XEN) PCI: PCI BIOS revision 2.10 entry at 0xfda95, last bus=2 (XEN) PCI: Using configuration type 1 (XEN) PCI: Probing PCI hardware (XEN) PCI: Probing PCI hardware (bus 00) (XEN) Transparent bridge - PCI device 8086:244e (XEN) PCI: Using IRQ router PIIX/ICH [8086/2440] at 00:1f.0 (XEN) *** LOADING DOMAIN 0 *** (XEN) Xen-ELF header found: ''GUEST_OS=linux,GUEST_VER=2.4,XEN_VER=1.3,VIRT_BASE=0xC0000000'' (XEN) PHYSICAL MEMORY ARRANGEMENT: (XEN) Kernel image: 02800000->02b028fc (XEN) Initrd image: 00000000->00000000 (XEN) Dom0 alloc.: 02c00000->0ac00000 (XEN) VIRTUAL MEMORY ARRANGEMENT: (XEN) Loaded kernel: c0100000->c044e988 (XEN) Init. ramdisk: c044f000->c044f000 (XEN) Phys-Mach map: c044f000->c046f000 (XEN) Page tables: c046f000->c0472000 (XEN) Start info: c0472000->c0473000 (XEN) Boot stack: c0473000->c0474000 (XEN) TOTAL: c0000000->c0800000 (XEN) ENTRY ADDRESS: c0100000 (XEN) *** Serial input -> DOM0 (type ''CTRL-a'' three times to switch input to Xen). (XEN) PCI: Found IRQ 11 for device 02:0a.0 ---------------- Thanks, Yan ----- Original Message ----- From: "Steven Hand" <Steven.Hand@cl.cam.ac.uk> To: "Yan Li" <yan_li00@hotmail.com> Cc: <xen-devel@lists.sourceforge.net> Sent: Thursday, July 29, 2004 2:21 AM Subject: Re: [Xen-devel] desperate for help on netwrok of xen> > > I''ve asked about eth0, but now I''m really desperate. > > > > -first, I built xen-unstable on a machine with NIC e100, but there''s no > > eth0, ifconfig only shows loopback. And I''m sure in the .config file > > ''CONFIG_E100=y''. > > Can you post the output from booting xen and domain 0 (xenlinux)? You > might also like to check if the e100 is found and operates correctly > under regular linux... > > cheers, > > S. > >------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> e100 works fine in regular linux, and actually I tried in another machine > with e100, just the same problem. > > and the second machine with 2 NICs also works fine in regular machine, using > eth1. > > And here''s the msg from dmesg and XendDmesg.py. This is for the machine only > with e100.[snip]> e100: selftest timeout > e100: Failed to initialize, instance #0so this looks like the culprit; we have noticed something similar with the 2.6 xenlinux code and not sure why it happens (only some times it appears). Anyway can you comment out line 1283 in linux-2.4.26-xen0/drivers/net/e100/e100_main.c to ignore the failure and see if it in fact just works? viz. static unsigned char __devinit e100_init(struct e100_private *bdp) { u32 st_timeout = 0; u32 st_result = 0; e100_sw_init(bdp); if (!e100_selftest(bdp, &st_timeout, &st_result)) { if (st_timeout) { printk(KERN_ERR "e100: selftest timeout\n"); } else { printk(KERN_ERR "e100: selftest failed. Results: %x\n", st_result); } #if 0 return false; #endif } else printk(KERN_DEBUG "e100: selftest OK.\n"); /* read the MAC address from the eprom */ e100_rd_eaddr(bdp); ..... We can try to see if we can track it down over here (we have few e100 cards but should be able to manage). cheers, S.
> [snip] > > > e100: selftest timeout > > e100: Failed to initialize, instance #0 > > so this looks like the culprit; we have noticed something similar > with the 2.6 xenlinux code and not sure why it happens (only some > times it appears). Anyway can you comment out line 1283 in > linux-2.4.26-xen0/drivers/net/e100/e100_main.c to ignore the failure > and see if it in fact just works?Or, better change the value of E100_MAX_SCB_WAIT in e100.h from 100 to e.g. 5000. cheers, S.
great! First I changed the value E100_MAX_SCB_WAIT to 5000, even 500000, it still didn''t work, and then I commented out the line to ignore the failure, and it now works! Thanks a lot! Y ----- Original Message ----- From: "Steven Hand" <Steven.Hand@cl.cam.ac.uk> To: "Steven Hand" <Steven.Hand@cl.cam.ac.uk> Cc: "Yan Li" <yan_li00@hotmail.com>; <xen-devel@lists.sourceforge.net> Sent: Thursday, July 29, 2004 3:56 AM Subject: Re: [Xen-devel] desperate for help on netwrok of xen> > > [snip] > > > > > e100: selftest timeout > > > e100: Failed to initialize, instance #0 > > > > so this looks like the culprit; we have noticed something similar > > with the 2.6 xenlinux code and not sure why it happens (only some > > times it appears). Anyway can you comment out line 1283 in > > linux-2.4.26-xen0/drivers/net/e100/e100_main.c to ignore the failure > > and see if it in fact just works? > > Or, better change the value of E100_MAX_SCB_WAIT in e100.h from > 100 to e.g. 5000. > > cheers, > > S. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel >
Fredrik Dahlberg
2004-Jul-29 15:30 UTC
Re: [Xen-devel] desperate for help on netwrok of xen
Yan Li wrote:>hi, > >I''ve asked about eth0, but now I''m really desperate. > >-first, I built xen-unstable on a machine with NIC e100, but there''s no >eth0, ifconfig only shows loopback. And I''m sure in the .config file >''CONFIG_E100=y''. > >-then, I tried another machine with NIC 3c59x, and eth0 worked perfectly >fine. > >Try setting ''CONFIG_EEPRO100=Y'' in the .config file, I had the same problem myself. /Fredrik ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Wed, 28 Jul 2004, Ruediger Berlich wrote:> Hi there, > > just playing with Xen, wondering whether it could be used > to host a virtual Grid (or rather: an LCFGng server + > a user-interface, worker node, computing element and storage > element, each in its own virtual host). > > The problem here is that usually the UI, WN, etc. boot from > the LCFGng server via PXE. I cannot find that Xen does support > this boot method, although this could be a typical case of > RTFM, where there is no sufficient response from Google :-)compile grub with pxe support, load xen with grub. That''s how we boot our xen machines diskless. xen loads from network. the linux client images load from network. the linux instances nfsroot. ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel