How to shrink a virtual disk (vmdk file)
I use VMware Workstation 12.1 Pro on Windows 7 x 64.
I have a virtual drive of 140 GB that I converted to stretch of prealloue (with excellent yesterday using continuum here).
First, in Windows Disk Manager, I lowered the score of 140 GB GB 70, leaving the end 70 GB unallocated (unused). So I thought it would be easy to reduce the 140 GB vmdk file to 70 GB.
I ran the vmware - vdiskmanager.exe command line with the-k option on the file vmdk from the host with the virtual machine off. Then in the virtual machine powered on, the command prompt, I ran VMwareToolboxCmd.exe fret C:\.
These two options gave me a disc that was essentially the same size than what I started with. Looks like there should be an easy way to drop that last unused 70 GB, but I can't. Which offer a suggestion?
Thank you!
Joe
To effectively reduce a vmdk extensible, you must be able to write to these locations with the trash.
You resized the partition - which means that the trash is outside the accessible area in writing.
Options:
create a partition at the end of the disc, wipe it by filling it with zeros, when the partition is completely filled with zeros - shrink again and remove the fake wall when done. I suggest this order:
Start: preallocated 140 GB vmdk
1 defragment the partition from inside the guest
2. resize the partition to 70 GB
3. turn off the virtual machine completely and simply cut the flat.vmdk to 71 GB with a dd command
4. adjust the description of the measure in descriptorfile
result: a vmdk préallouée 70 GB
Tags: VMware
Similar Questions
-
How to move a single virtual disk (vmdk file) of one data store
Hi guys,.
I have a VM with 4 virtual disks (for example, 1.vmdk, 2.vmdk, 3.vmdk and 4.vmdk) all located on a SAN volume (e.g., SANVOL03). How can I move one of the virtual disks (for example, 3.vmdk) of its current volume of SAN to another (e.g. from SANVOL03 to SANVOL04) without turning off the virtual machine? It's vsphere 4.1
Detach the VMDK virtual machine and move it manually on the desired data store.
-
How to shrink a virtual disk?
I have a virtual server (Win2K8 R2) with a system of 40 GB and 100 GB data drive, but I want to shrink the drive to 50 GB of data.
I started my virtual server using DVD boot GParted, shrunk the drive up to 50 GB and has confirmed that Windows is OK with the change, that it is, but console VMware shows always the data disk as configured = 100 GB.
My question is, how do I change the value configured to 50 GB to match the size of the disk?
4I ESX
Suggest using VMware Converter and reduce the size of disk as required during the conversion
-
How to extend a virtual disk on WS7?
I use a virtual machine of WS7 running Win7x64 as my software development system.
He has a 100 GB virtual disk and now I try to install Embarcadero RAD Studio XE7 on that, but is greeted by a message saying that the 33.6 GB of free space is not enough...
He needs 37 a few GB.
So now that I look at my options and the first, we must somehow extend the virtual disk (vmdk file) to a larger size.
Is it possible at all the tool magic VMware or what I need to create a new record and the use of some software cloning inside the VM for Win7 to transfer the content courses like the one made when moving to a bigger real physical drive?
Looks like it should be possible so to increase the size of the car without touching the data such that the partition holding the 100 GB drive is not now the disk is full.
In this case, I use Win7 tools to extend the partition to use the full disk.
Any advice/suggestions?
Expand a virtual disk is a fairly straightforward task. Make sure that the virtual machine have Active snapshots and then increase the size of the virtual disk by typing in its new size in settings of the virtual machine HARD drive. After increasing the virtual disk, you must increase the partition within the guest OS. For Windows 7, this can be done in the disk management interface.
Remember that when you set up a monolithic virtual disk for the virtual machine (i.e. a single hard large file), a new virtual disk will be created and all content will be copied on to this new hard file, which will have some time at the end, but it will also take the additional temporary disk space.
André
-
How to extend a virtual disk in a workflow
Hello together,
I have a problem in the creation of a Workflow.
I want to deploy a virtual with a CustSpec computer (works fine). After the deploymente, I want to thank the disc - it's my problem.
Did anyone of you knows how to expand a virtual disk to a virtual machine?
Thank you very much
Marc
I have not tried this at my end, but you can try something like this:
You need create a scriptable task and the research of the class script VirtualLsiLogicController from the API Explorer. The properties that need are required to set as seen in the reference of vSphere are:
-busnumber (can be set to 0)
-button (can be set to 0)
-sharedBus (set VirtualSCSISharing.physicalSharing) / / VirtualSCSISharing is an enum type, consult the API Explorer
After you set the object above (VirtualLsiLogicController), it defined in the the virtualdeviceconfigspec object and the value of this deviceconfigspec to the devicechange of the virtualmachine context property (as previously done for adding a virtual disk).
I hope that helps!
-Angela-
-
Hi, I have a problem that I can't solve with the usual methods.
My data
software: VMVware Workstation 6.5.1 build 126130
Host: NB HP Compaq 2510p with 2 GB of ram
OS: Windows XP Pro SP3 5.12.2600
I have a Win XP Pro SP3 computer virtual created for my work:
6-5 - 7.0 VM workstation
RAM: 512 MB
Windows XP Pro operating system
Processors: 1
CDRom: Autodetect
Floppy: Autodetect
USB: present
Sound card: Autodetect
Display: Autodetect
HARD drive is divided into 2 GB files
The problem lies in the HARD disk:
40 GB declared
0 MB recognized by the system
My VM was functional complete. After a suspension
The State remains suspended
When I try to resume, a pop-up window will appear "file not found: IATROS VM.vmdk" go through it...
the vmdk file exists (see my attached files).
When I try to see the features on the parameters, appears "the specified file is not a virtual disk" and all data in the pop-up are unknown or missing.
I tryied to use the vmware_vdiskmanager with the command vmware - vdiskmanager.exe - R 'e:\appo1\IATROS VM.vmdk' in vain also.
I think that it is necessary to recreate a file descriptor for disc divided into 2 GB files.
but, if we compare the contents of the VMDK file with the discussion in the article, there seems to be no problem of format or content.
There are suggestions to solve the problem?
can I await your response?
_________________________
VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual
-
How to align mailbox Windows disks/disk vmdk files
Hello
I currently have a server with 20 virtual drives spread between 4 SCSI controllers. The controller has 5 virtual disks assigned to it. I would like to find a way that we can align 20 virtual disks in VM settings for 20 labeled Windows disks. I know that you can watch channel SCSI controller so 0.1, 0.2 and align the 2nd digit with the target ID in the properties of the Windows disk, but Windows does not specify the number of buses so when the disks are the same size its impossible to verify if it is the drive or not.I tried a number of scripts provided here:
But failed to obtain a final solution which will be in line to the top of our hard drive listed in the settings of the VM to the inclusion of WIndows disk
My observation is this location SCSI Id 0 is always 160.le the same for the controller SCSI 1,2,3 is 192, 224 256 respectively. As we reached maximum virtual no more scsi controller scsi can be added to a virtual machine and where it should be in the order. I watch non - r2 2008 VM, 2003 and get back to you if I find any solution.
In my test VM below is the result.
Vmware | Windows
====== =======
Hard drive SCSI ID | Target location Bus number Windows Windows ID
Hard drive 1 0:0 | 160 0 0
Hard drive 2 0:1 | 160 0 1
Hard disk 3 1:0 | 192 1 0
Hard drive 4 2:0 | 224 2 0
Hard drive 5 3:0 | 256 3 0
If found it useful please add points.
Thank you best regards &,.
REE
-
HELP: How to 'restore' a via vddk vmdk file?
Hi all
After "backup" a vmdk via VixDiskLib_Read() + write all sectors recovered in a local file, how can I 'restore' that particular vmdk?
I know that to have an existing vmdk file (even if it's a blank disc), I can use VixDiskLib_Write() to write again all the bytes to disk (in hosted mode). But my question is what do I do if I do not have this file vmdk beforehand? The document 'design the backup solution for vsphere' seems to suggest that I have to create the vmdk file myself (for example to create a virtual disk empty).
But how can I create with proper DiskType? (by clean I mean the disktype is the same as the original disk) I can't find any API (vix, vddk and vsphere web service) that provides the type of disk of a given vmdk file.
(I suppose a vmdk 'restored' must be identical to the original, "size' to 'type of card'"disk type"at"HW version", etc.)
Thanks in advance!
py
Hi Py,
The solution is not intuitive enough - when you restore, you create a virtual machine with the same hardware configuration as the original virtual machine. This creates discs. Now you can open each of these discs and write to them with the saved content. There is documentation that explains this, but he talks about the VI api which you should be able to extrapolate on the api web services server.
Hope that helps and thanks for using VDDK,
Annick
-
We can recover the file raw disk VMDK file?
Somehow, we find that the VMDK (VM5.vmdk) file for a virtual computer is lost. However, the raw disk VM5 - flat hard file always exist.
We wonder if it is possible for us to create the file VM5.vmdk of the raw disk file?
Thank you
Yes... That's what I would do... He would also create a backup of your flat file in case things don't work and it never hurts to have a backup to moments like this.
--
Wil
_____________________________________________________
Visit the new VMware developers at http://www.vi-toolkit.com wiki
-
How to resize a virtual disk on vCloud?
How can I resize a virtual disk to a virtual machine, the vCloud?
I saw that even if I activate the customization of comments I you can not change the size of the disks, same vm is off power.
How can I do?
Concerning
Yes, you can do so via the REST API. http://geekafterfive.com/2011/11/01/vCloud-apigui-Throwdown/
-
How to identify a virtual disk inside a windows 2008 VM
I created a data store ISCSI 1.98 TB for one of my VM Windows 2008. I've added four virtual disks size still 300 GB to this Windows 2008 virtual machine and now I need to extend one of the specific disks. How to identify the interface of the VM virtual disk.
In windows, I know what drive it is how can disc 8 but I know which drive is 8 on the change settings tab? I thought I knew what disk I was growing, and it wasn't the right one. Is there a tool on the market that do that?
Thank you
You will need to open the properties of the disk (left) rather than any partition on this disk.
André
-
Hi I have a VMWare Player works on Windows 7 Enterprise, my virtual machine was working fine until my host restarts while the virtual machine has been updated of BONE, now when I try to run the virtual machine, it is said: "could not open the disc 'E:\Maquina_Virtual_XP\Windows CP Professional.vmdk' or one of the Flash disk it depends.»
Reason: the specified virtual disk must be repaired. »
check this one:
_________________________
VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual
You find me also in the PhD Virtual Backup support team
-
How to create a virtual disk thick
I'm trying to create a thick virtual disk without success. (Do not understand format.)
I'm using this syntax.
vmkfstools - ch. 2048 m /vmfs/volumes/myVMFS/rh6.2.vmdk
I get "error connecting to server https:/localhost/sdk/webservice" maybe etc...
I suspect that the problem is a lack of understanding of what "myVMFS" is-, but no less - the baffeled.
Any help very much appreciated. (New for this sort of thing.)
Ken
You'll want to add - server filename.vmdk
-
How to configure the virtual disk as SSD for the customer?
Hi all:
I have a virtual machine in an SSD, the guest operating system is Windows 8, but the guest OS, the virtual disk as 'hard drive '.
Can I set the virtual disk as SSD for the guset? (Like VirtualBox)
Thank you!
Irake99 wrote: can I put the virtual disk as SSD for the guset? (Like VirtualBox)
No, IDE or SCSI are your only choice.
-
How to correlate the virtual disk on the disk of OS
I need to remove one of the virtual virtual machine disks. The problem is that I have two identical drives, more they are on Rible virtual scsi adapters so if I look at the properties of disks in disk management, they are both targets ID 0. Is there another way to correlate the virtual disk belongs to disk inside the BONE?
ESX4.1U2
W2K8R2
TIA
Troy
Since this is often not easy to understand, I usually create each disc with a slightly different size. That said, resize one of the disks (for example add 1 GB virtual disk) and you will be able to identify the disk that you want to remove.
André
Maybe you are looking for
-
List incoming emails to be more large email not only himself
HI: I just reconfigured my email on Thunderbird on my new mac (used very well on my old computer). I can barely see the list of messages in my Inbox. I realized how advanced parameter increase the size of the font of each e-mail when it appears in th
-
How can I include a signature with a text message?
-
Vista - several error codes (cannot install updates)
Hello I get these error codes when you try to update windows: 80070490, 80070643, 8024200d and 8007371B. I'm using windows vista (32 bit) I just bought a fresh new hardrive and installed a copy of windows on it any help would be greatly appreciated t
-
This is what I get when I look for an error report in my folder sims 3, the game won't load after the loading screen, does anyone have a solution to this problem (my computer is well above all the required specifications of the system).
-
SIM card and the mobile broadband card
I have doubts on the WWAN card, I do not use the external for internet modem because I prefer internal modem please give solution on WWAN card, I use my L502x xps and my network 10W is Intel Centrino Advanced - N 6230 and there is a slot for SIM unde