Dorian
2013-Sep-24 14:02 UTC
settings for create Windows7.cfg file / for this HVM DomU, usage with lvm partition and booted from cdrom drive
Hello, I''m pushing further my investigation, research in testing Xen VM''s. I have a Xen kernel 4.0 working on Debian squeeze distro. I have 2 Debian and 1 Ubuntu PV DomU running, all using the LVM partition (/dev/sda2). Finally got bridged network from/to my DomU''s. I want to test windows as well as a HVM DomU. For this purpose I followed following Tutorial: http://wiki.xen.org/wiki/Xen_Beginners_Guide First I created # lvcreate -nwindows -L20G Esp-Virt, logical volume and then I need to configure a filehttp://www.virtuatopia.com/index.php/Installing_and_Running_Windows_7_as_a_Xen_HVM_domainU_Guest in my windows7.cfg i got: kernel = "/usr/lib/xen-4.0/boot/hvmloader" builder=''hvm'' memory = 1048 vcpus=2 name = "win7" vif = [''bridge=xenbr0''] disk = [''phy:/dev/Esp-Virt/,sda,w'',''/media/cdrom0,scd0:cdrom,r''] acpi = 1 device_model = ''qemu-dm'' boot="d" sdl=0 serial=''pty'' vnc=1 vnclisten="" vncpasswd="" I get an error upon xm create windows7.cfg, I tried with hda/sda/ sda2, etc but none worked: # Block device must have physical details specified !! I got also # Error: Disk image does not exist : /media/cdrom0 when I put other details for the disk stanza. I read that ''file'' can be used other than ''phy'' but in my case, lvm for the storage and cdrom for the source I guess it is not a choice. I suspect the disk line to be misconfigured. both ''phy'' and ''/media'' stanza are gibberish I''m afraid, I guess! So I would like to know what would I detail in this line. I provide with a maximum of info related i.o You to propose me the better configuration, considering following: Do not hesitate to ask me providing more details as necessary, as here is all the personal insight I have. About the windows cdrom from which to pull the data, the name of it is "Windows 7 AiO v5". Other following details I use: lvm vg=Esp-Virt , lv=windows (see above), # fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 1 33814 271607808 7 HPFS/NTFS /dev/sda2 33815 37638 30716280 83 Linux // This is the LVM/PV storage area /dev/sda3 37639 38914 10243073 5 Extended /dev/sda5 * 37639 38855 9774080 83 Linux // This is the Host /dev/sda6 38856 38914 467968 82 Linux swap / Solaris Disk /dev/dm-0 ranging to dm-6 // /dev/dm-6 has 16,3G un/allocated and is intended to invite the windows HVM. ranging: there are several other virtual partitions upon xm lvcreate. All advice: Disk /dev/dm-[0-6] doesn''t contain a valid partition table. I ignore this message. Set me upright again if I misexplain, I consider that the LVM partitiion, here with mentioned, is never formated and/but offers variable automatic allocation for the lv created in it as long as the pv can allow. # mount /dev/sda5 on / type ext3 (rw,errors=remount-ro) /dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,user=dorian) // this is good to know about for the media my windows data rely on # cat /etc/fstab /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 // same as previous Best regards, _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
David Sutton
2013-Sep-24 16:26 UTC
Re: settings for create Windows7.cfg file / for this HVM DomU, usage with lvm partition and booted from cdrom drive
Dorian, On Tue, Sep 24, 2013 at 9:02 AM, Dorian <dechangydorian@yahoo.fr> wrote:> Hello, > > I''m pushing further my investigation, research in testing Xen VM''s. > I have a Xen kernel 4.0 working on Debian squeeze distro. > I have 2 Debian and 1 Ubuntu PV DomU running, all using the LVM partition > (/dev/sda2). Finally got bridged network from/to my DomU''s. > I want to test windows as well as a HVM DomU. > For this purpose I followed following Tutorial: > http://wiki.xen.org/wiki/Xen_Beginners_Guide > First I created # lvcreate -nwindows -L20G Esp-Virt, logical volume > and then I need to configure a filehttp://www.virtuatopia.com/index.php/Installing_and_Running_Windows_7_as_a_Xen_HVM_domainU_Guest > in my windows7.cfg i got: > > kernel = "/usr/lib/xen-4.0/boot/hvmloader" > builder=''hvm'' > memory = 1048 > vcpus=2 > name = "win7" > vif = [''bridge=xenbr0''] > disk = [''phy:/dev/Esp-Virt/,sda,w'',''/media/cdrom0,scd0:cdrom,r''] > >This disk line looks incorrect to me - the path to the lvm volume looks incomplete, should be something like /dev/Esp-Virt/windows ? Also, for the CDRom, it sounds like it''s expecting to find an ISO image, since you''ve not specified the cdrom device, instead pointing at the mount point. acpi = 1> device_model = ''qemu-dm'' > boot="d" > sdl=0 > serial=''pty'' > vnc=1 > vnclisten="" > vncpasswd="" > > I get an error upon xm create windows7.cfg, I tried with hda/sda/ sda2, > etc but none worked: > # Block device must have physical details specified !! > I got also # Error: Disk image does not exist : /media/cdrom0 when I put > other details for the disk stanza. > I read that ''file'' can be used other than ''phy'' but in my case, lvm for > the storage and cdrom for the source I guess it is not a choice. > I suspect the disk line to be misconfigured. both ''phy'' and ''/media'' > stanza are gibberish I''m afraid, I guess! > So I would like to know what would I detail in this line. I provide with > a maximum of info related i.o You to propose me the better configuration, > considering following: > Do not hesitate to ask me providing more details as necessary, as here is > all the personal insight I have. > > About the windows cdrom from which to pull the data, the name of it is > "Windows 7 AiO v5". > > Other following details I use: lvm vg=Esp-Virt , lv=windows (see above), > > # fdisk -l > Device Boot Start End Blocks Id System > /dev/sda1 * 1 33814 271607808 7 HPFS/NTFS > /dev/sda2 33815 37638 30716280 83 Linux > // This is the LVM/PV storage area > /dev/sda3 37639 38914 10243073 5 Extended > /dev/sda5 * 37639 38855 9774080 83 Linux > // This is the Host > /dev/sda6 38856 38914 467968 82 Linux swap / > Solaris > > Disk /dev/dm-0 ranging to dm-6 // > /dev/dm-6 has 16,3G un/allocated and is intended to invite the > windows HVM. > ranging: there are several other virtual partitions upon xm lvcreate. All > advice: Disk /dev/dm-[0-6] doesn''t contain a valid partition table. I > ignore this message. Set me upright again if I misexplain, I consider that > the LVM partitiion, here with mentioned, is never formated and/but offers > variable automatic allocation for the lv created in it as long as the pv > can allow. > > # mount > /dev/sda5 on / type ext3 (rw,errors=remount-ro) > /dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,user=dorian) > // this is good to know about for the media my windows data rely on > > # cat /etc/fstab > /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 > // same as previous > > Best regards, > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >Regards, David _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Dorian Carpentier de Changy
2013-Sep-24 17:39 UTC
Re: settings for create Windows7.cfg file / for this HVM DomU, usage with lvm partition and booted from cdrom drive
David Sutton
2013-Sep-24 21:44 UTC
Re: settings for create Windows7.cfg file / for this HVM DomU, usage with lvm partition and booted from cdrom drive
Dorian, On Tue, Sep 24, 2013 at 12:39 PM, Dorian Carpentier de Changy < dechangydorian@yahoo.fr> wrote:> > Le 24/09/2013 18:26, David Sutton a écrit : > > Dorian, > > > >> kernel = "/usr/lib/xen-4.0/boot/hvmloader" >> builder=''hvm'' >> memory = 1048 >> vcpus=2 >> name = "win7" >> vif = [''bridge=xenbr0''] >> disk = [''phy:/dev/Esp-Virt/,sda,w'',''/media/cdrom0,scd0:cdrom,r''] >> >> > This disk line looks incorrect to me - the path to the lvm volume looks > incomplete, should be something like /dev/Esp-Virt/windows ? Also, for the > CDRom, it sounds like it''s expecting to find an ISO image, since you''ve not > specified the cdrom device, instead pointing at the mount point. > > I can agree with your analysis. For one share, I put > phy:/dev/Esp-Virt/win7,sda,w > For the other share, even if I add after all the iso name (maybe stupid > question but what command shows the type of format buried on the dvd e.g. > iso? In the mean time I checked it on M$ system and shows up like it is > .iso) . I get the below alert. I''m unsure how to parse the parameters. If > the details I provide below could help, I would be glad to know how sounds > like cdrom device? > I get still the error; * Block device must have physical details > specified. *what does it mean! Is this pointing to the cdrom device or to > the logical volume part of the vg? Does it ask to format the volume lvm or > should I in contrary be specifying its location?? I admit that I''m a little > bit lost here and a lot confused. > >Firstly, you can use -v options to make xl more verbose - for example: xl -vvvvv create <path to config> I would also try something like this for the CDRom piece: phy:/dev/sr0,hdc:cdrom,r (/dev/sr0 is the device path, mentioned in part of what you provided). If you are not using the physical cdrom device, you have to be pointing at something like an ISO of the CDRom/DVD - this is a single file which contains the encoded contents of the disk. You should be able to make one by using the dd command - something like: dd if=/dev/sr0 of=/path/to/ISO/file/to/create # fdisk -l> >> Device Boot Start End Blocks Id System >> /dev/sda1 * 1 33814 271607808 7 HPFS/NTFS >> /dev/sda2 33815 37638 30716280 83 Linux >> // This is the LVM/PV storage area >> /dev/sda3 37639 38914 10243073 5 Extended >> /dev/sda5 * 37639 38855 9774080 83 Linux >> // This is the Host >> /dev/sda6 38856 38914 467968 82 Linux swap / >> Solaris >> Disk /dev/dm-0 ranging to dm-6 // >> /dev/dm-6 has 16,3G un/allocated and is intended to invite the >> windows HVM. >> >> # mount >> /dev/sda5 on / type ext3 (rw,errors=remount-ro) >> /dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,user=dorian) >> // this is good to know about for the media my windows data rely >> on >> >> >> # cat /etc/fstab >> /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 >> // same as previous >> >> Thank you > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >Regards, David _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Dorian Carpentier de Changy
2013-Sep-25 12:18 UTC
Re: settings for create Windows7.cfg file / for this HVM DomU, usage with lvm partition and booted from cdrom drive
David Sutton
2013-Sep-25 14:43 UTC
Re: settings for create Windows7.cfg file / for this HVM DomU, usage with lvm partition and booted from cdrom drive
Dorian, On Wed, Sep 25, 2013 at 7:18 AM, Dorian Carpentier de Changy < dechangydorian@yahoo.fr> wrote:> > Le 24/09/2013 23:44, David Sutton a écrit : > > > I would also try something like this for the CDRom piece: > > phy:/dev/sr0,hdc:cdrom,r > > Regards, > > David > > Hey, > > Thus I was missing the ''phy'' var, which stands for the block device > (either hard disk drive and/or cdrom drive) opposite to ''file''. finally; > * This worked like a charm. * > the domain gets created, and I can access the cddrive > upon # gvncviewer localhost, I have access to installation *window booted > from the Windows7 cd described above.* Delightfull so far ,... > > Going through the windows7 install configuration, *the process ends up > where it says it cannot find a suitable disk drive*, the window is blank, > nor a option refresh - nor load a driver helps, returns null in both cases. > > Normally, where maybe I did jump a step, It should show up the desired > lvm lv named windows. Maybe I jumped the formatting in a earlier step! ( ?? > Going through the LVM tutorial I read and apply a ext3 format to my > "/dev/Esp-Virt/windows" logical volume, using mkfs.ext3 command. > than also Checking partitionning > #fdisk -l > shows Disk /dev/dm-6 doesn''t contain a valid partition table. This mount > point is unallocated but should be populated as soon as the windows machine > has write access. I wonder why upon > # lvcreate -nwindows -L20G Esp-Virt > > the dm-6 partition doesn''t take into account the reserved space since > windows lv is created ? > > I repeat thatI couldn''t see the lvm partition in the windows install, even > after mkfs.ext3. > > What step am I misssing HerE? > > Thank you > > >For what you are doing, you don''t need to create a filesystem on the LVM partition you created; you just need a raw partition for the VM to be able to use. Looking back on the email thread, I suspect it might be because you specified ''sda'' for your hard drive partition (on the disk line again) - I seem to remember trying this before and having issues until I changed it to ''hda'' instead - then the windows 7 installer was able to see the partition. Regards, David _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users