I configured an LogicalVolume of 15G to install an XP hvm on. But I don''t know how to define the ''disk'' configuration for the config script for "xl create". I also don''t know the format for the cdrom disk entry. As a general guide I''m using the example in xen sources (./tools/examples/xlexample.hvm) # pvs PV VG Fmt Attr PSize PFree /dev/sda11 guestsVG lvm2 a- 119.29g 104.29g # vgs VG #PV #LV #SN Attr VSize VFree guestsVG 1 1 0 wz--n- 119.29g 104.29g lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert xpVol guestsVG -wi-a- 15.00g disk = [ ''guestsVG/xpVol,raw,xvda,rw'',''/dev/sr0,raw,hdc,devtype=cdrom'' ] The above line is obviously wrong. What is the correct format? My cdrom is /dev/sr0. I compiled a "mainline" kernel (3.5.4) using the guide at http://wiki.xen.org/wiki/Mainline_Linux_Kernel_Configs on Ubuntu 12.04.
On Fri, 2012-09-21 at 19:35 +0100, Skippy VonDrake wrote:> I configured an LogicalVolume of 15G to install an XP hvm on. > > But I don''t know how to define the ''disk'' configuration for the config > script for "xl create". > I also don''t know the format for the cdrom disk entry.The xl.cfg(5) man pages references docs/misc/xl-disk-configuration.txt which defines the syntax. You can find this in the Xen source tree or online at http://xenbits.xen.org/docs/4.2-testing/ (or .../unstable/). One helpful tip for debugging this sort of thing is to do xl -N block-attach 0 <disk-spec> This will print out the result of parsing disk-spec (-N == dry-run) so you can see if it looks like what you were trying to say. Ian.
Thanks for the help, guys. For the record my disk config worked as: disk = [ ''phy:/dev/guestsVG/xpVol,hda,w'',''phy:/dev/sr0,xvdc:cdrom,r'' ] "Worked" as in the domain was created but I couldn''t connect to it. But I''ll start a new thread for that problem. Skippy On Mon, Sep 24, 2012 at 4:38 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:> On Fri, 2012-09-21 at 19:35 +0100, Skippy VonDrake wrote: >> I configured an LogicalVolume of 15G to install an XP hvm on. >> >> But I don''t know how to define the ''disk'' configuration for the config >> script for "xl create". >> I also don''t know the format for the cdrom disk entry. > > The xl.cfg(5) man pages references docs/misc/xl-disk-configuration.txt > which defines the syntax. You can find this in the Xen source tree or > online at http://xenbits.xen.org/docs/4.2-testing/ (or .../unstable/). > > One helpful tip for debugging this sort of thing is to do > xl -N block-attach 0 <disk-spec> > This will print out the result of parsing disk-spec (-N == dry-run) so > you can see if it looks like what you were trying to say. > > Ian. > >