登录到XenServer。
修改虚拟机磁盘大小
xe vdi-resize uuid=17e350e3-1528-4e8f-965b-d33d352e73ed disk-size=40GiB
启动虚拟机
修改分区大小
fdisk /dev/xvda
The number of cylinders for this disk is set to 5221.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/xvda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot