Change the uuid (bios.uuid) to a virtual computer

Hello

I tried to change the UUID of this way:

var UUIDlog = vcVM.config.uuid;
System.log("UUID at the moment: " + UUIDlog);
System.log("UUID to set : " + UUIDnew);
vcVM.config.uuid = UUIDnew;
var UUIDcontrol = vcVM.config.uuid;
System.log("UUID after change: " + UUIDcontrol);

vCO shows the correct value of MB but the VMX file is not updated.


[17:05:48.923 2015-01-07] [I] UUID at the moment: 564dc846-3c30-b95f-84fc-4d9e168ecd07

[17:05:48.923 2015-01-07] [I] UUID set: 42286f25-0cfe-4a18-ffd4-79a682663297

[17:05:48.923 2015-01-07] [I] after change UUID: 42286f25-0cfe-4a18-ffd4-79a682663297


Someone knows what's the problem?

Use the script reconfigVM_Task() method. Something like the following code:

var spec = new VcVirtualMachineConfigSpec();
spec.uuid =  "..."; // place your new UUID value here
vm.reconfigVM_Task(spec);

Tags: VMware

Similar Questions

  • PowerCLI script needed to change the 9 network adapters to a virtual computer in a single operation

    I got about 30 mV, and I need to change the 9 cards each virtual computer network. The script below takes a while to run, is there a way to speed it up, by changing all the interfaces of a VM in a single operation?

    $VM = "MY_VM_".

    1... 30 | % {

    $VMS = $VM + $_

    Get-vm-name $VMS | Get-NetworkAdapter-name '2 network adapter | Together-NetworkAdapter - NetworkName "blah1" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name "Network adapter 3 | Together-NetworkAdapter - NetworkName "blah2" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name "NIC 4 | Together-NetworkAdapter - NetworkName "blah3" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name "adapter 5 network | Together-NetworkAdapter - NetworkName "blah4" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name "NIC 6. Together-NetworkAdapter - NetworkName "blah" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name 'network 7 adapter | Together-NetworkAdapter - NetworkName "blah" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name '8 network adapter | Together-NetworkAdapter - NetworkName "blah7" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name 'network 9 adapter | Together-NetworkAdapter - NetworkName "blah8" - connected: $true - confirm: $false

    Get-vm-name $VMS | Get-NetworkAdapter-name '10 network adapter | Together-NetworkAdapter - NetworkName "blah9" - connected: $true - confirm: $false

    }

    Thank you very much!!. I was able to change the script of LucD work in DVS.

    FINAL VERSION:

    $hash = $null

    $hash = @ {}

    $dvs = get-view (get-VirtualSwitch-name "DVS5.1")

    $dvs. PortGroup | % {Get-View-Id $_} | %{

    $hash.add ($_.) Name, $_. Key)

    }

    # Loop below for all virtual machines

    1... 90 | %{

    $i = $_

    write-host 'tenant = $i'

    $convertTab = @ {}

    "Network adapter 1" = "$1te I".

    "Network adapter 2" = "$2te I".

    'Network adapter 3' = ' $3te I ".

    "Network adapter 4" = "$4te I".

    'Network adapter 5' = ' $5th I ".

    'Network adapter 6' = ' $6te I ".

    'Network adapter 7' = ' $7te I ".

    'Network adapter 8' = ' $8te I ".

    'Network adapter 9' = ' $9te I ".

    'Network adapter 10' = ' $10te I ".

    }

    Notice-EEG - ViewType VirtualMachine-property "Config.Hardware.Device" - filter @{' Name '=' VM-$i - 1 ""} | %{

    $spec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $_. Config.Hardware.Device | where {$_-is [VMware.Vim.VirtualEthernetCard]} | %{

    $dev = new-Object Vmware.Vim.VirtualDeviceConfigSpec

    $dev. Operation = "├editer."

    $dev. Device = $_

    $dev.device.Backing = new-Object VMware.Vim.VirtualEthernetCardDistributedVirtualPortBackingInfo

    $dev.device.backing.port = new-Object VMware.Vim.DistributedVirtualSwitchPortConnection

    $dev.device.backing.port.switchUuid = $dvs. UUID

    $dev.device.backing.port.portgroupKey = $hash [$convertTab [$_.]] DeviceInfo.Label]]

    $spec. DeviceChange += $dev

    }

    $_. ReconfigVM ($spec)

    }

    }

  • How to change the type of adapter on a virtual computer network

    Hello

    I'm testing the network drivers in the virtual machine. My current VM has a 79 c 970 AMD Ethernet controller but I want to test different drivers. so is it possible for me to use another Ethernet controller type on a virtual machine? For example all cards Realtek?

    Currently, I use VMware Workstation 7.

    Thank you

    Zheng Da

    You do not have a lot of choices:

    -Without VMware tools, you will be using the vlance network adapter

    -With VMware tools, by default, you use the VMware AMD Pcnet network adapter

    -You can change inside the VMX configuration file and insert the following line:

    ethernetX.virtualDev = "e1000".

    Where X is the number of your network adapter (0 for the first, 1 for the secod, etc...). This will transform the adapter in an Intel PRO 1000.

    Marcelo Soares

    VMWare Certified Professional 310/410

    Master virtualization technology

    Globant Argentina

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

  • Change the UUID

    Hello world

    My apologies if there is an existing position that covers this, I had a look but can't find the kind of answer I was looking for. In addition, it's my ffirst post so please be nice

    We just started our radars using the engine management and I'm getting screwed the results because of duplicate UUID of production systems which are replicated to our DR Cluster using Veeam. So, basically, it's pretty simple, all I have to do is change the UUID of all replicas in our DR Cluster so that they are different from the original VMs and who should set the monitoring. However, without doubt, because the UUID is set to maintain, every time another replica is created it will copy the same UUID. So I guess I have to do is change the UUID parameter in the production of VMs to change rather than keep.

    Assuming that my understanding above are correct and please correct me if not, my questions are...

    1. What is the way simpler and more secure to change the UUID of selected/all virtual machines without incurring any downtime, if possible?

    2. is there a any impact to know by having a different UUID of the original VM in a potential scenario of DR?

    Any help or advice greatly appreciated!

    Thank you

    Neil

    If you have 'DR' purposes, do not change their UUID. Try to exclude them in your monitoring tool. In all cases, followed by replicas are not necessary.

  • 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

  • How can I change the workspace to a color for my computer screen will not show

    How can I change the workspace to a color for my computer screen will not showSubmit question

    Submit question

    Photoshop CS6 now opens by default with the "Application Framework" lighted. You can go window > frame application in the main menu and uncheck this

    We have a lot of useful information in the FAQ section. The answer to this question was also there. See the link:

    FAQ: UI - how do I change the color theme, text size, or cut the course of enforcement?

    Feel free to browse other FAQS, there might be a few other things of interest.

    Guinot

  • Can I change the uuid.location and uuid.bios by vCLI command?

    Can I change or generate the uuid.location and uuid.bios by vCLI command? Or I have to use the VMware API function?

    When I copied a virtual machine, in the menu "Question Answer", I have to choose "I copied it". Then I looked at the VM1.vmx and found only the uuid.location, uuid.bios and the ethernet0.generatedAddress have been changed. I can manually change them?

    Thank you very much.

    Post edited by: Percy1

    The UUID is generated automatically just, it is not recommended that you change it yourself. If you want a particular fault that you keep or change it, you can add the following .vmx such as specified by this VMware KB - params http://kb.vmware.com/kb/1541

    The MAC address can be changed, but you must make sure that you follow VMware Yes 00:50:56, this is a VMware KB with details - http://kb.vmware.com/kb/507

  • 23 - d160qd envy: new motherboard, now empty screen and 6 beeps. Cannot change the legacy BIOS. Help!

    Good ladies and Gentlemenof the Interwebulars, I hope someone can shed some light on my situation.

    Walked down one day to see that my computer would not start. A diagnosis which in a bad power port. Got a new motherboard because after desoldering (or that's what I tried to do) I realized that it was small to (re) welding in and I could not find the right part to reorganize.

    so I got a new motherboard. The number replacement part direct. Barefoot on my floor wood and ESD wrsitband on, I put in this bad boy. Double and triple check things and connections. Go to hit the power button and I get 6 beeps and 6 flashes of correspopnding of the powerbutton. The system does not appear to be on, fan is running with the other sounds of starting and running sounds, but I have a white screen and orange electric button. If I tap CTRL + ALT + DELETE it will restart and begin the process again. The 6 beeps by HP standards denotes missing graphics / card error. My original motherboard had a built-in graphics card so I thought that the same new part number card mother too. Obviously not. so I had a Geforce 2Go MXM graphics card update with heat sink. Barefoot, wood floor, bracelet ESD, thermal paste and turn it on to hear... SIX BEEPS AND SCREEN WHITE.

    After Googling around, some people say that I have to enter the BIOS and change boot legacy and fashion out of the UEFI mode that's killing me right now. I have join and would completely if I could see my screen of the BIOS, or anything for that matter. I can not go back also to my other card because it will not feed. So my question; How to make or change the BIOS settings so that my computer will recognize a graphics card or internal graphic that should be on the new motherboard itself so that it starts?

    I need this computer for CAD work soon so I thought help processor i7, 8GBs RAM, Geforce card and touch screen to perform a generation of PC.  So if someone has a great idea they would projected upward on this post, I'd appreciate it. Thank you!

    Your computer is not posting, sound rather give an error message in the form of 6 beeps and red LED flashing, indicating graphics / video issue.

    You can never get into the BIOS of the device, if its not posting, not on a HP Desktop atleast.

    I recommend, you disconnect all components and fittings connected to the motherboard i.e. cables SATA, power cables, RAM, processor, heatsink, power supply and battery CMOS as well.

    Now, press and hold button power unit for a minute or two., with the power and everything is still disconnected.

    Then,.

    (1) Insert the battery CMOS back into its slot, install the processor and the heat sink, connect all cables power that goes to the motherbaord in the PSU and CPU and etc., less SATA cable and cable power to drive hard and Optcal drive and turn on the device, of course after you have connected the rear power cable.

    (2) check if the machine beeps and check whether it is 5 times.

    (3) If yes install a memory in the first slot (slot black), connect the monitor and turn on the power and check if there is no video output.

    (4) if so, connect the return which is always disconncted, to their respective locations and ports and turn them the unit on and get on with your CAD stuff.

    IF NO,

    2 options:

    (1) if the unit is still under warranty, call 1800-474-6836 and have a technician on-site visit your place and replace the parts needed for the operational unit.

    (2) or the motherboard you purchased could have been Dead On Arrival. Get a warranty replacement for the DOA mobo and re install a new Board of Directors.

    Good luck!

    Please click on the "congratulations, Thumbs Up" at the bottom of this post if you want to say 'Thank you' for helping!
    Please click "Accept as Solution" If you feel my post solved your problem, it will help others find the solution.

  • Try to set / change the password BIOS admin via the script WMI on ThinkStation D20

    Hello Lenovo Community!

    Start using the WMI Lenovo_SetBiosSetting class on a D20 system.

    If I understand the documentation that there is a limitation on the BIOS password in the past, but I updated to the latest BIOS Rev who support States was added for this feature.

    I use a script that changes the supervisor on computers password successfully thinkpad, but when even to run the script from command line on the D20 system it returns "SUCCESS" however to change the password did not effect!

    I'm using the right parameters are the standard of lenovo

    ' pap, oldpass newpass, ascii, we.

    I thought maybe "pap" is not the correct setting for password Admin on the D20, however the WMI available, posted 2010 guide, does not show otherwise.

    Someone at - it an example script that they can display successfully change the password on a D20 system?

    Please and thx!

    Did you run the SaveSetting script after changing the password?

    You can get the SaveSetting script from the sample scripts D20 located at the following link:

    http://support.Lenovo.com/en_US/downloads/detail.page?docid=UM002033

    You can use the script SetAdminPassword from the library of scripts of series E, then a follow-up that with something like what follows before restarting:

    "cscript SaveSetting.vbs" originalpwd, ascii, we.

    Replace 'originalpwd' with all what your existing password was at the time wherever you booted the system.

  • How can we change the start-up time in a virtual machine

    I need to update the delay start for my virtual machines so that each time that the virtual machine is under voltage or reset, the boot order to 5000 milliseconds delay.  The default is 0 milliseconds.

    Can someone tell me what command (s) I need to use for this script.  I only meed the correct syntax and I'll be able to write the script to change the default settings on all my VMs currents (I've already updated my model so that the new virtual machines have the value of 5000 milliseconds).

    Any help would be greatly appreciated.

    See you soon

    IMMIAnt

    To set the delay for all your vm is 5,000 milliseconds with PowerCLI you can use:

    $spec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $spec.bootOptions = new-Object VMware.Vim.VirtualMachineBootOptions

    $spec.bootOptions.bootDelay = 5000

    Get - VM | {ForEach-Object

    $_. ExtensionData.ReconfigVM_Task ($spec)

    }

  • change the IP address of a machine virtual vcenter

    I have a vCenter VM who need to change the IP addresses and the VLAN.

    Someone at - it a method of proof of the ball to achieve?

    I googled a lot of articles that speak to change the IP address of a virtual computer, but not to a VM vCenter.

    Am I missing something here - he is incredibly easy - or is it so obscure that it may be easier to delete it and recreate it in a place where it should reside?

    Thank you.

    Its not too difficult, but there are a few cleaning tasks, you will have to fill out once its address IP has been changed (solve connectivity ESX to your vCentre, fix Update Manager, etc.).  If you have a small, newly Set up virtual infrastructure you can consider recreating your vCentre, but it's probably easier to not do.

    When your vCentre is a virtual machine, make sure that you can connect to your VI Client directly to the ESX which hosts, otherwise you might end up changing IP of the VC and lose access via VI Client/RDP/VNC etc.  In addition, the fact that it is a virtual machine is of little consequence.

    Don't know why you did not find anything via Google, there is a lot out there, see the following resources to help you get started...

    www.Google.com/search?q=change+vCenter+IP+address

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

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

  • How to change the name of VirtualSwitch without running virtual MAchines of braking?

    Does anyone know how to change the name of the virtual switch (used by VM) without braking the VM running in this cluster?

    The best way to do this without losing network connectivity is add a group of ports with the new name and connect the virtual machines to the new group of port and when the initial group of port is empty remove - remember that it's the port group named not the vswitch.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • How can I change the home page on a Windows 7 computer?

    I have a newish computer and managed to change the home page once, but have not been able to find the solution in the last two days. Current responses to question relate to XP and do not work for Windows 7. could you please tell?
    Thank you
    Stephanie

    How to set the home page

    Thank you

  • How can I change the time Scripttimeout or IIS on my computer?

    I'm trying to access a database on the internet. I can get to the database, but when I try to watch it I get an error message telling me a timeout exceeded and I received instruction to change the ScriptTimeout or IIs on my computer.

    Hello

    The question you posted would be better suited in the Forums of the ISS. I would recommend posting your query in the Forums of the ISS.

    http://forums.IIS.NET/

  • How would recreate the pagefile to a Windows 2008 virtual computer running on a host ESX 3i?

    As the subject says, I'm looking for a way to do this.  I inherited the environment of another group and it is very small, but it performs ESX 3i on the two hosts and Vcenter version 2.5 (Infrastructure) is a bit old.  5 of 6 VM are operational, however, the 6th when turned on will not get 40% full, but then it will fail to stating that is not a swap file.  Now, normally it is not a swap file, because they are created or deleted dynamically whenever a virtual computer is powered on one of the hosts.  It's quite strange.

    In the new versions / environments, there seem to be ways to recreate exchange capacity easily, but which doesn't seem to be the case here.  I don't think it's a process lock as the two hosts have restarted to clear HA agent / editions of the resource.  My guess is this has happened has been one of the hosts could not reproduce any more process for some reason any and when the VM problem has been powered down to try to erase some, the problem occurred.  Either that, or there are unreadable sectors in the data store, and perforated in this swap file black...

    I was wondering if anyone had any ideas on how to solve the problem.  Any input would be welcome.

    Thank you!

    All,

    Thanks for the suggestions, but I solved the problem.  What needed to be done was to remove the virtual machine of the inventory and then re-create it as a new virtual machine under the cluster of the same name, same settings and have it use its 2 existing virtual disks.  For some stupid reason, once this is done, he managed to turn on normally and now runs without problem.

    I'm not necessarily happy that this solution because it does not really help understand me what underlying the problem actually was, but I guess I can live with that.  The reason why I have not tried it earlier, is that I was afraid the vmdk would be replaced and I wanted to keep the existing information.  However, someone I work with was certain that they had done before, and that she maintained the pre-existing data, even in this older version, so I finally tried.

    in any case, thanks for the support, and if someone can glean some root causes of the problem based on the solution I have just given, that would be helpful.

Maybe you are looking for

  • How to connect printer 2.4 Ghz band dual band Airport Extreme?

    I need a new printer connect to my Imac running OS 10.7.5 wirelessly.  My router is multiband Airport Extreme.  Most printers seem to does not support multi-band wireless;  they can't stand the 2.4 Ghz band.  Is there some document printers (I need s

  • Satellite U400-15e - webcam is blurry and shows a few pixels

    Newb here :D Hey guys, all is good with me except that the cam is blurry and shows a few pixels.Can anyone recommend settings camera property? Hue, saturation, Brightness, Contrast.thx and finally and above all, where can I find the latest driver for

  • Satellite A50: Cannot boot from recovery CD

    I have a toshiba satellite a50 when I try and recover back to factory settings, but my computer does not recognize the cd and it does not boot from the cd to recoverey someone help I have explored the cd there is a file with the extension .gho I real

  • How can I turn off upnp (SSDP/port 1900) connections?

    My ISP told me I have a SSDP vulnerability, and I now need to disable port 1900 to take care of it. My ISP router is closed to my Time Capsule, that's where this should be done.  Any ideas on how to do this?

  • Replace the power supply for a Pavilion a140n

    How to install a new power supply in a HP Pavilion a140n? Is there a step by step guide?