Script Automation of VM in SCVMM 2012 R2 Rollup 1 - Cannot retrieve Mac Address

Hi All.
I am creating a script for automation of VM
I have run into a problem, I get my vm created as it should( at least I think so) I can boot the machine and in there I see a MAC Address from the console view, I know the machine has a mac address.
I have tried to get my mac address like this, the result is blank
Get-SCVirtualNetworkAdapter-VM$VMName|SelectMACAddress
$ShowMacAddress.MACAddress
But if I go into the SCVMM Management console, and right click on my newly created machine and click refresh, my Mac Address suddenly shows up.
I have tried this link, but it does not work for me
http://social.technet.microsoft.com/Forums/en-US/2e312c16-1369-4f9e-8be3-9fbef697adf5/scvmm-get-mac-address-of-new-vm?forum=virtualmachingmgrhyperv
Please help me, I am stuck
Ricco
Ps. do I need to post the rest of my script?
http://social.technet.microsoft.com/Forums/en-US/2e312c16-1369-4f9e-8be3-9fbef697adf5/scvmm-get-mac-address-of-new-vm?forum=virtualmachingmgrhyperv

If you are trying to get this information immediately after the VM creation, VMM may not have the information. To my understanding, once the VM is created and the VMM get the updates while refreshing the VM, these updates will get updated.
As a workaround, you could initiate a refresh immediately after the VM creation and then query the MAC.
Refresh-VM VMName
After a successful refresh, you should be able to query the mac address.
Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
InsideVirtualization.com

Similar Messages

  • RRAS 2012 With DHCP Works, Cannot Get Static Address Pool To Connect Completely

    Hello Forums Users:
    I have set up RRAS/DA 2012 successfully incorporating my AD DHCP server.   Every connection works and I see all networks that I have VPN tunnels set up with, which is totally cool.    However, I want to assign remote VPN users IP's from a
    static address pool - and while the setup completes without issue and the client connects, I can see absolutely nothing.    No good pings, no connect to Lync client, Outlook, etc. etc.
    I am OBVIOUSLY missing something but have no idea what that is.   Do I need to add something (and I really have no idea what that "something" is) to RRAS config so the static address pool (192.168.40.0 in this case) has the same access as
    the AD DHCP pool does?
    Thanks again for taking the time to check this out and comment.

    Bill:
    Thanks for the reply....  yes, the idea is to free up a pool of IP's large enough to accomodate all 170 staff.   Our current 192.168.2.x DHCP hands out 150, but I need to plan for DR/BCP when other locations (about 110 users) remote in when their
    location goes dark.
    I already have VPN tunnels between the main locations and a VPN user can see ALL of them when it gets an IP from DHCP.   Are you saying that I have to add routes to all the routers/firewalls to accomplish this?
    Or would I use IPv4 Static Routes?   A network I'd like access to is 192.168.14.0 /24.   Would the route look like any of these?   Sorry it's not clear what I would use as the gateway (192.168.2.1 is the RRAS server network gateway, 192.168.2.6
    is RRAS IP)
    Destination         Net Mask               Gateway                Interface
    192.168.14.0      255.255.255.0        192.168.2.1            LAN
    192.168.14.0    255.255.255.0
      192.168.14.254      LAN             (
    (.254 is the remote gateway)

  • How to get the vm ip address in scvmm 2012

    Hi,
    I want to get the vm ip address in scvmm 2012, who can help me?

    I have seen lots of people ask this because they can see IP addresses in other Virtualization Consoles, Unfortunately SCVMM doesn't show IP address of the VMs on the console but you can use below script to populate Custom1 property of VMs with IP address
    and make Custom1 Column visible (manually) in SCVMM Console... HTH
    param ( $VMMServer = 'localhost')
    $CustomProp = Get-SCCustomProperty -Name Custom1
    $VMs = get-SCVirtualMachine -VMMServer $VMMServer
    foreach ($VM in $VMs)
     $NetAdp = get-SCVirtualNetworkAdapter -VM $VM.name
     if ($NetAdp.IPv4Addresses)
     [String[]]$str = $NetAdp.IPv4Addresses
     Set-SCCustomPropertyValue -CustomProperty $CustomProp -InputObject $VM -Value "$str"
    Disclaimer: The sample script is provided AS IS without warranty of any kind.

  • SCVMM 2012 SP1 Beta Installation Errors

    Hi All,
    Pulling my hair out trying to get SCVMM 2012 SP1 Beta to install on a Windows 2012 machine. The machine was a new installation and had IIS installed, Hyper-V Role, Failover Clustering, SQL Server 2012, AD (it is a domain controller).
    Getting an error regarding Failover Clustering, which is definitely installed with all management tools and powershell module. Have even tried uninstalling it and then running the VMM Setup, and I then get a different error. Logs from both installation attempts
    are below:
    Log Excerpt if I have Failover Clustering Installed:
    04:42:25:ProcessInstalls: Install Item VMM management server has a Preprocessing delegate of PangaeaServerPreinstallProcessor.  Launching it now.
    04:42:25:Doing Install task for PangaeaServer
    04:42:25:SetProgressScreen: Init MSI Install progress.
    04:42:25:LaunchMsi: Msi mutex is not in use.
    04:42:25:LaunchMsi: MSI to launch is: C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi.
    04:42:25:LaunchMsi: Turning off the internal UI for C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi.
    04:42:25:LaunchMSI:  Enable logging for the MSI at C:\ProgramData\VMMLogs\vmmServer.log.
    04:42:25:LaunchMsi: MSI C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi is not in silent mode.  Setting the external UI.
    04:42:25:LaunchMsi: Launching C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi with arguments 'INSTALLINGLANGUAGE = 1033 REBOOT=ReallySuppress INSTALLDIR="C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\" INDIGOPORT="8100"
    SERVERACCOUNTNAME="CONTROLMYVPS\VMMAdmin" SERVICEACCOUNT="CONTROLMYVPS\VMMAdmin" COMPANYNAME="VPSBlocks" USERNAME="Will Kruss" WSMANPORT="5985" BITSPORT="8443" LIBSHARENAME="MSSCVMMLibrary" LIBSHAREPATH="C:\ProgramData\Virtual Machine Manager Library Files"
    SQLPORT="0" INSTANCENAME="SCVMM" DATABASENAME="VirtualManagerDB" CONNECTIONSTR="Integrated Security=SSPI;Application Name=VirtualMachineManager;Max Pool Size=500;Encrypt=true;TrustServerCertificate=true;Server=SCVMM;database=VirtualManagerDB" ONREMOTESERVER="0"
    SQLMACHINENAME="SCVMM" SQLMACHINEFQDN="SCVMM.controlmyvps.com.au" INDIGOHTTPSPORT="8101" INDIGONETTCPPORT="8102" INDIGOHTTPPORT="8103" SETUPLANGUAGE="en-US"  REBOOT=ReallySuppress'
    04:42:42:statusUpdate: Resetting progress bar for MSI: MaxValue 9837
    04:42:48:statusUpdate: Resetting progress bar for MSI: MaxValue 1317559262
    04:42:48:statusUpdate: Resetting progress bar for MSI: MaxValue 1317559262
    04:43:24:MsiInstallProduct finished for msi C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi.
    04:43:24:LaunchMSI: MSI C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi succeeded.
    04:43:24:Doing Postinstall task for PangaeaServer
    04:43:24:ProcessInstalls: Install Item VMM management server was successful.  We will launch the post process delegate.
    04:44:06:EnableFailover() threw an exception: Threw Exception.Type: Microsoft.VirtualManager.ClusterUtil.PowershellInvocationException, Exception.Message: Powershell cmdlet Invocation Exception
    04:44:06:StackTrace:   at Microsoft.VirtualManager.ClusterUtil.PowershellHelper.InvokePowershell()
       at Microsoft.VirtualManager.ClusterUtil.PowershellHelper.InvokeCommand(String commandName, Object[] commandParameters)
       at Microsoft.VirtualManager.ClusterUtil.PowershellHelper.LoadModules(String[] moduleNames)
       at Microsoft.VirtualManager.Setup.FeatureEnableHelper.EnableWindowsClusteringFeature()
    04:44:06:InnerException.Type: System.Management.Automation.MethodInvocationException, InnerException.Message: Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
    04:44:06:InnerException.StackTrace:   at System.Management.Automation.ExceptionHandlingOps.ConvertToMethodInvocationException(Exception exception, Type typeToThrow, String methodName, Int32 numArgs, MemberInfo memberInfo)
       at CallSite.Target(Closure , CallSite , Object , RuntimeType )
       at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    04:44:06:InnerException.Type: System.Security.Principal.IdentityNotMappedException, InnerException.Message: Some or all identity references could not be translated.
    04:44:06:InnerException.StackTrace:   at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
       at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
       at CallSite.Target(Closure , CallSite , Object , RuntimeType )
    04:44:06:VMMPostinstallProcessor threw an exception: Threw Exception.Type: Microsoft.VirtualManager.Utils.CarmineException, Exception.Message: Setup could not add the Windows Server failover clustering feature.
    If Server Manager is running, close Server Manager and restart Setup, or manually add the failover clustering server feature and try the operation again.
    04:44:06:StackTrace:   at Microsoft.VirtualManager.Setup.FeatureEnableHelper.EnableWindowsClusteringFeature()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    04:44:06:InnerException.Type: System.Management.Automation.MethodInvocationException, InnerException.Message: Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
    04:44:06:InnerException.StackTrace:   at System.Management.Automation.ExceptionHandlingOps.ConvertToMethodInvocationException(Exception exception, Type typeToThrow, String methodName, Int32 numArgs, MemberInfo memberInfo)
       at CallSite.Target(Closure , CallSite , Object , RuntimeType )
       at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    04:44:06:InnerException.Type: System.Security.Principal.IdentityNotMappedException, InnerException.Message: Some or all identity references could not be translated.
    04:44:06:InnerException.StackTrace:   at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
       at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
       at CallSite.Target(Closure , CallSite , Object , RuntimeType )
    04:44:06:ProcessInstalls: Running the PostProcessDelegate returned false.
    04:44:06:ProcessInstalls: Running the PostProcessDelegate for PangaeaServer failed.... This is a fatal item.  Setting rollback.
    04:44:06:SetProgressScreen: FinishMinorStep.
    04:44:06:ProcessInstalls: Rollback is set and we are not doing an uninstall so we will stop processing installs
    04:44:06:****************************************************************
    04:44:06:****Starting*RollBack*******************************************
    04:44:06:****************************************************************
    Log Excerpt with Failover Clustering NOT installed
    05:08:23:ProcessInstalls: Install Item VMM management server has a Preprocessing delegate of PangaeaServerPreinstallProcessor.  Launching it now.
    05:08:23:Doing Install task for PangaeaServer
    05:08:23:SetProgressScreen: Init MSI Install progress.
    05:08:23:LaunchMsi: Msi mutex is not in use.
    05:08:23:LaunchMsi: MSI to launch is: C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi.
    05:08:23:LaunchMsi: Turning off the internal UI for C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi.
    05:08:23:LaunchMSI:  Enable logging for the MSI at C:\ProgramData\VMMLogs\vmmServer.log.
    05:08:23:LaunchMsi: MSI C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi is not in silent mode.  Setting the external UI.
    05:08:23:LaunchMsi: Launching C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi with arguments 'INSTALLINGLANGUAGE = 1033 REBOOT=ReallySuppress INSTALLDIR="C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\" INDIGOPORT="8100"
    SERVERACCOUNTNAME="CONTROLMYVPS\VMMAdmin" SERVICEACCOUNT="CONTROLMYVPS\VMMAdmin" COMPANYNAME="VPSBlocks" USERNAME="Will Kruss" WSMANPORT="5985" BITSPORT="8443" LIBSHARENAME="MSSCVMMLibrary" LIBSHAREPATH="C:\ProgramData\Virtual Machine Manager Library Files"
    SQLPORT="0" INSTANCENAME="SCVMM" DATABASENAME="VirtualManagerDB" CONNECTIONSTR="Integrated Security=SSPI;Application Name=VirtualMachineManager;Max Pool Size=500;Encrypt=true;TrustServerCertificate=true;Server=SCVMM;database=VirtualManagerDB" ONREMOTESERVER="0"
    SQLMACHINENAME="SCVMM" SQLMACHINEFQDN="SCVMM.controlmyvps.com.au" INDIGOHTTPSPORT="8101" INDIGONETTCPPORT="8102" INDIGOHTTPPORT="8103" SETUPLANGUAGE="en-US"  REBOOT=ReallySuppress'
    05:08:29:statusUpdate: Resetting progress bar for MSI: MaxValue 9837
    05:08:37:statusUpdate: Resetting progress bar for MSI: MaxValue 1317559262
    05:08:37:statusUpdate: Resetting progress bar for MSI: MaxValue 1317559262
    05:09:11:MsiInstallProduct finished for msi C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi.
    05:09:11:LaunchMSI: MSI C:\SC2012_SP1_BETA_SCVMM\amd64\setup\msi\Server\vmmServer.msi succeeded.
    05:09:11:Doing Postinstall task for PangaeaServer
    05:09:11:ProcessInstalls: Install Item VMM management server was successful.  We will launch the post process delegate.
    05:09:49:VMMPostinstallProcessor threw an exception: Threw Exception.Type: System.IO.FileNotFoundException, Exception.Message: Could not load file or assembly 'Microsoft.FailoverClusters.PowerShell, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    or one of its dependencies. The system cannot find the file specified.
    05:09:49:StackTrace:   at Microsoft.VirtualManager.ClusterUtil.PowershellInvocationException..ctor(Exception innerException)
       at Microsoft.VirtualManager.ClusterUtil.PowershellHelper.InvokePowershell()
       at Microsoft.VirtualManager.ClusterUtil.PowershellHelper.InvokeCommand(String commandName, Object[] commandParameters)
       at Microsoft.VirtualManager.ClusterUtil.PowershellHelper.LoadModules(String[] moduleNames)
       at Microsoft.VirtualManager.Setup.FeatureEnableHelper.EnableWindowsClusteringFeature()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    05:09:49:ProcessInstalls: Running the PostProcessDelegate returned false.
    05:09:49:ProcessInstalls: Running the PostProcessDelegate for PangaeaServer failed.... This is a fatal item.  Setting rollback.
    05:09:49:SetProgressScreen: FinishMinorStep.
    05:09:49:ProcessInstalls: Rollback is set and we are not doing an uninstall so we will stop processing installs
    05:09:49:****************************************************************
    05:09:49:****Starting*RollBack*******************************************
    05:09:49:****************************************************************
    Any suggestions would be appreciated!
    Cheers,
    - Will Kruss

    Hi
    I am having a similar problem
    I have managed to install the console but no the VMM server manager
    I get the below error:
    "Unable to add the Windows feature RSAT-Clustering.
    Run the PowerShell command window and try to add this 
    feature. "
    The RSAT-Clustering feature is installed as can be seen below.
    Not sure what the issue is.
    PS C:\Users\xxxx>
    Get-WindowsFeature RSAT-Cluster*
    Display Name    
    Name    Install
    State
            [X] Failover Clustering Tools 
    RSAT-Clustering
                        Installed
                [X] Failover Cluster Management Tools       RSAT-Clustering-Mgmt    
          Installed
                [X] Failover Cluster Module for Windows ... RSAT-Clustering-Powe...        Installed
                [X] Failover Cluster Automation Server      
      RSAT-Clustering-Auto...         Installed
                [X] Failover Cluster Command Interface      RSAT-Clustering-CmdI...    
        Installed
    Can any one help?

  • Missing Event Viewer VM Manager Log after ugrade from SCVMM 2012 SP1 to R2

    We recently upgraded from SCVMM 2012 SP1 to SCVMM 2012 R2. After the upgrade, I noticed that the VM Manager log, in the Event Viewer, is missing. I've tried to peruse all of the logs to see if it has been moved/renamed, with no luck. I highly doubt an important
    log would be removed without a replacement being available, so I'm curious if it was something that had to be enabled (isn't turned on by default).
     I had scripts which relied on the log for VM status changes, Event ID 821 (shut down/running/etc), to keep a last-used database for all of the VMs on our cloud.
    Has anyone run in to this problem, or have any idea how I can get get the information that was available in the VM Manager log?
    Thank you.

    I have a similar problem when migrating VMs from Windows 2008 R2 (Non Clustered) Hyper-V to Windows 2012 Hyper Cluster. I had previously migrated about 100 VMs like this with no problem. It appears since upgrading from VMM SP1 Rollup 4 to Rollup 5 this problem
    is happening. All Agents are up to date.
    I can migrate VMs in the cluster no problem.
    I removed the Windows 2008 R2 Hyper-V host and added it back which allowed the job to at least start but when it gets to the final steps of importing the VM it fails with the same error and references the VMM server.
    Others suggest this is a VMM Certificate problem and you can remove the Cluster node and add it back again but I can't do that in a production Cluster with hundreds of VMs. That is not an acceptable solution.
    How can we fix this?

  • Update Rollup 2 for SCVMM 2012 R2

    In order to apply Update Rollup 2 one needs to first run the update on the Management Server then run the script on the Database that is holding VirtualManagerDB. I have following scenario:
    An SCVMM 2012 R2 HA setup with Failover Clustering and a Standalone Library Server.
    I have done the above on the active management server of SCVMM Cluster.  Now, in SCVMM Console, I can see the updated version of the active management server, but passive node still shows it to be the older along with the library server.
    1.  How to apply update rollup 2 to the passive node of the scvmm cluster?
    2.  How to apply update rollup 2 to the standalone library server?
    3.  Do I need to just run the update rollup 2 on both server?
    4.  Do I need to run the script again the VirtualManagerDB Database?
    Thanks in advance.

    Hi,
    Here is a short procedure how you can apply UR2 on HA VMM server:
    1. Apply UR2 server and console on the passive node.
    2. Stop the HA VMM service.
    3. Apply the SQL script to the VMM DB.
    4. Start the HA VMM service on the node that you've applied UR2.
    5. Apply UR2 server and console on the other node that was previously active.
    6. Update VMM agents on Library server, Update Server and Hyper-V hosts from the VMM console
    So In short: both vmm servers are updated with UR2. The script needs to be applied once to the database. The library server is updated trough the console.

  • SCVMM 2012 R2 - Problems with VM storage location

    Hello , 
    I have a SCVMM 2012 R2 HA Installation . Under vmm i have an 8 node hyper-v 2012 r2 cluster with cluster shared volumes. My problem is with VM placement. Every time i create a Virtual machine by default VMM chooses a spesific CSV that i don't want . Also
    because of a provisioning engine i work a lot creating Vm's with powershell. The same happens with powershell. By default the VM's are created in a Volume i don't want. Is there a way to change this somehow ? If i go to each node properties and in placement
    paths in the default paths i see all my CSV but the add-remove buttons are grayed out and i cannot remove or add anything. 
    Any ideas ? 
    Thanks

    Running the VM Deployment wizard when deploying to a host group, you are able to specify the CSV for placement. this is also possible through powershell using -path.
    Normally, we recommend to use storage classification and associate vhdx's with the right classification so that the intelligent placement engine can take care of it for us.
    Have you tried this?
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )
    Hello Kristian and thanks for your answer , 
    Yes as you said running the Vm Deployment wizard i can choose the volume i want to create the VM. As i understand the default volume is the one with the largest free space. I also dont use storage classifications. All of my CSV's created manually before
    VMM exists in my infastructure. Also as i see i cannot edit the placements in each hosts. It has as default all my CSV and add-remove is greyd out. 
    So...
    As i said in my previous post im using a provisioning portal (not 3rd party) to create Virtual Machines. Im using powershell to create my VM's . Can you help me a little with the -path command ? I have take the script from VMM for creation of machines BUT
    vmm dos not put somethere the -path command. It only have
    Set-SCVMConfiguration -VMConfiguration $virtualMachineConfiguration -VMLocation  but with this it only creates the vm configuration in the path i choose and vmdisks are going to the default path vmm chooses (the csv with the most free
    space). 
    Any ideas ? 
    Thanks a lot

  • OS-Deployment to virtual servers with SCVMM 2012 R2 vs SCCM 2012 R2 or integration with both?

    Hi,
    OS-Deployment to virtual servers with SCVMM 2012 R2 vs SCCM 2012 R2 or integration with both?
    Is SCCM just for physical servers, and SCVMM for virtual?
    What are benefits of integrating them?
    /SaiTech

    Hi,
    Please refer to the links below:
    Introduction to Configuration Manager
    http://technet.microsoft.com/en-us/library/gg682140.aspx
    Virtual Machine Manager
    http://technet.microsoft.com/en-us/library/gg610610.aspx
    The System Center 2012 Integration Guide provides information about automating each of the System Center components and integrating them with each other and with other systems and applications.
    For more information, see the
    System Center 2012 Integration Guide.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SCVMM 2012, Conntect via conosle does not work when logged in with specified credentials

    Hi all
    I have a problem with the SCVMM 2012 console. When I start the console I select the "Specify credentials" option and then I enter my admin credentials. Afterward the console opens
    and everything works except the "Connect via Console" function.
    When I try to connect to a VM I get the following message:
    Virtual Machine Manager lost the connection to the virtual machine for one of the following reasons: Another connection was established to the console of this machine. The virtual machine has been shut down or put into the saved state. The user credentials
    provided do not have the necessary privilege to connect (0x0003, 0x0300)
    It seems that the Virtual Machine Viewer runs not under the admin credentials which I enter at the beginning and therefore the console cannot connect.
    Has someone the same issue ? Is it by design that the console connection does not work with specified credentials or is a sort of a bug or error ?
    Thx
    J0fe

    Being new to SCVMM, I've just come across this issue myself, though I came to a different (not necessarily better, but good enough for me) resolution.
    I have a somewhat convoluted but not abnormal configuration where the SCVMM server lives in a separate untrusted forest to that which the Hyper-V Server hosts live.
    As people have noted in this and other threads, the VirtualMachineViewer.exe process launches in the same security context with which you logged onto your pc. While the VmmAdminUI.exe process also runs in the same security context,
    the network logon it issues makes use of the credentials provided at the SCVMM MMC's logon screen, which VirtualMachineViewer.exe does not.
    I elected to use Credential Manager to resolve this issue.
    In Credential Manager, I created a "Windows Credential" entry where the hostname matched the FQDN of the hostname that appears within SCVMM as the virtual host entry. Using an IP does not match if you've used an FQDN in the SCVMM
    registration, and vice versa. If you used an IP for the host in SCVMM, then you need to supply that IP as the hostname in Credential Manager, and likewise if you used a FQDN.
    This solution isn't perfect as it requires you to manage numerous Credential Manager entries (one per host), but that still appealed to me far more than one per guest. If I had a larger environment, I'd script the account configuration
    given it only needs to happen once per host, rather than on an ongoing basis of once per guest as some of the above approaches would require.
    I haven't tested the different combinations to verify the least permissions required. For the time being I've gone with the model of using a non-privileged domain user account (to avoid managing multiple identities and passwords)
    which I added to the local Administrators group of each Hyper-V Server host. This stuck me as being a sound enough compromise between rigid security and ease-of-administration (given the per host arrangement in Credential Manager).
    With the account correctly specified in Credential Manager, I'm able to move on past the 0x0003 error and successfully use the remote function.
    If I was to point out an upside to this, it would be that this approach would allow me to remote Hyper-V servers in untrusted forests (including workgroups), which is something I couldn't do if the VirtualMachineViewer.exe process
    did in fact use my SCVMM credentials alone. Ultimately, that's something you have to come to terms with yourself, though.
    Cheers,
    Lain
    Thanks a bunch Lain, this helped! I'd still consider this a bug, however, and not a workable solution for a large number of servers/admins... But for now this does the trick, thanks!

  • SCVMM 2012 agent install fails on standalone 2008 R2 host

    I am attempting to install SCVMM 2012 agent and getting this error:
    Error (421)
    Agent installation failed on exhpv01.denverwater.org because of a WS-Management configuration error.
    Recommended Action
    Ensure that the Windows Remote Management service is enabled and running on the server exhpv01.denverwater.org. Additionally, in the Local Group Policy Editor (gpedit.msc), navigate to Computer Configuration\Administrative Templates\Windows Components\Windows
    Remote Management (WinRM), and then ensure that there are no policy settings configured for WinRM Client or WinRM Service.
    I have run winrm qc and it shows winrm is configured.  I have verified there is no gpo settings configuring winrm.
    My runas account is a local administrator on the target host.
    I can install the agent local but still cannot add to the SCVMM server.
    Mark

    I am attempting to install SCVMM 2012 agent and getting this error:
    Error (421)
    Agent installation failed on exhpv01.denverwater.org because of a WS-Management configuration error.
    Recommended Action
    Ensure that the Windows Remote Management service is enabled and running on the server exhpv01.denverwater.org. Additionally, in the Local Group Policy Editor (gpedit.msc), navigate to Computer Configuration\Administrative Templates\Windows Components\Windows
    Remote Management (WinRM), and then ensure that there are no policy settings configured for WinRM Client or WinRM Service.
    I have run winrm qc and it shows winrm is configured.  I have verified there is no gpo settings configuring winrm.
    My runas account is a local administrator on the target host.
    I can install the agent local but still cannot add to the SCVMM server.
    Mark

  • Unable to reinstall SCVMM 2012 R2 during database migration - access denied to VMMDKM container

    I'm trying to migrate my SCVMM 2012 R2 DB to a new SQL 2012 server. As per TechNet article http://technet.microsoft.com/en-us/library/dn469626.aspx,
    I uninstalled VMM, which went without a problem. During the reinstall, setup fails with "Unable to create or access the Active Directory container CN=VMMDKM,CN=System,DC=feroscare,DC=local. Access is denied. Specify the distinguished name
    for the container and verify that you have GenericRead|CreateChild|WriteProperty rights on the container." - as is shown in the setup log below.
    I'm trying to use the same account as the service account and to connect to the database. I'm logged into the VMM server as that user account (and running setup as that account). I have verified that the account has full control over the VMMDKM container
    and all descendant objects. I've also added these permissions for the VMM server's computer account, although I'm not sure that's necessary.
    VMM server is running Win 2012 R2, SQL server is 2012 running on Win 2012 R2. Domain controller is running 2008 R2 with AD at the 2003 functional level.
    Please can anyone please advise what to do next to troubleshoot this?
    What seem to be the relevant lines from the VMM setup log:
    "12:33:04:Error:SetupDKM method threw. See inner exceptions, Exception Type: System.DirectoryServices.DirectoryServicesCOMException, Exception Message: A constraint violation occurred.
    12:33:04:StackTrace:   at System.DirectoryServices.DirectoryEntry.CommitChanges()
       at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.AddAccessRule(IdentityReference identityReference, ActiveDirectoryRights rights)
       at Microsoft.VirtualManager.Setup.DKMHelper.SetupDKM(String containerName, String topContainerName)
    12:33:04:VMMPostinstallProcessor threw an exception: Threw Exception.Type: Microsoft.VirtualManager.Setup.Exceptions.BackEndErrorException, Exception.Message: Unable to create or access the Active Directory container CN=VMMDKM,CN=System,DC=feroscare,DC=local.
    Access is denied.
    Specify the distinguished name for the container and verify that you have GenericRead|CreateChild|WriteProperty rights on the container.
    12:33:04:StackTrace:   at Microsoft.VirtualManager.Setup.DKMHelper.SetupDKM(String containerName, String topContainerName)
       at Microsoft.VirtualManager.Setup.DKMHelper.SetDKM(Boolean isDKMEnabled)
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    12:33:04:InnerException.Type: System.DirectoryServices.DirectoryServicesCOMException, InnerException.Message: A constraint violation occurred.
    12:33:04:InnerException.StackTrace:   at System.DirectoryServices.DirectoryEntry.CommitChanges()
       at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.AddAccessRule(IdentityReference identityReference, ActiveDirectoryRights rights)
       at Microsoft.VirtualManager.Setup.DKMHelper.SetupDKM(String containerName, String topContainerName)
    12:33:04:ProcessInstalls: Running the PostProcessDelegate returned false.
    12:33:04:ProcessInstalls: Running the PostProcessDelegate for PangaeaServer failed.... This is a fatal item.  Setting rollback.
    12:33:04:SetProgressScreen: FinishMinorStep.
    12:33:04:ProcessInstalls: Rollback is set and we are not doing an uninstall so we will stop processing installs"
    Thanks in advance!

    Hi new_guise,
    Please refer to following link regarding "Reinstalling VMM with a Retained Database" :
    http://technet.microsoft.com/en-us/library/cc764334.aspx
    Also please refer to following article regarding that error message :
    http://support.microsoft.com/kb/2721457
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • SCVMM 2012 SP1 (RTM) Deployment from VMM Console fails.

    Error During a library refresh, or deployment from template - It all fails:
    Error (12710)
    VMM does not have appropriate permissions to access the Windows Remote Management resources on the server (MyServer).
    Unknown error (0x80338105)
    Recommended Action
    1) Ensure that the Windows Remote Management (WS-Management) service is running on the server (myserver).
    2) If the System Center Virtual Machine Manager service on your VMM management server is configured to run by using the machine account, ensure that there is not a group policy that does not allow adding machine accounts to a computer's Administrators group.
    If there is, you can use one of the following workarounds:
      - Disable the group policy in Active Directory Domain Services (AD DS)
      - Modify the group policy to allow the VMM machine account in the Administrators group
      - Move the machine account to its own organizational unit (OU) and block the group policy from being applied
      - Reinstall the VMM management server and choose the option to run the System Center Virtual Machine Manager service by using a domain account, and re-add all of your virtual machines.
    So, as soon as SCVMM 2012 Sp1 was released we decided that it was best to upgrade so we could utilise the new features of Server 2012 as a host.
    The upgrade worked a treat. VM's deployed, Server 2012 worked. Anyway, a few days after deployment we start to see errors relating to WinRM and permissions (See end of the post). After a quick trace around we found some failed services, usually on a host
    but sometimes it seemed to happen on the Library/Management server as well.
    So, our setup is as follows:
    Management/Library server = VMware  VM, Server 2012 standard, 6 GB memory, 4 vCPU's
    Hosts = HP DL360p G7, HP DL360 Gen8 (we have a few of these), Server 2012. We also have a DL380 G7 on Server 2008 R2 Enterprise that fails as well, so it seems the error isn't O/S specific (I'm picking a VMM issue).
    So I have tried many resolutions and now none of them work.
    We have no restrictions on group policy for the local admin, this can be set manually, and works for that matter.
    WinRM is working and the listening port is 5985 (I can see it working and listening via a "netstat -an")
    Also, I have ensured many many times that all of the required services are up and running (SCVMMAgent, VirtualDisk managerment, WinRM) and initially these where at fault and a simple restart of each service (or even a full start from dead) fixed
    it - Now it all fails. Even a library refresh fails. And all while each of the services required are up and running.

    So, I have now tried a reinstall of the management server & made some changes
    1- Changed the service account during the install.
    2 - Added the service account user to the local admins group of each host in question.
    3 - Tried "winrm /qc" .which lets me know its already up and running and configured. Although I must admit, I'm not 100% sure how to use WinRM. From what I can read, this is like an express setup and ensures you are up, running and listening.
    4 - Verified that WinRM is working of the right port (Listening ports dump below)
    5 - Verified that I can connect to each port required for the SCVMM Management server.
    BUT, it seems the error is still there and deployments still fail,
    although the library refreshes correctly now.
    Error (12710)
    VMM does not have appropriate permissions to access the Windows Remote Management resources on the server ( Myserver).
    Unknown error (0x80338105)
    NETSTAT Listening ports dump.
    PS C:\Users\nzadmin> netstat -an
    Active Connections
      Proto  Local Address          Foreign Address        State
      TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
      TCP    0.0.0.0:443            0.0.0.0:0              LISTENING
      TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
      TCP    0.0.0.0:1801           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:2103           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:2105           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:2107           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:5985           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:8000           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:8100           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:8101           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:8102           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:8103           0.0.0.0:0              LISTENING
      TCP    0.0.0.0:47001          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49156          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49170          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49201          0.0.0.0:0              LISTENING
      TCP    0.0.0.0:49211          0.0.0.0:0              LISTENING
      TCP    127.0.0.1:57388        0.0.0.0:0              LISTENING
      TCP    172.23.16.69:139       0.0.0.0:0              LISTENING

  • Upgrade of scvmm 2012 sp1 to scvmm 2012 r2 fails with "Access to the path 'C:\ProgramData\VMMLogs\SetupWizard.log' is denied"

    I had a working scvmm 2012 sp1 installation, and am attempting to upgrade to 2012 r2.
    The old SCVMM product was removed (retaining the database), as well as ADK 8.0.  I then installed ADK 8.1.
    The install fails after a number of minutes with "Access to the path 'C:\ProgramData\VMMLogs\SetupWizard.log' is denied".  From my reading of the log, that was the only obvious failure, and that the VMM server MSI installed successfully. 
    It doesn't appear to get so far as to upgrade the database.
    The OS is Windows Server 2012 R2 Standard, with all updates applied.  I have tried the install many times, noticed that the McAfee virus scanner was pushed to the box at some point, so I removed it, but still no dice.
    12:18:58:LaunchMSI: MSI C:\Users\mscott\Desktop\mu_system_center_2012_r2_virtual_machine_manager_x86_and_x64_dvd_2913737\amd64\setup\msi\Server\vmmServer.msi succeeded.
    12:18:58:Doing Postinstall task for PangaeaServer
    12:18:58:ProcessInstalls: Install Item VMM management server was successful.  We will launch the post process delegate.
    12:19:47:Windows feature RSAT-Clustering-PowerShell already enabled, skipping
    12:20:15:Windows feature WindowsStorageManagementService already enabled, skipping
    12:20:41:Windows feature UpdateServices-API already enabled, skipping
    12:23:31:VMMPostinstallProcessor threw an exception: Threw Exception.Type: System.UnauthorizedAccessException, Exception.Message: Access to the path 'C:\ProgramData\VMMLogs\SetupWizard.log' is denied.
    12:23:31:StackTrace:   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath,
    Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
       at System.IO.StreamWriter..ctor(String path, Boolean append)
       at System.IO.File.AppendText(String path)
       at Microsoft.VirtualManager.SetupFramework.CommonLogger.Log(String trace)
       at Microsoft.VirtualManager.SetupFramework.CommonLogger.Log(LogLevel level, String trace)
       at Microsoft.VirtualManager.SetupFramework.Trc.Log(LogLevel level, String trace, Object parameter1, Object parameter2, Object parameter3)
       at Microsoft.VirtualManager.SetupFramework.Trc.LogException(LogLevel logLevel, String customMessage, Exception exception)
       at Microsoft.VirtualManager.Setup.DBConfigurator.ExecuteScript(SqlContext ctx, String fileName)
       at Microsoft.VirtualManager.Setup.DBConfigurator.UpgradeDatabaseTables()
       at Microsoft.VirtualManager.Setup.VirtualMachineManagerHelpers.CreateDB()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    12:23:31:ProcessInstalls: Running the PostProcessDelegate returned false.
    12:23:31:ProcessInstalls: Running the PostProcessDelegate for PangaeaServer failed.... This is a fatal item.  Setting rollback.
    12:23:31:SetProgressScreen: FinishMinorStep.
    12:23:31:ProcessInstalls: Rollback is set and we are not doing an uninstall so we will stop processing installs
    12:23:31:****************************************************************
    12:23:31:****Starting*RollBack*******************************************
    12:23:31:****************************************************************
    12:23:31:SetProgressScreen: StartMinorStep.
    Mark E. Scott Jr.

    Perhaps relevant, perhaps not. This error shows up right after the above log snippet. I assumed it was an error with the rollback routine, but just in case, here it is:
    12:23:31:SetProgressScreen: StartMinorStep.
    12:23:31:ProcessInstalls: Install Item VMM management server has a Preprocessing delegate of PangaeaServerPreinstallProcessor.  Launching it now.
    12:23:31:GetSqlLoginName: TThe login name for the vmm server service is [DGSLAB\tfs-vmm]
    12:24:49:no HAVMM name detected in DB. Doing VMM Uninstall
    12:24:53:Start setspn.exe parameters  -D SCVMM/tfsvmm1.dgslab.com DGSLAB\tfs-vmm
    12:24:56:Start setspn.exe parameters  -D SCVMM/tfsvmm1 DGSLAB\tfs-vmm
    12:25:00:DBConfigurationHander.SetupAsVMMServerRole() CarmineException : Threw Exception.Type: Microsoft.VirtualManager.Utils.FailedToAcquireLockException, Exception.Message: Unable to perform the job because one or more of the selected objects are locked by
    another job.
    To find out which job is locking the object, in the Jobs view, group by Status, and find the running or canceling job for the object. When the job is complete, try again.
    12:25:00:StackTrace:   at Microsoft.VirtualManager.Utils.CarmineObjectLock.ExecuteAcquireLockSP(CarmineObjectLockType lockType)
       at Microsoft.VirtualManager.Utils.CarmineObjectLock.AcquireLockWithRetries(CarmineObjectLockType lockType)
       at Microsoft.VirtualManager.Utils.CarmineObjectLock.AcquireLock(CarmineObjectLockType lockType, Boolean doNotWaitForLock)
       at Microsoft.VirtualManager.DB.Adhc.AgentServer..ctor(RemoteServer server, Guid serverID, Version agentVersion, VersionState agentVersionState, AgentPackageType agentPackageType, Boolean wsManOverSSL, Int32 wsManPort, Nullable`1 complianceStatusID,
    Nullable`1 mostRecentTaskID, Nullable`1 mostRecentTaskUIState, Guid taskID, CarmineObjectLockType lockType)
       at Microsoft.VirtualManager.DB.Adhc.AgentServer..ctor(SqlRow row, Guid serverID, Guid taskID, CarmineObjectLockType lockType)
       at Microsoft.VirtualManager.DB.Adhc.AgentServer.<>c__DisplayClass4.<GetInstance>b__3(SqlRow row)
       at Microsoft.VirtualManager.Engine.DbAccessHelper.GetFromCommand[_RetTy,_ColumnsTy](ReadOption readOption, SqlRetryCommand cmd, GetFromCommandWorker`1 worker)
       at Microsoft.VirtualManager.Engine.DbAccessHelper.HandleReadErrors[_RetTy](DbAccessDelegate`1 func, ErrorInfo notFoundErrorInfo)
       at Microsoft.VirtualManager.DB.Adhc.AgentServer.GetOne(String computerName, GetFromCommandWorker`1 ctor, ConnectionProperties properties)
       at Microsoft.VirtualManager.Setup.DBConfigurator.SetupAsVMMServerRole(Boolean isAssociate)
    12:25:00:InnerException.Type: Microsoft.VirtualManager.DB.DBCorruptionException, InnerException.Message: Unable to connect to the VMM database because the database is in an inconsistent state.
    Contact an experienced SQL administrator whenever this error occurs. In some cases, it may be necessary to restore the VMM database. If the problem persists, contact Microsoft Help and Support.
    12:25:00:InnerException.StackTrace:   at Microsoft.VirtualManager.DB.SqlRetryCommand.ValidateReturnValue()
       at Microsoft.VirtualManager.DB.SqlRetryCommand.ExecuteNonQuery()
       at Microsoft.VirtualManager.Utils.CarmineObjectLock.ExecuteAcquireLockSP(CarmineObjectLockType lockType)
    Mark E. Scott Jr.

  • After host crash - cluster no longer working correctly in SCVMM 2012

    Hi
    one of our nodes in our cluster crashed. It came back. All the VMs on this host were running on other hosts so failover worked fine BUT for 2 VMs. One of those 2 VMs is - according to VMM - running on the crashed host. The other VM is - according to VMM
    - running on another host node which did not fail.
    I have a lot of job errors saying that VMM library object virtuals disk is missing of those two VMs. So I looked into the FailoverManager. There I was able to see that the VMs are running on totaly different host nodes then what VMM tells me. In addition
    those VMs work just fine. I connected to both of them over Hpyer-V and they are just fine and the application also work without a problem. Please not those VMs are not shown twice or missing in VMM.
    Live Migration to the Host node that crashed is no longer possible. But when looking into the status on VMM - it tells me that everything is fine. From Hpyer-V Manager I am able to do live migration to this host. But no longer from VMM console.
    I rebooted the host node with no change. I refreshed the host nodes (all) in FailoverManager and in SCVMM, I refreshed the cluster... nothing. So I wanted to remove the cluster from SCVMM and re-add it. Doesn't work... It started with the first host and
    after that my cluster was somewhat broken (I thought that removing cluster - NOT "uncluster" - wouldn't have an effect on the cluster itself - well I was wrong). Anyway I repaired the cluster it is back into VMM but I still have the issues with the VMs. There
    are only warning on the VMM server that the library object (vhd) is missing but on the cluster nodes itself there are no errors.
    Any ideas what I could do. I have no clue what to do about the VM which is supposed to be on this host but in FailoverManager it is on a totally different server. Any ideas?

    Hi,
    version is SCVMM 2012 RC - yes there were errors with live migration but unfortunately I receive so many warning messages now (about missing library objects for vhd files) that the errors from tuesday are already gone. I guess they might be in database ...
    The log files you asked for are from 2011 when the cluster was created - no entries after that.
    No the cluster is not in Maintenance or Pause mode - i checked that. Remove and re-join the cluster with VMM 2012 RC was already tried. As described above: that failed - the first cluster node was removed and after that the job failed in VMM. I found the
    error message quite ironic because it said that "cluster node 1" is no longer reachable. Nooo really... it just had been removed a second before the "remove cluster" job failed. Unfortunately this job played havoc with my cluster. It took me 4 hours to bring
    it back online (mostly VMs).
    The good thing is, my cluster is somewhat working again - meaning after I repaired it and was able to re-add the missing cluster node back into VMM live migration now works both from Hyper-V and from SCVMM. The VERY bad part is that now several more VMs
    are - according to VMM - runing on "cluster node 1" while the Failover Manager says they are runing on "cluster node 2 or 3...". In addition I get many more warning messages. This error is the one I am trying to eleminate. As said I haven't found anything
    which helped me narrow done a solution. Everything I tried so far didn't have any response or - like the cluster - it made things quite bad (temporary). I checked the Event logs on the cluster nodes and VMM itself. Currently there are no error messages there.
    Warning messages in VMM:
    Warning (23234) VM Refresher encountered an error while creating or updating <vm name> with id XXXXX. VMM cannot find VirutalHardDisk object XXX. Ensure the library object is valid, and then try the operation again.
    Warning (10647) The virtual network adapter for the virtual machine <vm name> is connected to a virtual network switch <swtich name> that is not valid.
    Does anyone know how to change the time interval of the "VM Refresher"? I get those warning messages for each VM every 2 min. As there are several VMs affected by now I have several thousend messages each day...

  • SCVMM 2012 R2 - install fails on creation of resource group

    Hi,
    When I run the installation for SCVMM 2012 R2, I get the error below:
    20200
    Creation of the VMM resource group (%GroupName;) failed.
    Ensure that the group name is valid, and cluster resource or group with the same name does not exist, and the group name is not used in the network.
    Permissions have been granted to AD containers and cluster.  Cluster is online and pinging.  I'm installing as an SCVMM administrator and also tried with Domain Admins.
    Any ideas?  Thanks, Matt.

    The IP address was in use by the cluster.  The IP has to be free (not pingable) and host name must not already exist in AD.  Fixed.

Maybe you are looking for

  • Come out of loop in debugger

    Hi., While debugging, if we are inside the loop... How to come outside first line of that loop by excuting that loop? Also how to come outside of that loop... without excuting that loop? ---Its in new debugger! --Naveen Inuganti.

  • How to connect an external hard drive and monitor a single port thuderbolt

    how to connect an external hard drive and monitor a single port thuderbolt

  • File error - the specified file is locked, Final cut pro

    file error - the specified file is locked, Final cut pro

  • No sound with boot camp

    I have sound when running Mac OS, but not in windows NT. So the windows drivers should be the problem. I have SigmaTel and RealTek on the Leopard installation CD. Ive tried to update the drivers, but Realtek doesn´t work. In the controlpanel under "s

  • IPhone 6 doesn't flash?

    I have an iPhone 6 and want to take a picture under low light conditions (of Christmas tree) but when I set the flash to "on" in the camera app it never flashes and the photos are very dark. Also tried Auto and that doesn't work either. How can I get