The server has been in use for a long time, XenServer produced a lot of logs, and even some people because the log occupied space,Cause problems with the system: The XAPI crashes, or the system is stuck, and the restart is not valid.So we have to look at the log from time to time to see if the logs occupy space.Check the system disk usage first (xenserver default is 4G system space)[Email protected] log]#Df
Reprint: http://vps.gl/vps/259.htmlXenServer server after six months or a year of use, XenServer produced a lot of log files. XenServer default is 4G system space, and these log files will occupy a lot of system space, the log file fills up, will cause the system problems: XAPI crashes, or the system is stuck, restart is not valid. Therefore, checking the log files of the cleaning system regularly is an imp
Reprint: http://blog.sina.com.cn/s/blog_4ca83f830100xded.html Believe that a lot of people are xenserver log filled with disk space, causing the problem of the final machine hangs, I met 2 times (once the pool master hung off, No. 200 people 1 hours can not work). A few days ago, three pools of pool master also appeared/var/log/xensource.log*, almost 1 hours will eat 150MB of disk space This 2GB free space, a day will be filled, Pool master hangs o
same as the above EC2 Automation to create a host, we encountered a problem, that is, each new VM, its IP address and host name, etc. after replication, can not automatically update. I have consulted some peers, may be they do not have such a large-scale use of xcp/xenserver, so the xencenter inside the creation of a good machine, and then through the console to modify the IP address and host name and so on.
As a result, I searched repeatedly on Goo
centos5.8 64-bit and CentOS 6.5 64-bit XenServer install Linux when the default use of VHM, select the corresponding virtual machine template installed Linux is the Linux text interface. VHM to PV method groping in ... Installation of centos5.8 Install with centos5 64-bit template, advanced OS boot parameters plus VNC (is not UTF8 cause the Chinese version of Linux not garbled? Do you want to change to Unicobe? ) CD Found Select Skip Choose a languag
Back up Xen hosts
On the host where Xencenter is located, perform the following fame backup host data:
C:\Program files\citrix\xencenter>. \xe.exe host-backup file-name=f:\vmbk-s 192.168.1.1-u ROOT-PW test
EXPLANATION Note:
XE: execution must begin for all commands
Host-backup: The type of backup is host backup
Filen-ame: location where backup files are saved (XenCenter host disk)
-S: Specify the backup server address or name-U-PW don't have to say more:
Restoring a running
XenServer can mount an ISO image installation system by creating a local ISO storage or NFS storage. For Linux, it can be installed through the network http or ftp. The following record shows that XenServer installs Debian and CentOS systems over the network. Create a vm: xe vm-install template = Debian \ Squeeze \ 6.0 \ (32-bit \) new-name-label = debian6 sr-name-label = Local \ storage # Return to the vm
XenServerDomain0 memory Adjustment
XenServerDomain0 uses MB of memory by default. Each time a VM is started, a Qemu-DM process is started in Domain0, occupying approximately 6 MB of memory space, therefore, when the number of virtual machines is large, we need to increase the Domain0 memory to support more virtual machines. Because Domain0 is a 32-bit operating system, the maximum memory size supported is 4 GB. For how to change the Domain0 memory, refer to CTX124806-XenServerSingleServerScalabi
://s3.51cto.com/wyfs02/M02/6D/B2/wKiom1VpgoHT_PdoAALbVN-Yrr8790.jpg "title=" 11.png "alt=" Wkiom1vpgoht_pdoaalbvn-yrr8790.jpg "/>1.12 Installing the Windows operating system in the Xencenter console650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6D/AE/wKioL1VphDXxHX6CAAPaqI1Kc4A417.jpg "title=" 12.png "alt=" Wkiol1vphdxxhx6caapaqi1kc4a417.jpg "/> 1.13Windows Server R2 installation process is too much, after the installation is completed as follows650) this.width=650; "src=" http://s3
Description: XenServer installed in the virtual machine, the partition is using the LVM disk partition
requirements: now need to expand the virtual machine root partition/
Specific actions:
First, use Xencenter to increase the disk capacity of the virtual machine, as shown in the following figure
Increase Current disk to 50GB
Note: Must be in the virtual organization machine state
Seco
Description: XenServer installed in the virtual machine, the partition is using the LVM disk partition
requirements: now need to expand the virtual machine root partition/
Specific actions:
First, use Xencenter to increase the disk capacity of the virtual machine, as shown in the following figure
Increase Current disk to 50GB
Note: Must be in the virtual organization machine state
Second, look at the hard disk capacity
Df-h #可以看到此时根分区还是12G, n
This method is not stableWe all know that xenserver after installation, no matter how big your plate is, there is only 4 g of space.So the operation is: New LV volume, customizable sizeif the ISO warehouse has been created, simply perform steps 1, 2, 3, 4, 5, 7, 8, 9 to mount the new logical volume drive to the/opt/iso file (the original image disappears )1, Vgdisplay #先查看剩余空间[Email protected]/]# Vgdisplay---Volume Group---VG Name VG_XENSTORAGE-205EEC
. width = 650; "title =" 4.png" src = "http://www.bkjia.com/uploads/allimg/131228/04203332b-3.png" alt = "150205673.png"/>
④ Create a DIFF disk and an ID disk automatically on the target storage ). Playback time: seconds depending on the VM Size ).
650) this. width = 650; "title =" 5.png" src = "http://www.bkjia.com/uploads/allimg/131228/04203314X-4.png" alt = "15024020..png"/>
Enable the intelliicache function:
Create a basic disk BaseDisk from the primary disk through the MCS of XenDesktop),
From example of xenserver API, we know, if I want to create Vm, must to create vbd.In vbd modle, if we want to createvm from ISO, then, VDI is must to achieve.
For example:
In "testbase. Java", we create a function:
Protected static VDI getallvdirecords () throws exception{Mapall_vdi = VDI. getallrecords (connection );
For (Map. Entry E: all_vdi.entryset ()){If (E. getkey (). getuuid (connection). Equals ("2bfa10aa-24fb-4942-9f18-776ac5a04ce0
1. Use root user ssh to log on to xenserver
2. Search for the disk information you want to add
Cat/proc/partitions # view disk Information
Ll/dev/disk/by-id # view the disk id
3. view the host id in the Cluster
Xe host-list
4. Add a disk to a specified host
Xe sr-create content-type = user device-config: device =/dev/disk/by-id/Or
Xe sr-create content-type = user device-config: device =/dev/disk/by-id/Or
Xe sr-create conte
Xenserver adds a new hard disk. XS creates a local storage www.2cto.com. First, the partitioned hard disk is connected to the server to view all the hard disk idls-l/dev/disk/by-id/write down the full name of the hard disk. next, Mount xe sr-create type = lvm content-type = user device-config: device =/dev/disk/by-id/edd-int13_dev81-part1 name-label = "Local storage 2"-config: device =/dev/disk/by-id/is followed by the SCSIname-label = "Local storage
After creating a virtual machine based on the template on xenserver, the NIC cannot be identified. After the NIC is restartedBringing up interface eth0: Device eth0 has different MAC address than expected, ignoring.The final solution is to comment out hdaddr in the/etc/sysconfig/network-scripts/ifcfg-eth0, because the MAC address of the configuration file or the MAC address of the original model machine, the MAC address of the newly configured virtual
After creating a virtual machine based on the template on xenserver, the NIC cannot be identified. After the NIC is restartedBringing up interface eth0: Device eth0 has different MAC address than expected, ignoring.The final solution is to comment out hdaddr in the/etc/sysconfig/network-scripts/ifcfg-eth0, because the MAC address of the configuration file or the MAC address of the original model machine, the MAC address of the newly configured virtual
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.