[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Re: [Xen-users] Why creating DomU failed (seems it is due to LVM)
Thanks for your suggestion! I checked init in initrd for DomU, and modified mount -o defaults --ro -t ext3 /dev/root /sysroot to mount -o defaults --ro -t ext3 /dev/sda1 /sysroot /dev/sda1 is DomU root device. Then DomU can boot successfully! Waiting for your details :-) Thanks again! ======= 2006-12-13 08:17:37 you wrote:======= >Zhang Binbin wrote: >> I moved a little :-) >> Something does be wrong with initrd. >> I make a new initrd according to DomU's fstab: >> # mount /dev/GuestVG/DOM1 /mnt >> # mkinitrd --fstab=/mnt/etc/fstab /boot/initrd.2.6.16.29-xenU.img >> 2.6.16.29-xen >> # umount /mnt >> then create Dom1 >> there is no more LVM info. >> but it still failed to mount /root. I'm working to find out why... >> >Hi, > >I am making progress, I will publish the results soon, takes roughly an >hour for each compile, already made a few today. >The tricky part is figuring out the ramdisk. > >I found this document helpful for initrd understanding and creation: > >http://www-128.ibm.com/developerworks/linux/library/l-initrd.html > >++ >> ======= 2006-12-12 05:20:33 you wrote:======= >> >> >>> TMC wrote: >>> >>>> On 11/12/06, Steven Dugway <steven@xxxxxxxxxxxxxxxxxxx> wrote: >>>> >>>>> TMC wrote: >>>>> >>>>>> can you please post your config here? >>>>>> >>>>>> I suspect that your trying to start LVM configuration from Dom0 in >>>>>> DomU... >>>>>> >>>>>> There are two ways to do things. >>>>>> >>>>>> a) put all disk in Dom0 under LVM and manage disk for all DomU >>>>>> instances that way.. >>>>>> >>>>> That is how I do it and then export the partitions for each domU, works >>>>> fine with old FC5 packages. >>>>> Here is an config file: >>>>> >>>>> kernel = "/boot/vmlinuz-2.6.18-1.2849.fc6xen" >>>>> #kernel = "/boot/2.6.16-1.2122_FC5xenU" >>>>> memory = 250 >>>>> name = "spooner" >>>>> ramdisk = "/boot/initrd-2.6.18-1.2849.fc6xen.img" >>>>> vif = [ '' ] >>>>> disk=['phy:/dev/VolGroup00/spooner,sda1,w','phy:/dev/VolGroup00/spoonerHS,sda4,w','phy:/dev/VolGroup00/swap1,sda2,w','file:/img/tmpfiles,sda3,w'] >>>>> >>>>> >>>>> root = "/dev/sda1 ro" >>>>> >>>>> >>>> Ok. >>>> >>>> What I suspect is happening is that you have copied a whole parent >>>> server instance (with a running /etc and such like) instead of doing a >>>> clean install to your patritions with kickstart, jump-start or >>>> debootstrap. >>>> >>>> >>> This is not working. >>> >>> There is some mystery about the initrd setup. >>> I did everything I could test on my own and from suggestions on this >>> list, in vain. >>> >>> It is hard to make timely decisions with the current state of affairs >>> with Xen. I spent 4 months since the first broken package in FC5 in >>> september to try to get my Centos domU running and nothing works, which >>> means I am stuck with old version of Xen. I had hope the FC6 version >>> would fix it but no. The centos no better. Does anybody know a GNU linux >>> distro that is serious about supporting Xen? >>> >>> I did figure out the howtos of mkinird and the ramdisk concepts, the >>> problem is I do not know what to put/modify inside to make it work. >>> This is very frustrating. >>> >>> Thanks anyway. >>> >>> >>>> This means that your LVM subsystem is looking in /etc, finds configs >>>> and goesa looking for disks to manage and fails, bacuse it must. you >>>> are accessing abstracted devices not raw devices in your DomU. >>>> >>>> I think you need to blow away (or at least rename) all LVM configs in >>>> /etc/ of your DomU. They are not needed. >>>> >>>> Also you need to change: >>>> your networking (unless you DHCP) >>>> hostname >>>> edit the fstab to refer to /dev/sda1, /dev/sda2, /dev/sda3 and >>>> /dev/sda4 as required instead of lables or /dev/VolGroup** stuff. >>>> >>>> Also Please boot the XenU specific kernel, if your packages provide >>>> it. Its safer. >>>> >>>> >>>> Hope this helps >>>> >>>> Tomasz >>>> >>>> >>> -- >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@xxxxxxxxxxxxxxxxxxx >>> http://lists.xensource.com/xen-users >>> >> >> = = = = = = = = = = = = = = = = = = = = >> >> >> >> >> >> >> > > >-- >Etienne R. Duguay 514-939-HOST (4678) ext 5 >Author of/ Auteur de "Se lancer en affaires dans Internet" >ISBN 2-89521-001-2; ISBN 2-89472-062-9 >Virtual Space International INC., >-------------------------------------------------------------- >Internet Is Here To Stay, Make Sure Your Business Is! >http://www.savetimehosting.net / 25-50% commission for life on referrals >-------------------------------------------------------------- >"The best way to predict the future is to invent it" Alan Kay >"One who trades freedom for security deserves neither." > -Benjamin Franklin >"most propaganda is not designed to fool the critical thinker > but only to give moral cowards an excuse not to think at all." > - Michael Rivero >"Anyone who believes exponential growth can go on forever in a >finite world is either a madman or an economist." > - Kenneth Boulding >"The State's coercive interference in either money or banking, >including its licensing of a monopolistic central bank, >reduces all men's freedom and most men's wealth" > -Ludwig von Mises >"The Law, when the law, which is force and can be legitimately >used only in defense of just rights to life and property, is >perverted into an instrument of aggression, slavery, theft, and >plunder, it has destroyed its own object" > -Frédéric Bastiat >"A fine is a tax you pay for doing wrong, and a tax is a fine >you pay for doing all right" > -Unknown > > = = = = = = = = = = = = = = = = = = = = _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |