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

Re: [Xen-users] Still having trouble creating a VM using xm create

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Still having trouble creating a VM using xm create
From: list user <xktnniuymlla@xxxxxxxxxxxxxx>
Date: Thu, 27 Apr 2006 11:08:44 -0700
Delivery-date: Thu, 27 Apr 2006 11:06:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060427173930.55673.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <20060427173930.55673.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)
Shabs wrote:
Right. But what is the logic behind these lines? How is it supposed to be?

These are my vols/devices:

[root@localhost xen]# df -l
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      16822672   7280864   8673456  46% /
/dev/hda1               101086     20680     75187  22% /boot
/dev/shm                480296         0    480296   0% /dev/shm
/dev/hdc                 63736     63736         0 100% /media/cdrom


[root@localhost xen]# lvdisplay -v | grep "LV Name"
    Finding all logical volumes
  LV Name                /dev/VolGroup00/LogVol00
  LV Name                /dev/VolGroup00/LogVol01

I'm going to make a lot of assumptions here.

1) VolGroup00/LogVol00 is your main bootable linux system, i.e your dom0
2) VolGroup00/LogVol01 is your 2nd bootable linux system, i.e your domU

The "disk = " line tells xen what the domU should use for its filesystem, and what it should be known as to the domU.

disk = [ 'phy:VolGroup00/LogVol01,hda1,w' ]

Now, VolGroup00/LogVol01/etc/fstab needs to match what you've told xen to export (hda1). Mount /dev/VolGroup00/LogVol01 /mnt. Edit /mnt/etc/fstab and replace the mount line for "/".

/dev/hda1       /         ext3    defaults        1 1

umount /mnt.

Now try your xm create again.  That should get you further.



Thanks

Shabs

*/list user <xktnniuymlla@xxxxxxxxxxxxxx>/* wrote:

    Shabs wrote:
     > Hi all.
     >
     > Could anyone assist in this issue?
     >
     > I've just built Fedora and installed Xen and booted fromits kernel.
     > I have the priviledged domain:
     >
     > [root@localhost xen]# xm list
     > Name ID Mem(MiB) VCPUs State Time(s)
     > Domain-0 0 884 1 r----- 267.8
     >
     > When I run xm create, I get a new VM but it doesn't seem to hang
    around
     > for long. I know its something to do with my "disk" entry in the
    config
     > file "sr-config1"
     >
     > disk = [ 'phy:/dev/mapper/VolGroup00-LogVol01,hda1,w',
     > 'phy:/dev/mapper/VolGroup00-LogVol01,hda2,r' ]

    In the line above you have the same logical volume mounted in two
    places
    at the same time. That could be your error.

    hth

     >
     > [root@localhost xen]# df -k
     > Filesystem 1K-blocks Used Available Use% Mounted on
     > /dev/mapper/VolGroup00-LogVol00
     > 16822672 7279916 8674404 46% /
     > /dev/hda1 101086 20680 75187 22% /boot
     > /dev/shm 480296 0 480296 0% /dev/shm
     > /dev/hdc 63736 63736 0 100% /media/cdrom
     >
     > [root@localhost xen]# ls -l /dev/mapper/VolGroup00-LogVol0*
     > brw-rw---- 1 root disk 254, 0 Apr 27 12:58
    /dev/mapper/VolGroup00-LogVol00
     > brw-rw---- 1 root disk 254, 1 Apr 27 13:57
    /dev/mapper/VolGroup00-LogVol01
     >
     >
     > The output of the xm create command is as follows:
     >
     > [root@localhost xen]# xm create sr-config1 -c vmid=1
     > Using config file "sr-config1".
     > Started domain VM1
     > Linux version 2.6.16-xen3_86.1_fc4
    (rread@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
     > (gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)) #1 SMP Thu Apr 13
     > 08:26:52 PDT 2006
     > BIOS-provided physical RAM map:
     > Xen: 0000000000000000 - 0000000004000000 (usable)
     > 0MB HIGHMEM available.
     > 72MB LOWMEM available.
     > ACPI in unprivileged domain disabled
     > IRQ lockup detection disabled
     > Built 1 zonelists
     > Kernel command line: ip=:1.2.3.4:::vm1:eth0:dhcp
     > root=/dev/mapper/VolGroup00-LogVol00 ro 4 VMID=1 usr=/dev/hda1
     > Enabling fast FPU save and restore... done.
     > Enabling unmasked SIMD FPU exception support... done.
     > Initializing CPU#0
     > PID hash table entries: 512 (order: 9, 8192 bytes)
     > Xen reported: 2391.132 MHz processor.
     > Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
     > Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
     > Software IO TLB disabled
     > vmalloc area: c5000000-fb7fe000, maxmem 33ffe000
     > Memory: 61016k/73728k available (2188k kernel code, 4452k
    reserved, 681k
     > data, 168k init, 0k highmem)
     > Checking if this processor honours the WP bit even in supervisor
    mode... Ok.
     > Calibrating delay using timer specific routine.. 4785.76 BogoMIPS
     > (lpj=23928814)
     > 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
     > 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
     > 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=0xc3c00000
     > 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: 1024 (order: 0, 4096 bytes)
     > TCP established hash table entries: 4096 (order: 3, 32768 bytes)
     > TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
     > TCP: Hash tables configured (established 4096 bind 4096)
     > 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
     > VFS: Cannot open root device "mapper/VolGroup00-LogVol00" or
     > unknown-block(0,0)
     > Please append a correct "root=" boot option
     > Kernel panic - not syncing: VFS: Unable to mount root fs on
     > unknown-block(0,0)
     > [root@localhost xen]# x, list
     > bash: x,: command not found
     >
     > [root@localhost xen]# xm list
     > Name ID Mem(MiB) VCPUs State Time(s)
     > Domain-0 0 883 1 r----- 282.1
     > VM1 9 64 1 ------ 0.2
     >
     > Running the same command after 10 secs:
     >
     > [root@localhost xen]# xm list
     > Name ID Mem(MiB) VCPUs State Time(s)
     > Domain-0 0 883 1 r----- 292.6
     >
     > Thanks.
     >
     > Shabs
     >
     >
    ------------------------------------------------------------------------
     > 24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more
     >
     >
     >
     > Send instant messages to your online friends
    http://uk.messenger.yahoo.com
     >
     >
     >
    ------------------------------------------------------------------------
     >
     > _______________________________________________
     > Xen-users mailing list
     > Xen-users@xxxxxxxxxxxxxxxxxxx
     > http://lists.xensource.com/xen-users

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


Send instant messages to your online friends http://uk.messenger.yahoo.com

------------------------------------------------------------------------
Yahoo! Cars <http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/> NEW - sell your car and browse thousands of new and used cars online search now <http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/>
------------------------------------------------------------------------


------------------------------------------------------------------------

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

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

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