XenCenter Version: XenCenter 6.2
Problem Description: You want to xencenter inside the VM after the VM is added, it cannot be recognized after it is started.
Workaround: Windows does not recognize the reason: the newly added hard drive does not have a drive letter (partition), add drive letter by Disk Manager to format the new hard disk solution.
Ubuntu does not recognize a similar cause and needs to partition the newly added hard disk
Step one, add the hard disk to the host in the Windows7/ubunut that was closed first. Such as:
Step two, Windows host processing, go to Disk Manager to view, prompted to "initialize the disk", at this time to be able to see the disk Manager has recognized the new hard disk. Click on disk to create a simple volume, and finally format the drive number as needed, which resolves this issue on the window host.
Step three, Ubuntu in the root permission, the new hard disk to format.
1. Use Fdisk-l to view disk information
[Email protected]:/# fdisk-l
disk/dev/xvdb:2147 MB, 2147483648 bytes
255 heads, Sectors/track, 261 cylinders, total 4194304 sectors
Units = sectors of 1 * MB = bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000 Newly added unrecognized drive information, need to be partitioned
Disk/dev/xvdb doesn ' t contain a valid partition table
disk/dev/xvda:21.5 GB, 21474836480 bytes
255 heads, Sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * MB = bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x000e30d0
Device Boot Start End Blocks Id System
/DEV/XVDA1 2048 40378367 20188160-up Linux
/dev/xvda2 40380414 41940991 780289 5 Extended
/dev/xvda5 40380416 41940991 780288, Linux Swap/solaris
[Email protected]:/#
2. Formatting
[Email protected]:/# df-t Pre-confirmation disk format is EXT4
[Email protected]:/# fdisk/dev/xvdb
Then type: M, you can see the Help information,
Type: N to add a new partition
Type: P, select Add Primary partition
Type: 1, select primary partition number 1, so that the primary partition after creation is XVDB1
After that, Fdisk will let you select the start and end values of the partition, and enter directly
Finally type: W, save all and exit to complete the partition of the new hard disk.
3, the format of the operation
[Email protected]:/# mkfs-t EXT4/DEV/XVDB1
To format a partition XVDB1
4. Mount the operation
Mkdir/data, creating a mount point for a new hard disk
Mount/dev/xvdb1/data, mount the new partition to the/data/directory to automatically mount the boot
To modify the/etc/fstab file, add the following line:
/dev/xvdb1/data Ext4 defaults, 0 1
VM (Windows7/ubuntu) host does not recognize new hard drive resolution after adding hard disk to Xencenter VM