Add the new virtual disk to vm
What is the command to add a new virtual disk to a virtual machine?
Use the cmdlet New - hard drive .
Tags: VMware
Similar Questions
-
Add a new virtual disk to a very critical existing VM
Hi all,
My question is very simple. I have to add a new virtual disk to an existing Windows Server 2008 Standard virtual machine (we use vSphere 5). This machine
is very critical, because it is the server of the company files. Is there a risk to add the new virtual disk on the virtual computer? Is it better to add it with the virtual machine died, or can I also in the virtual machine running without risk? I tried with a virtual test machine and everything works fine and I know to be very paranoid, but in this moment I still feel a great responsibility on me.
Thank you all.
There is nothing wrong by adding a disk to a virtual machine, it is HOT add, that is the advantage of the SCSI layer. VMDK all use a virtual scsi controller and it is hot add capable. SO just, add it and partition.
-
Add the second virtual disk at Vm
Hey guys,.
I just loaded ESXi 4 on a server and I created 2 virtual machines and I went to add a second drive to a virtual machine and it gave me an error message stating "there are not enough licenses to complete this operation. "Feature hotplug not approved, requires have have.
Has anyone ever seen this error before?
Thank you!
You must now close comments to add an additional drive.
-
Add the new SCSI controller and new drive - powershell SDK
Hi all
I'm trying to add the new disc of paravirtual to my VMs. There are two types of virtual machines in the environment; a Paravirtual controller attached and others are without controller; so my task is to set the new drive of paravitual using powershell SDK.
So far I am successful with my code if the controller is already present but the script fails when I try to attach the controller. with the error.
RecommendDatastores: The method call failed because [System.Object []] contains a method named "RecommendDatastores".
C:\NodeDeployment\Inprogress\Add_newPVScsiDisk.ps1:111 tank: 44
+ $generatedkey = $SRM. RecommendDatastores < < < < ($storageSpec)
+ CategoryInfo: InvalidOperation: (RecommendDatastores:String)], RuntimeException
+ FullyQualifiedErrorId: MethodNotFound
I know that this script is not good enough to post here because it is an initial draft, but in the script attached please help me with the present part-
The Script requires a csv with VMname entry; Disksize to be attached and store cluster data
else { Write-Host "Paravirtualized SCSI Controller Not Found in $vmname.. Trying to add new scsi controller and additional Hard-disk..." $NewSCSIDevice = New-Object VMware.Vim.VirtualDeviceConfigSpec $NewSCSIDevice.operation = "add" $NewSCSIDevice.device = New-Object VMware.Vim.ParaVirtualSCSIController $NewSCSIDevice.device.key = -222 $NewSCSIDevice.device.busNumber = ($allScSiController.BusNumber.Count) $NewSCSIDevice.device.sharedBus = "noSharing" $NewDiskDevice.device.controllerKey = -222 $NewDiskDevice.device.unitNumber = 0 $NewDiskDevice.device.capacityInKB = ($diskSize * (1024 * 1024)) $storageSpec.configSpec.deviceChange += $NewDiskDevice $storageSpec.configSpec.deviceChange += $NewSCSIDevice $generatedkey = $SRM.RecommendDatastores($storageSpec) $key = $generatedkey.Recommendations[0].Key $SRM.ApplyStorageDrsRecommendation_Task($key) }
OK I have it myself; I guess busnumber was the problem. He converted to INT working like charm...
Now, I have to work with storage Drs IE. with the ReconfigureVM_task method. hoping that will work also...
else {}
[int] $busnumber = $allScSiController.Count
Write-Host "paravirtualized SCSI Controller not found in $vmname... Try to add the new controller scsi and extra hard drives... »
$NewSCSIDevice = new-Object VMware.Vim.VirtualDeviceConfigSpec
$NewSCSIDevice.operation = 'Add '.
$NewSCSIDevice.device = new-Object VMware.Vim.ParaVirtualSCSIController
$NewSCSIDevice.device.key = - 222
$NewSCSIDevice.device.busNumber = $busnumber
$NewSCSIDevice.device.sharedBus = "noSharing".
$NewDiskDevice.device.controllerKey = - 222
$NewDiskDevice.device.unitNumber = 0
$NewDiskDevice.device.capacityInKB = ($diskSize * (1024 * 1024))
$storageSpec.configSpec.deviceChange += $NewDiskDevice
$storageSpec.configSpec.deviceChange += $NewSCSIDevice
$generatedkey = $SRM. RecommendDatastores ($storageSpec)
$key = $generatedkey. Recommendations [0]. Key
$SRM. ApplyStorageDrsRecommendation_Task ($key)
}
---
Concerning
Sanshis -
cannot add the new hard drive more than 2 TB on vsphere upgrade 5
can someone give me a clue? I can't add new greater than 2 TB drive to my vm on my upgraded vsphere 5.0. My data store is 6 TB and already read by vsphere... I create new virtual machine and add the new drive, but it limits again just 2 TB when I change 4 TB, the error message will appear. I recently added my datastore LUN with VMFS5 version. is there a any mistake I made? Please help me this problem is so frustrating me... i need to create new disk 6 TB to my new file server
Hello.
You will need to use a RDM in physical Compatibility Mode to achieve. As weinstein5 said, a VMDK cannot be greater than 2-to-512bytes. You can use the OS to spread over several 2 TB-512bytes VMDK, if that's what you really want.
Good luck!
-
Add the new hard drive into the data store in ESXi 4.1
Hi all
I got ESX 4.1 installed on the Dell server, and I have 3 virtual machines on a data store.
I added a new 500 GB scsi hard drive to the server,
and I need to add it to the datasore or create a new...
How can I see this new hard drive? and add it to the data store?
Waiting for your help.
concerning
Abrams
Oracle system engineer
Abrams,
That's all I can help you. These instructions are based on the Perc 5 / i controller, which I think you have on our system. You have not specified the server so I just assumed that this is so.
1. unscrew the hot spare that you just made. Follow this link from Dell.
http://support.Dell.com/support/eDOCS/storage/RAID/PERC5/en/UG/HTML/chapterh.htm#wp10613432 follow the link for the installation of virtual disks - http://support.dell.com/support/edocs/storage/RAID/PERC5/en/UG/HTML/chapterh.htm#wp1069357
This link has three steps to void, skip the step on "spare parts of designate hot."
a. create the virtual disks and select virtual disk options. -Online steps to create another disk group and add the new disk to the disk group.
(b) designate the drives hot spares (optional). =>, YOU CAN SKIP THIS STEP
c. initialize virtual disks. -online must do. just do not initialize the incorrect disk.After the step #2 c, you should be able to access the drive in ESXi or command-line (list of nmp esxcli devices).
And no, you cannot add this manaully until do you step #2 above which is to define the disk group, creating virtual disks and initialize the virtual disk.
Good luck.
-
Defining the new Virtual Machine
When you set the new Virtual Machine, what is the size of the virtual disk to specify? (Default value is 8GB) Should we check "Allocate all disk space now" option?
No, this hard disk space actually leaves your portable office/computer hard drive free space.
Look at your free space of the desktop and then add a new hard drive with 30 concerts or more. Check again, and note that this space has disappeared. Then you can just delete it and it comes back.
Yes, just use the ' Add ' button.
If you find this information useful, please give points of
'correctness '.
or "useful."
Wes Hinshaw
-
Help! How to add a new 350GB disk?
Hi all
I was tasked with the addition of an extra 350GB disk to a virtual machine in a configuration, I discovered it's done not as easily in Lab Manager as it is in vCenter. I cancelled the Setup and when I go into the properties of the VM I see 'add the HDD', but when I go to add the new drive with the size you want it only allows me to add a maximum of 167 GB (the remaining space on the LUN that VM is enabled) as expected. I have a new 550 GB LUN I want to create this new drive 350GB, but I do not get a choice where to create the new disk. Can someone help me please this seemingly simple task? Thank you
BTW - I use Lab Manager 3.0 (2) on ESX 3.5 HP blades
If you add a new HARD disk in your virtual machine in the Lab Manager the disc is placed in the root directory of die VM.
-
Add to that a drive to RAID5 ESX didn't add the new space?
I need more space for the ESX Server so I add 4th same drive size to existing RAID5, I had 3 discs 264.50 I now see in open manage once I add the 4th car total 408 GB is 260 something in ESX under storage always fresh watch 46 GB 264.50 GB of space even old information and restarted ESX even question? How can I add the new space of ESX?
Thank you
Always backup your virtual machines if you are not sure
For me, because I am familiar with the disk partitioning, I would just to repartition the disk. Depends on your comfort level. method 1 is the "safest".
-Matt
-
Expanded the bad virtual disk but not Guest OS - Shrink?
Not quite another question generic "shrink the VMDK.
I accidentally spread the bad virtual disk in vCenter 725 GB to 1 TB. Fortunately, I realized that until I expanded the partition to use the new space in Windows. Is it possible to reclaim that space? In the virtual machine settings, I have the options of arrow to "reduce" the size down, but I'm not sure on the impact at the prompt to do. Certainly if the guest has not been extended to consume this space then it should be recoverable?
as you're talking about: the option arrow in the virtual machine settings
This does not leave you reduce (Shrink) the size of the virtual disk, which has already been strengthened. This option is useful in the case when we say you went into settings of the virtual machine, the disk size increased from 10 to 20 GB, but not yet committed that change and you want to return to 15 you can then use this arrow to do.
Please visit following KB, is the answer to your question, use VMware converter.
VMware KB: Increasingly, the thinning and shrinking of the virtual disks for VMware ESX and ESXi
-
. ISO is grayed out when you try to make the new Virtual Machine
I recently downloaded fusion VM 5 and I am trying to make a virtual machine for windows 7 without using a disc. I use an .iso file that is saved on my mac. When I'm in the new virtual machine Wizard and go click win7.iso I can't because the text and thumbnail are grayed out and won't do anything. Help, please.
The page you are showing has noting to do with the installation of an ISO Image, it takes to with the virtual hard disk. The ISO Image is assigned to the CD/DVD in the settings of the Virtual Machine if you don't select it in the wizard at the beginning.
Documentation (integrated help file).
1 Select file > new.
2 the new Virtual Machine Assistant starts.
3 click on continue without disc to go to the installation media Panel.
4 in the installation media Panel, click on the image or use operating system installation disc.
5. use the drop-down menu to locate the file .iso for the operating system.
6 click Open to identify the file and click on continue to go to control panel of the operating system.
-
How to add a new virtual machine in VMPlayer inventory?
People,
Hello. I'm installing Oracle Database 11 g 2 RAC system using 2 nodes that are 2 Virtual Machines on top 3 VMPlayer.
Their locations are C:\VM_RAC\rac1 and C:\VM_RAC\rac2.
The original rac1 VM is created in VMPlayer 3 and works correctly.
For the second rac2 VM, I simply copy all the files in the folder rac1 in rac2 folder. Then change its display name of "rac1' to 'rac2' in the rac2 configuration file.
But rac2 in not visible in VMPlayer and cannot be turned on.
To make rac2 in VMPlayer, we add rac2 in VMPlayer inventory. But I don't understand how to do it.
Can any folk tell me how to add the new VM rac2 VMPlayer stock, so that it can be powered on?
In the 'File' menu click 'Open Virtual Machine... "and select the .vmx file in the folder of the virtual machine.
André
-
Suggestion on Vcenter DB migration on the new virtual machine and enhancement vcenter server
Hello
I'm looking for any suggestion/plan with Vcenter DB migration steps towards the new virtual machine, and then upgrade the server vcenter
4.1 for Update1/2
My plan will be
(1) creating new virtual machine.
(2) fresh install 64-bit OS
(3) migration Vcenter DB of the physical server to the new virtual machine.
(4) upgrade to Vcenter Server 4.1 update 41 4.1 Update1/2
Anything else missing then please let me know.
Thank you
vmguy
Hi vmguy
I agree with this approach
(3) migration Vcenter DB of the physical server to the new virtual machine.
As long as you leave the old DB in tact and simply detach and copy the DB to the new Victoria Cross.
Before you run the upgrade on the new VC and DB.
This way, you have a restoration plan in case something goes wrong with the upgrade.
Just to add:
You must migrate the ADAM database so to maintain the specified permissions vCenter
See: Migrateing vCenter new host
Please allow points if you find this useful/correct
-
Create the new virtual machine using Java API vCloud
Hi guys,.
I am trying to create the new virtual machine in TIME, but I've stuck here. The API I'm using is vcloud-java-sdk - 1.0.jar.
Could you please show me a code snippet how to do this?
For now I do it like this:
RecomposeVAppParamsType recomposeVAppParamsType = new RecomposeVAppParamsType();
List the items < CompositionItemParamType > = recomposeVAppParamsType.getItem ();
ReferenceType vappTemplateVMRef = new ReferenceType();// ??? seems that new reference to the new virtual machine should be here. But how to create this VM
CompositionItemParamType compositionItemParamType = new CompositionItemParamType();
compositionItemParamType.setSource (vappTemplateVMRef);Items.Add (compositionItemParamType);
ReferenceType vAppRef is Vdc.getVdcByReference (vcloudClient, vdcRef) .getVappRefByName ("vApp_Websrv");.Vapp.getVappByReference (vcloudClient, vAppRef) .recomposeVapp (recomposeVAppParamsType);
One day before I played with Web Services SDK, which is much easier to understand. I was able to create the vApp and VMs in vSphere. Is it possible to import machines virtual vSphere to vCloud? Should what API I use for this?
Thank you
Hello
You cannot add a new empty virtual machine in a paralytic.
Instead, you can add a virtual machine from an existing vapp, vapptemplate.
To import a vsphere vm to vcloud.
Import vsphere vm as VAPP in vcloud. VMWVimserver-> importVmAsVApp()
The importation of vsphere vm, as vAppTemplate, in vcloud. VMWVimserver-> importVmAsVAppTemplate()
See also the example of ImportVmAsvAppTemplate.java, which is part of the vcloudjavasdk group.
Kind regards
Rajesh Kamal.
-
Reason: The specified virtual disk must be repaired. Running on MAC
I NEED HELP.
I'm new to mac and am a nood. I am running the latest version of vmware fusion, os and windows 7.
So my computer crashed and I had to force stop. VMware was running in time with windows 7, now when I try to run windows 7 I get this:
Cannot open disk ' / users/user/Documents/Virtual name Machines.localized / 7.vmwarevm/Windows 7.vmdk Windows' or one of the snapshot disks it depends on.
Reason: The specified virtual disk must be repaired.
I went online and tried the two ways that forms said to fix, went to the Terminal and tried to fix the vmdk but kept getting the disk must be mounted?, so I tried to use an older version of vmwares support program and that has not worked.
So I eaither need to know how to fix the vmdk or it go to mount so I don't understand this error, or if there is a way to trasfer my programs which crashed windows to other windows I installed it, (Aso 7)
the path that you used seems to be badly formatted - use quotation marks around the file names with spaces and do not mix slashes to backslashes
don't know - this forum software does not display paths well so you can have it is just - just new doublecheck
_________________________
VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual
You find me also in the PhD Virtual Backup support team
Maybe you are looking for
-
New "Firefox tiles" disables my custom browser.newtab.url, how to do this?
I usually have a html/css, ready to open every time I open a new tabthen I get this update.-.
-
HP's envy touchsmart: default speakers continues to change
I'm a 15tQuad TouchSmart laptop hooked up to a Dell monitor. I always keep the laptop closed except when that I start or when the monitor goes to sleep and I need to wake up again. My sound worked very well and knew that the default was the audio dev
-
Envy 15-j000 Quad ed: Windows 8 recovery USB and series Win8 OEM BIOS. question
Hello. IM currently living in South Korea and had to format my laptop. Ive lost my usb backup and was about to order the recovery usb kit but its only for USA / Canada with more than $50 price tag I remember when I did the format with my usb kit, I h
-
I installed a new 4500 ENVY. I can print, copy. When I scan I see the image of the document on the screen when scanning, but the result is not appear in the designated folder. ?? What's wrong? I use Maverick. Your Jens Banque5301
-
Re-activating FSX acceleration expsnsion pack
I'm try to r - activate my expansion pack, and when I drop my product key and press ENTER, it tells me that the there is a problem with the server. This has happened for the last 4 days, then there is a problem. I was told to click on "activate by ph