Hi, I''m trying to have lvm-based xen setup on CentOS (5.6) dom0 I''ve kept a dedicated partition for this purpose, created PV & LVM as follows. pvcreate /dev/sdaX vgcreate xenvm /dev/sdaX lvcreate -L10240M -n vm-test-1 xenvm mkfs.ext3 /dev/xenvm/vm-ldap-1 Now using following configuration file for installing (CentOS) on this LV named vm-test-1 kernel = "/boot/vmlinuz" ramdisk = "/boot/initrd.img" extra = "text ks=http://test.example.com/centos-6.2.cfg" name = "vmtest-1" memory = "512" disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] vif = [ ''bridge=xenbr0'', ] vcpus=1 on_reboot = ''destroy'' on_crash = ''destroy'' After staring the server using xm create file.cfg It complaints regarding "no suitable drives found for installation". Am I missing some steps here ? Thanks & Regards, Meghanand N. Acharekar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Found the problem Since I want use LVM as raw drive (to perform fresh installation via kickstart) Formatting LV was not required # mkfs.ext3 /dev/xenvm/vm-test-1 Regards, Meghanand N. Acharekar On Wed, Mar 14, 2012 at 4:42 PM, Meghanand Acharekar <vasco.debian@gmail.com> wrote:> > > On Wed, Mar 14, 2012 at 3:28 PM, Benjamin Schweikert < > b.schweikert@googlemail.com> wrote: > >> Hi, >> i think there is the error: >> disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] >> >> check the path please. as far as i know it should be something like: >> /dev/mapper/vm-test-1--vm-test-1 >> >> I''ve used different name here. > > # lvscan > ACTIVE ''/dev/xenvm/vm-test-1'' [10.00 GB] inherit > > >> Ben >> >> 2012/3/14 Meghanand Acharekar <vasco.debian@gmail.com>: >> > Hi, >> > >> > I''m trying to have lvm-based xen setup on CentOS (5.6) dom0 >> > I''ve kept a dedicated partition for this purpose, created PV & LVM as >> > follows. >> > >> > pvcreate /dev/sdaX >> > vgcreate xenvm /dev/sdaX >> > lvcreate -L10240M -n vm-test-1 xenvm >> > mkfs.ext3 /dev/xenvm/vm-ldap-1 >> > >> > Now using following configuration file for installing (CentOS) on this >> LV >> > named vm-test-1 >> > >> > kernel = "/boot/vmlinuz" >> > ramdisk = "/boot/initrd.img" >> > extra = "text ks=http://test.example.com/centos-6.2.cfg" >> > name = "vmtest-1" >> > memory = "512" >> > disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] >> > vif = [ ''bridge=xenbr0'', ] >> > vcpus=1 >> > on_reboot = ''destroy'' >> > on_crash = ''destroy'' >> > >> > After staring the server using xm create file.cfg >> > It complaints regarding "no suitable drives found for installation". >> > >> > Am I missing some steps here ? >> > >> > Thanks & Regards, >> > Meghanand N. Acharekar >> > >> > >> > _______________________________________________ >> > Xen-users mailing list >> > Xen-users@lists.xen.org >> > http://lists.xen.org/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
I''m a little confused, if you are going to use the LV as a raw drive, then there is no need for mkfs. I see in your OP that you set the mkfs command on vm-ldap-1 where all the other commands reference vm-test-1 is this just a typo? or did the wrong LV get formatted? Otherwise, everything looks correct. From what I have seen you can address the logical volumes either with /dev/mapper/{vg}-{lv} method or /dev/{vg}/{lv} so that shouldn''t cause any problems. I haven''t used kickstarter, so I don''t know if your boot options are included in there, but I don''t see where your VM is supposed to pull a viable boot from (Either form a CD, ISO, or other OS.) Hope this is helpful. Shane On Wed, Mar 14, 2012 at 8:03 AM, Meghanand Acharekar <vasco.debian@gmail.com> wrote:> Found the problem > > Since I want use LVM as raw drive (to perform fresh installation via > kickstart) > Formatting LV was not required > > # mkfs.ext3 /dev/xenvm/vm-test-1 > > Regards, > Meghanand N. Acharekar > > > > On Wed, Mar 14, 2012 at 4:42 PM, Meghanand Acharekar < > vasco.debian@gmail.com> wrote: > >> >> >> On Wed, Mar 14, 2012 at 3:28 PM, Benjamin Schweikert < >> b.schweikert@googlemail.com> wrote: >> >>> Hi, >>> i think there is the error: >>> disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] >>> >>> check the path please. as far as i know it should be something like: >>> /dev/mapper/vm-test-1--vm-test-1 >>> >>> I''ve used different name here. >> >> # lvscan >> ACTIVE ''/dev/xenvm/vm-test-1'' [10.00 GB] inherit >> >> >>> Ben >>> >>> 2012/3/14 Meghanand Acharekar <vasco.debian@gmail.com>: >>> > Hi, >>> > >>> > I''m trying to have lvm-based xen setup on CentOS (5.6) dom0 >>> > I''ve kept a dedicated partition for this purpose, created PV & LVM as >>> > follows. >>> > >>> > pvcreate /dev/sdaX >>> > vgcreate xenvm /dev/sdaX >>> > lvcreate -L10240M -n vm-test-1 xenvm >>> > mkfs.ext3 /dev/xenvm/vm-ldap-1 >>> > >>> > Now using following configuration file for installing (CentOS) on this >>> LV >>> > named vm-test-1 >>> > >>> > kernel = "/boot/vmlinuz" >>> > ramdisk = "/boot/initrd.img" >>> > extra = "text ks=http://test.example.com/centos-6.2.cfg" >>> > name = "vmtest-1" >>> > memory = "512" >>> > disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] >>> > vif = [ ''bridge=xenbr0'', ] >>> > vcpus=1 >>> > on_reboot = ''destroy'' >>> > on_crash = ''destroy'' >>> > >>> > After staring the server using xm create file.cfg >>> > It complaints regarding "no suitable drives found for installation". >>> > >>> > Am I missing some steps here ? >>> > >>> > Thanks & Regards, >>> > Meghanand N. Acharekar >>> > >>> > >>> > _______________________________________________ >>> > Xen-users mailing list >>> > Xen-users@lists.xen.org >>> > http://lists.xen.org/xen-users >>> >> >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >-- Shane D. Johnson IT Administrator Rasmussen Equipment _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Thanks for your reply Shane, There what I made mistake, I formatted the LV as ext3 file system due to which it was not getting detected in CentOS installer. I came to understand this after observing the xend-logs which was trying to recognize it as RAW device. I''m having one more query, I have installed CentOS on once of the domU using this setups. Since we can create snapshots for LV, is it possible to use these snapshots as disk images for booting new domU, In order to replicate same configuration over multiple domU On Wed, Mar 14, 2012 at 8:22 PM, Shane Johnson <sdj@rasmussenequipment.com>wrote:> I''m a little confused, if you are going to use the LV as a raw drive, then > there is no need for mkfs. I see in your OP that you set the mkfs command > on vm-ldap-1 where all the other commands reference vm-test-1 is this just > a typo?Yes this a typo mistake ?> or did the wrong LV get formatted? Otherwise, everything looks correct. > From what I have seen you can address the logical volumes either with > /dev/mapper/{vg}-{lv} method or /dev/{vg}/{lv} so that shouldn''t cause any > problems.I haven''t used kickstarter, so I don''t know if your boot options are> included in there, but I don''t see where your VM is supposed to pull a > viable boot from (Either form a CD, ISO, or other OS.) Hope this is > helpful.Yes, Kickstart configuration takes care of everything.> > Shane > > > On Wed, Mar 14, 2012 at 8:03 AM, Meghanand Acharekar < > vasco.debian@gmail.com> wrote: > >> Found the problem >> >> Since I want use LVM as raw drive (to perform fresh installation via >> kickstart) >> Formatting LV was not required >> >> # mkfs.ext3 /dev/xenvm/vm-test-1 >> >> Regards, >> Meghanand N. Acharekar >> >> >> >> On Wed, Mar 14, 2012 at 4:42 PM, Meghanand Acharekar < >> vasco.debian@gmail.com> wrote: >> >>> >>> >>> On Wed, Mar 14, 2012 at 3:28 PM, Benjamin Schweikert < >>> b.schweikert@googlemail.com> wrote: >>> >>>> Hi, >>>> i think there is the error: >>>> disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] >>>> >>>> check the path please. as far as i know it should be something like: >>>> /dev/mapper/vm-test-1--vm-test-1 >>>> >>>> I''ve used different name here. >>> >>> # lvscan >>> ACTIVE ''/dev/xenvm/vm-test-1'' [10.00 GB] inherit >>> >>> >>>> Ben >>>> >>>> 2012/3/14 Meghanand Acharekar <vasco.debian@gmail.com>: >>>> > Hi, >>>> > >>>> > I''m trying to have lvm-based xen setup on CentOS (5.6) dom0 >>>> > I''ve kept a dedicated partition for this purpose, created PV & LVM as >>>> > follows. >>>> > >>>> > pvcreate /dev/sdaX >>>> > vgcreate xenvm /dev/sdaX >>>> > lvcreate -L10240M -n vm-test-1 xenvm >>>> > mkfs.ext3 /dev/xenvm/vm-ldap-1 >>>> > >>>> > Now using following configuration file for installing (CentOS) on >>>> this LV >>>> > named vm-test-1 >>>> > >>>> > kernel = "/boot/vmlinuz" >>>> > ramdisk = "/boot/initrd.img" >>>> > extra = "text ks=http://test.example.com/centos-6.2.cfg" >>>> > name = "vmtest-1" >>>> > memory = "512" >>>> > disk = [ ''phy:/dev/xenvm/vm-test-1,xvda,w'', ] >>>> > vif = [ ''bridge=xenbr0'', ] >>>> > vcpus=1 >>>> > on_reboot = ''destroy'' >>>> > on_crash = ''destroy'' >>>> > >>>> > After staring the server using xm create file.cfg >>>> > It complaints regarding "no suitable drives found for installation". >>>> > >>>> > Am I missing some steps here ? >>>> > >>>> > Thanks & Regards, >>>> > Meghanand N. Acharekar >>>> > >>>> > >>>> > _______________________________________________ >>>> > Xen-users mailing list >>>> > Xen-users@lists.xen.org >>>> > http://lists.xen.org/xen-users >>>> >>> >>> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> > > > > -- > Shane D. Johnson > IT Administrator > Rasmussen Equipment >Regards, Meghanand N. Acharekar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users