change default location for new virtual machines programmatically
I know that you can change the default location for new virtual machines through the preferences GUI, but I want to be able to change it for all those who use VMWare Workstation in my company, so that it is more advanced to the personal folder of the user.
Where exactly is stored? I don't see in the registry.
Thank you!
WS does not use the registry to store settings.
Set the path in UNK for each user:
prefvmx.defaultVMPath = "F:\. »
Tags: VMware
Similar Questions
-
How can I change the looks of Access Infrastructure Web location for the virtual machine files?
My default is set to MACHINES C:\VIRTUAL. But I want to change it to turn to an external drive connected with an eSata cable. Can I do this?
Hello
Add just like a new data store.
Login to your web access, select your host (not the virtual machines) in the left menu.
You should see a link on the right side with "Add data store", give it a name of store and add the directory.
Now, you can add a virtual machine to this place.
Good luck!
--
Wil
_____________________________________________________
Visit VMware developers at http://www.vi-toolkit.com wiki
-
How to locate a new virtual machine on a different hard disk
VMware Fusion 3.1.1 (282344) Mac OS 10.6.4.
I have a few virtual machines on my boot drive and am running out of space. I want to create a new Win 7 vm on a drive different but can't seem to figure out how to tell VMware to put there. I know I could create in the normal location on my boot drive and move it, but I didn't Go on the boot drive for this.
How to create the new virtual machine on the new drive?
Thx for advice,
Ken
As you walk through the Wizard New VM and you arrive at Cap sheet, you have two choices...
One is to select the Customize settings button and the other is just click the Finish button. Each choice made appear to save to: dialog box and you can pick any location you want. Note that you may need to click the down arrow located right of save it under: text box to expand this worksheet to display all the options. BTW, clicking on this button is the standard behavior of OS X and has nothing to do with the VMware Fusion in itself.
Post edited by: WoodyZ
-
How to change network name for all virtual machines within the same cluster
We have recently changed name vswitch to take into account that something significant, in the past vCenter could change the labels of networh for all virtual machines... seems this time help labels are not changed (maybe its got something to do with the update vcenter for 2.5.U3)...
in any case, someone at - it a powershell script that could find all the virtual machines that are referring to the old label network and then changing again the name... ?
Enjoy the respponses...
Thanks in advance
A few things on this blog could help.
If you know the names you want to use, you could also just use something like:
Get-Cluster X | Get-VM | Get-NetworkAdapter | Where { $_.NetworkName -eq "OldNetwork" } | Set-NetworkAdapter -NetworkName "NewNetwork" -confirm:$false Get-Cluster X | Get-VM | Get-NetworkAdapter | Where { $_.NetworkName -eq "NewNetwork" } | Set-NetworkAdapter -Connected:$true -confirm:$false
-
Hi all
I have 02 questions.
1. we have a cluster which has 02 physical hosts (Host1 and Host2). We have 02 virtual machines on the Cluster. Active DRS on the cluster.
But the problem is that my 02 VMS are always stays on a Host2. A few weeks ago, each virtual machine carried out on each host. How can I place each virtual machine on each host to perform better.
How to do this?
2. I connect to the cluster using vSphere client 5.1, under summer host, I get the following message
"Configuration problems: host is not in accordance with the attached profile.
I suspect that this is the case for my question 1?
Thank you very much
Hello
I think I found the answer for the problem of home profile. I changed the following values to 1 for each host to > settings > under software > advanced settings >
Under Data Mover
HardwareAcceleratedInit
HardwareAcceleratedMove
Under VMFS3
HardwareAcceleratedLocking
Compliance status is returned to the green.
Thanks for the advice guys!
Thank you
-
Hi guys,.
I just wanted to check, once the virtual machines are migrated from ESX 2.5, 2.5 Vcenter to ESX 4.1, Vcenter 4.1 of the NFS datastore on the iSCSI data store.
Do I have to make changes to the vm settings?
To use the features to enhance available with ESX 4.1 what I need to change the virtual disk to logical Bus to LSI logic? What is recommended or is not serious?
It will be very useful for me to know if there is any need for changes to be made other than on the virtual machine upgrade vmware tools.
Thank you
You try to run ESX 2.5 VM on ESX4.1, if that's the case then ESX 2.5 VM are not supported on ESX 4.1
If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!! Best regards, Mohammad Wasim
-
Using Windows XP Home Edition SP3, IE8, and Firefox 13.
Used several times to install and MS Fit-It tool to try to fix Windows Update so that will download the updates of high priority. 4 four security updates not always settle. Fix - It tool shows that "one or more Windows Update are configured incorrectly" and that it has been fixed (run 10 times). He also pointed out "where Windows Update stores data has changed and needs to be repaired", but offers no solutions to fix this problem. Cannot find any reference to this in the KB or MS answers.
Is it possible to repair this problem and it will make a difference by allowing for installing security updates? I talked to Ms. telephone and e-mail do not install security updates, but they say I have to pay $99 to get this issue fixed MS Update. I thought I read that security patches are supposed to be supported without charge.
Any new advice or techniques for solving this would be appreciated.
Hello RickH999,
Follow the steps in the article to reset the Windows update components and check if the problem persists.
How to reset the Windows Update components?
http://support.Microsoft.com/kb/971058
I hope this helps.
-
Change the default options for a NEW virtual machine in ESXI 5.1
Hello
I am looking for a solution change the 'default' options for a new virtual machine created in ESXI 5.1
I want to have parameters such as 'cpu/memory HOT-add' default to enabled instead of disabled.
There may be more options to change to a new virtual machine.
All those who have an option to change the 'default' options for new virtual machines?
THX
You can change the/etc/vmware/config of vSphere host file and add the lines mem.hotadd = 'TRUE' and vcpu.hotadd = 'TRUE '.
The settings then apply to any VM on this host when virtual machines are turned on...I just tried this on a 5.1 ESXi host and it seems to work perfectly...
/ Rubeck
-
Default directory for the creation of new virtual machines
Is it possible to change the default folder for new virtual machines in the data store? Then, instead of esxi always create virtual machines directory under / you can have create the folder in a subfolder.
Must be removed. I just watched ghetto HA script a lamw to see if she could be easily adapted to do. I don't think it would take a lot. It would automate the task of the cancellation of registration, travel and re-entry.
-
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
-
Change the default location of the snapshot for a virtual machine
Hello. I found this tutorial
on hos to move the default location for the snapshots of a virtual computer. How ever what I don't understand is where can I covering the line in the file *.mvx,
"workingDir = "new_path_location"
? I just start typing at the end of the file? The file can be edited in Notepad of windows or I should connect to the host using putty and correct it in nano, for example?
For example, in the same document, they used
workingDir = "/vmfs/volumes/46f1225f-552b0069-e03b-00145e808070/vm-snapshots"
I think that "
46f1225f-552b0069-e03b-00145e808070
" is an identifier for the volume. True or not? If yes how can I list all the volumes that are mapped to the host or vCenter Server identifiers?Thank you!
alexiaesx wrote:
Hello. I found this tutorial
on hos to move the default location for the snapshots of a virtual computer. How ever what I don't understand is where can I covering, in the file *.mvx, line
"workingDir = "new_path_location"
? I just start typing at the end of the file? The file can be edited in Notepad of windows or I should connect to the host using putty and correct it in nano, for example? in any case around, either Notepad or vi or nano - both will be fine.For example, in the same document, they used
workingDir = "/vmfs/volumes/46f1225f-552b0069-e03b-00145e808070/vm-snapshots"
I think that "
46f1225f-552b0069-e03b-00145e808070
" is an identifier for the volume. True or not? Yes its unique identifier for your vmfs volumes, but its better if you provide your name of store data instead, as if your data store name is XYZ, provide/vmfs/volumes/xyz/vm-snapshot, you can do it using UUID as well but you need to type for long and its not easy to remember.If yes how can I list all the volumes that are mapped to the host or vCenter Server identifiers?
using the cli
list of esxcli storage vmfs
using ssh console, this should provide you with all the information for the disks
Fdisk-lu
Another thing,
CD vmfs/volumes /.
LS - lah
You can see your vmfs volumes
-
I build a script to generate auto magicly VM when I have import information from a csv file. I have the latest PowerCli, I am trying to build servers r2 Sever 2012 model. I tried several OsCustomizationSpec (OCS) of in the hope of getting something to work, but I had no luck so far. In VCenter, it shows that it applies the OCS, but is not apear to have an impact on the server. I have disabled UAC since the last time that I tried it so maybe that will make a difference. I am under ESXi 5.1 update 2, just to try to give all the necessary information. Ideally, I'd like Sysprep, the value of intellectual property, change the computer name and join the server to the domain. That's all! lol I have the book "VMware vSphere PowerCLI Reffernece, automating vSphere Administration, I walked through step by step. The new version of PowerCli seems not have the x 86 limitation as earlier versions of PowerCli. I tried so many different things, I'm not sure what to put in place as a starting point.
# Save the object credentials with permission to join the domain.
$DomainCredentials = get-Credential "domain\testername."
# Clone our Spec by adding the domain information.
$Spec = get-OSCustomizationSpec "Windows Server 2012 R2"
$Spec += get-OSCustomizationNicMapping - Spec $Spec
#$Spec | Select *.# Get our VM
# Change network settings
Get - VM BigServername | Get-NetworkAdapter | Together-NetworkAdapter - NetworkName nic - 172.16.25 - VLAN225 - connected: $true '
-Confirm: $false | out-null
# Close the comments to make change.
Stop-VMGuest - VM $VM - confirm: $false | out-null
# Wait while feedback stops
While ($vm. ExtensionData.Runtime.PowerState - not "poweredOff")
{
Start-Sleep - seconds 1
$vm. ExtensionData.UpdateViewData ('Runtime.PowerState')
}
# Apply Spec customization to apply the new network settings
Get - VM "BigServername" |
Set-VM - OSCustomizationSpec "R2 Windows Server 2012" - confirm: $false |
Start-VMI can rebuild the model, or something else, we must do this work.
OR - is simply not the best way to configure the VM? If not, what Sysprep?
Good news, but first, I would really like to know where the log files are on which server to the OsCustomization process.
I decided to reverse engineer and create a CSOS within vCeneter and once I got to work, I kept creating new CSO via PowerCli until I could get that to work, create a new virtual machine. Once I got this to work, I have tryied to apply on a cloned vm, with no parameters. I got it works too. I tried to go back to my original image, but I couldn't get this to work. Something's wrong with this picture. He wrath that the problem was related to the permissions on the local client.
New OSCustomizationSpec - OrgName company OSType - Windows - ChangeSid-Server "vcenter.dom.com" - name PowerCliOnly4 - persistent administrator-Type FullName - AdminPassword! password123 - zone "Eastern (USA and Canada)" AutoLogonCount - 3 - domain dom dadmin - DomainUsername - DomainPassword! password123 NamingScheme - vm-Description "PowerCli Use only" - confirm: $false
Get-OSCustomizationNicMapping - OSCustomizationSpec PowerCliOnly4 | Game-OSCustomizationNicMapping - Position 1 - IpMode UseStaticIP - IpAddress 10.10.10.98 - 255.255.255.0 - DefaultGateway 10.10.10.1 Dns subnet - mask "10.10.10.10","10.10.10.11" "-confirm: $false
This seems to be very picky. Because the area is one of the parameters, you cannot put it in the DomainUsername, no dom\dadmin. The part that I really want to know how to get more, is what happens if your vm has a different local administrator as the administrator account. It turns out that FullName - is not the account that it to connect locally with tires. When I created the vCenter Medtronic Chondroitin, I put 'me' in the name and information of the Organization and that's what was settled in the FullName property:
Name: PowerCliOnlyM
Type: persistent
ServerId: /VIServer = dom\[email protected]: 443.
Server: vcenter.dom.com
LastUpdate: 24/09/2014 13:33:19
DomainAdminUsername: dadmin NO dom/dadmin here!
DomainUsername: dadmin
Description: PowerCli use only, done manually in vCenter.
AutoLogonCount: 3
ChangeSid: true
DeleteAccounts: false
DnsServer:
DnsSuffix:
Domain: vsi
Full name: me
GuiRunOnce:
NamingPrefix:
NamingScheme: Vm
OrgName: CompanyTU
OSType: Windows
ProductKey:
Time zone: (USA and Canada)
Working Group:
LicenseMode: NotSpecified
LicenseMaxConnections:
EncryptionKey: {-126, 3, 48, 108...}
ExtensionData: VMware.Vim.CustomizationSpecItem
ID: PowerCliOnlyM
UID: /VIServer = vsi\[email protected]: 443/OSCustomizationSpec = PowerCliOnlyM /.
Client: VMware.VimAutomation.ViCore.Impl.V1.VimClient
AdminPassword: w
DomainAdminPassword: N
DomainPassword: NDNS: {10.10.10.10, 10.10.10.11}
Wins :
SpecId: PowerCliOnlyM
Spec: PowerCliOnlyM
SpecType: persistent
NetworkAdapterMac:
Position: 1
IPMode: UseStaticIP
IP address: 10.10.10.98
Subnet mask: 255.255.255.0
DefaultGateway: 10.10.10.1
AlternateGateway:
VCApplicationArgument:
ID: /VIServer = dom\[email protected]: 443/OSCustomizationNicMapping = OSCustomizationNicMappingImpl-PowerCliOnlyM-persistent-1.
UID: /VIServer = dom\[email protected]: 443/OSCustomizationNicMapping = OSCustomizationNicMappingImpl-PowerCliOnlyM-persistent-1.
ExtensionData: VMware.Vim.CustomizationAdapterMapping
Client: VMware.VimAutomation.ViCore.Impl.V1.VimClient
Version: 1I think that it is good to know that the virtual machine reboot 4 or 5 times as it goes through this process. It breaks is you try and do something for the virtual machine that interrupt the process. I don't know that I'll think more questions in a second.
In addition, it cost he had some problems with the put between quotation marks, single or double around the password, but I did not check this again, I just know that once I took them, he began to work. I ran on other issues while testing as I was using a single IP address, so if I do not disable the test VM, the following would not work because of the conflct network, maybe I shouldn't admit that... lol
-
create a new virtual machine with the default settings?
I was wondering if there was a way to create a new virtual machine with the default settings.
For example, let's say I want all new Lion VM to have 2 CPU cores. Is there a way to set this automatically? There are other parameters I want a new machine to inherit automatically, I was wondering if there is an automatic way to do this, or is it a feature request...
Thanks in advance
lerker wrote:
Just for my clarification, when you say a vm model, basically I would execute a finder copy then drag back to the VM library, right?
Yes.
On the orders of spcirpting, it would be unix commands or are there specific vmware controls that make your job easier (in Applications/VMware\ Fusion/content or elsewhere)...
IIRC, VMware Fusion 3 and later versions has an AppleScript dictionary, but it is not yet officially supported and may not be able to do what you want so, basically, only Unix Shell scripts, that's what I was referring to. For an example, see my script attached to the following response: Re: vmware - script of the creation of the vm and the operating system installation process
-
New virtual machine for the model with the specific name
Hello
I'm trying to add some model VM to VAPP using recomposeVApp (...). And it works well except that I can not change the name of the virtual machine while recomposing. It takes the name of the model. But how to add VMS to model with the specific name? I use the v1.0 API.
This is my code:
ReferenceType vmTemplateRef = new ReferenceType();
vmTemplateRef.setName ("MyNewVM"); This name is ignored. The name of the model is taken!
vmTemplateRef.setHref (vmRef.getHref ()); reference to the model
CompositionItemParamType vmItem = new CompositionItemParamType();
vmItem.setSource (vmTemplateRef);
create the type params VAPP recompose.
RecomposeVAppParamsType recomposeVAppParamsType = new RecomposeVAppParamsType();
recomposeVAppParamsType.setName (vAppRef.getName ()); The name of vApp. It is ok.added the element of the virtual machine.
The newItems < CompositionItemParamType > recomposeVAppParamsType = list
. getItem().
newItems.add (vmItem);Task task = vapp.recomposeVapp (recomposeVAppParamsType);
Thank you
Hello
For after this code fragment:
vmTemplateRef.setName ("MyNewVM"); This name is ignored. The name of the model is taken!
The model name is ignored because vmTemplateRef is the only reference to the object that will be used for the operation of recomposition. If changing the name it will be always ignored.
I think that changing the name of the virtual machine template for recompose cannot be done as follows:
(1) operation recomposeVApp().
(2) get the recomposed VAPP
(3) download the children-> VM you want to change.
(4) change the name of the virtual computer.
I hope this helps!
-
a simplistic way to change Mac for multiple virtual machines
Hi all
I was wondering, what is your perfered method to change MAC to a large number of virtual machines? I just cloned on 8 virtual machines to another host and VEEAM duplicated the MAC as well. So I need to change MAC 3 for each virtual computer and I got 8 of them to do so.
I wonder if there is a quick and easy way to do this and then enter the settings?
Thank you
Davy
Good afternoon
Following the line to change the mac address of a virtual machine, preferably if VMs are turned off.
Get - VM test | Get-NetworkAdapter-name "card1 network | Game-NetworkAdpater - MacAddress 00:50:56:3F:FF:FF - confirm: $false
Maybe you are looking for
-
iTunes Sync of Photo cannot read the Photos Album
Hello... Recently I met a problem when you try to synchronize my iP7 with the album in my Photos app. I am running Mac Sierra with Photos app. My case is when I connect my iPhone to iTunes, click on the tab of the photo, she nows takes more than 2 mi
-
Issue scan fingerprint with Win 7 and Satellite Pro A300
SORRY, MODEL IS A300. Bunk/upgrading Vista to Windows 7 Professional and we found the fingerprint reader does not.Unable to remove program and custom accept the new installation of fingerprint reader or even of new fingerprints to be scanned. (Former
-
Pavilion G6-2311ee: should I move to Windows 10?
Hi, a week ago, I upgraded Windows 8.1 to 10, everything went well except one thing... There was a problem with the installation of the driver for the AMD, in the resolution of the screen-> Advacned parameters of the total available video memory is s
-
How to install windows xp in addition to vista on my tour top__
Remember - this is a public forum so never post private information such as numbers of mail or telephone! Is it possible to install windows xp on vista and keep the two separate? I would like to go back to xp instead of 7.
-
When I connect to Photoshop CC I still can't go to the program - I need to change the host file?