flynmooney's Posts

The "RefreshNetworkSystem" call did not fix the mac but it led me to going through the network members again and I found "UpdateVirtualNic" which worked like a charm.  Code snip below.  Thanks fo... See more...
The "RefreshNetworkSystem" call did not fix the mac but it led me to going through the network members again and I found "UpdateVirtualNic" which worked like a charm.  Code snip below.  Thanks for the help. Variables needed: $ipaddress $esxcred $mac Connect-VIServer $ipaddress -credential $esxcred $esxhost = Get-VMHost $hostview = $esxhost | Get-View $net = Get-View -Id $hostview.configmanager.networksystem $vnic = $net.networkinfo.vnic | ? { $_.device -eq "vmk0" } $spec = $vnic.spec $spec.mac = $mac $net.UpdateVirtualNic("vmk0",$spec) disconnect-viserver * -confirm:$false
Here's the MAC before the machine reconfiguration.  We're doing DHCP reservations and while the machine is being reconfigured and firmware being updated I go and change the dhcp reservation. It s... See more...
Here's the MAC before the machine reconfiguration.  We're doing DHCP reservations and while the machine is being reconfigured and firmware being updated I go and change the dhcp reservation. It seems though that vmk0 is holding onto the MAC address even after the boot.  The host profile which was previously applied has a setting of "Prompt the user for the MAC address if no default is available" for the management interface. C:\Users\xxxx> C:\Users\xxxx> $esxhost = get-vmhost xxxxxxxxxx C:\Users\xxxx> $mgmt = $esxhost | Get-VMHostNetworkAdapter | ? { $_.Name -eq "vmk0" } C:\Users\xxxx> $mgmt Name       Mac               DhcpEnabled IP              SubnetMask      DeviceName ----       ---               ----------- --              ----------      ---------- vmk0       xx:xx:xx:xx:00:5a True        xxx.xxx.xxx.141   255.255.255.0         vmk0 Machine Reconfig done within UCS (Firmware update and vnic changes) C:\Users\xxxx> $mgmt = $vmhost | Get-VMHostNetworkAdapter | ? { $_.Name -eq "vmk0" } C:\Users\xxxx> $mgmt Name       Mac               DhcpEnabled IP              SubnetMask      DeviceName ---       ---               ----------- --              ----------      ---------- vmk0       xx:xx:xx:xx:00:5a True        xxx.xxx.xxx.24    255.255.255.0         vmk0 C:\Users\xxxx> Get-UcsServiceProfile xxxxxxxxxx| Get-UcsVnic | select name,addr Name             Addr ----             ---- esx-vmnic0-mgmt  xx:xx:xx:xx:00:4B
I am going through our entire environment making a change where the mac address of the management nic changes.  Long story short, on each host I am having to manually login to the console and do ... See more...
I am going through our entire environment making a change where the mac address of the management nic changes.  Long story short, on each host I am having to manually login to the console and do a network restore.  I'd like to try to program this as you can login through powershell to a host directly.  I happened upon a page http://searchvmware.techtarget.com/tip/PowersHell-Factory-Reset-of-ESXi  which shows doing a complete factory reset through powershell.  I just want to restore the network settings to default. The code in the webpage is: $vmhost = "esx4.vi4book.com" $vcname = "virtualcenter4.vi4book.com" #Connect to vCenter & Enter Maintenance Mode Connect-VIServer $vcname -username administrator -password vmware $esxhost = Get-VMHost $vmhost $hostview = $esxhost | Get-View Set-VMHost $esxhost -State maintenance # Remove ESX host from vCenter... Remove-VMHost $vmhost -Confirm:$false # Carry out factory reset... Connect-VIServer $vmhost -username root -password password $esxhost = Get-VMHost $vmhost $hostview = $esxhost | Get-View $ns = Get-View -Id $hostview.ConfigManager.firmwareSystem $ns.ResetFirmwareToFactoryDefaults() I've looked around a bit in the API but haven't found anything yet.
It looks like this one may be the weird oddity I ran into where you'd think you wouldn't have to apply rights this high.  I checked my permissions and for our limited rights users I had to add Vi... See more...
It looks like this one may be the weird oddity I ran into where you'd think you wouldn't have to apply rights this high.  I checked my permissions and for our limited rights users I had to add Virtual Machine -> Inventory -> Move on the datacenter object which I propagate to children. 
At what level are you applying the permission?  I've ran into a couple bugs where I had to apply the permission higher in the hierarchy than one would think.  The other gotcha I've ran into is wi... See more...
At what level are you applying the permission?  I've ran into a couple bugs where I had to apply the permission higher in the hierarchy than one would think.  The other gotcha I've ran into is with permissions you really have to use the web client to apply the permissions.  The reason being in the thick client you only see the permissions applied on the current object where in the web client you see all of the inherited permissions for the user/group.
I've had this happen a few times where there is no inventory and each time I've had to restart the inventory service.  We run VCSA so this can either be done via SSH with service-control command ... See more...
I've had this happen a few times where there is no inventory and each time I've had to restart the inventory service.  We run VCSA so this can either be done via SSH with service-control command or you can go into Administration -> System Configuration -> Services -> Inventory Service and either Restart or Shutdown and Start.
We're seeing the same error here since December of last year.  We opened a ticket and were also told SDK to get help.  Going to try opening another ticket with VMware on this.
We had a ticket in with VMware it turned out our vCO appliance's time settings were messed up.  We fixed this and the Business Groups all showed up. VMware said to check time settings: "are any t... See more...
We had a ticket in with VMware it turned out our vCO appliance's time settings were messed up.  We fixed this and the Business Groups all showed up. VMware said to check time settings: "are any time sync difference between iaas , vRA and orchestrator machines. Are all of them pointing to the same NTP server."
Running into the same issue here.  We have a single tenant other than the default.  Running vRA 6.2.3 and have tried reinstalling the vRA plugin and even updated it to 6.2.3.  What exact sequence... See more...
Running into the same issue here.  We have a single tenant other than the default.  Running vRA 6.2.3 and have tried reinstalling the vRA plugin and even updated it to 6.2.3.  What exact sequence did you do to reinstall the plugin?
I'm having a similar issue.  Wondering if you found a solution to this problem?
[2015-11-05 14:16:43.032] [I] ReferenceError: vm is not defined for waiting for the DNS name I got this error with Version 6.2.3 vRA and vCO 6.0.3.  After some quick troubleshooting I figured ... See more...
[2015-11-05 14:16:43.032] [I] ReferenceError: vm is not defined for waiting for the DNS name I got this error with Version 6.2.3 vRA and vCO 6.0.3.  After some quick troubleshooting I figured out that we hadn't configured vCenter in vCO yet. Library -> vCenter -> Configuration -> Add a vCenter Server instance
Right from the configuration maximums document it says: Enhanced Linked Mode/Lookup Service Maximum number of VMware Solutions connected to a single PSC 4 This limit is based on the test... See more...
Right from the configuration maximums document it says: Enhanced Linked Mode/Lookup Service Maximum number of VMware Solutions connected to a single PSC 4 This limit is based on the test performed using only vCenter Server. From this I can only assume the reason for the limits are performance based and it says this was only done with vCenter so then like you ask how would different products affect this size?  Can you use more of them or less?  This is quite confusing and I agree it seems small.
I am in a similar boat with 9 vCenters and vCAC environments with test, prod.  From this it adds up to 11 solutions.  We were planning on a single domain until I started digging into the document... See more...
I am in a similar boat with 9 vCenters and vCAC environments with test, prod.  From this it adds up to 11 solutions.  We were planning on a single domain until I started digging into the documentation.  Now it looks like we'll be implementing 3 different domains to try and future proof any more expansion. From a couple of blogs it is my understanding that a solution is an instance of a single vCenter and all of the associated components or an instance of  vRA (Realize Automation). vSphere Datacenter Design – vCenter Architecture Changes in vSphere 6.0 – Part 2 | VMware Consulting Blog - VMware Blogs
If you have ASD you can build a complete solution that masks these fields.  You can build a vCO workflow that accepts the desired inputs from the ASD form and then makes a catalog item request.  ... See more...
If you have ASD you can build a complete solution that masks these fields.  You can build a vCO workflow that accepts the desired inputs from the ASD form and then makes a catalog item request.  In the workflow call 'request a catalog item' with the required properties.  I did this with the vCO service account which will create the VM and set it up and be owned by the service account.  I then change the owner of the VM using a custom property of the user and business group who requested the VM at the end of the MachineProvisioned workflow stub. This link has some useful information about 'Request a Catalog Item' How to use and extend the workflow "Request a catalog item" from the vCAC plug-in for vCO
Here's my take on a workflow to change a single VM reservation.  Inputs: vCAC:VCACHost (vcacHost) vCAC:Reservation (reservationName) vCAC:VirtualMachine (vcacVM) var entity = reser... See more...
Here's my take on a workflow to change a single VM reservation.  Inputs: vCAC:VCACHost (vcacHost) vCAC:Reservation (reservationName) vCAC:VirtualMachine (vcacVM) var entity = reservationName.getEntity(); var hostReservationID = entity.getProperty("HostReservationID"); System.log("HostReservationID: " + hostReservationID); var vmEntity = System.getModule("com.vmware.library.vcac").getVirtualMachineEntity(vcacHost,vcacVM); var properties = new Properties(); var name = new Array(); var value = new Array(); name[0] = "HostReservationID"; value[0] = hostReservationID; if (name != null) {     for (var i = 0; i < name.length; i++) {         properties.put(name[i], value[i]);         System.log(name[i] + " : " + value[i]);     } } var links = null; System.getModule("com.vmware.library.vcac").updateEntity(vmEntity,properties,links);
From what I've learned it you ever plan on going to multi-tenant then you should start only using the default tenant for admin tasks and create another tenant to start in.  This way you are posit... See more...
From what I've learned it you ever plan on going to multi-tenant then you should start only using the default tenant for admin tasks and create another tenant to start in.  This way you are positioned to scale out as needed. 
I did rerun inventory tasks on both vCenters.  Everything worked just perfectly with the VMs being transferred and vCAC picking them up in the new vCenter.  Where I ran into a problem was when I ... See more...
I did rerun inventory tasks on both vCenters.  Everything worked just perfectly with the VMs being transferred and vCAC picking them up in the new vCenter.  Where I ran into a problem was when I tried to run any actions on the VMs.  The VMs were still part of the old reservation which pointed to the old vCenter.  When I ran a resource action it was trying to contact the VM in the old vCenter.  When I changed the VM to the new reservation which was pointed to the new vCenter the resource actions worked as expected. For reference I am using vRA Automation 6.2.1
To completely make this work in my lab environment I had to change the reservations of the machines to get them to be fully managed by vCAC.  Did you have to do this?  Did you create anything in ... See more...
To completely make this work in my lab environment I had to change the reservations of the machines to get them to be fully managed by vCAC.  Did you have to do this?  Did you create anything in vCO to automate this process as it's a single VM at a time through the GUI and 1000 VMs wouldn't be very efficient.
We're looking at moving to vSphere 6 appliances from vSphere 5.5 Windows installs.  We currently have machines built and managed by vCAC 6.2.  We've done infrastructure upgrades in the past by cr... See more...
We're looking at moving to vSphere 6 appliances from vSphere 5.5 Windows installs.  We currently have machines built and managed by vCAC 6.2.  We've done infrastructure upgrades in the past by creating a new environment, disconnecting ESXi server from one vCenter and reconnecting to the new vCenter.  The problem now would be with vCAC managing the machines in what order do we do this?  Do we add the new vCenter as a new endpoint in vCAC with a new URL first and then migrate the VMs and will the inventory process recognize this?  Or do we take a small outage while we migrate to the new vCenter and then connect the new vCenter with the same URL as the old one as an endpoint to vCAC?
I'm looking at a similar situation. Did you figure out how to get this done?