establish ISO library for XenServer
generally we install on the server XenServer system, you need to XenServer To build the virtual machine on the ISO mirroring. So the question is, how to build an ISO Image Library on XenServer. Take a look at the following decomposition:
1. creating a logical volume
before you create it, create a logical volume at the size you want and mount it in a directory. First we'll look at the existing VG(volume Group) on the xenserver , so we don't have to create PV,VG anymore.
[email protected] ~]# Vgdisplay// View the system's existing VG
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/84/5E/wKiom1eO3jmhAoqFAABAzFa51c8365.png "title=" Image001.png "alt=" Wkiom1eo3jmhaoqfaabazfa51c8365.png "/>
from what we can see XenServer exists on VG , the specific name and size map are already marked.
[email protected] ~]# lvcreate-l 10gb-nlocaliso vg_xenstorage-4bc6d0fb-99fd-6516-4319-dce0a3b215d5// Create a size of 10GB 's name is called Localiso of the LV .
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/84/5E/wKiom1eO3mHydOpUAAAS__Eb4_Y421.png "title=" Image002.png "alt=" Wkiom1eo3mhydopuaaas__eb4_y421.png "/>
2. FormattingLvand mount it to the directory
First we create a Mount LV the directory
[Email protected] ~]# Mkdir/iso
[email protected] ~]# Mkfs.ext3/dev/vg_xenstorage-4bc6d0fb-99fd-6516-4319-dce0a3b215d5/localiso// Formatting LV
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/84/5E/wKioL1eO3vGC038eAABtVMOYIZ0152.png "title=" Image003.png "alt=" Wkiol1eo3vgc038eaabtvmoyiz0152.png "/>
[Email protected]~]# mount/dev/vg_xenstorage-4bc6d0fb-99fd-6516-4319-dce0a3b215d5/localiso/iso/// put LV attached to the root. ISO Catalogue
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/84/5E/wKioL1eO3zLSxIFLAABaeEkxZlk349.png "title=" Image004.png "alt=" Wkiol1eo3zlsxiflaabaeekxzlk349.png "/>
[[email protected] ~]# XE Sr-createname-label=iso _image type=iso device-config:location=/isodevice-config:legacy_mode=true content-type=iso // iso_image The storage compartment, type iso iso file, storage bin location is /iso
so directory becomes a iso storage silos. Through xencenter connect to xenserver you'll find one more. iso_image iso pack into /iso_image
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/84/5E/wKioL1eO33SyQV3EAAAak8pk-lw360.png "title=" Image005.png "alt=" Wkiol1eo33syqv3eaaaak8pk-lw360.png "/>
after successful establishment XenServer appeared in the Iso_image Library.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/84/5F/wKioL1eO35fwVAbDAACdTZ-dOQI542.png "title=" Image006.png "alt=" Wkiol1eo35fwvabdaacdtz-doqi542.png "/>
View the root directory issued by the existing ISO directory, as long as the ISO image into ISO directory.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/5F/wKiom1eO377Se2APAAAeNtZ_Ons125.png "title=" Image007.png "alt=" Wkiom1eo377se2apaaaentz_ons125.png "/>
If you put ISO The image file has been uploaded or downloaded to /iso directory, in Xencenter in the Iso_image does not appear in the image file, click on the Rescan.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/84/5F/wKioL1eO392gEGypAACPLjePaLQ535.png "title=" Image008.png "alt=" Wkiol1eo392gegypaacpljepalq535.png "/>
This article is from the "Jiaao" blog, make sure to keep this source http://jiaao.blog.51cto.com/10894904/1827974
Establish ISO library for XenServer