Ranganathan, Shobha
2006-Oct-09 19:42 UTC
RE: [Fedora-xen] Help: creating a rawhide guest os
You may want to build your xen sources with pae=y. Fedora core 6 are all PAE kernels. Regards Shobha Ranganathan "The significant challenges we face cannot be resolved at the same level of thinking we were at when we created them." Albert Einstein -----Original Message----- From: fedora-xen-bounces@redhat.com [mailto:fedora-xen-bounces@redhat.com] On Behalf Of Chitlesh GOORAH Sent: Monday, October 09, 2006 12:40 PM To: fedora-xen@redhat.com Subject: [Fedora-xen] Help: creating a rawhide guest os My dom0 is working fine and I was able to fire a friend''s ubuntu image. But my problem is that I can''t create a guest fedora os with xen-guest-install.py see: https://www.redhat.com/archives/fedora-xen/2006-June/msg00108.html Yes, I still can''t make one :( So I started making my own guest os by hand, which appears to be wrong: This is my procedure: mkdir -p /xen-images/mnt dd if=/dev/zero of=/xen-images/guest_base.img bs=1024k count=5000 dd if=/dev/zero of=/xen-images/guest_base-swap.img bs=1024k count=500 chmod 640 /xen-images/guest_base* mkfs.ext3 /xen-images/guest_base.img mkswap /xen-images/guest_base-swap.img mount -o loop /xen-images/guest_base.img /xen-images/mnt anaconda --method=nfs://var/www/bordeaux/ --rootpath=/xen-images/mnt/ cp -dpR /lib/modules/2.6.17-1.2187_FC5xen0/ /xen-images/mnt/lib/modules/ I''ve added /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hda2 swap swap sw to /xen-images/mnt/etc/fstab& umount /xen-images/mnt cd /boot cp initrd-2.6.17-1.2187_FC5xen0.img initrd-guest.img cp vmlinuz-2.6.17-1.2187_FC5 vmlinuz-guest.img cd /etc/xen/ kwrite xm-fc6 & name = "xm-fc6" memory = "256" kernel = "/boot/vmlinuz-guest.img" ramdisk = "/boot/initrd-guest.img" vif = [''bridge=xenbr0''] disk [''file:/xen-images/guest_base.img,hda1,w'',''file:/xen-images/guest_base-s wap.img,hda2,w''] ip = "192.168.0.101" netmask = "255.255.255.0" gateway = "192.168.0.1" hostname = "baseimage" root = "/dev/hda1 ro" extra = "4" on_reboot = ''restart'' on_crash = ''restart'' xm create xm-fc6 -c I fell on Using config file "xm-fc6". Error: (9, ''Bad file descriptor'') cat /var/log/xend-debug.log ERROR: PAE-kernel on non-PAE host. ERROR: Error constructing guest OS Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", line 77, in op_create dominfo = self.xd.domain_create(config) File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 228, in domain_create dominfo = XendDomainInfo.create(config) File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 190, in create vm.initDomain() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1311, in initDomain raise VmError(str(exn)) VmError: (9, ''Bad file descriptor'') Any one can point to me what Im doing wrong and a solution if possible to remedy this ? :) Chitlesh -- http://clunixchit.blogspot.com -- Fedora-xen mailing list Fedora-xen@redhat.com https://www.redhat.com/mailman/listinfo/fedora-xen
On 10/9/06, Ranganathan, Shobha <shobha.ranganathan@intel.com> wrote:> You may want to build your xen sources with pae=y. > Fedora core 6 are all PAE kernels.How do I do that ? Additional info: It happens that I''ve successfully launched my xen guest os with a ubuntu kernel and initrd As you can see below. -bash-3.1# xm create xm-fc6 -c Using config file "/etc/xen/xm-fc6". Started domain xm-fc6 Linux version 2.6.16-xen (xenod@freefall.cl.cam.ac.uk) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 SMP Thu Apr 13 18:46:07 BST 2006 BIOS-provided physical RAM map: Xen: 0000000000000000 - 000000000c800000 (usable) 0MB HIGHMEM available. 208MB LOWMEM available. ACPI in unprivileged domain disabled IRQ lockup detection disabled Built 1 zonelists Kernel command line: root=/dev/hda1 ro Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 1024 (order: 10, 16384 bytes) Xen reported: 3064.486 MHz processor. Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Software IO TLB disabled vmalloc area: cd800000-fb7fe000, maxmem 33ffe000 Memory: 185088k/212992k available (2183k kernel code, 19460k reserved, 730k data, 172k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 6133.46 BogoMIPS (lpj=30667335) Security Framework v1.0.0 initialized Capability LSM initialized Mount-cache hash table entries: 512 CPU: Trace cache: 12K uops, L1 D cache: 8K CPU: L2 cache: 512K Checking ''hlt'' instruction... OK. Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 13486k freed Grant table initialized NET: Registered protocol family 16 Brought up 1 CPUs PCI: setting up Xen PCI frontend stub ACPI: Subsystem revision 20060127 ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay xen_mem: Initialising balloon driver. usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: System does not support PCI PCI: System does not support PCI IA-32 Microcode Update Driver: v1.14-xen <tigran@veritas.com> VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize Xen virtual console successfully installed as tty1 Event-channel device installed. blkif_init: reqs=64, pages=704, mmap_vstart=0xc0800000 netfront: Initialising virtual ethernet driver. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx Registering block device major 3 ide-floppy driver 0.99.newide usbmon: debugfs is not available usbcore: registered new driver libusual mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 4, 65536 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI No-Shortcut mode Freeing unused kernel memory: 172k freed Begin: Loading essential drivers... ... Done. Begin: Running /scripts/init-premount ... fan: no version for "struct_module" found: kernel tainted. Done. Begin: Mounting root file system... ... Begin: Running /scripts/local-top ... Done. Begin: Running /scripts/local-premount ... Done. kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. Begin: Running /scripts/local-bottom ... Done. Done. Begin: Running /scripts/init-bottom ... Done. *************************************************************** *************************************************************** ** WARNING: Currently emulating unsupported memory accesses ** ** in /lib/tls glibc libraries. The emulation is ** ** slow. To ensure full performance you should ** ** install a ''xen-friendly'' (nosegneg) version of ** ** the library, or disable tls support by executing ** ** the following as root: ** ** mv /lib/tls /lib/tls.disabled ** ** Offending process: init (pid=1) ** *************************************************************** *************************************************************** Continuing... modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: No such file or directory INIT: version 2.86 booting Welcome to Fedora Core Press ''I'' to enter interactive startup. modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: No such file or directory Setting clock (localtime): Mon Oct 9 21:51:30 CEST 2006 [ OK ] Starting udev: [ OK ] Setting hostname localhost.localdomain: [ OK ] modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: No such file or directory modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: No such file or directory raidautorun: failed to open /dev/md0: No such device or address Checking filesystems Checking all file systems. [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda1 /dev/hda1 has gone 49710 days without being checked, check forced. /dev/hda1: 50772/640000 files (0.4% non-contiguous), 310039/1280000 blocks [ OK ] Remounting root filesystem in read-write mode: [mntent]: warning: no final newline at the end of /etc/fstab [ OK ] [mntent]: warning: no final newline at the end of /etc/fstab Mounting local filesystems: [mntent]: warning: no final newline at the end of /etc/fstab [ OK ] Enabling local filesystem quotas: [ OK ] Enabling /etc/fstab swaps: [ OK ] modprobe: FATAL: Could not load /lib/modules/2.6.16-xen/modules.dep: No such file or directory INIT: Entering runlevel: 5 [.....] How can I use a fedora kernel and initrd ? I copied the kernel from my image to my /boot and mkinitrd /boot/initrd-2.6.17-1.2630.fc6.img 2.6.17-1.2187_FC5xen0 sounds to be wrong since it: setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! an idea ? Chitlesh -- http://clunixchit.blogspot.com