Connect physical hard disks to the virtual machine (and leave the data intact)

Hello

I'm looking to virtualize a SOHO headless server, that I use mainly for secure file storage.

Currently, the system runs Linux installed on a small disc and has two drives 1.5 TB, used exclusively for data, in a cluster of ZFS mirroring. (I use the ZFS-fuse Linux-based application).

I want virtualization for two reasons. One is to make administration easier and safer - avoid having to connect a keyboard and the physical monitor to the box from time to time. The other is that the machine is a bit more powerful to handle the load, and I'm hoping to make it work on other, more challenging tasks.

Now, there is a catch. These discs are as highly important. I mean the data on them. What I need is to convert the current Linux system to a virtual machine, or re - install Linux on a virtual machine (don't like that), then connect the physical disks to the virtual machine as if they were actually connected.

I certainly don't want to vmware touches those disks somehow.

I've read the documentation, but I'm a noob when it comes to server virtualization and system engineering and don't quite understand if this is possible or not. These discs are not a SAN, they are physically connected to the server, I want to install vSphere on. (Of course, I'll log out when I run the setup of vSphere. But I need plug them again later, and they need to be sure that vmware will leave them alone and pass them to the virtual machine transparent.)

Sigmoid wrote:

Oh yes, the cluster mirrored ZFS. It is essentially a software RAID type thingie.

http://en.Wikipedia.org/wiki/ZFS

A material, or the point of view of virtualization, it appears two hard drives with a single huge partition on each that is not transparent to anyone, except the implementation of ZFS.

OK, means that you can break the RAID, connect the drives to different host and configure RAID once again, right?

Let's do it this way

  1. We will need a disc player more for VM, cause on flash, we install ESXi
  2. I will share ZFS :-), all you need to do with that before you install ESXi
  3. make the BACKUP!
  4. Disconnect the data host drives
  5. install ESXi 4.1 U1 free version on flash
  6. Download the site VMware vSphere client
  7. Connect the VM disk to ESXi
  8. customer help create the virtual machine and install the OS on it
  9. stop the virtual machine and esxi
  10. connect DATA drives to the ESXi host
  11. begin to ESXi
  12. See how to add RDM on youtube, after client use, change first hardware VM--> add a new hard disk--> choose Raw Device Mapping--> (physical or virtual) mode--> store it with folder VM - FACT
  13. Start the virtual machine, now your VM should see both drives, with good data course :-)

I have just made this procedure (add ROW with data in Linux VM) on ubuntu VM, works well

Tags: VMware

Similar Questions

  • How to make a visible USB hard disk for a virtual machine on ESXI 4.1?

    Hi all

    As I am new to the world of vmware ESXI, I always make mistakes or I don't undertand all therefore be complete :-).

    So I have a HP Proliant ML 350 G6 Server installed with ESXI 4.1 and I want to connect a USB hard disk to a virtual machine (SBS 2K 8). Currently, the virtual machine is not able to see the hard drive.

    I already add a USB controller to the virtual machine, but my USB HARD drive is still not visible to my virtual machine.

    Can you help on that?

    Thank you

    Michael

    Next, add a USB device to the virtual computer (in the change settings tab), there are different things, USB controller and USB devices. Sometimes, you may have to restart the virtual machine.

    Greetings

  • 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.

  • How to specify the file of virtual hard disk when you create a new virtual machine using virtual hard disk on the data store?

    I'm new to PowerCLI and find quite simple, but in the documentation I read, I don't see how to use a virtual hard drive, existing on a data store when you create a new virtual machine.

    Is this simple registration on the virtual hard disk, or did I miss something?

    My current create VM is the following statement:

    New-VM

    -Name $TargetHostName -host $TargetVMCenterHost -data store $TargetVMCenterDatastore DiskMB - 20000 -MemoryMB $TargetHostMemoryMB -NumCPU $TargetHostCPUs -ID $TargetHostOS -CD -Description $TargetHostName

    Didn't notice this before, but I think that vSphere will use a backslash instead of a slash in the paths.

  • How to resize hard disks of a virtual machine?

    Here's the scenario, we virtualized just a physical machine.

    The (c) is 20 GB, and (d) is 190 GB.  We had to maintain these sizes during the P2V, then re-run the P2V and resizing is not an option (the physical machine is in production and should maintain the current States of its disk).

    From what I can tell, these two (c) and (d) are on a virtual disk (vmdk), which is to ~ 210 GB in size.

    Now that we have virtualized, I could clean the disks and delete unnecessary data.  Now I need to change the (c) for 30 GB and I need to change the (d) to be 50 GB

    Can someone please advice of office?  How to cultivate the (c) and shrink (d) while they are both on a virtual disk (vmdk)?

    In which case it is important, we use a SAN with the left hand.  Our esx-data store is 1 TB, with plenty of room.

    Thanks in advance,

    Chris

    Highlight the host you want to convert to (could be the cluster), then right click and select "import machine".  It will then launch converter.  You can do it on by selecting 'Powered on machine' or if feed you first, you can import it as a virtual one by specifying the host / virtual center.

  • ESXi 5: plug the HARD physics to VM disk and leave the data intact

    I read the next post, which indicates that it is possible to the physical HDD to connect to the virtual machine and leave intact to ESX 4.1 data

    Is this also possible in ESXi 5?

    Depending on the type of disc you want to attach as an RDM, http://www.vm-help.com/esx40i/SATA_RDMs.php might be useful.

    André

  • Increase the size of virtual hard disk to a virtual computer with snapshots

    Is it possible to increase the size of a virtual hard disk on a virtual machine that has snapshots on this subject?  I can use VMware converter to increase the size of the disk, but who commits snapshots during the conversion-

    Thank you

    As everybody said that it is not a good idea to increase the space for a VM with a snapshot.   The snapshot files are all related originally vmdk and when you change this vmdk he breaks the link.

    A particular reason that you cannot commit the snapshot before adding the space.

  • Convert a hard drive to a virtual machine

    I have a server that the material died which has mirrored hard SATA hard drives in them.  I would like to convert the data on that hard drive to a virtual machine and put it in my vCenter, but I am unable to start the server.  What is the best way to do it?  I can mount and read data from Windows on another machine.  Right now I'm trying to back up data until an acronis image and then use converter to import.  I think it is easier to sense, though.   I also have a backup server Symantec Backup Exec, but I do not have the agent ESX for Symantec.

    Thank you

    Dave

    If you want to try the converter, just fix the disk on a physical host somewhere and run a normal conversion.

    Once you have done this, create a new empty virtual machine with no disc and you fix vmdk for the reader you want migrated to this new virtual machine. Chances are that you will get the normal NT Loader boot error when you try to start, but you should be able to solve this problem using a fo the following:

    DiskPart

    Fdisk

    Recovery Boot

    You can also consider to use something else than VMware converter - perhaps something like Acronis True image?

    Good luck and please feed back.

  • I get an error "the disk hard virtual parent is in a saved state. Discard the saved state or stop the virtual machine and try again. "during the installation of XP mode.

    I have Win7 Pro SP1 x 64.  I downloaded WindowsXPMode_en - us.exe (from Microsoft downloads) and run it.  The installation seems to work OK (I've specified a different location for the parent virtual hard disk file).  Then, installation happening and I provide the information requested (name of user and password for the XP Mode), updates Windows and OK to the issue of sharing.  The installation program then reports the following error:

    The disk hard virtual parent is in a saved state.  Discard the saved state or stop the virtual machine and try again.

    I get the error even if I try manually configure XP Mode (use the Setup Wizard).  I downloaded the installer XPMode (3 times) and reinstalled several times, always with the same result.  If it helps, I can't locate anywhere .vsv file.

    Any idea what's going on?

    Original title: XP Mode Setup error

    Hi smithnr10,

     

     

    You must post your question in the TechNet forums because it caters to an audience of it professionals.

    To do this, you must consult the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprovirt/threads

     

    Hope this helps!

  • Move the physical hard disks to new server

    First of all, before I have offend anyone wrong, yes there is a back-up. The "Extend reasons" why would I be willing to do this style of rough house upgrade are given below


    Simple explanation of the problem

    I have moved the physical hard disks (6 discs in the 0 + 1 array) in a HP Proliant ML350 G6 low for HP DL360 G5.

    The hard start and loading VMware 4.0 disks but no network connection. It shows the assigned static IP but no connection to the network.

    Also tested network cables. ;-) Firmware update on both boxes

    I have improved the VMware ESXi 4.0 to HP VMware hypervisor 5.1(1??) Edition, still no IP connection.

    Any Suggestions to get this NETWORK card IP address running?

    The drive in the array goes back to the system original and boots with work IP (and upgrading VMware 5.1 too)

    Extent of the reasons

    It is a small business with a single physical server, we borrowed a temporary server (used) from our supplier

    The current table (6 x 136 GB drives 0 + 1 array) has 408 GB of usable space. The person who made the initial VMware/OS load charge did not increase the block size for the Server Windows Small Business 2008 has a maximum of 320 GB volume

    Which is now max out.

    The goal is to have the production server upgraded to (8 x 450 GB drives 0 + 1 array) to 1.8 TB of usable space. Ideally the SBS 2008 will be migrated from the temporary server on the production server with sizes of block appropriate for larger volumes. The intensity of the current SBS has VMware unrelated corruption that would also give reason why we do not want the original charge on the new drives in the production box.

    It is also an Exchange Server which is critical for the company, I can't bring down the server for more information, then 1 hour without impact 7 x 24.

    The Back-up exists but isn't something suitable like a Veeam but is Microsoft Backup to disk iSCSI

    Hi, what I would say to access this server esxi through DCUI and access network configuration. If you can't see the network cards then you can also assign IP address from there for the management and you can also select NIC, you want only for management purposes.

    Thank you

    Hussain

  • Script to get the capacity of HARD disks on a virtual computer

    I need to add a line to the script below which will get the additional HARD disks on the virtual machine. At the present time, its just by pulling the primary OS info.

    $VmInfo = ForEach ($Datacenter in (Get-Datacenter | Sort-Object -Property Name)) {
      ForEach ($Cluster in ($Datacenter | Get-Cluster | Sort-Object -Property Name)) { 
        ForEach ($VM in ($Cluster | Get-VM | Sort-Object -Property Name)) {
          ForEach ($HardDisk in ($VM | Get-HardDisk | Sort-Object -Property Name)) {
            "" | Select-Object -Property @{N="VM";E={$VM.Name}},
              @{N="Datacenter";E={$Datacenter.name}},
              @{N="Cluster";E={$Cluster.Name}},
              @{N="Hard Disk";E={$HardDisk.Name}},
              @{N="Disk Size MB";E={$HardDisk.CapacityKB/1024}},
              @{N="Datastore";E={$HardDisk.FileName.Split("]")[0].TrimStart("[")}},
              @{N="VMConfigFile";E={$VM.ExtensionData.Config.Files.VmPathName}},
              @{N="VMDKpath";E={$HardDisk.FileName}}
          }
        }
      }
    }
    $VmInfo | Export-Csv -NoTypeInformation -UseCulture -Path "N:\Excel_Reports\VmInfo.csv"
    

    The RED line is the line that pulls a HARD drive, but I'm looking for enter all HARD DRIVES and the release info... I'm sure it's something simple, but I can't find the command

    Just realized that I pasted the script in plain text format, so no formatting was held...

    sound this good line

    @{N="Disk Size MB";E={$HardDisk.CapacityKB/1024}},
    

    There was a typing error in the code, I've corrected the above code.

    Please try again.

  • Delete a partition in a virtual machine and expand the initial allocation of hard drive

    I have created a virtual machine running server 2012R2 with an allowance of 60 GB drive. I decided after doing hours of work on the virtual machine I had assigned too little disk space for the virtual machine. I decided that I just go in vSphere and change settings and add to the existing space. The problem is that it has created a new partition rather by increasing the size of the original, which doesn't help me. How can I remove this new partition and just expand the original that has been allocated when I created this virtual machine?

    Thank you

    Hi Paul,.

    Could you clarify what you mean by;

    The problem is that it has created a new partition rather by increasing the size of the original

    (A) do you mean you modified the virtual machine and added a second disc, rather than increase the size of the original? or;

    (B) you increase the size of the original disk and create a new partition in this free space?

    Be that as it may, the question should be simple to solve;

    (A) remove the second disk you don't need, increase the size of the original. Then from the OS Disk Manager, rescan the disks and extend C:\ in free space.

    (B) delete the partition that you don't need. From the OS Disk Manager, expand C:\ in free space.

    See you soon,.

    Jon

  • is there an action to add a disk to a virtual machine by specifying a vmdk file?


    I'm trying to reproduce the functionality of the GUI to add a drive (not create new) existing in a virtual machine and specifying the hard file that will be used.  You would change from the GUI, then add and choose the hard drive.  Then choose Select the use an existing hard drive and dig into the specific to the hard file data store.

    After selecting the hard, then choose the SCSI device and channel and complete the wizrard.  After you add the disk, then go back and select the hard disk and choose manage paths to change the walkway on the MRU policy.

    Ideally, the user would be able to use something like VC:Datastore use a tree view to point to the vmdk when adding the drive, however I tried VC:Datstore and it only allows you to go as far as the data store but not more to specify the drive.

    Thank you

    Here is the script updated with the VCVirtualDiskRawDiskMappingVer1BackingInfo backup type.

    backup of var = new VcVirtualDiskRawDiskMappingVer1BackingInfo();
    backing.fileName = diskPath;
    backing.diskMode = "independent_persistent";

    backing.thinProvisioned = false;

    backing.eagerlyScrub = true;

    backing.writeThrough = false;

    backing. Split = false;

    connectable var = new VcVirtualDeviceConnectInfo();
    connectable.startConnected = true;
    connectable.allowGuestControl = false;
    connectable. Connected = true;

    Like var = [];

    do we need a Comptroller?
    If (scsiControllerKey< 0)="">
    controller of var = new VcVirtualLsiLogicSASController();
    controller.sharedBus = VcVirtualSCSISharing.fromString ("physicalSharing");
    controller.busNumber = scsiBusNumber;
    Controller.Key = - 100;
    scsiControllerKey = - 100;

    var deviceChange = new VcVirtualDeviceConfigSpec();
    deviceChange.operation = VcVirtualDeviceConfigSpecOperation.add;
    deviceChange.device = controller;

    dcArr.push (deviceChange);
    }

    device of var = new VcVirtualDisk();
    Device.Key = - 101;
    Device.backing = support;
    Connectables = device.connectable;
    device.controllerKey = scsiControllerKey;
    device.unitNumber = scsiChannelNumber;

    device.capacityInKB = size * 1024 * 1024;

    var deviceChange = new VcVirtualDeviceConfigSpec();
    deviceChange.operation = VcVirtualDeviceConfigSpecOperation.add;
    deviceChange.device = device;

    dcArr.push (deviceChange);

    spec var = new VcVirtualMachineConfigSpec();
    spec.deviceChange = like;

    This enables the multi-writer on disk

    option of var = new VcOptionValue();
    option. Key = 'scsi' + scsiBusNumber + ': ' + scsiChannelNumber + '.sharing;
    option. Value = "multi-writer";

    var extraConfig = [];
    extraConfig.push (option);
    spec.extraConfig = extraConfig;

    task = vm.reconfigVM_Task (spec);

  • Allocation of disk space to virtual machines

    I played around with assigning physical disk space to a virtual machine, in the "Add Hardware Wizard", I selected hard drive & gt; Create a new virtual disk & gt; He gave a size of 100 GB stored with the virtual machine and not independent.

    When I started the VM space, which is all that I wanted to check if I stop the virtual machine. Rather than remove the new hard drive 2 settings of the virtual machine, I have restored a previous snapshot without the new HD. Now when I check the free space on datastore1, it seems that the 100 GB does not have to be added to the free space.

    I did something wrong?

    UPDATE:

    I just tried the process again but this time assigned 8 GB.  Then I checked free space on datastore1, and now I have the 100 GB back, less the 8 GB I just posted.  Any ideas?

    If you take out it just of the virtual machine, it does not actually remove the virtual disk that you created. As you say, there are 2 options when you remove the drive, we need to remove the virtual machine, and we need to remove the disc. If you remove the disk from the virtual machine, it will always keep the file even if it is not associated with a virtual machine. There is no question to delete this file. Just make sure that you delete the correct VMDK. It's easy, if it's the only drive of 100 GB or 8 GB, you have created.

  • Partitions of hard drive on a virtual machine

    Hello

    I have a few questions related to the hard drive on a virtual machine.

    1. is it possible to create multiple hard drive partitions (virtual hard disk, we can add, modify the virtual machine settings) that we have in our PC? In the case the ESX Server and Workstation?

    2. in WMware Workstation by clicking on change settings for virtual machine, I've added an extra IDE drive and allocated 1 GB of space, so now I have two hard drives. I said my virtual machine (Windows XP is the guest operating system), I expected to see the additional drive as "D:", but it was not! What stage is omitted by me?

    Thanks to AdvanceSalahuddin

    1. Yes.  Treat your virtual machine exactly as you would with a physical.

    2. yet once, as you would in a physical installation.  When you add a hard drive, you must go in disk management, select the new drive, create a partition on it and format the partition.

Maybe you are looking for