WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] dual personalities

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] dual personalities
From: Kent Watsen <kent@xxxxxxxxxx>
Date: Wed, 28 Sep 2005 02:40:01 -0700
Delivery-date: Wed, 28 Sep 2005 09:38:18 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)


I have a working DomU when located on a physical partition (i.e. hdb, a 2nd HD that I'm using to stage guest domains), but it all goes bad when I copy the root/swap partitions into LVM-based partitions. Specifically, I have a working guest domain on hdb2 (swap is hdb1). I created the logical volumes using the usual mix of pvcreate, vgcreate, and lvcreate:

   pvcreate /dev/hda5vgcreate xen-vg /dev/hda5
   lvcreate -L5G -n suse-root xen-vg
   mkfs.reiserfs /dev/xen-vg/suse-root
   cp -ax /<the real parition> /<the new partition> (yes, this seemed
   to work as expected)
   lvcreate -L256M -n suse-swap xen-vg
   mkswap /dev/xen-vg/suse-swap

The only other modification I made was to the start-up script as follows:

   < disk = [ 'phy:xen-vg/suse-root,hdb2,w',
   'phy:xen-vg/suse-swap,hdb1,w' ]
   ---
    > disk = [ 'phy:hdb2,hdb2,w', 'phy:hdb1,hdb1,w' ]


Now when I start the same domain copied (per the `cp -ax` listed above) into the LVM I get:

   Linux version 2.6.11.4-20a-xen (geeko@buildhost) (gcc version 3.3.5
   20050117 (prerelease) (SUSE Linux)) #1 Wed Mar 23 21:52:37 UTC 2005
   BIOS-provided physical RAM map:
    Xen: 0000000000000000 - 0000000010000000 (usable)
   0MB HIGHMEM available.
   256MB LOWMEM available.
   DMI not present.
   IRQ lockup detection disabled
   Allocating PCI resources starting at 10000000 (gap: 10000000:f0000000)
   Built 1 zonelists
   Kernel command line:  root=/dev/hdb2 ro 3
   Initializing CPU#0
   PID hash table entries: 2048 (order: 11, 32768 bytes)
   Xen reported: 1594.860 MHz processor.
   Using tsc for high-res timesource
   Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
   Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
   Memory: 253056k/262144k available (1876k kernel code, 8808k
   reserved, 558k data, 128k init, 0k highmem)
   Checking if this processor honours the WP bit even in supervisor
   mode... Ok.
   Security Framework v1.0.0 initialized
   SELinux:  Disabled at boot.
   Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
   CPU: Trace cache: 12K uops, L1 D cache: 8K
   CPU: L2 cache: 256K
   CPU: Intel(R) Pentium(R) 4 CPU 1600MHz stepping 0a
   Enabling fast FPU save and restore... done.
   Enabling unmasked SIMD FPU exception support... done.
   Checking 'hlt' instruction... disabled
   checking if image is initramfs... it is
   Freeing initrd memory: 2882k freed
   NET: Registered protocol family 16
   PCI: Using configuration type Xen
   Linux Plug and Play Support v0.97 (c) Adam Belay
   xen_mem: Initialising balloon driver.
   PCI: Probing PCI hardware
   PCI: Probing PCI hardware
   PCI: Probing PCI hardware (bus 00)
   TC classifier action (bugs to netdev@xxxxxxxxxxx cc hadi@xxxxxxxxxx)
   audit: initializing netlink socket (disabled)
   audit(1127899476.096:0): initialized
   Total HugeTLB memory allocated, 0
   VFS: Disk quotas dquot_6.5.1
   Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
   Initializing Cryptographic API
   vesafb: abort, cannot reserve video memory at 0x0
   vesafb: abort, cannot ioremap video memory 0x0 @ 0x0
   Trying to free nonexistent resource <00000000-ffffffff>
   vesafb: probe of vesafb.0 failed with error -5
   isapnp: Scanning for PnP cards...
   isapnp: No Plug & Play device found
   PNP: No PS/2 controller found. Probing ports directly.
   i8042.c: No controller found.
   io scheduler noop registered
   io scheduler anticipatory registered
   io scheduler deadline registered
   io scheduler cfq registered
   RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
   loop: loaded (max 8 devices)
   Xen virtual console successfully installed as tty
   Event-channel device installed.
   xen_blk: Initialising virtual block device driver
   xen_net: Initialising virtual ethernet driver.
   mice: PS/2 mouse device common for all mice
   NET: Registered protocol family 2
   IP: routing cache hash table of 2048 buckets, 16Kbytes
   TCP established hash table entries: 16384 (order: 5, 131072 bytes)
   TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
   TCP: Hash tables configured (established 16384 bind 16384)
   NET: Registered protocol family 1
   NET: Registered protocol family 8
   NET: Registered protocol family 20
   Freeing unused kernel memory: 128k freed
   Starting udev
   Creating devices
   Loading kernel/drivers/ide/ide-core.ko
   Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
   ide: Assuming 50MHz system bus speed for PIO modes; override with
   idebus=xx
   Loading kernel/drivers/ide/pci/piix.ko
   Loading kernel/drivers/ide/ide-disk.ko
   Loading kernel/drivers/cdrom/cdrom.ko
   Loading kernel/drivers/ide/ide-cd.ko
   Loading kernel/fs/reiserfs/reiserfs.ko
   Waiting for device /dev/hdb2 to appear:  ok
   rootfs:  major=3 minor=66 devn=834
   fsck 1.36 (05-Feb-2005)
   Reiserfs super block in block 16 on 0x342 of format 3.6 with
   standard journal
   Blocks (total/free): 1310720/1139665 by 4096 bytes
   Filesystem is clean
   Replaying journal..
   Reiserfs journal '/dev/hdb2' in blocks [18..8211]: 0 transactions
   replayed
   Checking internal tree..finished
   fsck succeeded. Mounting root device read-write.
   Mounting root /dev/hdb2
   ReiserFS: hdb2: found reiserfs format "3.6" with standard journal
   ReiserFS: hdb2: using ordered data mode
   reiserfs: using flush barriers
   ReiserFS: hdb2: journal params: device hdb2, size 8192, journal
   first block 18, max trans len 1024, max batch 900, max commit age
   30, max trans age 30
   ReiserFS: hdb2: checking transaction log (hdb2)
   reiserfs: disabling flush barriers on hdb2
   ReiserFS: hdb2: Using r5 hash to sort names
   No init found. Try passing init= optino to the kernel.
   umount2: Device or resource busy
   Kernel panic - not syncing: Attempted to kill init!
    <0>Rebooting in 1 seconds..


Any suggestions?
Kent



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

<Prev in Thread] Current Thread [Next in Thread>