XenServer installation VM-first Resize and store ISO image files
We all know that after xenserver is installed, no matter how large your disk is, There is only 4 GB space.
Therefore, the operation is to create an LV volume and customize the size.
1. vgdisplay # view the remaining space first
[Root @ XenServer/] # vgdisplay
--- Volume group ---
VG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
Max lv 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 11.99 GB
PE Size 4.00 MB
Total PE 3069
Alloc PE/Size 1/4.00 MB
Free PE/Size 3068/11 .98 GB
Vg uuid gdk23O-Ugch-ygeb-wiZc-aoIr-QbTL-XoQqfx
2. lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2 # view the area
[Root @ XenServer/] # lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
--- Logical volume ---
LV Name/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/MGT
VG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
Lvuuid qnsQew-gAqU-IEqr-rGsF-jO3j-crwE-eNHqx5
LV Write Access read/write
LV Status NOT available
LV Size 4.00 MB
Current LE 1
Segments 1
Allocation inherit
Read ahead sectors auto
3. lvcreate-L 20 GB-n iso VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2 # New 20 GB lv volume iso
[Root @ XenServer/] # lvcreate-L 20 GB-n iso VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
Logical volume "lviso" created
This document introduces how to add a space:
[Root @ XenServer/] # lvcreate-n lviso-L + 6G VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
Logical volume "lviso" created
4. lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2 # view the area again
[Root @ XenServer/] # lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
--- Logical volume ---
LV Name/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/MGT
VG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
Lvuuid qnsQew-gAqU-IEqr-rGsF-jO3j-crwE-eNHqx5
LV Write Access read/write
LV Status NOT available
LV Size 4.00 MB
Current LE 1
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso
VG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2
Lvuuid lmJmYH-OiRW-gQle-nCJk-Y9M9-zVev-JGvrqK
LV Write Access read/write
LV Status available
# Open 0
LV Size 20.00 GB
Current LE 1536
Segments 1
Allocation inherit
Read ahead sectors auto
-Currently sets to 1024
Blocks device 252: 1
5. mkfs. ext3/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso # format to ext3 format
[Root @ XenServer/] # mkfs. ext3/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso
[Root @ XenServer/] #
6. mkdir/iso # create an iso folder under the root directory for mounting the ISO Image File
[Root @ XenServer/] # mkdir/iso
[Root @ XenServer/] #
7. vgchange-a y # activate all volume groups
8. mount/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/lviso/iso # mount the ISO image file under the/iso folder
[Root @ XenServer/] # mount/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/lviso/iso
[Root @ XenServer/] #
9. df-h # view capacity
[Root @ XenServer/] # df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda1 4.0 GB 1.7G 2.1G 46%/
None 380 M 0 380 M 0%/dev/shm
/Opt/xensource/packages/iso/XenCenter. iso
44 M 44 M 0 100%/var/xen/xc-install
/Dev/mapper/XSLocalEXT -- 5983fa21 -- 42bd -- 0cd6 -- aafd -- 78534a7908f7-5983fa21 -- 42bd -- 0cd6 -- aafd -- 78534a7908f7
9.9G 911 M 8.5G 10%/var/run/sr-mount/5983fa21-42bd-0cd6-aafd-78534a7908f7
/Dev/mapper/VG_XenStorage -- 205eecff -- 2466 -- 84fe -- 56d5 -- 81472e44f3c2-lviso
6.0G 141 M 5.5G 3%/ISO
10. Upload the downloaded iso image file to the/iso directory through Xftp. Change the File Permission by 755.
Now you can go to the XenCenter client to perform operations.
XenServer VM physical CPU usage policy
An error occurred while starting the system VM on XenServer in the CloudStack compiling environment.
Disable CloudStack from deleting the original XenServer Virtual Machine
Configure Linux VM boot from the optical drive in XenServer
Enable and configure the SNMP service for Citrix XenServer
Resets the local disk LVM of XenServer to the EXT3 format.
This article permanently updates the link address: