Hi, Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV domU or do we need to get that one from kernel.org ? Thanks Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote:> Hi, > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > domU or do we need to get that one from kernel.org ? >Both will work. upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. Jeremy''s tree has some additional features, like pcifront/pciback etc, that are not yet upstream. -- Pasi> > > Thanks > > > > Ian > > > >> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. When i use the 2.6.8.18 kernel the domU boots fine. I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? Thanks Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 14 May 2010 19:48 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote:> Hi, > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > domU or do we need to get that one from kernel.org ? >Both will work. upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. Jeremy''s tree has some additional features, like pcifront/pciback etc, that are not yet upstream. -- Pasi> > > Thanks > > > > Ian > > > >> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote:> Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > When i use the 2.6.8.18 kernel the domU boots fine. > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? >Are you using the dom0 initrd for domU? If you are, you shouldn''t. domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. -- Pasi> Thanks > > Ian > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 19:48 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > Hi, > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > domU or do we need to get that one from kernel.org ? > > > > Both will work. > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > Jeremy''s tree has some additional features, like pcifront/pciback etc, > that are not yet upstream. > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ah ok, what would be the procedure to do that? Thanks Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 14 May 2010 20:32 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote:> Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > When i use the 2.6.8.18 kernel the domU boots fine. > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? >Are you using the dom0 initrd for domU? If you are, you shouldn''t. domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. -- Pasi> Thanks > > Ian > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 19:48 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > Hi, > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > domU or do we need to get that one from kernel.org ? > > > > Both will work. > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > Jeremy''s tree has some additional features, like pcifront/pciback etc, > that are not yet upstream. > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote:> Ah ok, what would be the procedure to do that? > > Thanks >Usually it''s best to generate the initrd image in the guest, and use the distro provided domU kernel. If you install the guest using the guest distro installer it''ll do it for you automatically. You can also do it from dom0.. example for centos/rhel/fedora: mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 20:32 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > Are you using the dom0 initrd for domU? > If you are, you shouldn''t. > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > -- Pasi > > > Thanks > > > > Ian > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 19:48 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > Hi, > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > domU or do we need to get that one from kernel.org ? > > > > > > > Both will work. > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > that are not yet upstream. > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? Many thanks for the info, you learn something new everyday :) Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 14 May 2010 20:50 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote:> Ah ok, what would be the procedure to do that? > > Thanks >Usually it''s best to generate the initrd image in the guest, and use the distro provided domU kernel. If you install the guest using the guest distro installer it''ll do it for you automatically. You can also do it from dom0.. example for centos/rhel/fedora: mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 20:32 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > Are you using the dom0 initrd for domU? > If you are, you shouldn''t. > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > -- Pasi > > > Thanks > > > > Ian > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 19:48 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > Hi, > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > domU or do we need to get that one from kernel.org ? > > > > > > > Both will work. > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > that are not yet upstream. > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote:> Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? >It''s not really pvops specific.. it''s more about the fact that nowadays all/most drivers are built as modules - so you need to have an initrd image to load them. If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd..> Many thanks for the info, you learn something new everyday :) >Np. -- Pasi> Ian > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 20:50 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > Ah ok, what would be the procedure to do that? > > > > Thanks > > > > Usually it''s best to generate the initrd image in the guest, > and use the distro provided domU kernel. > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > You can also do it from dom0.. example for centos/rhel/fedora: > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > -- Pasi > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 20:32 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > Are you using the dom0 initrd for domU? > > If you are, you shouldn''t. > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 19:48 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > Hi, > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > Both will work. > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > that are not yet upstream. > > > > > > -- Pasi > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Xen-users mailing list > > > > Xen-users@lists.xensource.com > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
If it''s possible i would like to add to section:- Tutorials to install Xen 4.0 Ubuntu 10.04: http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/ One more blog entry :- Downgrading libvirt/virsh/virt-manager/virt-install to 0.7.0 at Xen 4.0 Dom0 (2.6.32.12 pvops kernel ) on top of Ubuntu 10.04 Server http://bderzhavets.wordpress.com/2010/05/06/hacking-downgrading-to-libvirt-0-7-0-libvirtvirshvirt-managervirt-install-at-xen-4-0-dom0-2-6-32-12-pvops-kernel-on-top-of-ubuntu-10-04-server/ Having libvirt ,virsh, virtinst,python-virtinst ,virt-viewer,virt-manager working with Xen 4.0 is important for end-users , what makes F12 so attractive for Xen deployment. Hackery above is not perfect ( virsh list gives some issues when reading xenstore) , however virt-install creates HVM and PV guests , virt-manager allows domain management local and remote. I have positive ( obviously limited) experience in testing downgrade. Boris P.S. Actually, Libvirt (0.7.5) on 10.04 generates virsh completely failing to read info from xenstore. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, May 15, 2010 at 11:31:20AM -0700, Boris Derzhavets wrote:> If it''s possible i would like to add to section:- > > Tutorials to install Xen 4.0 Ubuntu 10.04: > [1]http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/ > > One more blog entry :- > > Downgrading libvirt/virsh/virt-manager/virt-install to 0.7.0 at Xen 4.0 Dom0 (2.6.32.12 pvops kernel ) on top of Ubuntu 10.04 Server > > http://bderzhavets.wordpress.com/2010/05/06/hacking-downgrading-to-libvirt-0-7-0-libvirtvirshvirt-managervirt-install-at-xen-4-0-dom0-2-6-32-12-pvops-kernel-on-top-of-ubuntu-10-04-server/ > > Having libvirt ,virsh, virtinst,python-virtinst ,virt-viewer,virt-manager working with Xen 4.0 > is important for end-users , what makes F12 so attractive for Xen deployment. > > Hackery above is not perfect ( virsh list gives some issues when reading xenstore) , however virt-install creates HVM and PV guests , virt-manager allows domain management local and > remote. I have positive ( obviously limited) experience in testing > downgrade. >Link added. -- Pasi> Boris > P.S. Actually, Libvirt (0.7.5) on 10.04 generates virsh completely failing to read info from xenstore. > > References > > Visible links > 1. http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks Boris. --- On Sun, 5/16/10, Pasi Kärkkäinen <pasik@iki.fi> wrote: From: Pasi Kärkkäinen <pasik@iki.fi> Subject: Re: wiki.xensource.com/xenwiki/Xen4.0 To: "Boris Derzhavets" <bderzhavets@yahoo.com> Cc: xen-users@lists.xensource.com Date: Sunday, May 16, 2010, 10:20 AM On Sat, May 15, 2010 at 11:31:20AM -0700, Boris Derzhavets wrote:> If it''s possible i would like to add to section:- > > Tutorials to install Xen 4.0 Ubuntu 10.04: > [1]http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/ > > One more blog entry :- > > Downgrading libvirt/virsh/virt-manager/virt-install to 0.7.0 at Xen 4.0 Dom0 (2.6.32.12 pvops kernel ) on top of Ubuntu 10.04 Server > > http://bderzhavets.wordpress.com/2010/05/06/hacking-downgrading-to-libvirt-0-7-0-libvirtvirshvirt-managervirt-install-at-xen-4-0-dom0-2-6-32-12-pvops-kernel-on-top-of-ubuntu-10-04-server/ > > Having libvirt ,virsh, virtinst,python-virtinst ,virt-viewer,virt-manager working with Xen 4.0 > is important for end-users , what makes F12 so attractive for Xen deployment. > > Hackery above is not perfect ( virsh list gives some issues when reading xenstore) , however virt-install creates HVM and PV guests , virt-manager allows domain management local and > remote. I have positive ( obviously limited) experience in testing > downgrade. >Link added. -- Pasi> Boris > P.S. Actually, Libvirt (0.7.5) on 10.04 generates virsh completely failing to read info from xenstore. > > References > > Visible links > 1. http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hey Pasi, Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 When booting i get the same error [ 0.898795] md: raid0 personality registered for level 0 [ 0.898814] md: raid1 personality registered for level 1 [ 0.898832] md: raid10 personality registered for level 10 [ 0.898850] md: raid6 personality registered for level 6 [ 0.898867] md: raid5 personality registered for level 5 [ 0.898884] md: raid4 personality registered for level 4 [ 0.898902] md: multipath personality registered for level -4 [ 0.898920] md: faulty personality registered for level -5 [ 0.899014] device-mapper: uevent: version 1.0.3 [ 0.899545] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com [ 0.899921] device-mapper: multipath: version 1.1.1 loaded [ 0.899946] device-mapper: multipath round-robin: version 1.0.0 loaded [ 0.900432] cpuidle: using governor ladder [ 0.900454] cpuidle: using governor menu [ 0.900488] No iBFT detected. [ 0.900586] Netfilter messages via NETLINK v0.30. [ 0.900662] nf_conntrack version 0.5.0 (1938 buckets, 7752 max) [ 0.900808] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use [ 0.900831] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or [ 0.900852] sysctl net.netfilter.nf_conntrack_acct=1 to enable it. [ 0.901215] ctnetlink v0.93: registering with nfnetlink. [ 0.901324] xt_time: kernel timezone is -0000 [ 0.902209] ip_tables: (C) 2000-2006 Netfilter Core Team [ 0.902297] ClusterIP Version 0.8 loaded successfully [ 0.902355] arp_tables: (C) 2002 David S. Miller [ 0.902410] TCP cubic registered [ 0.902423] NET: Registered protocol family 17 [ 0.902463] Using IPI No-Shortcut mode [ 0.903337] registered taskstats version 1 [ 1.000079] XENBUS: Device with no driver: device/console/0 [ 1.000131] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 1.000229] Freeing unused kernel memory: 424k freed Loading, please wait... Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. done. Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. mdadm: no devices found for /dev/md0 [ 2.004392] md: md1 stopped. mdadm: no devices found for /dev/md1 [ 2.021788] md: md2 stopped. mdadm: no devices found for /dev/md2 [ 2.047173] md: md3 stopped. mdadm: no devices found for /dev/md3 Failure: failed to assemble all arrays. done. Begin: Waiting for udev to process events ... done. done. Begin: Waiting for root file system ... Im not sure if i have missed something out, any ideas? Cheers Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 14 May 2010 21:18 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote:> Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? >It''s not really pvops specific.. it''s more about the fact that nowadays all/most drivers are built as modules - so you need to have an initrd image to load them. If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd..> Many thanks for the info, you learn something new everyday :) >Np. -- Pasi> Ian > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 20:50 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > Ah ok, what would be the procedure to do that? > > > > Thanks > > > > Usually it''s best to generate the initrd image in the guest, > and use the distro provided domU kernel. > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > You can also do it from dom0.. example for centos/rhel/fedora: > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > -- Pasi > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 20:32 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > Are you using the dom0 initrd for domU? > > If you are, you shouldn''t. > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 19:48 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > Hi, > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > Both will work. > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > that are not yet upstream. > > > > > > -- Pasi > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Xen-users mailing list > > > > Xen-users@lists.xensource.com > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi!> Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4[SNIP]> Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > mdadm: no devices found for /dev/md0[SNAP]> Im not sure if i have missed something out, any ideas?Looks like the module for accessing your disks isn''t loaded... No disks -- nothing to assemble... -- Adi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Ok, im a bit confused. Which module should it be? The XEN stuff is static and so is the raid. Thanks Ian -----Original Message----- From: Adi Kriegisch [mailto:kriegisch@vrvis.at] Sent: 17 May 2010 08:47 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? Hi!> Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4[SNIP]> Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > mdadm: no devices found for /dev/md0[SNAP]> Im not sure if i have missed something out, any ideas?Looks like the module for accessing your disks isn't loaded... No disks -- nothing to assemble... -- Adi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote:> Hey Pasi, > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 >Did you generate the initrd in dom0? You should generate it in domU.. then you won''t have all the dom0-specific md-raid stuff etc there.> When booting i get the same error > > > Loading, please wait... > Begin: Loading essential drivers ... done. > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > done. > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > done. > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > mdadm: no devices found for /dev/md0 > [ 2.004392] md: md1 stopped. > mdadm: no devices found for /dev/md1 > [ 2.021788] md: md2 stopped. > mdadm: no devices found for /dev/md2 > [ 2.047173] md: md3 stopped. > mdadm: no devices found for /dev/md3 > Failure: failed to assemble all arrays. > done. > Begin: Waiting for udev to process events ... done. > done. > Begin: Waiting for root file system ... > > > Im not sure if i have missed something out, any ideas? >Please paste "grep XEN .config" from the domU kernel. -- Pasi> Cheers > > Ian > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 21:18 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > drivers are built as modules - so you need to have an initrd image to load them. > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > Many thanks for the info, you learn something new everyday :) > > > > Np. > > -- Pasi > > > Ian > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 20:50 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > Ah ok, what would be the procedure to do that? > > > > > > Thanks > > > > > > > Usually it''s best to generate the initrd image in the guest, > > and use the distro provided domU kernel. > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > -- Pasi > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 20:32 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > Are you using the dom0 initrd for domU? > > > If you are, you shouldn''t. > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 19:48 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > Hi, > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > Both will work. > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > that are not yet upstream. > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Xen-users mailing list > > > > > Xen-users@lists.xensource.com > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, How do you gernerate it from DomU when it wont boot? Here is the domU config CONFIG_XEN=y CONFIG_XEN_MAX_DOMAIN_MEMORY=32 CONFIG_XEN_SAVE_RESTORE=y CONFIG_XEN_DEBUG_FS=y CONFIG_XEN_BLKDEV_FRONTEND=y CONFIG_NETXEN_NIC=m CONFIG_XEN_NETDEV_FRONTEND=y CONFIG_XEN_KBDDEV_FRONTEND=y CONFIG_HVC_XEN=y CONFIG_XEN_FBDEV_FRONTEND=y CONFIG_XEN_BALLOON=y CONFIG_XEN_SCRUB_PAGES=y CONFIG_XEN_DEV_EVTCHN=y CONFIG_XENFS=y CONFIG_XEN_COMPAT_XENFS=y CONFIG_XEN_SYS_HYPERVISOR=y Thanks Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 08:51 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote:> Hey Pasi, > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 >Did you generate the initrd in dom0? You should generate it in domU.. then you won''t have all the dom0-specific md-raid stuff etc there.> When booting i get the same error > > > Loading, please wait... > Begin: Loading essential drivers ... done. > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > done. > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > done. > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > mdadm: no devices found for /dev/md0 > [ 2.004392] md: md1 stopped. > mdadm: no devices found for /dev/md1 > [ 2.021788] md: md2 stopped. > mdadm: no devices found for /dev/md2 > [ 2.047173] md: md3 stopped. > mdadm: no devices found for /dev/md3 > Failure: failed to assemble all arrays. > done. > Begin: Waiting for udev to process events ... done. > done. > Begin: Waiting for root file system ... > > > Im not sure if i have missed something out, any ideas? >Please paste "grep XEN .config" from the domU kernel. -- Pasi> Cheers > > Ian > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 14 May 2010 21:18 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > drivers are built as modules - so you need to have an initrd image to load them. > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > Many thanks for the info, you learn something new everyday :) > > > > Np. > > -- Pasi > > > Ian > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 20:50 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > Ah ok, what would be the procedure to do that? > > > > > > Thanks > > > > > > > Usually it''s best to generate the initrd image in the guest, > > and use the distro provided domU kernel. > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > -- Pasi > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 20:32 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > Are you using the dom0 initrd for domU? > > > If you are, you shouldn''t. > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 19:48 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > Hi, > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > Both will work. > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > that are not yet upstream. > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Xen-users mailing list > > > > > Xen-users@lists.xensource.com > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote:> Hi, > > How do you gernerate it from DomU when it wont boot? >Well.. mount + chroot + mkinitrd from dom0 might work. I prefer installing domUs using the distro installer so things like this get handled automatically. And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all!> Here is the domU config > > CONFIG_XEN=y > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > CONFIG_XEN_SAVE_RESTORE=y > CONFIG_XEN_DEBUG_FS=y > CONFIG_XEN_BLKDEV_FRONTEND=y >So the xen-blkfront is compiled in, you don''t necessarily need an initrd then.> CONFIG_NETXEN_NIC=m > CONFIG_XEN_NETDEV_FRONTEND=y > CONFIG_XEN_KBDDEV_FRONTEND=y > CONFIG_HVC_XEN=y > CONFIG_XEN_FBDEV_FRONTEND=y > CONFIG_XEN_BALLOON=y > CONFIG_XEN_SCRUB_PAGES=y > CONFIG_XEN_DEV_EVTCHN=y > CONFIG_XENFS=y > CONFIG_XEN_COMPAT_XENFS=y > CONFIG_XEN_SYS_HYPERVISOR=y >-- Pasi> Thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 08:51 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > Hey Pasi, > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > Did you generate the initrd in dom0? You should generate it in domU.. > then you won''t have all the dom0-specific md-raid stuff etc there. > > > When booting i get the same error > > > > > > Loading, please wait... > > Begin: Loading essential drivers ... done. > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > done. > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > done. > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > mdadm: no devices found for /dev/md0 > > [ 2.004392] md: md1 stopped. > > mdadm: no devices found for /dev/md1 > > [ 2.021788] md: md2 stopped. > > mdadm: no devices found for /dev/md2 > > [ 2.047173] md: md3 stopped. > > mdadm: no devices found for /dev/md3 > > Failure: failed to assemble all arrays. > > done. > > Begin: Waiting for udev to process events ... done. > > done. > > Begin: Waiting for root file system ... > > > > > > Im not sure if i have missed something out, any ideas? > > > > Please paste "grep XEN .config" from the domU kernel. > > -- Pasi > > > > > Cheers > > > > Ian > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 21:18 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > drivers are built as modules - so you need to have an initrd image to load them. > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > Np. > > > > -- Pasi > > > > > Ian > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 20:50 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > Ah ok, what would be the procedure to do that? > > > > > > > > Thanks > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > and use the distro provided domU kernel. > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > -- Pasi > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 20:32 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > If you are, you shouldn''t. > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > -- Pasi > > > > > > > > > Thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 19:48 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > that are not yet upstream. > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Xen-users mailing list > > > > > > Xen-users@lists.xensource.com > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ive never used pygrub before. I did try chrooting but it was complaining about the initramfs command not being found. So if the XEN stuff is ok, what else do you think it could be? Thanks Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 09:02 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote:> Hi, > > How do you gernerate it from DomU when it wont boot? >Well.. mount + chroot + mkinitrd from dom0 might work. I prefer installing domUs using the distro installer so things like this get handled automatically. And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all!> Here is the domU config > > CONFIG_XEN=y > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > CONFIG_XEN_SAVE_RESTORE=y > CONFIG_XEN_DEBUG_FS=y > CONFIG_XEN_BLKDEV_FRONTEND=y >So the xen-blkfront is compiled in, you don''t necessarily need an initrd then.> CONFIG_NETXEN_NIC=m > CONFIG_XEN_NETDEV_FRONTEND=y > CONFIG_XEN_KBDDEV_FRONTEND=y > CONFIG_HVC_XEN=y > CONFIG_XEN_FBDEV_FRONTEND=y > CONFIG_XEN_BALLOON=y > CONFIG_XEN_SCRUB_PAGES=y > CONFIG_XEN_DEV_EVTCHN=y > CONFIG_XENFS=y > CONFIG_XEN_COMPAT_XENFS=y > CONFIG_XEN_SYS_HYPERVISOR=y >-- Pasi> Thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 08:51 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > Hey Pasi, > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > Did you generate the initrd in dom0? You should generate it in domU.. > then you won''t have all the dom0-specific md-raid stuff etc there. > > > When booting i get the same error > > > > > > Loading, please wait... > > Begin: Loading essential drivers ... done. > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > done. > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > done. > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > mdadm: no devices found for /dev/md0 > > [ 2.004392] md: md1 stopped. > > mdadm: no devices found for /dev/md1 > > [ 2.021788] md: md2 stopped. > > mdadm: no devices found for /dev/md2 > > [ 2.047173] md: md3 stopped. > > mdadm: no devices found for /dev/md3 > > Failure: failed to assemble all arrays. > > done. > > Begin: Waiting for udev to process events ... done. > > done. > > Begin: Waiting for root file system ... > > > > > > Im not sure if i have missed something out, any ideas? > > > > Please paste "grep XEN .config" from the domU kernel. > > -- Pasi > > > > > Cheers > > > > Ian > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 14 May 2010 21:18 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > drivers are built as modules - so you need to have an initrd image to load them. > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > Np. > > > > -- Pasi > > > > > Ian > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 20:50 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > Ah ok, what would be the procedure to do that? > > > > > > > > Thanks > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > and use the distro provided domU kernel. > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > -- Pasi > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 20:32 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > If you are, you shouldn''t. > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > -- Pasi > > > > > > > > > Thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 19:48 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > that are not yet upstream. > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Xen-users mailing list > > > > > > Xen-users@lists.xensource.com > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote:> Ive never used pygrub before. > > I did try chrooting but it was complaining about the initramfs command not being found. > > So if the XEN stuff is ok, what else do you think it could be? >Paste your /etc/xen/<guest> cfgfile. -- Pasi> Thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:02 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > Hi, > > > > How do you gernerate it from DomU when it wont boot? > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > I prefer installing domUs using the distro installer so things > like this get handled automatically. > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > Here is the domU config > > > > CONFIG_XEN=y > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > CONFIG_XEN_SAVE_RESTORE=y > > CONFIG_XEN_DEBUG_FS=y > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > CONFIG_NETXEN_NIC=m > > CONFIG_XEN_NETDEV_FRONTEND=y > > CONFIG_XEN_KBDDEV_FRONTEND=y > > CONFIG_HVC_XEN=y > > CONFIG_XEN_FBDEV_FRONTEND=y > > CONFIG_XEN_BALLOON=y > > CONFIG_XEN_SCRUB_PAGES=y > > CONFIG_XEN_DEV_EVTCHN=y > > CONFIG_XENFS=y > > CONFIG_XEN_COMPAT_XENFS=y > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > -- Pasi > > > Thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 08:51 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > Hey Pasi, > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > When booting i get the same error > > > > > > > > > Loading, please wait... > > > Begin: Loading essential drivers ... done. > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > done. > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > done. > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > mdadm: no devices found for /dev/md0 > > > [ 2.004392] md: md1 stopped. > > > mdadm: no devices found for /dev/md1 > > > [ 2.021788] md: md2 stopped. > > > mdadm: no devices found for /dev/md2 > > > [ 2.047173] md: md3 stopped. > > > mdadm: no devices found for /dev/md3 > > > Failure: failed to assemble all arrays. > > > done. > > > Begin: Waiting for udev to process events ... done. > > > done. > > > Begin: Waiting for root file system ... > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > -- Pasi > > > > > > > > > Cheers > > > > > > Ian > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 21:18 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > Np. > > > > > > -- Pasi > > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 20:50 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > Thanks > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > and use the distro provided domU kernel. > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > -- Pasi > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 20:32 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > If you are, you shouldn''t. > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 19:48 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > that are not yet upstream. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Xen-users mailing list > > > > > > > Xen-users@lists.xensource.com > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
# -*- mode: python; -*- kernel = "/boot/vmlinuz-2.6.33.4" ramdisk = "/boot/initrd.img-2.6.34.4" #kernel = "/boot/vmlinuz-2.6.18.8-xen" memory = 128 name = "dbsrv1" vif = [''bridge=xenbr0'' ] disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] ip="..." netmask="..." gateway="..." hostname = "dbsrv1" root = "/dev/hda1 ro" extra = "3 xencons=tty" thanks Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 09:19 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote:> Ive never used pygrub before. > > I did try chrooting but it was complaining about the initramfs command not being found. > > So if the XEN stuff is ok, what else do you think it could be? >Paste your /etc/xen/<guest> cfgfile. -- Pasi> Thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:02 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > Hi, > > > > How do you gernerate it from DomU when it wont boot? > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > I prefer installing domUs using the distro installer so things > like this get handled automatically. > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > Here is the domU config > > > > CONFIG_XEN=y > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > CONFIG_XEN_SAVE_RESTORE=y > > CONFIG_XEN_DEBUG_FS=y > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > CONFIG_NETXEN_NIC=m > > CONFIG_XEN_NETDEV_FRONTEND=y > > CONFIG_XEN_KBDDEV_FRONTEND=y > > CONFIG_HVC_XEN=y > > CONFIG_XEN_FBDEV_FRONTEND=y > > CONFIG_XEN_BALLOON=y > > CONFIG_XEN_SCRUB_PAGES=y > > CONFIG_XEN_DEV_EVTCHN=y > > CONFIG_XENFS=y > > CONFIG_XEN_COMPAT_XENFS=y > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > -- Pasi > > > Thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 08:51 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > Hey Pasi, > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > When booting i get the same error > > > > > > > > > Loading, please wait... > > > Begin: Loading essential drivers ... done. > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > done. > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > done. > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > mdadm: no devices found for /dev/md0 > > > [ 2.004392] md: md1 stopped. > > > mdadm: no devices found for /dev/md1 > > > [ 2.021788] md: md2 stopped. > > > mdadm: no devices found for /dev/md2 > > > [ 2.047173] md: md3 stopped. > > > mdadm: no devices found for /dev/md3 > > > Failure: failed to assemble all arrays. > > > done. > > > Begin: Waiting for udev to process events ... done. > > > done. > > > Begin: Waiting for root file system ... > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > -- Pasi > > > > > > > > > Cheers > > > > > > Ian > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 14 May 2010 21:18 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > Np. > > > > > > -- Pasi > > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 20:50 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > Thanks > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > and use the distro provided domU kernel. > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > -- Pasi > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 20:32 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > If you are, you shouldn''t. > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 19:48 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > that are not yet upstream. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Xen-users mailing list > > > > > > > Xen-users@lists.xensource.com > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote:> # -*- mode: python; -*- > kernel = "/boot/vmlinuz-2.6.33.4" > ramdisk = "/boot/initrd.img-2.6.34.4" > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > memory = 128 > name = "dbsrv1" > vif = [''bridge=xenbr0'' ] > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] >The problem is on the disk line. You need to use xvda1 and xvda2, not hda1 and sda2. xvd = Xen Virtual Disk. -- Pasi> ip="..." > netmask="..." > gateway="..." > hostname = "dbsrv1" > root = "/dev/hda1 ro" > extra = "3 xencons=tty" > > thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:19 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > Ive never used pygrub before. > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > Paste your /etc/xen/<guest> cfgfile. > > -- Pasi > > > Thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:02 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > Hi, > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > I prefer installing domUs using the distro installer so things > > like this get handled automatically. > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > Here is the domU config > > > > > > CONFIG_XEN=y > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > CONFIG_XEN_SAVE_RESTORE=y > > > CONFIG_XEN_DEBUG_FS=y > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > CONFIG_NETXEN_NIC=m > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > CONFIG_HVC_XEN=y > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > CONFIG_XEN_BALLOON=y > > > CONFIG_XEN_SCRUB_PAGES=y > > > CONFIG_XEN_DEV_EVTCHN=y > > > CONFIG_XENFS=y > > > CONFIG_XEN_COMPAT_XENFS=y > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 08:51 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > Hey Pasi, > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > When booting i get the same error > > > > > > > > > > > > Loading, please wait... > > > > Begin: Loading essential drivers ... done. > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > done. > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > done. > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > mdadm: no devices found for /dev/md0 > > > > [ 2.004392] md: md1 stopped. > > > > mdadm: no devices found for /dev/md1 > > > > [ 2.021788] md: md2 stopped. > > > > mdadm: no devices found for /dev/md2 > > > > [ 2.047173] md: md3 stopped. > > > > mdadm: no devices found for /dev/md3 > > > > Failure: failed to assemble all arrays. > > > > done. > > > > Begin: Waiting for udev to process events ... done. > > > > done. > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > -- Pasi > > > > > > > > > > > > > Cheers > > > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 21:18 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > Np. > > > > > > > > -- Pasi > > > > > > > > > Ian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 20:50 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > and use the distro provided domU kernel. > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > -- Pasi > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 20:32 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Xen-users mailing list > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 09:27 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote:> # -*- mode: python; -*- > kernel = "/boot/vmlinuz-2.6.33.4" > ramdisk = "/boot/initrd.img-2.6.34.4" > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > memory = 128 > name = "dbsrv1" > vif = [''bridge=xenbr0'' ] > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] >The problem is on the disk line. You need to use xvda1 and xvda2, not hda1 and sda2. xvd = Xen Virtual Disk. -- Pasi> ip="..." > netmask="..." > gateway="..." > hostname = "dbsrv1" > root = "/dev/hda1 ro" > extra = "3 xencons=tty" > > thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:19 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > Ive never used pygrub before. > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > Paste your /etc/xen/<guest> cfgfile. > > -- Pasi > > > Thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:02 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > Hi, > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > I prefer installing domUs using the distro installer so things > > like this get handled automatically. > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > Here is the domU config > > > > > > CONFIG_XEN=y > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > CONFIG_XEN_SAVE_RESTORE=y > > > CONFIG_XEN_DEBUG_FS=y > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > CONFIG_NETXEN_NIC=m > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > CONFIG_HVC_XEN=y > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > CONFIG_XEN_BALLOON=y > > > CONFIG_XEN_SCRUB_PAGES=y > > > CONFIG_XEN_DEV_EVTCHN=y > > > CONFIG_XENFS=y > > > CONFIG_XEN_COMPAT_XENFS=y > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 08:51 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > Hey Pasi, > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > When booting i get the same error > > > > > > > > > > > > Loading, please wait... > > > > Begin: Loading essential drivers ... done. > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > done. > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > done. > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > mdadm: no devices found for /dev/md0 > > > > [ 2.004392] md: md1 stopped. > > > > mdadm: no devices found for /dev/md1 > > > > [ 2.021788] md: md2 stopped. > > > > mdadm: no devices found for /dev/md2 > > > > [ 2.047173] md: md3 stopped. > > > > mdadm: no devices found for /dev/md3 > > > > Failure: failed to assemble all arrays. > > > > done. > > > > Begin: Waiting for udev to process events ... done. > > > > done. > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > -- Pasi > > > > > > > > > > > > > Cheers > > > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 14 May 2010 21:18 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > Np. > > > > > > > > -- Pasi > > > > > > > > > Ian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 20:50 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > and use the distro provided domU kernel. > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > -- Pasi > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 20:32 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Xen-users mailing list > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote:> Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( >Did you change the root= line aswell? -- Pasi> > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:27 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > # -*- mode: python; -*- > > kernel = "/boot/vmlinuz-2.6.33.4" > > ramdisk = "/boot/initrd.img-2.6.34.4" > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > memory = 128 > > name = "dbsrv1" > > vif = [''bridge=xenbr0'' ] > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > The problem is on the disk line. > You need to use xvda1 and xvda2, not hda1 and sda2. > > xvd = Xen Virtual Disk. > > -- Pasi > > > > ip="..." > > netmask="..." > > gateway="..." > > hostname = "dbsrv1" > > root = "/dev/hda1 ro" > > extra = "3 xencons=tty" > > > > thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:19 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > Ive never used pygrub before. > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:02 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > Hi, > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > I prefer installing domUs using the distro installer so things > > > like this get handled automatically. > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > Here is the domU config > > > > > > > > CONFIG_XEN=y > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > CONFIG_XEN_DEBUG_FS=y > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > CONFIG_HVC_XEN=y > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > CONFIG_XEN_BALLOON=y > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > CONFIG_XENFS=y > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 08:51 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > Hey Pasi, > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > Loading, please wait... > > > > > Begin: Loading essential drivers ... done. > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > done. > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > done. > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > mdadm: no devices found for /dev/md0 > > > > > [ 2.004392] md: md1 stopped. > > > > > mdadm: no devices found for /dev/md1 > > > > > [ 2.021788] md: md2 stopped. > > > > > mdadm: no devices found for /dev/md2 > > > > > [ 2.047173] md: md3 stopped. > > > > > mdadm: no devices found for /dev/md3 > > > > > Failure: failed to assemble all arrays. > > > > > done. > > > > > Begin: Waiting for udev to process events ... done. > > > > > done. > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > Ian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 21:18 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > Np. > > > > > > > > > > -- Pasi > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 20:50 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Xen-users mailing list > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
No! Changed it and now boots... phew. Just out of interest when did the xvda option replace the sda/hda ? Thanks for helping me get it booted up, much appreciated! Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 09:58 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote:> Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( >Did you change the root= line aswell? -- Pasi> > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:27 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > # -*- mode: python; -*- > > kernel = "/boot/vmlinuz-2.6.33.4" > > ramdisk = "/boot/initrd.img-2.6.34.4" > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > memory = 128 > > name = "dbsrv1" > > vif = [''bridge=xenbr0'' ] > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > The problem is on the disk line. > You need to use xvda1 and xvda2, not hda1 and sda2. > > xvd = Xen Virtual Disk. > > -- Pasi > > > > ip="..." > > netmask="..." > > gateway="..." > > hostname = "dbsrv1" > > root = "/dev/hda1 ro" > > extra = "3 xencons=tty" > > > > thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:19 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > Ive never used pygrub before. > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:02 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > Hi, > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > I prefer installing domUs using the distro installer so things > > > like this get handled automatically. > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > Here is the domU config > > > > > > > > CONFIG_XEN=y > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > CONFIG_XEN_DEBUG_FS=y > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > CONFIG_HVC_XEN=y > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > CONFIG_XEN_BALLOON=y > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > CONFIG_XENFS=y > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 08:51 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > Hey Pasi, > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > Loading, please wait... > > > > > Begin: Loading essential drivers ... done. > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > done. > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > done. > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > mdadm: no devices found for /dev/md0 > > > > > [ 2.004392] md: md1 stopped. > > > > > mdadm: no devices found for /dev/md1 > > > > > [ 2.021788] md: md2 stopped. > > > > > mdadm: no devices found for /dev/md2 > > > > > [ 2.047173] md: md3 stopped. > > > > > mdadm: no devices found for /dev/md3 > > > > > Failure: failed to assemble all arrays. > > > > > done. > > > > > Begin: Waiting for udev to process events ... done. > > > > > done. > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > Ian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 14 May 2010 21:18 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > Np. > > > > > > > > > > -- Pasi > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 20:50 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Xen-users mailing list > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote:> No! Changed it and now boots... phew. > > Just out of interest when did the xvda option replace the sda/hda ? >It''s been like that since the beginning of upstream pvops Xen domU kernel support.. aka since Linux 2.6.24. Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, which is based on the old Xenlinux patches.> Thanks for helping me get it booted up, much appreciated! >Good that it works now. -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:58 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > Did you change the root= line aswell? > > -- Pasi > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:27 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > # -*- mode: python; -*- > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > memory = 128 > > > name = "dbsrv1" > > > vif = [''bridge=xenbr0'' ] > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > The problem is on the disk line. > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > xvd = Xen Virtual Disk. > > > > -- Pasi > > > > > > > ip="..." > > > netmask="..." > > > gateway="..." > > > hostname = "dbsrv1" > > > root = "/dev/hda1 ro" > > > extra = "3 xencons=tty" > > > > > > thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:19 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > Ive never used pygrub before. > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:02 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > Hi, > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > I prefer installing domUs using the distro installer so things > > > > like this get handled automatically. > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > Here is the domU config > > > > > > > > > > CONFIG_XEN=y > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > CONFIG_HVC_XEN=y > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > CONFIG_XEN_BALLOON=y > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > CONFIG_XENFS=y > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > -- Pasi > > > > > > > > > Thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 08:51 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > Hey Pasi, > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > Begin: Loading essential drivers ... done. > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > done. > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > done. > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > mdadm: no devices found for /dev/md0 > > > > > > [ 2.004392] md: md1 stopped. > > > > > > mdadm: no devices found for /dev/md1 > > > > > > [ 2.021788] md: md2 stopped. > > > > > > mdadm: no devices found for /dev/md2 > > > > > > [ 2.047173] md: md3 stopped. > > > > > > mdadm: no devices found for /dev/md3 > > > > > > Failure: failed to assemble all arrays. > > > > > > done. > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > done. > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 21:18 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Xen-users mailing list > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok thanks for the info. One last question :) the DomU now boots but its gets as far as Running local boot scripts (/etc/rc.local) Then hangs. I can ssh to it ok but the console doesn''t go any further, is there a parameter i need to change? Thanks Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 10:04 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote:> No! Changed it and now boots... phew. > > Just out of interest when did the xvda option replace the sda/hda ? >It''s been like that since the beginning of upstream pvops Xen domU kernel support.. aka since Linux 2.6.24. Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, which is based on the old Xenlinux patches.> Thanks for helping me get it booted up, much appreciated! >Good that it works now. -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 09:58 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > Did you change the root= line aswell? > > -- Pasi > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:27 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > # -*- mode: python; -*- > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > memory = 128 > > > name = "dbsrv1" > > > vif = [''bridge=xenbr0'' ] > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > The problem is on the disk line. > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > xvd = Xen Virtual Disk. > > > > -- Pasi > > > > > > > ip="..." > > > netmask="..." > > > gateway="..." > > > hostname = "dbsrv1" > > > root = "/dev/hda1 ro" > > > extra = "3 xencons=tty" > > > > > > thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:19 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > Ive never used pygrub before. > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > -- Pasi > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:02 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > Hi, > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > I prefer installing domUs using the distro installer so things > > > > like this get handled automatically. > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > Here is the domU config > > > > > > > > > > CONFIG_XEN=y > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > CONFIG_HVC_XEN=y > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > CONFIG_XEN_BALLOON=y > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > CONFIG_XENFS=y > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > -- Pasi > > > > > > > > > Thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 08:51 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > Hey Pasi, > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > Begin: Loading essential drivers ... done. > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > done. > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > done. > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > mdadm: no devices found for /dev/md0 > > > > > > [ 2.004392] md: md1 stopped. > > > > > > mdadm: no devices found for /dev/md1 > > > > > > [ 2.021788] md: md2 stopped. > > > > > > mdadm: no devices found for /dev/md2 > > > > > > [ 2.047173] md: md3 stopped. > > > > > > mdadm: no devices found for /dev/md3 > > > > > > Failure: failed to assemble all arrays. > > > > > > done. > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > done. > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 14 May 2010 21:18 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Xen-users mailing list > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 02:16:31PM +0100, Ian Tobin wrote:> Ok thanks for the info. > > One last question :) the DomU now boots but its gets as far as > > Running local boot scripts (/etc/rc.local) > > Then hangs. I can ssh to it ok but the console doesn''t go any further, is there a parameter i need to change? >http://wiki.xensource.com/xenwiki/XenCommonProblems -- Pasi> Thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 10:04 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote: > > No! Changed it and now boots... phew. > > > > Just out of interest when did the xvda option replace the sda/hda ? > > > > It''s been like that since the beginning of upstream pvops Xen domU kernel support.. > aka since Linux 2.6.24. > > Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, > which is based on the old Xenlinux patches. > > > Thanks for helping me get it booted up, much appreciated! > > > > Good that it works now. > > -- Pasi > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:58 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > > > > Did you change the root= line aswell? > > > > -- Pasi > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:27 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > > # -*- mode: python; -*- > > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > > memory = 128 > > > > name = "dbsrv1" > > > > vif = [''bridge=xenbr0'' ] > > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > > > > The problem is on the disk line. > > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > > > xvd = Xen Virtual Disk. > > > > > > -- Pasi > > > > > > > > > > ip="..." > > > > netmask="..." > > > > gateway="..." > > > > hostname = "dbsrv1" > > > > root = "/dev/hda1 ro" > > > > extra = "3 xencons=tty" > > > > > > > > thanks > > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:19 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > > Ive never used pygrub before. > > > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > > > -- Pasi > > > > > > > > > Thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 09:02 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > > Hi, > > > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > > > I prefer installing domUs using the distro installer so things > > > > > like this get handled automatically. > > > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > > > Here is the domU config > > > > > > > > > > > > CONFIG_XEN=y > > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > > CONFIG_HVC_XEN=y > > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > > CONFIG_XEN_BALLOON=y > > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > > CONFIG_XENFS=y > > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 17 May 2010 08:51 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > > Hey Pasi, > > > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > > Begin: Loading essential drivers ... done. > > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > > done. > > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > > done. > > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > > mdadm: no devices found for /dev/md0 > > > > > > > [ 2.004392] md: md1 stopped. > > > > > > > mdadm: no devices found for /dev/md1 > > > > > > > [ 2.021788] md: md2 stopped. > > > > > > > mdadm: no devices found for /dev/md2 > > > > > > > [ 2.047173] md: md3 stopped. > > > > > > > mdadm: no devices found for /dev/md3 > > > > > > > Failure: failed to assemble all arrays. > > > > > > > done. > > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > > done. > > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 21:18 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > > To: Ian Tobin > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Xen-users mailing list > > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks, ive looked at that but it hasn''t helped unfortunately Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 14:18 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 02:16:31PM +0100, Ian Tobin wrote:> Ok thanks for the info. > > One last question :) the DomU now boots but its gets as far as > > Running local boot scripts (/etc/rc.local) > > Then hangs. I can ssh to it ok but the console doesn''t go any further, is there a parameter i need to change? >http://wiki.xensource.com/xenwiki/XenCommonProblems -- Pasi> Thanks > > Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 10:04 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote: > > No! Changed it and now boots... phew. > > > > Just out of interest when did the xvda option replace the sda/hda ? > > > > It''s been like that since the beginning of upstream pvops Xen domU kernel support.. > aka since Linux 2.6.24. > > Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, > which is based on the old Xenlinux patches. > > > Thanks for helping me get it booted up, much appreciated! > > > > Good that it works now. > > -- Pasi > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 09:58 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > > > > Did you change the root= line aswell? > > > > -- Pasi > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:27 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > > # -*- mode: python; -*- > > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > > memory = 128 > > > > name = "dbsrv1" > > > > vif = [''bridge=xenbr0'' ] > > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > > > > The problem is on the disk line. > > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > > > xvd = Xen Virtual Disk. > > > > > > -- Pasi > > > > > > > > > > ip="..." > > > > netmask="..." > > > > gateway="..." > > > > hostname = "dbsrv1" > > > > root = "/dev/hda1 ro" > > > > extra = "3 xencons=tty" > > > > > > > > thanks > > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:19 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > > Ive never used pygrub before. > > > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > > > -- Pasi > > > > > > > > > Thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 09:02 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > > Hi, > > > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > > > I prefer installing domUs using the distro installer so things > > > > > like this get handled automatically. > > > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > > > Here is the domU config > > > > > > > > > > > > CONFIG_XEN=y > > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > > CONFIG_HVC_XEN=y > > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > > CONFIG_XEN_BALLOON=y > > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > > CONFIG_XENFS=y > > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 17 May 2010 08:51 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > > Hey Pasi, > > > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > > Begin: Loading essential drivers ... done. > > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > > done. > > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > > done. > > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > > mdadm: no devices found for /dev/md0 > > > > > > > [ 2.004392] md: md1 stopped. > > > > > > > mdadm: no devices found for /dev/md1 > > > > > > > [ 2.021788] md: md2 stopped. > > > > > > > mdadm: no devices found for /dev/md2 > > > > > > > [ 2.047173] md: md3 stopped. > > > > > > > mdadm: no devices found for /dev/md3 > > > > > > > Failure: failed to assemble all arrays. > > > > > > > done. > > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > > done. > > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 14 May 2010 21:18 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > > To: Ian Tobin > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Xen-users mailing list > > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 02:36:21PM +0100, Ian Tobin wrote:> Thanks, ive looked at that but it hasn''t helped unfortunately >If you can see the kernel boot messages but don''t get a login prompt the reason is very obvious - you don''t have a getty configured for the console device. -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 14:18 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 02:16:31PM +0100, Ian Tobin wrote: > > Ok thanks for the info. > > > > One last question :) the DomU now boots but its gets as far as > > > > Running local boot scripts (/etc/rc.local) > > > > Then hangs. I can ssh to it ok but the console doesn''t go any further, is there a parameter i need to change? > > > > http://wiki.xensource.com/xenwiki/XenCommonProblems > > -- Pasi > > > Thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 10:04 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote: > > > No! Changed it and now boots... phew. > > > > > > Just out of interest when did the xvda option replace the sda/hda ? > > > > > > > It''s been like that since the beginning of upstream pvops Xen domU kernel support.. > > aka since Linux 2.6.24. > > > > Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, > > which is based on the old Xenlinux patches. > > > > > Thanks for helping me get it booted up, much appreciated! > > > > > > > Good that it works now. > > > > -- Pasi > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:58 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > > > > > > > Did you change the root= line aswell? > > > > > > -- Pasi > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:27 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > > > # -*- mode: python; -*- > > > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > > > memory = 128 > > > > > name = "dbsrv1" > > > > > vif = [''bridge=xenbr0'' ] > > > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > > > > > > > The problem is on the disk line. > > > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > > > > > xvd = Xen Virtual Disk. > > > > > > > > -- Pasi > > > > > > > > > > > > > ip="..." > > > > > netmask="..." > > > > > gateway="..." > > > > > hostname = "dbsrv1" > > > > > root = "/dev/hda1 ro" > > > > > extra = "3 xencons=tty" > > > > > > > > > > thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 09:19 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > > > Ive never used pygrub before. > > > > > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 17 May 2010 09:02 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > > > Hi, > > > > > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > > > > > I prefer installing domUs using the distro installer so things > > > > > > like this get handled automatically. > > > > > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > > > > > Here is the domU config > > > > > > > > > > > > > > CONFIG_XEN=y > > > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > > > CONFIG_HVC_XEN=y > > > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > > > CONFIG_XEN_BALLOON=y > > > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > > > CONFIG_XENFS=y > > > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 17 May 2010 08:51 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > > > Hey Pasi, > > > > > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > > > Begin: Loading essential drivers ... done. > > > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > > > done. > > > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > > > done. > > > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > > > mdadm: no devices found for /dev/md0 > > > > > > > > [ 2.004392] md: md1 stopped. > > > > > > > > mdadm: no devices found for /dev/md1 > > > > > > > > [ 2.021788] md: md2 stopped. > > > > > > > > mdadm: no devices found for /dev/md2 > > > > > > > > [ 2.047173] md: md3 stopped. > > > > > > > > mdadm: no devices found for /dev/md3 > > > > > > > > Failure: failed to assemble all arrays. > > > > > > > > done. > > > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > > > done. > > > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 21:18 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > > > To: Ian Tobin > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > > > To: Ian Tobin > > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > Xen-users mailing list > > > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Do you mean in the domU config? I have added console=hvc0 The domU was working previously on 2.6.18.8 so all i have done is upgraded the kernel Ian -----Original Message----- From: Pasi Kärkkäinen [mailto:pasik@iki.fi] Sent: 17 May 2010 14:44 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? On Mon, May 17, 2010 at 02:36:21PM +0100, Ian Tobin wrote:> Thanks, ive looked at that but it hasn''t helped unfortunately >If you can see the kernel boot messages but don''t get a login prompt the reason is very obvious - you don''t have a getty configured for the console device. -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 14:18 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 02:16:31PM +0100, Ian Tobin wrote: > > Ok thanks for the info. > > > > One last question :) the DomU now boots but its gets as far as > > > > Running local boot scripts (/etc/rc.local) > > > > Then hangs. I can ssh to it ok but the console doesn''t go any further, is there a parameter i need to change? > > > > http://wiki.xensource.com/xenwiki/XenCommonProblems > > -- Pasi > > > Thanks > > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 10:04 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote: > > > No! Changed it and now boots... phew. > > > > > > Just out of interest when did the xvda option replace the sda/hda ? > > > > > > > It''s been like that since the beginning of upstream pvops Xen domU kernel support.. > > aka since Linux 2.6.24. > > > > Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, > > which is based on the old Xenlinux patches. > > > > > Thanks for helping me get it booted up, much appreciated! > > > > > > > Good that it works now. > > > > -- Pasi > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 09:58 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > > > > > > > Did you change the root= line aswell? > > > > > > -- Pasi > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:27 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > > > # -*- mode: python; -*- > > > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > > > memory = 128 > > > > > name = "dbsrv1" > > > > > vif = [''bridge=xenbr0'' ] > > > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > > > > > > > The problem is on the disk line. > > > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > > > > > xvd = Xen Virtual Disk. > > > > > > > > -- Pasi > > > > > > > > > > > > > ip="..." > > > > > netmask="..." > > > > > gateway="..." > > > > > hostname = "dbsrv1" > > > > > root = "/dev/hda1 ro" > > > > > extra = "3 xencons=tty" > > > > > > > > > > thanks > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 09:19 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > > > Ive never used pygrub before. > > > > > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > > > > > -- Pasi > > > > > > > > > > > Thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 17 May 2010 09:02 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > > > Hi, > > > > > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > > > > > I prefer installing domUs using the distro installer so things > > > > > > like this get handled automatically. > > > > > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > > > > > Here is the domU config > > > > > > > > > > > > > > CONFIG_XEN=y > > > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > > > CONFIG_HVC_XEN=y > > > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > > > CONFIG_XEN_BALLOON=y > > > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > > > CONFIG_XENFS=y > > > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 17 May 2010 08:51 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > > > Hey Pasi, > > > > > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > > > Begin: Loading essential drivers ... done. > > > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > > > done. > > > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > > > done. > > > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > > > mdadm: no devices found for /dev/md0 > > > > > > > > [ 2.004392] md: md1 stopped. > > > > > > > > mdadm: no devices found for /dev/md1 > > > > > > > > [ 2.021788] md: md2 stopped. > > > > > > > > mdadm: no devices found for /dev/md2 > > > > > > > > [ 2.047173] md: md3 stopped. > > > > > > > > mdadm: no devices found for /dev/md3 > > > > > > > > Failure: failed to assemble all arrays. > > > > > > > > done. > > > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > > > done. > > > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 14 May 2010 21:18 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > > > To: Ian Tobin > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > > > To: Ian Tobin > > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > Xen-users mailing list > > > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 17, 2010 at 03:08:24PM +0100, Ian Tobin wrote:> Do you mean in the domU config? > > I have added console=hvc0 >No, I mean in the guest inittab (or whatever method is used to configure the guest init daemon).> The domU was working previously on 2.6.18.8 so all i have done is upgraded the kernel >pvops kernels have different device names for disks and for the console, thus you need to re-configure your system. Your problem is described in the wiki link I sent, also the fix is there. -- Pasi> Ian > > > > -----Original Message----- > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > Sent: 17 May 2010 14:44 > To: Ian Tobin > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > On Mon, May 17, 2010 at 02:36:21PM +0100, Ian Tobin wrote: > > Thanks, ive looked at that but it hasn''t helped unfortunately > > > > If you can see the kernel boot messages but don''t get a login prompt > the reason is very obvious - you don''t have a getty configured for the console device. > > -- Pasi > > > Ian > > > > > > > > -----Original Message----- > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > Sent: 17 May 2010 14:18 > > To: Ian Tobin > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > On Mon, May 17, 2010 at 02:16:31PM +0100, Ian Tobin wrote: > > > Ok thanks for the info. > > > > > > One last question :) the DomU now boots but its gets as far as > > > > > > Running local boot scripts (/etc/rc.local) > > > > > > Then hangs. I can ssh to it ok but the console doesn''t go any further, is there a parameter i need to change? > > > > > > > http://wiki.xensource.com/xenwiki/XenCommonProblems > > > > -- Pasi > > > > > Thanks > > > > > > Ian > > > > > > > > > > > > -----Original Message----- > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > Sent: 17 May 2010 10:04 > > > To: Ian Tobin > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > On Mon, May 17, 2010 at 10:00:29AM +0100, Ian Tobin wrote: > > > > No! Changed it and now boots... phew. > > > > > > > > Just out of interest when did the xvda option replace the sda/hda ? > > > > > > > > > > It''s been like that since the beginning of upstream pvops Xen domU kernel support.. > > > aka since Linux 2.6.24. > > > > > > Note that some distros have shipped non-pvops kernels, like Debian lenny 2.6.26-2-xen, > > > which is based on the old Xenlinux patches. > > > > > > > Thanks for helping me get it booted up, much appreciated! > > > > > > > > > > Good that it works now. > > > > > > -- Pasi > > > > > > > Ian > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > Sent: 17 May 2010 09:58 > > > > To: Ian Tobin > > > > Cc: xen-users@lists.xensource.com > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > On Mon, May 17, 2010 at 09:52:37AM +0100, Ian Tobin wrote: > > > > > Oh right, i hadn''t realised it had changed. I have updated the config but am getting the same error :( > > > > > > > > > > > > > Did you change the root= line aswell? > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > Sent: 17 May 2010 09:27 > > > > > To: Ian Tobin > > > > > Cc: xen-users@lists.xensource.com > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > On Mon, May 17, 2010 at 09:23:53AM +0100, Ian Tobin wrote: > > > > > > # -*- mode: python; -*- > > > > > > kernel = "/boot/vmlinuz-2.6.33.4" > > > > > > ramdisk = "/boot/initrd.img-2.6.34.4" > > > > > > #kernel = "/boot/vmlinuz-2.6.18.8-xen" > > > > > > memory = 128 > > > > > > name = "dbsrv1" > > > > > > vif = [''bridge=xenbr0'' ] > > > > > > disk = [''phy:/dev/XEN/dbsrv1,hda1,w'',''phy:/dev/XEN/dbsrv1swap,sda2,w''] > > > > > > > > > > > > > > > > The problem is on the disk line. > > > > > You need to use xvda1 and xvda2, not hda1 and sda2. > > > > > > > > > > xvd = Xen Virtual Disk. > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > ip="..." > > > > > > netmask="..." > > > > > > gateway="..." > > > > > > hostname = "dbsrv1" > > > > > > root = "/dev/hda1 ro" > > > > > > extra = "3 xencons=tty" > > > > > > > > > > > > thanks > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > Sent: 17 May 2010 09:19 > > > > > > To: Ian Tobin > > > > > > Cc: xen-users@lists.xensource.com > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > On Mon, May 17, 2010 at 09:17:24AM +0100, Ian Tobin wrote: > > > > > > > Ive never used pygrub before. > > > > > > > > > > > > > > I did try chrooting but it was complaining about the initramfs command not being found. > > > > > > > > > > > > > > So if the XEN stuff is ok, what else do you think it could be? > > > > > > > > > > > > > > > > > > > Paste your /etc/xen/<guest> cfgfile. > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > Sent: 17 May 2010 09:02 > > > > > > > To: Ian Tobin > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > On Mon, May 17, 2010 at 08:54:35AM +0100, Ian Tobin wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > How do you gernerate it from DomU when it wont boot? > > > > > > > > > > > > > > > > > > > > > > Well.. mount + chroot + mkinitrd from dom0 might work. > > > > > > > > > > > > > > I prefer installing domUs using the distro installer so things > > > > > > > like this get handled automatically. > > > > > > > > > > > > > > And I prefer using Xen pygrub so I don''t have to have the kernel+initrd in dom0 at all! > > > > > > > > > > > > > > > Here is the domU config > > > > > > > > > > > > > > > > CONFIG_XEN=y > > > > > > > > CONFIG_XEN_MAX_DOMAIN_MEMORY=32 > > > > > > > > CONFIG_XEN_SAVE_RESTORE=y > > > > > > > > CONFIG_XEN_DEBUG_FS=y > > > > > > > > CONFIG_XEN_BLKDEV_FRONTEND=y > > > > > > > > > > > > > > > > > > > > > > So the xen-blkfront is compiled in, you don''t necessarily need an initrd then. > > > > > > > > > > > > > > > > > > > > > > CONFIG_NETXEN_NIC=m > > > > > > > > CONFIG_XEN_NETDEV_FRONTEND=y > > > > > > > > CONFIG_XEN_KBDDEV_FRONTEND=y > > > > > > > > CONFIG_HVC_XEN=y > > > > > > > > CONFIG_XEN_FBDEV_FRONTEND=y > > > > > > > > CONFIG_XEN_BALLOON=y > > > > > > > > CONFIG_XEN_SCRUB_PAGES=y > > > > > > > > CONFIG_XEN_DEV_EVTCHN=y > > > > > > > > CONFIG_XENFS=y > > > > > > > > CONFIG_XEN_COMPAT_XENFS=y > > > > > > > > CONFIG_XEN_SYS_HYPERVISOR=y > > > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > Sent: 17 May 2010 08:51 > > > > > > > > To: Ian Tobin > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > On Mon, May 17, 2010 at 08:40:34AM +0100, Ian Tobin wrote: > > > > > > > > > Hey Pasi, > > > > > > > > > > > > > > > > > > Ive downloaded 2.6.33.4 from kernel.org. The XEN stuff is compiled as static and so is raid,i have created a initrd image by issueing the following (Debian OS) > > > > > > > > > > > > > > > > > > Mkinitramfs -o /boot/initrd.img-2.6.33.4 2.6.33.4 > > > > > > > > > > > > > > > > > > > > > > > > > Did you generate the initrd in dom0? You should generate it in domU.. > > > > > > > > then you won''t have all the dom0-specific md-raid stuff etc there. > > > > > > > > > > > > > > > > > When booting i get the same error > > > > > > > > > > > > > > > > > > > > > > > > > > > Loading, please wait... > > > > > > > > > Begin: Loading essential drivers ... done. > > > > > > > > > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.33.4/kernel/drivers/acpi/fan.ko): No such device > > > > > > > > > FATAL: Error inserting thermal (/lib/modules/2.6.33.4/kernel/drivers/acpi/thermal.ko): No such device > > > > > > > > > done. > > > > > > > > > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: LoadingFailure: failed to load module raid1. > > > > > > > > > done. > > > > > > > > > Begin: Assembling all MD arrays ... [ 1.991528] md: md0 stopped. > > > > > > > > > mdadm: no devices found for /dev/md0 > > > > > > > > > [ 2.004392] md: md1 stopped. > > > > > > > > > mdadm: no devices found for /dev/md1 > > > > > > > > > [ 2.021788] md: md2 stopped. > > > > > > > > > mdadm: no devices found for /dev/md2 > > > > > > > > > [ 2.047173] md: md3 stopped. > > > > > > > > > mdadm: no devices found for /dev/md3 > > > > > > > > > Failure: failed to assemble all arrays. > > > > > > > > > done. > > > > > > > > > Begin: Waiting for udev to process events ... done. > > > > > > > > > done. > > > > > > > > > Begin: Waiting for root file system ... > > > > > > > > > > > > > > > > > > > > > > > > > > > Im not sure if i have missed something out, any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > Please paste "grep XEN .config" from the domU kernel. > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > Sent: 14 May 2010 21:18 > > > > > > > > > To: Ian Tobin > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 09:05:02PM +0100, Ian Tobin wrote: > > > > > > > > > > Oh right, thats new to me. Ive never had to do that before, is that new to the pv_ops? > > > > > > > > > > > > > > > > > > > > > > > > > > > > It''s not really pvops specific.. it''s more about the fact that nowadays all/most > > > > > > > > > drivers are built as modules - so you need to have an initrd image to load them. > > > > > > > > > > > > > > > > > > If you compiled all the xen* stuff as static/built-in then you wouldn''t need an initrd.. > > > > > > > > > > > > > > > > > > > Many thanks for the info, you learn something new everyday :) > > > > > > > > > > > > > > > > > > > > > > > > > > > > Np. > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > Sent: 14 May 2010 20:50 > > > > > > > > > > To: Ian Tobin > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:45:03PM +0100, Ian Tobin wrote: > > > > > > > > > > > Ah ok, what would be the procedure to do that? > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Usually it''s best to generate the initrd image in the guest, > > > > > > > > > > and use the distro provided domU kernel. > > > > > > > > > > > > > > > > > > > > If you install the guest using the guest distro installer it''ll do it for you automatically. > > > > > > > > > > > > > > > > > > > > You can also do it from dom0.. example for centos/rhel/fedora: > > > > > > > > > > > > > > > > > > > > mkinitrd -v -f --with-module=xenblk --with-module=xennet /boot/initrd-domU-version.img <kernelversion> > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > > Sent: 14 May 2010 20:32 > > > > > > > > > > > To: Ian Tobin > > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 08:27:50PM +0100, Ian Tobin wrote: > > > > > > > > > > > > Ok strange. I have set the DomU config to use the kernel i use for Dom0 and when booting it gets so far to mount the root filesystem and then complains that it cant load the raid1 module which then says it can''t load md0, md1, md2 and md3 which are my Dom0 software raid disks. > > > > > > > > > > > > > > > > > > > > > > > > When i use the 2.6.8.18 kernel the domU boots fine. > > > > > > > > > > > > > > > > > > > > > > > > I have in the config to use the initrd.img-2.6.32.12 ram disk but it doesn''t work, am i missing something obvious? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Are you using the dom0 initrd for domU? > > > > > > > > > > > If you are, you shouldn''t. > > > > > > > > > > > > > > > > > > > > > > domU needs to have its own initrd that loads drivers for the virtual hardware the Xen guest has.. > > > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > > From: Pasi Kärkkäinen [mailto:pasik@iki.fi] > > > > > > > > > > > > Sent: 14 May 2010 19:48 > > > > > > > > > > > > To: Ian Tobin > > > > > > > > > > > > Cc: xen-users@lists.xensource.com > > > > > > > > > > > > Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? > > > > > > > > > > > > > > > > > > > > > > > > On Fri, May 14, 2010 at 03:08:57PM +0100, Ian Tobin wrote: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Just wondered if we can use the pv_ops kernel in Jermeys tree for linux PV > > > > > > > > > > > > > domU or do we need to get that one from kernel.org ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Both will work. > > > > > > > > > > > > > > > > > > > > > > > > upstream kernel.org kernels do have basic Xen PV domU support out-of-the-box. > > > > > > > > > > > > Jeremy''s tree has some additional features, like pcifront/pciback etc, > > > > > > > > > > > > that are not yet upstream. > > > > > > > > > > > > > > > > > > > > > > > > -- Pasi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ian > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > > Xen-users mailing list > > > > > > > > > > > > > Xen-users@lists.xensource.com > > > > > > > > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi!> I have added console=hvc0This is why you are able to see initial boot messages.> The domU was working previously on 2.6.18.8 so all i have done is upgraded the kernelJa, and now you need to change the line with tty0 in /etc/inittab to look like: 1:2345:respawn:/sbin/getty 38400 hvc0. -- Adi PS: This can be read in http://wiki.xensource.com/xenwiki/XenCommonProblems: "Console of my PV guest shows kernel boot messages and then it stops and doesn''t work anymore"... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for the info guys, all working now Ian -----Original Message----- From: Adi Kriegisch [mailto:kriegisch@vrvis.at] Sent: 17 May 2010 15:24 To: Ian Tobin Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pv_ops Dom0 kernel for DomU? Hi!> I have added console=hvc0This is why you are able to see initial boot messages.> The domU was working previously on 2.6.18.8 so all i have done is upgraded the kernelJa, and now you need to change the line with tty0 in /etc/inittab to look like: 1:2345:respawn:/sbin/getty 38400 hvc0. -- Adi PS: This can be read in http://wiki.xensource.com/xenwiki/XenCommonProblems: "Console of my PV guest shows kernel boot messages and then it stops and doesn't work anymore"... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users