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

[Xen-users] Booting Jailtime Centos Image


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Jensen Nathan A Capt USAFA/DFCS" <nathan.jensen@xxxxxxxxxxxx>
  • Date: Wed, 6 Dec 2006 11:59:34 -0700
  • Delivery-date: Wed, 06 Dec 2006 11:23:32 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AccZaKuU7CSYfPWoRJWdc3miY9E2lw==
  • Thread-topic: Booting Jailtime Centos Image

All,

        I am a newcommer to the Xen community -- what an awesome
technology!  However, I have having some difficulty booting the images
provided at Jailtime.org.  I have been working on this for almost a week
now, and I think I am dangerously close to making it work.  I'll try to
give as much info here as I can -- forgive the length.

1.  I am currently running FC6 as the host; the single Xen kernel that I
am using vmlinuz-2.6.18-1.2798.fc6xen provides both the dom0 and domU
capability.
2.  I can successfully boot this kernel and run the xend service.
3.  I can use the python scripts to install a new instance of FC6
        a.  I currently use a file as the back end for this VM.
        b.  However, this file appears to be different from the Jailtime
images -- I cannot mount them w/ "mount -o loop"
4.  The FC6 guest appears to run flawlessley.

_______________________________Now I want to try one of the Jailtime
Images______________________________

1.  I downloaded, unzipped, and untarred the image
2.  I modified the config appropriately, (at least what I thought was
appropriately) and tried to run the image
3.  Xen would try and boot the image, fail, and almost immediately
return me to a prompt in the host OS.
4.  I figured that the kernel would need an initrd
        a.  I pointed the guest to the initrd I used to boot the host
        b.  I got a little further this time; the guest died trying to
find my LVMs I use to boot the host
5.  I rebuilt the initrd w/ the fstab from the centos image
        a.  Got a little further this time
        b.  Guest still didn't reach any centos boot process
6.  I figured I needed the xen modules in the initrd
        a.  Rebuild the initrd "--with" the xen modules
        b.  Got much further; I think I'm 90% there
        c.  Finds guest os
        d.  Boots guest OS kernel
        e.  Begins guest OS init process
        f.  Hangs after starting sshd.

The guest never makes it further than this.  I have also noticed, (using
the GUI management tool), that the guest is using nearly 100% of the
CPU.  I don't have any idea what the guest is doing, but it is certainly
keeping busy.  Below are copies of my config file, my boot messages, and
my xend.log.  Also note that my xend-debug.log is completely empty.  Are
the "waiting for devices" entries in the xend.log problematic?  Again,
thanks for the help; this really looks like a great product if I can
make it work.

Thanks,
Nate

_____________CONFIG FILE__________________________

kernel = "/boot/vmlinuz-2.6.18-1.2798.fc6xen"
memory = 200
name = "centos.4-4"
nics = 1
dhcp = "dhcp"
disk = ['file:/root/Desktop/centos.4-4.img,sda1,w',
'file:/root/Desktop/centos.swap,sda2,w']
root = "/dev/sda1 ro"
ramdisk = "/root/Desktop/initrd-centos.img"
extra = "3"

_________________xend.log_________________________

[2006-12-06 11:48:43 xend 2526] DEBUG (DevController:143) Waiting for
devices vif.
[2006-12-06 11:48:43 xend 2526] DEBUG (DevController:149) Waiting for 0.
[2006-12-06 11:48:43 xend 2526] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vif/4/0/hotplug-status.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vif/4/0/hotplug-status.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:478)
hotplugStatusCallback 1.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:143) Waiting for
devices usb.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:143) Waiting for
devices vbd.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:149) Waiting for
2049.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vbd/4/2049/hotplug-status.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vbd/4/2049/hotplug-status.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:478)
hotplugStatusCallback 1.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:149) Waiting for
2050.
[2006-12-06 11:48:44 xend 2526] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vbd/4/2050/hotplug-status.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:464)
hotplugStatusCallback /local/domain/0/backend/vbd/4/2050/hotplug-status.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:478)
hotplugStatusCallback 1.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:143) Waiting for
devices irq.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:143) Waiting for
devices pci.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:143) Waiting for
devices ioports.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:143) Waiting for
devices tap.
[2006-12-06 11:48:45 xend 2526] DEBUG (DevController:143) Waiting for
devices vtpm.
[2006-12-06 11:48:45 xend 2526] INFO (XendDomain:370) Domain centos.4-4
(4) unpaused.
[2006-12-06 11:50:27 xend.XendDomainInfo 2526] DEBUG
(XendDomainInfo:1449) XendDomainInfo.destroy: domid=4
[2006-12-06 11:50:27 xend.XendDomainInfo 2526] DEBUG
(XendDomainInfo:1457) XendDomainInfo.destroyDomain(4)

_____________BOOT MESSAGES________________________

[root@linux1 xen]# xm create -c centos.4-4.xen.cfg
Using config file "centos.4-4.xen.cfg".
Warning: The nics option is deprecated.  Please use an empty vif entry
instead:

  vif = [ '' ]

Started domain centos.4-4
Linux version 2.6.18-1.2798.fc6xen
(brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011
(Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 15:11:19 EDT 2006
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 000000000d000000 (usable)
0MB HIGHMEM available.
208MB LOWMEM available.
Using x86 segment limits to approximate NX protection
ACPI in unprivileged domain disabled
Built 1 zonelists.  Total pages: 53248
Kernel command line:  ip=:1.2.3.4::::eth0:dhcp root=/dev/sda1 ro 3
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c078a000 soft=c076a000
PID hash table entries: 1024 (order: 10, 4096 bytes)
Xen reported: 1805.111 MHz processor.
Console: colour dummy device 80x25
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-f4ffe000, maxmem 2d7fe000
Memory: 193152k/212992k available (2097k kernel code, 11536k reserved,
840k data, 180k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay using timer specific routine.. 4544.24 BogoMIPS
(lpj=9088482)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
Brought up 1 CPUs
checking if image is initramfs... it is
Freeing initrd memory: 4810k freed
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
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
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 5, 163840 bytes)
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
IA-32 Microcode Update Driver: v1.14-xen <tigran@xxxxxxxxxxx>
audit: initializing netlink socket (disabled)
audit(1165430922.792:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 8BDC589434DBC709
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Linux version 2.6.18-1.2798.fc6xen
(brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011
(Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 15:11:19 EDT 2006
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 000000000d000000 (usable)
0MB HIGHMEM available.
208MB LOWMEM available.
Using x86 segment limits to approximate NX protection
ACPI in unprivileged domain disabled
Built 1 zonelists.  Total pages: 53248
Kernel command line:  ip=:1.2.3.4::::eth0:dhcp root=/dev/sda1 ro 3
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
[root@linux1 xen]# clear
[root@linux1 xen]# head -n 100 out
Script started on Wed 06 Dec 2006 11:48:30 AM MST
[root@linux1 xen]# xm create -c centos.4-4.xen.cfg
Using config file "centos.4-4.xen.cfg".
Warning: The nics option is deprecated.  Please use an empty vif entry
instead:

  vif = [ '' ]

Started domain centos.4-4
Linux version 2.6.18-1.2798.fc6xen
(brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011
(Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 15:11:19 EDT 2006
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 000000000d000000 (usable)
0MB HIGHMEM available.
208MB LOWMEM available.
Using x86 segment limits to approximate NX protection
ACPI in unprivileged domain disabled
Built 1 zonelists.  Total pages: 53248
Kernel command line:  ip=:1.2.3.4::::eth0:dhcp root=/dev/sda1 ro 3
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c078a000 soft=c076a000
PID hash table entries: 1024 (order: 10, 4096 bytes)
Xen reported: 1805.111 MHz processor.
Console: colour dummy device 80x25
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-f4ffe000, maxmem 2d7fe000
Memory: 193152k/212992k available (2097k kernel code, 11536k reserved,
840k data, 180k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay using timer specific routine.. 4544.24 BogoMIPS
(lpj=9088482)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
Brought up 1 CPUs
checking if image is initramfs... it is
Freeing initrd memory: 4810k freed
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
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
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 5, 163840 bytes)
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
IA-32 Microcode Update Driver: v1.14-xen <tigran@xxxxxxxxxxx>
audit: initializing netlink socket (disabled)
audit(1165430922.792:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 8BDC589434DBC709
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Linux version 2.6.18-1.2798.fc6xen
(brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011
(Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 15:11:19 EDT 2006
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 000000000d000000 (usable)
0MB HIGHMEM available.
208MB LOWMEM available.
Using x86 segment limits to approximate NX protection
ACPI in unprivileged domain disabled
Built 1 zonelists.  Total pages: 53248
Kernel command line:  ip=:1.2.3.4::::eth0:dhcp root=/dev/sda1 ro 3
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c078a000 soft=c076a000
PID hash table entries: 1024 (order: 10, 4096 bytes)
Xen reported: 1805.111 MHz processor.
Console: colour dummy device 80x25
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-f4ffe000, maxmem 2d7fe000
Memory: 193152k/212992k available (2097k kernel code, 11536k reserved,
840k data, 180k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode...
Ok.
Calibrating delay using timer specific routine.. 4544.24 BogoMIPS
(lpj=9088482)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
Brought up 1 CPUs
checking if image is initramfs... it is
Freeing initrd memory: 4810k freed
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
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
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 5, 163840 bytes)
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
IA-32 Microcode Update Driver: v1.14-xen <tigran@xxxxxxxxxxx>
audit: initializing netlink socket (disabled)
audit(1165430922.792:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 8BDC589434DBC709
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
Xen virtual console successfully installed as xvc0
Event-channel device installed.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with
idebus=xx
ide-floppy driver 0.99.newide
usbcore: registered new driver libusual
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vbd/2050
XENBUS: Device with no driver: device/vif/0
Freeing unused kernel memory: 180k freed
Write protecting the kernel read-only data: 356k
Red Hat nash version 5.1.19 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading xenblk.ko module
Registering block device major 8
Loading uhci-hcd.ko module
USB Universal Host Controller Interface driver v3.0
Loading ohci-hcd.ko module
Loading ehci-hcd.ko module
Loading jbd.ko module
Loading ext3.ko module
Loading dm-mod.ko module
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
dm-devel@xxxxxxxxxx
Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.ko module
Loading xennet.ko module
netfront: Initialising virtual ethernet driver.
netfront: Created netdev eth0 with flipping receive path.
Making device-mapper control node
Scanning logical volumes
  Reading all physical volumes.  This may take a while...
  No volume groups found
Activating logical volumes
  Volume group "VolGroup00" not found
Creating root device.
Mounting root filesystem.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Setting up other filesystems.
Setting up new root fs
no fstab.sys, mounting internal defaults
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
INIT: version 2.85 booting
                Welcome to  CentOS release 4.4 (Final)
                Press 'I' to enter interactive startup.
Starting udev:  [FAILED]
Initializing hardware...  storage network audio done[  OK  ]
Configuring kernel parameters:  [  OK  ]
Setting clock : Wed Dec  6 13:49:02 EST 2006 [  OK  ]
Setting hostname centos_pristine:  [  OK  ]
Checking root filesystem
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sda1
/dev/sda1: clean, 12857/128256 files, 84435/256256 blocks
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Setting up Logical Volume Management: [  OK  ]
Checking filesystems
Checking all file systems.
[  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Setting network parameters:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Mounting other filesystems:  [  OK  ]
Starting sshd:[  OK  ]



_______________________________________________
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®.