USB HDD as a data store and storage of VMS and new virtual machines

I have a server Esxi 4.1 with 1 TB RAID 5 storage and 3 virtual machines. The storage is full and no space for another HARD disk, so my question is: would it be possible to use a USB HDD as a data store and could be included as a storage for new virtual machines or the VM? If so, could someone let me know how to do it because I'm not able to detect the HARD disk on the host itself.

No, it is not possible to use a USB drive as a data store.

Linjo

Tags: VMware

Similar Questions

  • VMotion and new Virtual Machine problems

    Hello

    Got a VI2 farm with 3 ESX servers.

    1 of the ESX servers play big time... when I try to VMotion VM him another 2 or create a new virtual machine, it gives the same error message ' reason: could not start the operation of long duration for the server VM.» Reason: Failed to get the directory config (basename = servername"

    Can I migrate from the problem for the other 2 ESX Server but not for her. Cold cant migrate either.

    I checked the logs, rebooted and rebooted vCenter Agent. Still no luck.

    Any help appriciated!

    This thread help me?

    Check this one, too.

    Basically, it seems that the system has trouble finding / access to one or more of the files associated with the virtual machine. Given that you can migrate to and not the host, I suspect it's the permissions problem reported in the first thread.

    Ken Cline

    VMware vExpert 2009

    VMware communities user moderator

    Blogs about: http://KensVirtualReality.wordpress.com/

  • How can I add a data store as an additional drive for a virtual machine?

    This is probably very simple, but honestly, I'm quite a n00b when it comes to networking and sys. Small business being at low cost...

    OK, I have a HP DL360 G5 running ESXi 3.5 with 2 virtual computer management. The first is a cloned Win 2003 SME (I had to save the last days of server primarily was about to fail), the other is a Win XP VM (which is just share a single file to 6 users)

    The server currently has 2 x 73 GB 10K SAS RAID 1. I installed another drive of 73GB 15K and seen in V: IC, I can add the storage, but how the VM of 2003 to see the new disk space? I need to be added as an extra, (e) disk in this case.

    TBH I don't know even if I added the next Assistant in V: IC correctly except extra storage space.

    Any help will be appreciated

    If the new drive has been formatted as VMFS3, then you can just change the settings of the virtual machine and add a disk.  Specify the new drive as the location for the new virtual hard disk.  You have two options on this screen.  Store with VM or specify the location.  You will need to specify the location.  Then, you can specify any size you want the new E reader to be.  Then in Windows, open disk management to complete the process.

    This will be your easiest route.

    Charles nights, VCP

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

  • How to list all files within a data store and sent an email...

    Hello

    I know that within a data store there of are VM, but these virtual machines are right files?

    Some might create a virtual machine, remove the inventory but do not delete the folder/VM from the data store.

    Is thre anyway to get a script to list all records, not VM. s within a data store and be able to send emails?

    Thanks for your help,

    How about something like this:

    $VIServer = "YourVIServer".

    $EmailFrom = "Sender@Email".

    $EmailTo = "Recipient@Email".

    $Subject = "email subject".

    $SMTPServer = "YourSMTPServer".

    SE connect-VIServer $VIServer

    $datastores = get-Datastore

    {Foreach ($datastore to $datastores)

    $msg = "' nFolders in Datatore:"+ $datastore. " Name + "' not n".

    New-PSDrive-location $datastore - PSProvider data store name - VimDatastore-root '-' | Out-Null

    $folders = get-ChildItem Datastore:------|? {$_. ItemType - eq "File"}

    Remove-PSDrive Datastore. Out-Null

    {Foreach ($folder in $folders)

    $msg = "' t ' + $folder. Name + "' n '.

    }

    }

    Send-MailMessage-to $EmailTo - of $EmailFrom - $msg - SmtpServer $SMTPServer body-subject $Subject

    Disconnect-VIServer-confirm: $false

    This will send an email with an output similar to the following:

    Files in Datatore: local-esx100

    Test-VM

    ARandomFolder

    MoreFolders

    Files in Datatore: local-esx101

    Test-VM2

  • VM have been storage vMotioned to another data store, and now I have 3 VM with white "!" inside a red square and I want to understand the cause of this.

    VM have been storage vMotioned to another data store, and now I have 3 VM with white "!" inside a red square and I want to understand the cause of this.

    Can you try to make a vmotion host and see if it gets resolved? If not, can you close the virtual machine and start again? I have seen this problem before and a stop and start resolved.

  • Migration of virtual machines from a data store, and then delete the data store?

    Hello

    I have a future deployment this month and my Director wants to build a new RAID 6 array, create a store of data with the new table and then move all the VMS to the newly created data store.

    Then he asked me to take the old data store and remove it and the available space between the deleted data store and other stores of data in our shared environment. The question is when the new raid is created and vm has migrated to the new data store, which is the best way to remove the data store empty and make sure that the space available for other data stores? Any help would be appreciated...

    Greg ~.

    If all controls are met, you can go ahead and take it apart without any problem.

    I have re-iterate below checks:

    -No virtual machine is in the data store

    -The data store is not part of the cluster data store

    -The data store is not managed by the DRS storage

    -IGCS is disabled for this data store

    -The data store is not used for vSphere HA heartbeat.

    Especially highlighted 2 controls. Please note that SIOC can be enabled on the data without SDR photo store

  • ESX3.5U4/VC2.5 - move vmdk to adequate data store and extend the drive on the virtual machine

    ESX3.5U4/VC2.5 - move vmdk to adequate data store and extend the drive on the virtual machine

    Objective: move vmdk to store data with adequate storage and then increase storage D: 20G to 100G

    Converter is not available on this architecture. Can I migrate cold vm to the different data store, no prob.

    Question: Without use of the converter, method 3 can be used without a secondary vm? In other words, just by using target vm offline, online, offline? Or is it a problem of signing/OS disk on the Windows Virtual PC?

    I need to move vmdk in different LUN and extend drive vm windows on D: (non-OS drive). Is this possible via the single procedure? Options?

    To use method 3 to http://communities.vmware.com/thread/81121 requires available vm 'secondary', I did not.

    Method 3? Using of vmkfstools and another VM of Windows to extend a drive

    o stop the VM to resize

    o log in the console ESX Server via Putty

    o Type? vmkfstools? X & lt; new size of drive & gt; vmfs/volumes / & lt; storage volume name & gt;. / & lt; virtual server name & gt;. / & lt; the virtual disk name & gt;? That is to say. /vmfs/volumes/Storage1/my_vm.VMDK new disk size can be specified in kilo, mega, or gigabytes and will be the total size of the new disk. So if you want to increase a virtual disk of 20 GB of 24GO you would put 24000 m or 24g

    o the second virtual machine to help stop

    o change the second virtual machine settings and add the first virtual machine hard drive

    o power on the second VM and load the disk management snap-in and verify that the first virtual machine disk has unallocated on it space

    o select Start, run and enter diskpart.exe

    o the command? the list of volume? This will show you all the volumes.

    o select your volume based on the results of the list volume command, IE. ? Select volume 1?

    o type the command? extend? to extend the volume

    o check again the disk management snap-in and the volume is expected to be expanded with a greater ability

    o stop the second VM and remove (do not remove) the record of it

    o turn your first VM and the new space should be there and ready to use.

    Also, I'm already aware of Dell extpar:

    http://www.RTFM-ed.co.UK/?p=1310

    http://support.Dell.com/support/downloads/download.aspx?c=us & CS = 19 & l = in & s = DHS & ReleaseID = R64398 & formatcnt = 2 & starts = 83929

    for VI3, vmoiton of storage is made by RCLI plugin or a 3rd party

    I prefer the plugin

    http://www.virtualizationadmin.com/articles-tutorials/VMware-ESX-articles/VMotion-DRS-high-availability/storage-VMotion-SVMotion-VI-plugin.html

    In addition, if the option to increase the size of the disk in the VIC is grayed out, it sounds like a permissions issue.  Finally, you can not extend the disc using the VIC, if the customer in question has a snapshot.

  • Add the total size of data store and space remaining


    Hi,

    What would be the easist way to add the total datastore size and remaining datastore size to the following.
    I do emphasise, esasiest, since I'm as green as can be to powercli, powershell for that matter. I'm trying to learn in babysteps

    Get - VM $VM | %{ $_. Name; ($_ | get-datastore | select name). Name}

    At the moment I get day like this, I get to the above.

    DataStoreName (Add info here on DS size?)

    vmname

    DataStoreName (Add info here on DS size?)

    vmname

    ...

    ...

    ...

    Thank you!!

    The $_ represents the object that has been passed through pipeline (the ' |') of the previous cmdlet.

    For example

    Get - VM | %{$_. Name}

    The cmdlet Get - VM will get all the VMs on the servers of vSphere to which you are connected.

    The pipeline ('|) ') said these VM objects one by one to the following code.

    In what is a Foreach-Object (alias is '%') who will send the name of the virtual machine (available in the variable $_) to the default output.

    On a Select-Object cmdlet, you can select properties of the object that was passed through the pipeline, or you can use what is called a "calculated property. Such a calculated property consists of a pair of hash, name (N) and Expression.

    Obviously, name is the name you want to give to this calculated property.

    Expression is the block of code that must be executed.

    For example

    Get-Datastore. Select Name,@{N="CapacityGB; E={$_. CapacityMB/1 KB}}

    All database objects are passed to the Select-Object cmdlet.

    The Select cmdlet displays the name of the data store, and it will display a property called CapcityGB, which displays the ability to store data in GB.

    Notice how the property CapacityMB that is present in the data store object is converted to GB by the code in the Expression block.

    The part of the Expression has not always need to do something with a property of the object that was passed.

    For example

    Get - VM | Select Name, @{N = 'Current time'; E = {Get-Date}}

    In this case the Select-Object cmdlet displays the Name property of the virtual computer object that has been sent.

    And it will display the current time as the propertyname "current time".

    This is an example of a calculated property that has nothing to with the object passed through the pipeline.

    I hope that clarifies the code a bit.

  • Deployment of a virtual machine from a store of data with less space, but enough for the virtual machine

    I received this delicate task, and I can understand not just how to replace all parts.

    I need to create a script that will be smartly decided what data store to deploy a virtual computer.  We do not want to deploy in a data store that has the most space, we want to deploy to the data store that has the least space but can still account for the space for the (vm + 5%) and still leave 50 GB free on the lun after the move.

    Thus, for example, if the virtual machine is 40 GB, we want the script to select the data store that has a close to 90 GB available without being under.

    So my thought for this approach is:

    • Create the query to get all the relevant LUNS.  This excludes all the LUNS with the 'local' name in it and excludes all LUN owners (who have a slightly different naming convention then our general shared storage LUNS)
      • This piece, which I partially understood
        • Get-datastore. WHERE-object {($_.)} Name: corresponds to "PAR0 [1-4] _ [edp] * disk *")- and ($_.) "." Name - notmatch 'local')}
      • Now, I need to get all of their total size and free space.  Perhaps export this list to a CSV, however if I have to.
      • Create a variable that contains: the size of the total virtual machine to the virtual machine that is deployed before its deployment.
      • Deduct vm size against each data store size and pull in some way that that also close to 50 GB free on the data store and still facilitates the deployment of the vm.

    I have a few other scripts, I scrounged on the internet that I tried to restore... but I just don't calm not having all the pieces...

    • Get-Datastore. Where-Object {$_.} ParentFolder-match 'Internal'} ' | Select-Object - property data center, FreeSpaceMB, CapacityMB name, ' | Tri-objet-property FreeSpaceMB
    • Select-Object Name,@{n="CapacityGB";e={[math]::round (($_.)) {{(CapacityMB/1024))}}, @{n = "FreeSpaceGB"; e = {[math]: round (($_.))}} {{(FreeSpaceMB/1024))}}, @{n = "FreeSpacePercent"; e = {[math]: round (($_.))}} FreeSpaceMB / $_. {{(CapacityMB*100))}} | Sort-Object FreeSpaceGB

    Any help would be greatly appreciated!

    -Knotz

    Try something like this

    # Get all data warehouses

    $ds = get-Datastore. Where-Object {($_.)} Name: corresponds to "PAR0 [1-4] _ [edp] * disk *")- and ($_.) "." Name - notmatch 'local')} |

    Select-Object Name,

    @{n = "CapacityGB"; e = {[math]: round (($_.))}} {{(CapacityMB/1024))}}.

    @{n = "FreeSpaceGB"; e = {[math]: round (($_.))}} {{(FreeSpaceMB/1024))}}.

    @{n = "FreeSpacePercent"; e = {[math]: round (($_.))}} FreeSpaceMB / $_. {{(CapacityMB*100))}}

    {foreach ($vm in Get - VM)

    # Find possible candidates

    $candidates = $ds | where {($_.)} FreeSpaceGB - $vm. (UsedSpaceGB-50) - gt 0}

    # Find the best candidate

    $target = $candidates | Tri-objet-property FreeSpaceGB-descending | Select - 1 first

    Write-Output "VM $($vm.). Name) can go to $($target.) (Name) ".

    }

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

  • Could not start the new virtual machine or VM remove a data store

    Hi guys,.

    I'm not new with ESXi, but my knowledge with vCenter and Clustering must be improved, so here's my problem.

    We have a Cluster of 2 ESXi 4.1 hosts on a San with 2 VMFS.

    My first problem is when I created a new virtual machine and try to start it, I got an error message similar to the one included with this post.

    My Second problem is more picky. Since I am unable to start my new virtual machine, I had removed from drive and I had created a new. But when I took a peek in the data store where was deleted VM, the directory with all the files are still there. When I try to delete it, I got an error message telling me that it is impossible to proceed.

    Q please?

    Best regards

    Stéphane

    82% of failure can be other issues.  The article below

    http://KB.VMware.com/kb/1006052

    Also, I saw, where bad records DB for your ESXi hosts can cause weird problems as well.  The host with the problematic guest, can you do a right click on it and "disconnect"?  Try to get out of the bunch at the data center level.  If you get an error vCenter, that means return folder DB.  From there, while the host is in a disconnected state, remove the host to vCenter, then "add host". This will update the DB record.  Maybe worth it?

  • HDD USB not recognized as "physical1" when creating the new virtual machine

    Hi all

    I wanted to create a new virtual machine, and I wanted to use my USB as a physical drive.

    But Workstation shows me "physical0" which is of course my drive internal.

    I tried USB pen drives. They are not recognized either.

    This somehow is no longer supported? I would have that it would be possible to use USB external HDD as the physical drive to a new virtual machine.

    you have installed VirtualBox?

    If so, you can try to use the virtuaklbox command line tool to create a descriptor of rawdisk for this disc.

    say diskpart on this drive? -It is "online"?

    _________________________

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

    You find me also in the PhD Virtual Backup support team

  • Create new virtual machine of the model that have two hard drives in the different data store

    We do VM deploy automation with PowerCLI.

    There is already a model created with at least two hard drives to one side and each hard drive belong to difference datastore,

    In the model's operating system is Windows server 2008 R2 already installed VMware Tools and other software in the second (other than C: driver) driver

    We can successfully deploy a new virtual machine with this manually with vSphere client model.

    But when we try to make the deployment with PowerCLI, can not find examples of similar scripts in the document of reference,

    and we also google this question, still no similar question was found.

    Is this possible with PowerCLI? If it's possible could you give me some advice or an example of script, thank you!

    Best regards.

    I already found the solution.

    With the vSphere SDK .NET API, we can create the new virtual machine to the model

    Mainly used API listed below, sorry because I can not give the source code here.

    • VMware.Vim.VirtualMachineCloneSpec
    • VMware.Vim.VirtualMachineRelocateSpec
    • VMware.Vim.ManagedObjectReference
    • VMware.Vim.VirtualMachineRelocateSpecDiskLocator
    • VMware.Vim.ManagedObjectReference
    • CloneVM_Task

    For reference, you can take a look at this post and this post

    LucD , thanks for your help!

  • How to create a new virtual machine with two warehouses of data through new-vm?

    Hi guys,.

    Can you please help or direct me to the right format? I'm new with vsphere powercli.

    How to create a virtual machine with two other data store by using the new-vm?

    $datastore1 = get-datastore. WHERE-object {$_.} Name - eq "lun1"}

    $datastore2 = get-datastore. WHERE-object {$_.} Name - eq "lun2"}

    new-vm-name vmtest01 - VMHost ESXserver - datastore $datastore1 diskmb - 8192 $datastore2 diskmb - 8192 - memorymb 4096 - numcpu 2 - ID winNetStandardGuest

    I got this error when I run vsphere powercli. I appreciate if you can help. Thank you

    New-VM: cannot bind parameter 'DiskMB '. Cannot convert the 'lun2"val

    EU to type 'VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreIm '.

    PL"type"System.Int64 ".

    At line: 1 char: 85

    + new-vm-name vmtest01 - VMHost ESXserver - $datastore1 data store

    diskmb - < < < < 8192, $datastore2 - diskmb 8192

    + CategoryInfo: InvalidArgument: ( , ParameterBindingE)

    Xception

    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomat

    ion.ViCore.Cmdlets.Commands.NewVM

    Bryan

    The New-VM cmdlet takes a single value of the parameter - data store and all of the virtual disks will be located on this data store.

    If I understand your request, you create a virtual machine with 2 virtual disks, each on a different data store.

    You can use the cmdlet New - hard drive for it.

    $datastore1 = get-datastore | where-object {$_.Name -eq "lun1"}
    $datastore2 = get-datastore | where-object {$_.Name -eq "lun2"}
    
    $vm = new-vm -name vmtest01 -VMHost ESXserver -datastore $datastore1 -diskmb 8192 -memorymb 4096 -numcpu 2 -GuestId winNetStandardGuest
    new-harddisk -vm $vm -datastore $datastore2 CapacityKB (8192 * 1KB)
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • ESXi host goes to the State and the virtual machine does not restart on other host does not

    Hi all

    I'm looking for a solution, in which case the host goes to the State and the virtual machine on it does not restart on a different host (they'll just gray) does not not what could be the problem here and how to fix it

    later when the failed host returns upward machines either go to motor off the coast of the State, or they show that under tension

    While the host is down or not responding do not I am able to ping the host ESXi (5.5) and able to ping the default gateway and the DNS servers of the host itself

    Yes AF, the answer to all these questions is Yes, it is a HA and DRS cluster active, I tried restarting mgmt service, we use a shared storage (storage iSCSI HP 3PAR and left hand)

Maybe you are looking for