Call Today to Receive a Free I.T. First Aid Kit: (425) 605-0594
February 24, 2014

Citrix XenServer (Add More VD’s)

Back

If you are running Citrix XenServer and tried to add more than 6 virtual disks to a VM using XenCenter, you may have received the following error:

VirtualDiskError

 

 

The limitation is with XenCenter unforutnately. To add it, simply use the XE CLI. Here is a step by step guide:

1. Connect to Citrix XenCenter.
2. Click on your Citrix XenServer.
3. Click on the Console tab.
4. Enter the following command:
xe sr-list name-label=”Your Storage”
5. Copy the UUID. Example:
60dda71a-b381-2508-99c9-53dc77a1a4f1
6. Enter the following command:
xe vm-list name-label=”Your VM Name”
7. Copy the UUID. Example:
eb7dce11-3c17-1e77-719b-649e9942ae28
8. Create the Virtual Disk (VDI) with the following command:
xe vdi-create sr-uuid=60dda71a-b381-2508-99c9-53dc77a1a4f1 name-label=”Storage7″ type=user virtual-size=2193654546432

Note 1: You must change the name-label from Storage7 to the next name available. Example Storage8.
Note 2: After running the above command, it will output a UUID of the VDI, please copy and paste this here. Example:
bb6c2407-24f5-48d3-98c3-5bf28115ce59

9. Create the Virtual Block Device (VBD) that connects the VDI to the VM:
xe vbd-create vm-uuid=eb7dce11-3c17-1e77-719b-649e9942ae28 device=6 vdi-uuid=bb6c2407-24f5-48d3-98c3-5bf28115ce59 bootable=false mode=RW type=Disk

Note 1: You must change the device value. For example, if you go to Your Storage then click on Storage tab. You will see value in the position column. You will want to choose the next largest position.
Note 2: After running the above command, it will output a UUID of the VBD, please copy and paste this here. Example:
2957a30a-d81a-cdec-00d6-1d8e6dde657a

10. Plug the VBD into the VM. Aka “Activating it”:
xe vbd-plug uuid=2957a30a-d81a-cdec-00d6-1d8e6dde657a

bodum
?????????????? ??????? ????

Leave a Reply

Your email address will not be published. Required fields are marked *