XenServer installation VM-first Resize and store the ISO image file, xenserveriso

Source: Internet
Author: User

XenServer installation VM-first Resize and store the ISO image file, xenserveriso

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-81472e44f3c2System IDFormat lvm2Metadata Areas 1Metadata Sequence No 8VG Access read/writeVG Status resizableMAX LV 0Cur LV 1Open LV 0Max PV 0Cur PV 1Act PV 1VG Size 11.99 GBPE Size 4.00 MBTotal PE 3069Alloc PE / Size 1 / 4.00 MBFree PE / Size 3068 / 11.98 GBVG UUID gdk23O-Ugch-ygeb-wiZc-aoIr-QbTL-XoQqfx

2. lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2#View the region

[root@XenServer /]#  lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2--- Logical volume ---LV Name /dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/MGTVG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2LV UUID qnsQew-gAqU-IEqr-rGsF-jO3j-crwE-eNHqx5LV Write Access read/writeLV Status NOT availableLV Size 4.00 MBCurrent LE 1Segments 1Allocation inheritRead ahead sectors auto

 

3. lvcreate-L 20 GB-n iso VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2#New20GOfLvVolumeIso

[root@XenServer /]#  lvcreate -L 20GB -n iso VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2Logical volume "lviso" created

 

This document introduces how to add a space:

[root@XenServer /]#  lvcreate -n lviso -L +6G VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2Logical volume "lviso" created

 

4. lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2#View the region again

[root@XenServer /]#  lvdisplay VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2--- Logical volume ---LV Name /dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/MGTVG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2LV UUID qnsQew-gAqU-IEqr-rGsF-jO3j-crwE-eNHqx5LV Write Access read/writeLV Status NOT availableLV Size 4.00 MBCurrent LE 1Segments 1Allocation inheritRead ahead sectors auto--- Logical volume ---LV Name /dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/isoVG Name VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2LV UUID lmJmYH-OiRW-gQle-nCJk-Y9M9-zVev-JGvrqKLV Write Access read/writeLV Status available# open 0LV Size 20.00 GBCurrent LE 1536Segments 1Allocation inheritRead ahead sectors auto- currently set to 1024Block device 252:1

 

5,Mkfs. ext3/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso#FormatExt3Format

[root@XenServer /]#  mkfs.ext3 /dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/iso[root@XenServer /]#

6. mkdir/iso#Create in the root directoryIsoFolder,Used for mounting ISO image files

[root@XenServer /]#  mkdir /iso[root@XenServer /]#

 

7. vgchange-a y#Activate all volumes

8. mount/dev/VG_XenStorage-205eecff-2466-84fe-56d5-81472e44f3c2/lviso/iso#Mount the ISO image file in 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 -hFilesystem Size Used Avail Use% Mounted on/dev/sda1 4.0G 1.7G 2.1G 46% /none 380M 0 380M 0% /dev/shm/opt/xensource/packages/iso/XenCenter.iso44M 44M 0 100% /var/xen/xc-install/dev/mapper/XSLocalEXT--5983fa21--42bd--0cd6--aafd--78534a7908f7-5983fa21--42bd--0cd6--aafd--78534a7908f79.9G 911M 8.5G 10% /var/run/sr-mount/5983fa21-42bd-0cd6-aafd-78534a7908f7/dev/mapper/VG_XenStorage--205eecff--2466--84fe--56d5--81472e44f3c2-lviso6.0G 141M 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.


How to Use XenServer to use a local ISO Image

1. log on to Xenserver through SSH to view the volume group information
# Vgdisplay/Write down VGname2. create an LV (logical volume) on the VG for storing ISO, allocate the size and name
# Lvcreate-L 15G-n iso_image VG_XenStorage-5e690647-6b9b-c08e-0c6c-48a31d79b69d
3. format the created LV
# Mkfs. ext3/dev/VG_XenStorage-5e690647-6b9b-c08e-0c6c-48a31d79b69d/iso_image
4. Create a local directory
# Mkdir/isso_image
5. edit/etc/fstab in the system to set the logical volume LV created before automatic mounting.
# Vi/etc/fstab
Add the following content
/Dev/VG_XenStorage-5e690647-6b9b-c08e-0c6c-48a31d79b69d/iso_image ext3 defaults 0 0 save and exit
6. mount this logical volume
# Mount/iso_image
7. Create a local iso SR using the command line
# Xe sr-create name-label = isso_image type = isso device-config: location =/iso_image device-config: legacy_mode = true contente-type = iso
8. After the Xencenter connects to the xenserver, it will find that there is an iso_image local iso storage, and the ISO file will be thrown into this directory for installation and use.
9. If no updates are found, try again.

How to install a virtual machine, create a virtual machine-install the image file ISO of the disk, I will get it here

First of all, LINUX does not have to run on virtual machines. It can run on physical machines and replace the current Microsoft system. Generally, we run LINUX in virtual machines because there are few people using this stuff. They all try to learn it from virtual machines without disrupting the original system or affecting the normal use of computers.
A virtual machine is a software in a common system. It can simulate a more real computer environment, such as BIOS settings, hard disk partitioning, formatting, and software installation. It can be said that it is an ideal environment for learning computer knowledge.
Here is a virtual machine installation Tutorial: www.xuniji.com/vmware/view.asp? Id = 245
After the virtual machine is installed, you can either use a CD to install LINUX or use an image file to install LINUX. This depends on what your source file looks like, depending on your own situation.
In fact, not only can virtual machines be installed in Microsoft systems, but also in LINUX. Wish you success!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.