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

[Xen-users] suse guest domain?




I've searched the mail archives, wiki, and many other online resources, but I still can't get my first non rescue-disk image-based guest domain going...

I have two drives:
  1. hda is a 200GB drive I'm using to host Xen and all of its guest domains  - I plan to configure LVM once I get the basics down...
  2. hdb is a 20GB drive I'm using to stage my guest domains - my thinking is to temporarily install the OS using its native installer, test it as a guest domain using the "phy" disk settings, and than move it over as an LVM on hda.
Here is the fdisk output:
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         131     1052226   82  Linux swap / Solaris
/dev/hda2   *         132       24319   194290110   83  Linux

Disk /dev/hdb: 20.0 GB, 20000000000 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1         131     1052226   82  Linux swap / Solaris
/dev/hdb2             132        1305     9430155   83  Linux

I'm using SuSE 9.3 (minimal install with Xen selected) as the host domain and have been able to get guest domains working using the `mk-xen-rescue-img.sh` script - though I found a bug in the scripts that flipped the gw and netmask.  Just for completeness, my /boot/grub/menu.lst file launches Xen as follows (note: I dropped the mem from the default to 128MB):
title XEN
    kernel (hd0,1)/boot/xen.gz dom0_mem=131072
    module (hd0,1)/boot/vmlinuz-xen root=/dev/hda2 vga=0x31a selinux=0  splash=silent resume=/dev/hda1  showopts
    module (hd0,1)/boot/initrd-xen
So now I'm trying to get my first real guest domain set up - being cautious, I'm starting off with SuSE 9.3, but my plan is to run CentOS, Fedora, and FreeBSD guest domains as well.  I installed SuSE into hdb (again selecting the Minimal + Xen install options) and modified grub to let me boot either SuSE - the second SuSE install boots up just fine.

One thing worth noting now is that other than moving the TLS directory out of the way, I have not made any other modifications to the hdb-based SuSE installation - I feel that I may need to replace its kernel file, but in trying to mimic the `mk-xen-rescue-img.sh` script, I didn't see the need...

The uncommented lines in my new guest domain's config file follows:
kernel = "/boot/vmlinuz-2.6.11.4-20a-xen"
memory = 256
name = "SuSE"
vif = [ 'mac=aa:cc:00:00:00:62, bridge=xen-br0' ]
disk = [ 'phy:hdb2,hdb2,w', 'phy:hdb1,hdb1,w' ]
netmask="255.255.255.0"
gateway="10.0.3.1"
hostname= "suse"
root = "/dev/hdb2 ro"
extra = "3"
Note: yes, I'm sure the MAC address is unique - as the question was asked a couple months ago when a similar issue came up...
Here I have a couple more questions:
  1. is the "kernel" for domain0 or the guest domain?  Whatever the case, the setting above is the same as for the rescue-image based guest domain...
  2. did I set the "disk" and "root" params right?  I thought that the "root" partition had to be listed first and I'm passing the swap partition second...
Now, when I create the domain (i.e. `xm create -c domu-suse vmid=62`), 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.890 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: 255872k/262144k available (1876k kernel code, 5924k 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
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(1127686070.290: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
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,66)
 <0>Rebooting in 1 seconds..
Any suggestions would be greatly appreciated!

Kent Watsen






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