Resize the size of the disk on a virtual machine

Hi all

I have a virtual machine with 200 GB, would reduce the size of the drive for 100 GB?

OS: Linux CentOS

VMWARE ESX4.0

VMware vCenter Converter Standalone 4.3 can be used to resize Windows and Linux powered sources.

Although CentOS is not officially supported as source for Converter 4.3, RHEL 2, 3, 4 and 5 are so you could work with CentOS as well. No promises though, as it has not been tested and officially not certified.

See page 52 of the Converter 4.3 Admin Guide at http://www.vmware.com/pdf/convsa_43_guide.pdf for more information.

Tags: VMware

Similar Questions

  • cannot resize the disk on a virtual machine

    Hello!

    I have a little problem, I can not resize the size of the disk on some of my virtual machines.

    I tried yesterday on two and worked well, tried to day (different vm) and it does not work so well for me.

    I first stop the virtual machine, rightklick, change the size to 20 GB, 4 GB and press OK.

    When I then rightklick on the virtual machine after pushing OK the size is always 4 GB (I don't mean in VI client for Windows).

    Why? workaround solution?

    Thnx for help.

    VM there snapshots?

    ---

    VMware vExpert 2009

    http://blog.vadmin.ru

  • vCD API - how to call updateDisks to resize the disks of a virtual machine?

    Had to think about where to post this question; vCD forums or here. I chose here because it's the API specific vCO for vCD and not versions of Java/.NET working team of vCD.

    I'm going to build a workflow to allow my team to change the size of a disk. This disk is part of a virtual machine that vCloud Director 'property '. I heard several times to not only change the size of the disk in vCenter as then vCD runs a risk of being confused. I have reviewed the vCO API for the vCD and found that the VclVM object contains the set of disks (VclVM.disks) as a property. This returns an array of VclVirtualDisk. There is a method VclVM.updateDisks (VclVirtualDisk []), which seems to do exactly what I want. Update disk sizes (could be used to add new facilities). I have a bit of a problem to find how to call it from my point of departure.

    // selectedDisk: a string selected by the user
    // selectedDiskSize: a number input by the user
    
    var disks = virtualMachine.disks;
    
    for (var i = 0; i < disks.length; i++)
    {
    
         if (selectedDisk == disks[i].itemResource.elementName.value)
         {
              if (selectedDiskSize <= disks[i].hardDiskSize)
              {
                   throw "New disk size (" + selectedDiskSize + ") must be larger than original disk size (" +
                        disks[i].hardDiskSize + ")";
              }
     
              disks[i].hardDiskSize = selectedDiskSize;
         }
    }
     
    virtualMachine.updateDisks(disks);
    


    'HardDiskSize' the call throws an error. It is a property read-only and is not a method. The API documentation don't do a good job to define all the methods where I can build a new VclVirtualDisk object. or clone an existing one.

    My thought was to update the existing structures of the disc and then pass them to the updateDisks (...) method. Yes, change an internal structure of an object from the outside is not something I should be doing.

    Any suggestions on how to "clone" this VclVirtualDisk object to change?

    If someone of the vCD of the vCO API team is looking, even updateDisks (...) method will do what I want? Or I have to watch fall down to Java to achieve?


    Thank you!

    If I remember correctly the ability to change the size of an existing drive is not available in API vCD 1.01.

    Christophe.

  • Cannot open the hard file. One of the disks in this virtual machine is already in use by a virtual machine or a snapshot

    Hi all

    Tried my level best to solve, but still the same problem persists. . Lck tried but as soon close VMware workstation, it disappears. This problem starts when yesterday instead of powering down, suspended. The next resume when it gives captioned error. Tried creating new virtual machine using an existing vmdk file but my mainly all the data disappeared. Now I want to resume the suspended state. Kindly help on the same. Thank you

    OK, we will first focus on the first virtual disk (System) on the D: drive which has enogh of disk space to create a clone.

    The "Windows Server 2003 Enterprise Edition.vmdk" dated from 19/07/13 is probably exactly what we need, and if it has approximately the same size of file than current/changing, then you can replace the one changed with it. Once restored, proceed as follows (with VMware Workstation closed):

    from the command line run:

    cd /d "C:\Program Files (x86)\VMware\VMware Workstation"
    cd /d D:\win2k3
    md Clone
    C:vmware-vdiskmanager.exe -r "Windows Server 2003 Enterprise Edition-000002.vmdk" -t 0 "Clone\Windows Server 2003 Enterprise Edition.vmdk"
    

    Once the cloning done so, create a subfolder "Backup" and move all over existing files (as a backup). Copy the .vmx file and .vmxf the subdirectory "Backup" in the D:\win2k3 folder, then do the same with the file hard cloned since the 'Clone' subdirectory, so that you end up with the following files:

    Windows Server 2003 Enterprise Edition.vmx

    Windows Server 2003 Enterprise Edition.vmxf

    Windows Server 2003 Enterprise Edition.vmdk

    Before you can try to start the virtual machine, you must edit the .vmx file and replace

    scsi0:0. FileName = "Windows Server 2003 Enterprise Edition - 000002.vmdk"

    with

    scsi0:0. FileName = "Windows Server 2003 Enterprise Edition.vmdk"

    Please do the above and report. If you have any questions please ask.

    André

  • Full encryption of the disk or partition virtual machine system

    Hello

    Please tell me.

    Full encryption of the disk or partition system on the virtual machine tools are supported? If I encrypt on the guest operating system, OS can start and run without ERROR?

    As a test, I tried with TrueCrypt full disk encryption, which is a free tool, and the virtual machine seems to operate normally...

    Thank you.

    Hello

    Dito on this point.

    I have a few windows with compression and encryption active hosts. No problems.

    http://blog.laspina.ca/

  • Burn the disk to a virtual machine?

    It seems that I cannot burn a disc of my virtual machine. I searched, and apparently you have to add the drive as a SCSI device. So I edited file (this file may be less organized!) machine's .vmx and changed all instances of ide0: 1 at scsi0: 1, but it seems to merge changed to IDE.

    So, how to configure a virtual machine to allow under 3.1 disc burning?

    Hello

    .. .and changed all instances of ide0: 1 to scsi0:1, but it seems to merge changed to IDE.

    Normally merge changes only return if you do not leave merge until you have changed the .vmx file.

    This meant that the file has been opened by Fusion during the time that you edited.

    Just as a note.

    Every time you handedit a .vmx file, make a backup before you change it, then you can go back if someone went wrong

    Hope this helps.

    --
    Wil
    _____________________________________________________
    VI Toolkit & scripts wiki at http://www.vi-toolkit.com

    Writer to the blog www.planetvm.net

    Twitter: @wilva

  • Error: "cannot open the file 'E:\NSP2010\NSP2010drive2.vmdk': one of the disks in this virtual machine is already in use by a virtual machine or a snapshot."

    Hello community.

    I use my guest for a while; whenever I needed to reboot the host, I would shut down the comments (in this case Win2008R2).

    The last time that I suspended the guest rather than stop it. Now when I try to start, I get this error.

    I've seen people having this error on the forums, but proposed solutions don't resolve my problem.

    I don't know what I have to join in order to diagnose this problem, but it will be a pleasure to do, if someone does.

    VMWare Workstation 8.0.2

    Host: Win 7 64

    Comments: Win 2008 R2

    Thank you very much.

    run inject them - headers2.cmd once you have copied the 2 files descin in place

  • Cannot resize the disk of the asm

    Hi, greetings of the day...

    I have created a disk of asm using asmtool as:
    asmtool - create 500 D:\Asm_disks\disk3;
    asmtool - create 500 D:\Asm_disks\disk4;
    Now when I try to resize the disk,



    SQL > select name, total_mb v$ asm_disk;

    NAME TOTAL_MB
    ------------------------------ ----------
    DATA_0000 2000
    DATA_0001 2000
    FRA_0002 3000
    FRA_0003 3000
    DATA_0002 500
    DATA_0003 500

    6 selected lines.

    SQL > alter diskgroup DATA resize disk size 'DATA_0002' 1000M;
    change DATA diskgroup resize disk size 'DATA_0002' 1000M
    *
    ERROR on line 1:
    ORA-15032: not all changes made
    ORA-15289: ASM DATA_0002 disk cannot be resized beyond 500 M



    Please help me in this regard

    Thank you
    Uday

    udayjampani wrote:
    Thank you

    I understand what you say, I have created a disk of asm with 500 MB of size using asmtool, so I can't resize using asm instance.

    1. What is the use of asmtool-added option, we can add an existing using this command drive space?

    This isn't for adding space, but it adds the label to the disk partition...
    asmtool - add \Device\Harddisk1\Partition1 ORCLDISKASM0
    >

    2 can you please explain this more, * it could be increased if you already held 300 total asm 500 disk space *?

    Think like OS, you have created a 10 GB partition for disk D:\ example. And now, you create files/folders with size of hugh (as some movies ;)) to drive D:\, so eventually your drive D:\ will fill. This is the case even with your asm disk, once you have used all your available space of the asm disk (that you created through asmtoll), you can not increase.
    By asmtool - create D:\Asm_disks\disk3 500, you assign the total size to 300 from the asm disk. Just as you add 10 GB partition for OS...

    You come to the backup from my point of view: it could be increased if you already worked 300 asm disk space total 500

    I have created the disk with the following text:
    asmtool - create 500 D:\Asm_disks\disk3 > size is 500

    I create diskgroup with
    SQL > create diskgroup DB 'D:\Asm_disks\disk3' size disc 300; > Here I wll use only max 300 size of 500 total. So once I get to the threshold of 300, I can increase the asm disk up to 500.
    As
    SQL > alter diskgroup DB resizing disk "D:\Asm_disks\disk3' size 500; > Increasing up to 500

    Default if the clause you SIZE omit while creating a diskgroup, asm then disc occupies all the available space of the device that you have created by asmtool

    >

    3. What is meant occupation here, not here where we can control the right of occupancy?

    We can control as I explained.

    See also article that explains: http://www.oracle-base.com/articles/10g/AutomaticStorageManagement10g.php
    Hope that explains

  • The maximum for a virtual machine disk size

    Hello

    Can I create a disk to a virtual machine that is larger then 2 TB?

    On a physical box, you convert dynamic disks and their band... but I think VMware recommend snot of dynamic disks.

    Thanks in advance...

    Hello

    2 TB is the max and also the MAX for several operating systems. If for any reason any if you need then you will need to do a bunch of multiple VMDK.

    For more information about the maximum size please see: http://kb.vmware.com/kb/1003565

  • How can I get the number of disks for a virtual machine and PAHO are / s of a disc?

    Hi all

    I would like to know if there is a command that returns the number of disks having a virtual machine.

    and also if there is no command to obtain and change the number of the IOPS / disk s.

    Thanks in advance

    Carlos

    It will give you hard drives attached

    Get - VM | Hard drive


    It will give you count

    Get - vm | Select name, @{N = "TotalHDD"; E={($_ | (Get-harddisk).count}}


    It is possible to retrieve the number of the IOPS / disk s, but what do you mean by editing.

  • Can join a Cluster of storage disk out of Maintenance DTS Mode to set up the profiles for a virtual machine storage policies?...

    Can join a Cluster of storage disk out of Maintenance DTS Mode to set up the profiles for a virtual machine storage policies?...


    IE can you define the rules of affinity DTS depending on how the rules of storage of profiles are configured for a virtual machine?

    In my mind it seems there is disconnect from the DTS and storage profiles.

    Thank you.

    = NOTE =.

    My lab at home, 2 organizes running ESXi 5.0

    Dv01 has

    Of startup vmfs 7200 RPM 160 G = dv01-BOOT

    Vmfs 1 TB 7200 RPM = VM02-VMFS

    VM02 has

    Of startup vmfs 7200 RPM 160 G = VM02-BOOT

    Vmfs 1 TB 7200 RPM = VM02-VMFS

    Vmfs 5900 RPM 2 TB = VM02-TV01

    I have (3) facility profiles of storage using 'User-defined storage Capablity' as shown below:

    (160 @ 7200 RPM SATA) boot > Boot

    Fast (160 7200 RPM SATA and 1 TB @ 7200 RPM SATA) > fast

    Slow (2 TB @ 5900 RPM SATA) > slow

    Then, I set up a storage Cluster with my local disks on dv01 (only to date)

    LocalVM disc dv01-BOOT and dv01-VMFS disk of the 'cluster of storage.

    I have a computer virtual called DC01 (HardDisk1) want to live on 'Boot' profile storage drive
    His "Non-compliant" poster according to the storage profile, it should run on drive 'boot' on dv01

    To get to this point, I put the StorageCluster in Mode of Maintenace 'DTS' and forced a sVmotion of all virtual machines off dv01-BOOT

    No disks are IO or claim of space.

    But once I take the 'DTS Maintenacne mode' STARTUP dv01 floppy is now get the DTS to return him to satisfy the storage profile (rule) I install... IE do the 'storage profile' VM complient (without doing a few externall API, the PS script or the 3rd party software calls)... ??

    Seems weird it is (or may be) such disconnection of a memory of the profiles and the StorageClusters and the DTS?

    Thank you...

    At this point, I think that storage DRS and storage profiles are two technologies to separate and work independently, but what you suggest is a great idea-

  • Extend the ROW when the disk is in virtual compatibility mode.

    Hello everyone, thank you very much for any help that you need to make.

    I am trying to extend a volume. The volume is a RDM. It is configured in virtual Compatibility Mode.

    I am able to extend the Lun on the SAN. When I do a new analysis in Virtual Center I see large volume. But when I go into Windows OS disk manager and rescan the disks I don't see extended volumes.

    I tried using the physical compatibility mode and it works.

    How can I go on the extension of this volume? Is it possible to do while the server is?

    Jeff

    There is no way I know to extend the RDM virt without virtual machine being down for a certain period of time.

    The advantage of virtual compatibility mode is tha ROW can participate in snapshots and behaves more like a vmdk. There are advantages and disadvantages of each type. See

    http://pubs.VMware.com/vi35/server_config/wwhelp/wwhimpl/common/html/wwhelp.htm?context=server_config&file=sc_adv_storage.12.6.html

    http://vmzare.WordPress.com/2007/02/19/VMware-raw-device-mappingrdm/

  • Questions about the archive/delete a virtual machine for later retrieval.

    We run VSphere 4.0 in a 10-node cluster.    We have a VM we want to remove the system, but we want to archive it so that we can restore it later if necessary.

    Initially, I was counting on stop the virtual machine, the navigation data store and copy the files to a local disk using the button 'Download' on the data store.  Then after the copy, by an "out of disk" on the VM on VCenter.

    Then later if we need the machine back, download the files and do a 'add to inventory' on the VMDK file.

    However, when I did the download, I noticed that VMDK files on the downloaded folder had names with "-flat" added to them.  So 'server.vmdk' became 'server - flat hard '.

    If I copy these files with the '-dish "in the name in VMWare later, they will come to OK?

    Or, given that I'm trying to (archive a virtual machine), is there a better way to do this?

    Your comments would be appreciated.

    Mike O'Donnell.

    That is right.  "Every hard disk to a virtual machine consists of a pair of files hard. One is a text file containing descriptive data on the virtual hard disk, and the second is the actual content of this disc. For example, a virtual machine named examplevm has a drive attached to it. This disc consists of a file less than 1 KB examplevm.vmdk descriptor and a 10 GB examplevm - flat hard flat file, that contains the contents of the virtual machine. ' - of Ko 1002511.

  • Get use of the resources of all virtual machines in a cluster

    Hello

    I have developed a measure of capacity management report that collects all the use of the resources of the virtual machines in a datacenter. The function that collects it looks like this:

    def hostMemoryConsumed =]

    def memoryConsumed = 0.0f

    def memoryGranted = 0.0f

    VMs. each() {}

    VM->

    try {}

    memoryConsumed += vm.host.memory.consumed.current.average / 1024.0f<----- how="" to="" do="" this="" to="" get="" from="">

    memoryGranted += vm.host.memory.capacity.current.average / 1024.0f

    }

    {} catch (NullPointerException e)

    }

    VMS is a function of type parameter VMS VMW

    The works above for virtual machines in the data center, but I need it to be after cluster. I can find a cluster of virtual machines, but I'm having trouble with referring to specific values for example consumed memory and capacity.

    If I change the type parameter: VMW Cluster how the metric reference would look like (see the try {})?

    I don't think that a query will help me.

    Thanks in advance

    Erik Alm

    If you want to do for a cluster, you can just get the list of virtual machines in a cluster of first and passing in your script.  If you have a function for a VMWCluster you can add a parameter for "vmwCluster" that is underneath and it should give you a table (topologyObjects) that has all the virtual machines in the cluster.

    QS = server.get ("QueryService") / / query Service

    tquery = qs.createStatement("!) (' VMWVirtualMachine where esxServer.parent.name = "+" ' "+ vmwCluster +" "" ") .setQueryTopologyObjects (true);

    topologyObjects = qs.executeStatement (tquery) .getTopologyObjects)

  • VMware Fusion 6 Professional - where is the possibility of locking VMware using a single virtual machine and do not allow the creation of new virtual machines?

    This is a quote from the VMware Fusion Professional 6 product page:

    VMware Fusion 6 Professional comes with IT administration tools to help you deploy VMware Fusion using Apple or a management solution third Mac as of JAMF's Casper Suite. Further reduce the cost of support of Windows desktop using the mode of single virtual machine that limits user access to the library of the Virtual Machine, the ability to create virtual machines or migrate PCs and reduces the options of the menu.

    Where can I find these IT administration tools?  I want to block my VMware users to a single virtual machine so that they can not blow by creating new virtual machines, etc.

    How can I do this?

    Thank you!

    Glitch004,

    You could follow the steps to activate the single mode of VM:

    1. turn power off all running VMS and out the merger.

    2. Add the following line to/Library/Preferences/VMware Fusion / config

    installerDefaults.simplifiedUI = 'TRUE '.

    3 restart merger and you will find:

    . VM library is hide in the VM menu.

    . only one virtual machine can be used, while click second VM Fusion of the reports ' Unable to open document. "

    Best regards

    Shanghai

Maybe you are looking for

  • Airpod risk

    so when I hear that the Airpod will have an infrared signal to connect both speakers at the same time, how can I be sure that will damage not cancer or have an impact on your overtime of health with the use of these? I'm not really wanting to have so

  • Toshiba 32LV933G still scanning loop. Does not start

    HelloI have Aproblem with my 32LV933G TV.When I turn on, a bar appears on the screen with the text "DO NOT POWER OFF. SCAN.When he finishes, again.I have can´t access to the menu, so I can´t do a factory defaultA picture of the problem:http://s2.subi

  • SATELLITE M40X - 189 dead noticed pixel

    Hello! In fact, I have a problem with my laptop with my LCD. Yesterday I noticed a pixel died on it and I did a test using the article on this Web site: http://www.gdargaud.net/Hack/DeadPixels.html. Finally I came to the conclusion of pain Yes: (my l

  • T410s dead touchpoint/pad - strange looking for cables...

    Hello I have a T410s (2924-WDR) with sensor dead of touchpoint, touchpad and fingerprints. Keyboard is fine. The keyboard was struck by a pure mineral water several days ago. The machine was dismantled and could dry for 2 days. The 2 images show the

  • Freeze in Windows XP problem

    My computer freezes for about 5-10 seconds, then continues on. This happens in all programs.  I have Windows XP Professional Version 2002 Service Pack 3. I have AMD 64 X 2 Dual Core Processor 5200 + 2.60 GHz. 3.25 GB of RAM.  My hard drive is only ha