Move a vmdk attached to a virtual machine

We have two Equallogic 4000 s in a group and three ESXi servers attached to them by a network of dedicated storage.  ESXi servers have essentially more license with HA activated.  I have a virtual machine that is an Exchange 2007 server.  It has 5 VMDK attached to it.  I want to spend one of them in a different data store.  It is install the vmdk that hosts the Exchange 2007 application.  I want the rest of the VMDK to remain in data warehouses that they reside currently in.  How can I do this so that I do not destroy the installation of application Exchange 2007?

Thank you

Brian

You must power off the virtual computer, then use migrate / change data store / advanced.

Unfortunately the most essential edition doesn't have the SVMotion license, so you can not with the virtual machine.

André

Tags: VMware

Similar Questions

  • Command to list all the hard files that are attached to a virtual machine

    Hi people,

    I am documenting our infrastructure. I would like to a command that lists all the vmdk files and the virtual machine, they are attached. I'm sure that I've done it before, but I don't remember the command. Thank you

    in advance.

    Paul

    You could use Powershell and make a request to Virtual Center, if they are available:

    A basic example:

    SE connect-VIserver

    Get - vm | Select Name, @{Name = "VMDK disks"; {Expression = {$_ | get-harddisk | select filename}}

    / Rubeck

  • Manipulate the vmdk is attached to a virtual machine

    I'm looking for an API or SDK or method or library or hack that will allow me to move the virtual disks between the virtual machines. I'm looking for a way to "detach" a VMDK to a VM (power off) and then "link" it to another virtual machine, which would then be able to read and write to and from the (virtual) disk, like his own boot disk? Something along the lines of: (Java psuedocode)

    The API method you use is the ReconfigVM_Task - http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.VirtualMachine.html#reconfigure and who is a generic method on the reconfiguration of your virtual machine under the name of the States method. What you need to do as part of the reconfiguration, is to create a specification of deviceChange that performs a specific operation for the VMDK in question. You will perform a 'delete' operation that allows you to detach and you can then create a new file deviceChange for the virtual machine specifications in question perform an operation 'Add '.

    Here's vSphere SDK for Perl script that implements the basic functionality that you can use as a reference

    http://communities.VMware.com/docs/doc-11213

  • newbie question - vmdk transfer on another virtual machine on the same host

    Hello

    can I transfer a vmdk 1 vm to another and mount it?

    I have a vm of windows server with a 2nd virtual hard drive that has data on it. rather than to make a copy of file in a file to another virtual machine with a 2nd hard drive and then delete the second original disk, could I just disassemble and remove the second hard drive to the original virtual machine and then attach it as an extra hard drive to the second vm?

    pointers would be appreciated.

    Louis

    y at - it no problem tell move a ntfs disk to a file for example linux server

    Mode not read-only (but you lose the NTFS and share permissions).

    André

  • Problem fixing existing vmdk to the new virtual machine

    Hello

    Just upgraded to Fusion 6 and things seem ok (except for the dreaded license bug, but it's ok now).

    I'm having a problem attaching a form of virtual disk existing a VM - operation - existing. Basically, all the vmdk files are grayed out and non-eligible, regardless of the option to share / copy / to support the disc.

    I checked that I have full R/W access to the fie (and it works fine if I fire up the other virtual machine).

    Any idea?

    Well I ended up adding another player new to the virtual machine, I wanted to and the drafting of the description of disk (Disk DescriptorFile #)

    in the manually - vmdk file works great...

  • Add physical disk to disk attached in ESXi virtual machine

    Hi friends,

    I would have attached physical disk to the virtual machine, I explain:

    I have a freenas VM create in ESXi 5.5 but I want to add a new hard drive, this hard drive is a physical, fixed equipment in my 5.5 ESXi, possible? If Yes, how?

    After I want to mount iSCSI in freenas and I'll make backups

    Thank you very much

    Rapici

    Hi brunofernandez1

    very thanks for the doc, I'll try Raw Device Mapping and explain

    Thank you very much

    Rapici

  • Associating a VMDK disk to a virtual machine

    Hello

    I implement the restoration of a saved VM. I created the virtual machine with the virtual machine configuration information upwards. I have also created the disk in Esx Server using the CreateVirtualDisk_Task call with the thin option in the VirtualDisk_Spec (hope it creates a thin provisioned disk). Now how to associate the disk created with the VM newly created using the vstorage api. When backing up I've accessed your drive hard details with VM-> Config-> hardware-> virtualDevice. Fill this data structure with the details of the hard drive? What is the best way to add a hard disk created in a virtual machine?

    Thank you

    . / Siva.

    Hello Shiva!

    But anyway the Vmdk file created must be fixed with the VirtualMachine right?

    Yes, you are right, but I would suggest taking a different route - it becomes a bit redundant but all I declare now is purely my understanding of documentation, etc., that is not yet done in the real world - you know I'm still working on the persistence of VMConfig if you are away in front of my friend:

    I suggest not to use the CreateVirtualDisk_Task (...) at all. If I understand correctly, you condition is currently to fully restore the virtual machine. There you have the backup of disks and configuration of the VM and now to recreate the entire VM from scratch with raw empty disks that reload you the backup content.

    From my point of view, all this, except the reloading can be done via the Folder.CreateVM_Task (...) and its VirtualMachineConfigSpecparameter. Through the ConfigSpec.deviceChange property, you can provide an array of data objects VirtualDeviceConfigSpec. Finally, you can specify a VirtualDeviceConfigSpec which creates a VirtualDisk. The following was borrowed here:

    // Duplicate virtual machine configuration
    VirtualMachineConfigSpec configSpec = new VirtualMachineConfigSpec();
    // Set the VM values
    configSpec.setName("My New VM");
    configSpec.setVersion("vmx-04");
    
     ... 
    // Now add in the devices
    VirtualDeviceConfigSpec[] deviceConfigSpec = new VirtualDeviceConfigSpec [5];
    configSpec.setDeviceChange(deviceConfigSpec);
    
     ...
    
    // Formulate the SCSI controller
    deviceConfigSpec[1].setOperation(VirtualDeviceConfigSpecOperation.add);
    VirtualLsiLogicController scsiCtrl = new VirtualLsiLogicController();
    scsiCtrl.setBusNumber(0);
    deviceConfigSpec[1].setDevice(scsiCtrl);
    scsiCtrl.setKey(-44);
    scsiCtrl.setSharedBus(VirtualSCSISharing.noSharing);
    // Formulate SCSI disk one
    deviceConfigSpec[2].setFileOperation(VirtualDeviceConfigSpecFileOperation.create); // create disk file
    deviceConfigSpec[2].setOperation(VirtualDeviceConfigSpecOperation.add); // add disk to vm
    VirtualDisk disk = new VirtualDisk();
    VirtualDiskFlatVer2BackingInfo diskfileBacking = new VirtualDiskFlatVer2BackingInfo();
    diskfileBacking.setDatastore(datastoreRef);
    diskfileBacking.setFileName(volumeName);
    diskfileBacking.setDiskMode("persistent");
    diskfileBacking.setSplit(new Boolean(false));
    diskfileBacking.setWriteThrough(new Boolean(false));
    diskfileBacking.setThinProvisioned(true);
    disk.setKey(-1000000);
    disk.setControllerKey(new Integer(-44));
    disk.setUnitNumber(new Integer(0));
    disk.setBacking(diskfileBacking);
    disk.setCapacityInKB(524288);
    deviceConfigSpec[2].setDevice(disk);
    

    Foregoing, we learn that the VirtualDeviceConfigSpec governs the creation and the addition of the disc, or more broadly, the VirtualDevice, to the virtual machine that will be created. In regards to records remember to recreate the news of support according to the configuration that you have saved for your backup. This should give the correct disk, type in your thin case put into service.

    If I did not know any subject do not hesitate ask - this post is a little complicated to write ;-)

    Anyway hope it do you get going again...

  • List of total size of all the vmdk on a virtual machine in the UK

    What is the best way to enumerate the total size of all the vmdk attached to a virtual machine in the UK?  (If the virtual machine has RDM (RDM mode virtual or physical), that I need to include these RDMS in total)

    Thank you!

    Something like that

    Get-VM | Measure-Object -Property UsedSpaceGB -Sum |Select -ExpandProperty Sum
    
  • New vmdk virtual machine, comments system really necessary?

    The scenario: I used the tool from Terabyteunlimited (Copyp2v) to create a vmdk to a physical Win XP Pro machine.  Works like a charm.  Installed VMware Workstation 10, created a new virtual machine and skipped the guest operating system, has chosen the vmdk and started the virtual machine.  He started on the office and started looking for drivers.  Down on a bar looking for ToolTip appears "install Windows XP Professional as you ' d on a physical computer.". When you are finished and that the operating system starts, click "I've finished the installation. »


    I'm confused as the vmdk is a disk with Win XP Pro installed.  I have a new unused copy of Win XP Pro, but I have to install it?  The virtual machine is running without him?  What is a performance problem or a problem of license?  Thanks for the help!

    You can ignore this message, but on the missing drivers, you will need to install VMware Tools on this new VM.

  • move a virtual machine from one to another logic unit number

    Here is the environment:

    -ESXi Server

    -ISCI in a SAN

    -the SAN consists of the 3 LUNS (data warehouses)

    -the virtual machine is stored on the LUN #3

    -the virtual machine is the first drive on the #3 LUN and the second drive on the LUN #2

    -I would like to move all the contents of the virtual machine of the #3 to the LUN #2 LUN

    -I have no vMotion or vCentre, just the plain ESXi 3.5

    Since I am new to this, I have a concern consider so that it starts the virtual machine after the move, and there are fears a possible fragmentation.

    I have not found a similar thread that covers the same setup here, that's why I'm here.

    Thank you.

    I'd do it:

    -Detach the first disk of the virtual machine

    -Remove the VM of the inventory

    -Explore data warehouses and move all the files to lun 2

    -Add once again the VM on the inventory (right click on the VMX file)

    -Add once again the first pre-existing disk

    Marcelo Soares

    VMWare Certified Professional 310/410

    Technical Support Engineer

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

  • ESXI 5.5 move SQL vmdk

    I have a SQL 2000 VM server that has the following provision:

    An OS VMDK

    a vmdk of data (with the sql on database)

    a backup VMDK (also the log drive)

    It runs in Server 2003 R2 standard

    I need to move the database to a new virtual machine that is running Server 2003 Enterprise R3.

    What would be the best way to move it to the new virtual machine? I need little time as possible to the bottom.

    and what pitfalls should I expect?

    Hello

    How big are the discs you are trying to move?

    My gut feeling would be to test it by cloning the VM SQL then existing tests to pass this clone disks, so that offline (off-grid) on your new server and pointing the SQL DB and the files on the disks that have been added. See if the DB fires upward in a off-grid, stand-alone environment. If Yes, then you are in business and has a process to move forward.

    I'm not a SQL, so there may be other considerations when moving from DB and files I don't know. Another sure way of fire to do this would be to test the existing SQL DB with a full backup of backup and restore just in the new server. This could take a little longer, depending on the size, but it is actually a restoration on a new server. Who I'm sure there are many SQL items on the internet for.

  • After Reboot virtual machine - VM not no projection in host, orphaned in vCenter

    Hi all

    I had a server 2 k 8 running as an IIS server.  While using it last night, he hung up on me and I couldn't restart it.  I went in vCenter and restarted from there and the VM looks ok to stop, but he would not return to the top.  I tried to start but got an error.  Then in the host ESX and virtual machine was no longer available at the level of the host and on the vCenter, it showed also orphaned.

    I did a reading online and follow a guide who was told to remove the orphaned VM and add the VMDK as a new virtual machine.  After these steps, my VM boots now beyond the BIOS screen, and starts to load windows then get a quick second BSOD split, then the VM restarts and gives me the possibility of:

    -Start windows normally

    -Windows startup recovery

    If I boot normally, it makes a loop in the same cycle, if I do a start of the recovery, it gives me the normal windows recovery tools.  In the diskpart tool, I see the end as well as the disk partitions.

    Can someone the tsar me in the right direction? My guess is that something in the files of the virtual computer is corrupted, causing windows back his process of starting because of a hardware problem... ?

    I have attached a few newspapers too.  Thanks for the tips!

    If this is the only virtual machine affected, then this is probably the OS corruption. You can deploy a new virtual machine and migrate data on existing records to the new (just to mount the VMDK on the new virtual machine) or go to the effort of the diagnosis and repair of the system.

    If you are going to do the later, then start by identifying the BSOD error - is is a mistake of 7B? (please post a screenshot). You can start in safe mode? If you can, it would be from a local value of core dumps are configured so that you can run the. DMP file via WinDbg to debug the stop error... This will give you information about this driver etc. is causing the crash dump.

    See you soon,.

    Jon

  • Shows poor drive on a virtual machine of SBS 2008 under ESXI 4.1

    Hi all

    I'll be back with a question on the locations of files vmdk and best practices.

    With my colleague a great discussion raised about vmdk locations for a virtual machine that runs a heavy installation of SBS 2008. Where to place the files vmdk on the data store, and how to optimize for best performance.

    This is the context. We recently bought a ML350 G6 server with 2 * RAID1 SAS 10 k. We have installed ESXI 4.1 on the first RAID1 array (datastore1) and the second RAID1 array, we created datastore2.

    On the ESXI server, we have created a VM SBS2K8. And here is the discussion:

    We have configured the vitual HDD for this virtual machine as follows:

    DATASTORE1:

    Next to the ESXI installation, we created 1 vmdk where we have installed OS by VM SBS2K8 partition

    DATASTORE2:

    We have created the 2nd vmdk where we have installed the DATA by VM SBS2K8 partition

    For your information, directly after the installation we moved the log files and database Exchange on the second partition on DATASTORE2

    Everything was nice during installation of the virtual machine, also during the installation of SBS 2008. The problems came just after the end of the import of the pst files in the Exchange database (+ / 20 GB for pst all together).

    The virtual machine is so slow, when we try to copy, backup files locally. I checked the performance graph in VSphere Client when we copied the files or backup. The disk latency, data store, virtual disks to the level has exploded.

    This is a point that the console has become completely insensitive during summits...

    My opinion about it, is that it would be better to put 2 vmdk for virtual machine on DATASTORE2, but maybe I'm wrong. That's why I post here we are again.

    All the recommendations, advice, are welcome. I don't know if the problem comes from the design of the virtual machine itself or we forgot something during the installation.

    Is there a good literature on the vmdk files? Location, design...

    Thank you for all your help on this point,

    Michael

    It sounds like you bought the DL350 G6 with P410i controller but no BBWC/FBWC not attached to the writeback operation. Without BBWC/FBWC, you will generally see less of ~ 10-20 MB/s.

    Place the operating system partition and data on different data stores in this case makes no difference at all.

    André

  • Physical disk how can I add in the Virtual Machine?

    I am trying to set up a network of storage, but I discovered it is there is a limitation for the addition of physical hard disks in the virtual machine.

    I have 1 virtual hard disk for the operating system (SCSI), an invited so I try to add more than 4 disks, but it should not add more than 3. They showed that (IIRC).

    I try to add 4 x 1 TB as physical hard disk in virtual machine hard disks, but it says that I must remove one to add.

    1. in the settings of the Virtual Machine, is there a difference between (SCSI) (IDE) and why are the physical disks (IDE)?

    2. What is the limitation of total hard drives under the VM settings, four?

    Johwwy

    physical disks can be detected such as IDE or SCSI - depends on the drivers used by the host

    SATA in ide-compat mode is used as IDE

    SATA AHCI mode is detected as SCSI

    It is possible to rewrite the descriptions after their creation.

    It is a little advanced - see my notes

    http://sanbarrow.com/VMDK-basics.html#changeadapter

    for a start, it may be necessary to also change the geometry... ask first so uncertain.

    I think the limit of physical disks that can be attached to a virtual machine is 64 = 4 x 15 - scsi and IDE 4-disc drives

    _________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • Names of Virtual Machine files changed after SVMotion

    To date I've seen point interesting when I was trying to SVMotion. Here it goes

    I have a virtual machine called base01 (as it is show VC), but the real name of this virtual machine is ROMBASE02 (the console I see all files including VMX, vmdk etc...). I found this, because I tried to do with unsuccessful SVMotion. later, I tried to make SVMotion with ROMBASE02.vmx and success. After completing of SVMotion I found that all the files of the virtual machine has changed for base01.

    How it is possible an idea?

    as Jean-Marie said, if you have a vCenter VM that does not match the data store named naming convention, if you move (cold migrate or sVMotion) the virtual machine in another data store, it will change the datstore file to match the name of the object in vCenter.

Maybe you are looking for