[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] LVM based Xen setup.



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@xxxxxxxxx> 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@xxxxxxxxx> wrote:


On Wed, Mar 14, 2012 at 3:28 PM, Benjamin Schweikert <b.schweikert@xxxxxxxxxxxxxx> 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@xxxxxxxxx>:
> 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
> > > > >
> 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@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users



--
Shane D. Johnson
IT Administrator
Rasmussen Equipment


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.