Hi All, The following is my domU''s cfg file. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel = ''/usr/local/src/xen/vmlinuz'' ramdisk = ''/usr/local/src/xen/initrd.img'' memory = ''256'' name = ''centos5.2'' vif0 = [ ''bridge=xenbr1'' ] disk = [ ''phy:/dev/server/cbox,xvda,w'' ] on_reboot = ''destroy'' # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I had checked the /dev/xvda and no such file or directory found. I''ve google around and found out using the command "mknod /dev/xvda b 220 0" so after that I try to give run the domU and everything went fine. My only problem is during CentOS installation, the domU disk drive is unable to find or any devices of the type needed for the installation type. BTW, I forgot to tell you my dom0 is Debian and domU is CentOS. I am following this howto link < http://www.hostinggeek.com/2008/04/installing-centos-5-as-domu-with-debian.html>.Does anyone explain why it appears like this? It seems like the domU''s disk is not detected in CentOS installation. Thanks in advanced. Cheers, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/3 James Corteciano <linux@gascortrading.com>:> kernel = ''/usr/local/src/xen/vmlinuz'' > ramdisk = ''/usr/local/src/xen/initrd.img'' > disk = [ ''phy:/dev/server/cbox,xvda,w'' ] > > I had checked the /dev/xvda and no such file or directory found. I''ve google > around and found out using the command "mknod /dev/xvda b 220 0" so after > that I try to give run the domU and everything went fine.You mean you created /dev/xvda on the dom0? If so, you don''t need to do that, on the other hand it needs to exist inside the domU, presumably it''s a hard-coded device in /dev from the initrd rather than udev created (it''d be to late), I''ve never had to check.> I am following this howto link > <http://www.hostinggeek.com/2008/04/installing-centos-5-as-domu-with-debian.html>.I wonder why it mixes its xvd* and sd* devices? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, To use xvd* devices, you need to modprobe xen related paravirtual modules (unmodified_drivers) inside your DomU. Then your xvda devices will appear. In my distribution (Pardus 2008), these drivers are called:xenblk xenfb gntdev xennet xenkbd To use them, you modprobe them when the system is up, or if you want to use them as your root disk, then you need to create an initramfs with these modules inside. Best Regards, Emre On Wed, Sep 3, 2008 at 12:37 PM, Andy Burns <xen.lists@burns.me.uk> wrote:> 2008/9/3 James Corteciano <linux@gascortrading.com>: > > > kernel = ''/usr/local/src/xen/vmlinuz'' > > ramdisk = ''/usr/local/src/xen/initrd.img'' > > disk = [ ''phy:/dev/server/cbox,xvda,w'' ] > > > > I had checked the /dev/xvda and no such file or directory found. I''ve > google > > around and found out using the command "mknod /dev/xvda b 220 0" so after > > that I try to give run the domU and everything went fine. > > You mean you created /dev/xvda on the dom0? If so, you don''t need to > do that, on the other hand it needs to exist inside the domU, > presumably it''s a hard-coded device in /dev from the initrd rather > than udev created (it''d be to late), I''ve never had to check. > > > I am following this howto link > > < > http://www.hostinggeek.com/2008/04/installing-centos-5-as-domu-with-debian.html > >. > > I wonder why it mixes its xvd* and sd* devices? > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Emre _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Emre, Sorry for the late response. How could I modprobe xen inside the DomU? I knew to do it in dom0 only. Thanks. James On Wed, Sep 3, 2008 at 7:33 PM, Emre Erenoglu <erenoglu@gmail.com> wrote:> Hi, > > To use xvd* devices, you need to modprobe xen related paravirtual modules > (unmodified_drivers) inside your DomU. Then your xvda devices will appear. > > In my distribution (Pardus 2008), these drivers are called:xenblk xenfb > gntdev xennet xenkbd > > To use them, you modprobe them when the system is up, or if you want to use > them as your root disk, then you need to create an initramfs with these > modules inside. > > Best Regards, > > Emre > > > On Wed, Sep 3, 2008 at 12:37 PM, Andy Burns <xen.lists@burns.me.uk> wrote: > >> 2008/9/3 James Corteciano <linux@gascortrading.com>: >> >> > kernel = ''/usr/local/src/xen/vmlinuz'' >> > ramdisk = ''/usr/local/src/xen/initrd.img'' >> > disk = [ ''phy:/dev/server/cbox,xvda,w'' ] >> > >> > I had checked the /dev/xvda and no such file or directory found. I''ve >> google >> > around and found out using the command "mknod /dev/xvda b 220 0" so >> after >> > that I try to give run the domU and everything went fine. >> >> You mean you created /dev/xvda on the dom0? If so, you don''t need to >> do that, on the other hand it needs to exist inside the domU, >> presumably it''s a hard-coded device in /dev from the initrd rather >> than udev created (it''d be to late), I''ve never had to check. >> >> > I am following this howto link >> > < >> http://www.hostinggeek.com/2008/04/installing-centos-5-as-domu-with-debian.html >> >. >> >> I wonder why it mixes its xvd* and sd* devices? >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > > > -- > Emre > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Linux Registered User #380364 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi James, On Tue, Sep 9, 2008 at 6:01 PM, James Corteciano <linux@gascortrading.com>wrote:> Hi Emre, > > Sorry for the late response. > > How could I modprobe xen inside the DomU? I knew to do it in dom0 only. > > Thanks. > James >To make things clear, the things that I''m mentioning here only applies for fully virtualized HVM guests. If the modules are compiled in kernel or as modules, you just need to become root and say: modprobe xenblk modprobe xennet That would also trigger some other xen related modules such as the pci and balloon drivers. This will only happen if the modules are there. If your distribution didn''t provide these modules, you can either: - download the unmodified_drivers folder from the xen kernel and try to compile it in your domu - try to use Xen''s own kernels and then compile the unmodified_drivers This will create the devices in your /dev folder. You can check the output of modprobe by dmesg command. For further info, you can check out the mail archive and/or google for paravirtual drivers for hvm guests. Emre _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users