[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Newbie DomU problem solved



On Wed, Jul 05, 2006 at 06:06:01PM +0930, Brian wrote:
> On Wed, Jul 05, 2006 at 11:25:12AM +0800, Tim Post wrote:
> > Brian, also thought about something I usually take for granted after I
> > pushed send - the kernel you're using to boot the dom-u was compiled
> > with ext3 support, yes? 
> 

Suse 10.1 box
Yay ! the Fedora5 image from jailtime.org has booted. Short version, I had
to run mkinitrd with ext3 support. Some issues remain - especially the failure 
to load modules - see below log - and networking is not fully
functional.  
Brian

Long post ahead if you are interested

My config

disk = [ 'file:/etc/xen/fedora/fedora.fc5.img,hda1,w' ,
'file:/etc/xen/fedora/fedora.swap,hda2,w' ]
memory = 256
vcpus = 1
builder = 'linux'
name = 'vm2'
vif = [ 'mac=00:16:3e:34:8f:88' ]
localtime = 0
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
extra = ' TERM=xterm'
#bootloader = '/usr/lib/xen/boot/domUloader.py'
#bootentry = 'hda6:/boot/vmlinuz-xen, /boot/initrd-xen'
kernel = "/boot/vmlinuz-xen"
ramdisk = "/boot/initrd-xen"
root = "/dev/hda1 ro" 

In an earlier post you can see boot complains about ext3 when trying to read
the fedora5 image file. 

I needed to include this in the initrd

tv:/home/poncho # mkinitrd -m ext3 -k vmlinuz-xen -i initrd-xen
Root device:    /dev/hda6 (mounted on / as reiserfs)
Module list:    ext3 (xennet xenblk)

Kernel image:   /boot/vmlinuz-xen
Initrd image:   /boot/initrd-xen
Shared libs:    lib64/ld-2.4.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0
lib64/libc-2.4.so lib64/libdl-2
.4.so lib64/libhistory.so.5.1 lib64/libncurses.so.5.5
lib64/libpthread-2.4.so lib64/libreadline.so.5.1 lib64
/librt-2.4.so lib64/libuuid.so.1.2



Driver modules: ide-core ide-disk scsi_mod sd_mod libata sata_sil atiixp
Xen domU modules:       xennet xenblk
Filesystem modules:     jbd ext3
Including:      initramfs fsck.reiserfs
No bootsplash for kernel flavor xen
12473 blocks

+++++++++++++++++++++++++++++++++++++++

The startup log

tv:/home/poncho # xm create vm2 -c
Using config file "/etc/xen/vm/vm2".
Started domain vm2
Bootdata ok (command line is  root=/dev/hda1 ro  TERM=xterm)
Linux version 2.6.16.13-4-xen (geeko@buildhost) (gcc version 4.1.0 (SUSE
Linux)) #1 SMP Wed May 3 04:53:23 UTC 2006
No mptable found.
Built 1 zonelists
Kernel command line:  root=/dev/hda1 ro  TERM=xterm
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 65536 bytes)
Xen reported: 1790.825 MHz processor.
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Software IO TLB disabled
Memory: 246360k/270336k available (1846k kernel code, 23656k reserved, 780k
data, 140k init)
Calibrating delay using timer specific routine.. 4479.95 BogoMIPS
(lpj=8959905)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
checking if image is initramfs... it is
Freeing initrd memory: 6236k freed
Brought up 1 CPUs
migration_cost=0
DMI not present or invalid.
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.
xen_mem: Initialising balloon driver.
PCI: System does not support PCI
PCI: System does not support PCI
TC classifier action (bugs to netdev@xxxxxxxxxxxxxxx cc hadi@xxxxxxxxxx)
IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $
audit: initializing netlink socket (disabled)
audit(1153177567.636:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
i8042.c: No controller found.
isa bounce pool size: 16 pages
RAMDISK driver initialized: 16 RAM disks of 128000K size 1024 blocksize
Xen virtual console successfully installed as tty1
Event-channel device installed.
mice: PS/2 mouse device common for all mice
input: PC Speaker as /class/input/input0
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
NET: Registered protocol family 1
XENBUS: Timeout connecting to devices!
Write protecting the kernel read-only data: 328k
Starting udevd
Creating devices
Loading xennet
netfront: Initialising virtual ethernet driver.
Loading xenblk
Registering block device major 3
Loading jbd
Loading ext3
Waiting for device /dev/hda1 to appear:  ok
rootfs: major=3 minor=1 devn=769
Mounting root /dev/hda1
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
modprobe: FATAL: Could not load /lib/modules/2.6.16.13-4-xen/modules.dep: No
such file or directory

INIT: version 2.86 booting
                Welcome to Fedora Core
                Press 'I' to enter interactive startup.
Setting clock : Mon Jul 17 19:06:19 EDT 2006 [  OK  ]
Setting hostname fc5_pristine:  [  OK  ]
Checking filesystems
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling swap space:  [  OK  ]
modprobe: FATAL: Could not load /lib/modules/2.6.16.13-4-xen/modules.dep: No
such file or directory

INIT: Entering runlevel: 3
Entering non-interactive startup
Bringing up loopback interface:  modprobe: FATAL: Could not load
/lib/modules/2.6.16.13-4-xen/modules.dep: No such file or directory

arping: socket: Address family not supported by protocol
[  OK  ]
Bringing up interface eth0:
Determining IP information for eth0...modprobe: FATAL: Could not load
/lib/modules/2.6.16.13-4-xen/modules.dep: No such file or directory

 failed.
[FAILED]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting sshd: [  OK  ]

Fedora Core release 5 (Bordeaux)
Kernel 2.6.16.13-4-xen on an x86_64

fc5_pristine login: root
Password:


==============================================================


Here you will see the Networking and modules -- parts are missing.



root@fc5_pristine /]# lsmod
Module                  Size  Used by
ext3                  138000  1
jbd                    72128  1 ext3
xenblk                 20896  1
xennet                 25472  0


==============================================

[root@fc5_pristine /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:34:8F:88
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11886 (11.6 KiB)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:288 (288.0 b)  TX bytes:288 (288.0 b)


===================================================


[root@fc5_pristine /]# ping 192.168.1.80
connect: Network is unreachable


====================================================


-- 
Powered by Suse Linux 9.2


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.