Shrink a Windows VM in XenServer
In XenServer the process is to use XenConvert. (You convert with a shrinked HDD, and you re-import the image into the XenServer)
Please see that KB. How to Resize a XenServer Virtual Disk
The KB was created in 2014, but in old XenServer that tip worked. The tip state to use XenConvert 2+, but in 2011 it was already released.
KB's text:
To complete the following procedure, you need the access to Access to XenConvert 2.x.
1.Download and install XenConvert on the Windows VM.
2.Attach a secondary disk that is 205 percent times the size of the existing VDI. The secondary drive is to be used as temporary space for XenConvert.
3.Format the secondary disk with an NTFS file system and add a drive letter to the disk.
4.Open XenConvert and click Next.
User-added image
5.Adjust the free space size as the following:
•Example for original size: 14406
User-added image
•Example for New size: 5000
User-added image
Description of the fields in the preceding figures:
•Used Space: The space currently being used in the VDI.
•Free Space: The new size for the VDI. So if you want to make it 10GB, you change the value to 10240 MB.
•Unallocated space: The additional space you give to the VM and that is displayed as unallocated space.
•Capacity: The value in the last row is the VM VDI total size:
User-added image
Proceed with the XenConvert utility to create a disk to import later or to create the new VDI on the XenServer.
Related videos on Youtube
Nate May
Updated on September 18, 2022Comments
-
Nate May over 1 year
I'm creating a drag and drop angular module that I hope to externalize and publish to npm. The library will essentially allow the user to define drag and drop areas and associate ngrx actions with them.
const DND_RULES: DndRule[] = [ new DndRule('area1', 'area2', MOVE_AREA1_TO_AREA2_ACTION.getAction), new DndRule('area2', 'area1', COPY_AREA2_TO_AREA2_ACTION.getAction), ]
A provided service will then dispatch the action that results from the rule.
My issue is that I need to integrate this library with the consumer's store. Is there a way to provide the ngrx store via some static module method or link it to my store behind the scenes in some way?
DndModule.provideStore(???)
I'm not sure what this would look like behind the scenes-
Aravind almost 7 yearswhy two questions with different context? other one
-
Aravind almost 7 yearsPossible duplicate of how to pass data into and an Angular2 module and through to a module
-
Nate May almost 7 yearsone is asking how to inject ngrx, the other is asking how to inject raw data. if they can be answered simultaneously, then please offer your solution. otherwise I would expect the answers to differ.
-
Aravind almost 7 yearswhen you are using a store and place it in a common module, the data can be shared across as well. what you want to inject into library!! elaborate your question
-
Nate May almost 7 yearsyou're saying that external libraries can dispatch actions on behalf of my applications's store? That's my issue. I want to externalize the module.
-
Aravind almost 7 yearswhich module? the store alone?
-
Nate May almost 7 yearsI want to externalize my drag and drop module. but it would need the privilege to dispatch actions on behalf of the consumer's store, so I will need to provide it. How can I do that?
-
Aravind almost 7 yearsLet us continue this discussion in chat.
-
-
Mert Gülsoy over 8 yearsCurrently xenserver does not support shrinking VDI's.
-
chicks over 6 yearsThis is an example of why link-only answers are bad. The link went away and had to be replaced with the Wayback Machine.