Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all 2770 articles
Browse latest View live

SCVMM 2012R2 edit hardware profile crashes

$
0
0

Hi

We just upgraded from SCVMM 2012sp1 to 2012R2 (running on server 2012) with a small hope of fixing this issue, but unfortunately its still the same.

When editing a hardware profile the vmm console (running on win 8.1) crashes when clicking OK. We have tested on different machines and OS with different users. Same error..

In the eventlog we get this:

Application: VmmAdminUI.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.InvalidOperationException

Stack:

   at System.Windows.Window.ShowDialog()

   at Microsoft.VirtualManager.UI.WizardFramework.WizardWindow.ShowWizard(Microsoft.VirtualManager.UI.WpfControls.DialogOwner, Microsoft.VirtualManager.UI.WizardFramework.Flow)

   at Microsoft.VirtualManager.UI.Pages.Library.LibraryActionHelper.ShowHWProfileProperties(Microsoft.SystemCenter.VirtualMachineManager.ILibraryObject, Microsoft.VirtualManager.UI.ConsoleFramework.ActionContext)

   at Microsoft.VirtualManager.UI.Pages.Library.LibraryActionHelper.ShowProperties(Microsoft.SystemCenter.VirtualMachineManager.ILibraryObject, Microsoft.VirtualManager.UI.ConsoleFramework.ActionContext)

   at Microsoft.VirtualManager.UI.Pages.Library.PropertiesActionGroup`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ShowProperties(System.__Canon, Microsoft.VirtualManager.UI.ConsoleFramework.ActionContext)

   at Microsoft.VirtualManager.UI.Pages.Library.SingleLibraryObjectActionBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnClick()

   at Microsoft.VirtualManager.UI.ConsoleFramework.ActionBase.System.Windows.Input.ICommand.Execute(System.Object)

   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)

   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

   at System.Windows.Threading.DispatcherOperation.InvokeImpl()

   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)

   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

   at System.Windows.Threading.DispatcherOperation.Invoke()

   at System.Windows.Threading.Dispatcher.ProcessQueue()

   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)

   at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)

   at System.Windows.Threading.Dispatcher.Run()

   at System.Windows.Application.RunDispatcher(System.Object)

   at System.Windows.Application.RunInternal(System.Windows.Window)

   at System.Windows.Application.Run(System.Windows.Window)

   at Microsoft.VirtualManager.UI.VmmAdmin.Program.Main(System.String[])


Get-SCVMTemplate then Get-SCVirtualNetworkAdapterConfiguration result in random NIC order

$
0
0

Hello

I'm trying to write a script for a VM deployment from a Template.

In my Template I have 3 NICs, with only one is configured with Static IP.

My script looks like:

########### # Template # ########### 
$template = Get-SCVMTemplate -All | where { $_.Name -eq $TemplateName }
$virtualMachineConfiguration = New-SCVMConfiguration -VMTemplate $template -Name $VMName

# Configure network Hardware
$AllNICConfigurations = Get-SCVirtualNetworkAdapterConfiguration -VMConfiguration $virtualMachineConfiguration
$NICConfiguration = $AllNICConfigurations[0]
Set-SCVirtualNetworkAdapterConfiguration -VirtualNetworkAdapterConfiguration $NICConfiguration -IPv4Address $IPSvc -PinIPv6AddressPool $false -PinMACAddressPool $false 

# Deploy
Update-SCVMConfiguration -VMConfiguration $virtualMachineConfiguration
New-SCVirtualMachine -Name $VMName -VMConfiguration $virtualMachineConfiguration -Description "Script Generated" -BlockDynamicOptimization $false -JobGroup $JobGroupID -ReturnImmediately -StartAction "TurnOnVMIfRunningWhenVSStopped" -StopAction "SaveVM"


(it's only a part of the whole code)

However the New-SCVirtualMachine job failed sometime with

Error (10737)
A static IPv4 address or IPv4 address pool is specified for a virtual network adapter that was configured for a dynamic IPv4 address.

Recommended Action
Do not specify an IPv4 address or IPv4 address pool using Set-SCVirtualNetworkAdapterConfiguration, or configure the virtual network adapter for a static IPv4 address.

This really mean that sometime the network card [0] is not the static one.... but I don't find any way to identify the different adapters from the Template in order to fetch the correct one.

Does someone have an idea?

Thanks


MCITP: Enterprise Messaging Administrator 2010 MCTS: Lync Server 2010, Configuring MCSE

SCVMM 2012 Sp1 RU2 - VDI mess, deleted VM's, missing VM's

$
0
0

I have a bit a of mess .. in fact I'm thinking I'll just remove my 2012 VDI hosts from SCVMM ..   We do a lot of testing and create, remove and recreate pools of VM's for different purposes and it quite simply leaves one heck of a mess in SCVMM.

This is of course exacerbate by not being able to clean it up due to VMMservice crashing anytime I try to delete anything from VMM (see my other post). 

Either MS needs to create a plugin or some type of integration that can properly handle VDI scenarios or just flatly state its not supported IMO.

So my question is .. is there a cleanup utility to remove orphaned objects from the SCVMM database ??? I have VM's listed as  "Deleting..." with a "Update Failed" status.. and others that are missing..

I attempted to use the 2010 SQL code but it produced a number of errors so I restored the db from backup figuring it may have made an even bigger mess...

Ideas????

SCVMM 2012 R2 database performance

$
0
0

Hello folks!

I've been digging into performance problems with our SCVMM 2012 R2 environment. This article seemed to apply to our environment as the job history was extremely high:

http://support.microsoft.com/kb/2009348/en-gb

So I implemented the resolution to reduce the job history.  That seems to have helped; however, I have been using Performance Monitor on the database server and have noticed that the VirtualManagerDB is averaging about 2000 transactions/sec.  

Also the top query by CPU usage is:

  DELETE FROM tbl_VMM_Lock Where TaskID = @TaskID

1. Am I right to assume that the transactions/sec is far too high?

2. Any thoughts what may be causing this number of transactions or suggestion on how I might find out?

Thanks!

-Fred.

Get-SCPerformanceData cmdlet, getting error as "argument "NetworkIOReceived" does not belong to the set "CPUUsage,MemoryUsage,StorageIOPSUsage,NetworkIOUsage,PowerSavings"

$
0
0

Hi,

I am using get-scperformancedata with Performance counter "NetworkIOReceived" and "NetworkIOSent".

But on client machine its failing with below error

Cannot validate argument on parameter 'Performance Counter'. The argument "NetworkIOReceived" does not belong to the set "CPUUsage,MemoryUsage,StorageIOPSUsage,NetworkIOUsage,PowerSavings" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.

Client is using same power shell version i.e 3.0 as I, but still its failing at client side.

What can be issue.

Everything is working fine at my end.


Canceled job for moving VM stuck

$
0
0

IN SCVMM 2012 R2 we were trying to move a VM  to another host, but because the move action took way to long, we canceled the move job. Now this job is stuck and the status of the VM is also stuck on Canceling or on 18% (moving progression). Refreshing the VM is failing with the message that a job is locked by another.

Running a Get-SCJob does not contain the job that is stuck, so we're unable to force a stop.

The VM contains a 1TB SQL Server database and uses up to 128GB of memory. This VM is business critical, so we like to avoid deleting and restoring the VM.

Anyone any suggestions how to solve this?

Windows Azure Pack - Server returned HTTP response code: 500 error while accessing the public tenant API

$
0
0

Hi,

We are facing the following error while trying to access the given Windows Azure Pack Public tenant API to query the virtual machines list along with network adaper details - 

java.io.IOException: Server returned HTTP response code: 500 for URL: https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10000&$skip=0

The response is proper when we access the following URL - 

https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines

Only on adding the $expand=VirtualNetworkAdapters, url parameter we are getting the above error.

Where can we check for the error logs on the Azure Pack server ? We checked for the logs using Windows Event Viewer but did not find any for the public tenant API.

What should be the cause for such an error and how can we fix this to get the proper data?

Thanks in advance.

SCVMM 2012 Networking Help

$
0
0

H,

I am installing SCVMM 2012 R2 using 12X1GB NIC (per host). I am little confused about the networking configuration- please guide me

The current design plan is connect (3x3)=6 (trunk)Network cards to different core switches.(Vlan based independent). Till here I am good.

Now my question is

How to configure additional network cards (6x1 GB)? My assumption is 2 (team)network cards for LM, 2(team) network cards for cluster and 2 (team) network cards for Host Management and we are using fiber channel for storage. Is this correct configuration?

 Do we need to create logical network for Live Migration, Cluster and Host Management in SCVMM console?

Can we just configure the LM, Cluster network and Host management from Host side without doing anything in scvmm console?

Assume if we create  a logical networks for LM, Cluster and Host management in SCVMM, do we need respective Vm networks in SCVMM because guest Vms are not  going to use this network and I don't want live migration, Cluster and Host Management  Vm network displaying while choosing the Vm network from guest

Do I need to create trunk ports for LM,cluster network and Host management? or access port?

Any help appreciated




How do i connect to SCVMM powershell cmdlet ??

$
0
0

Hi all,

I am trying to connect to scvmm powershell smdlet from SCVMM console but what i am getting is this:-

Get-SCVMMServer : You cannot access VMM management server localhost. (Error ID: 1604)

Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and
then try the operation again.
At line:1 char:409
+ ... $vmmserver_VAR=Get-SCVMMServer localhost -UserRoleName 'Administrator';
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (:) [Get-SCVMMServer], CarmineException
    + FullyQualifiedErrorId : 1604,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.ConnectServerCmdlet

Please help.

Thanks,

Pranay.


vmm2012: Running a script with JobGroup takes longer than without JobGroup

$
0
0

We're developing a system that needs to manage virtual machines.

I work with vmm 2012 R2 testing the performance differences between attach\detach of virtual drives to VMs with and without using 'JobGroup'.

My scripts looks like the following:

with JobGroups:

$VirtualHardDisk = Get-SCVirtualHardDisk -VMMServer localhost | where {$_.Location -eq "\\ZNest20HV01.zertolab.local\MSSCVMMLibrary\VHDs\Blank Disk - Large.vhd"} | where {$_.HostName -eq "ZNest20HV01.zertolab.local"} New-SCVirtualDiskDrive -VMMServer localhost -SCSI -Bus 0 -LUN 0 -JobGroup d24e270e-3ec3-459a-86bf-33f230f3d507 -VirtualHardDisk $VirtualHardDisk -FileName "tmp2_Blank Disk - Large.vhd" -VolumeType None $VirtualHardDisk = Get-SCVirtualHardDisk -VMMServer localhost | where {$_.Location -eq "\\ZNest20HV01.zertolab.local\MSSCVMMLibrary\VHDs\Blank Disk - Small.vhdx"} | where {$_.HostName -eq "ZNest20HV01.zertolab.local"} New-SCVirtualDiskDrive -VMMServer localhost -SCSI -Bus 0 -LUN 1 -JobGroup d24e270e-3ec3-459a-86bf-33f230f3d507 -VirtualHardDisk $VirtualHardDisk -FileName "tmp2_Blank Disk - Small.vhdx" -VolumeType None

...62 more drives...

$VM = Get-SCVirtualMachine -VMMServer localhost -Name "tmp2" -ID "e20da734-4b20-4417-900c-336f9817d7a4" | where {$_.VMHost.Name -eq "02.lab.local"}

Set-SCVirtualMachine -VM $VM -JobGroup d24e270e-3ec3-459a-86bf-33f230f3d507 -RunAsynchronously -StartAction NeverAutoTurnOnVM -StopAction SaveVM

Running this kind of script for 64 volumes takes 1 hour and 4 minutes.

When I re-write the script to run without JobGroup it looks like this:

$VM = Get-SCVirtualMachine -VMMServer localhost -Name "tmp2" -ID "e20da734-4b20-4417-900c-336f9817d7a4" | where {$_.VMHost.Name -eq "znest20hv02.zertolab.local"}

$VirtualHardDisk = Get-SCVirtualHardDisk -VMMServer localhost | where {$_.Location -eq "\\ZNest20HV01.zertolab.local\MSSCVMMLibrary\VHDs\Blank Disk - Large.vhd"} | where {$_.HostName -eq "ZNest20HV01.zertolab.local"}
New-SCVirtualDiskDrive -VM $VM -SCSI -Bus 0 -LUN 0 -VirtualHardDisk $VirtualHardDisk -FileName "tmp2_Blank Disk - 1.vhd" -VolumeType None 

$VirtualHardDisk = Get-SCVirtualHardDisk -VMMServer localhost | where {$_.Location -eq "\\ZNest20HV01.zertolab.local\MSSCVMMLibrary\VHDs\Blank Disk - Small.vhdx"} | where {$_.HostName -eq "ZNest20HV01.zertolab.local"}
New-SCVirtualDiskDrive -VM $VM -SCSI -Bus 0 -LUN 1 -VirtualHardDisk $VirtualHardDisk -FileName "tmp2_Blank Disk - 2.vhdx" -VolumeType None 

...
62 more drives...
...

Running the script on the same server (with 64 volumes as before) takes ~57 minutes.

I was under the impression that 'JobGroup' should improve the performance of my script but instead I see the opposite.

Any idea why?

Virtual Private Network

$
0
0

We would like to use MS direct for our VPN and therefore, please advice whether MS professional will support the feature or we need to go for MS enterprise.

Add Updates to Baseline -> VMM UI process loop

$
0
0

Hello,

we are currently evaluating SC VMM and ran into a few problems, of them is is this:

When I try to add Updates into a baseline VMM is able to list the updates the first time.
When I close that baseline and try to add updates to another one, at the point where it should list the updates, the VmmAdminUI process goes into a loop collecting up to 2GB of memory, dropping down to 1GB and gathering memory again and finally crashing after 1 or 2 minutes.

This is reproducable in our environment and very annoying.
It's no difference wether I run the UI on the VMM Server or on my Client.

VMM in Programs and Features shows Version 3.2.7510.0, the UI shows 3.2.7634.0.

There is nothing visible in the eventlogs.

What can we do to fix this?

Thanks


VMM Update "IE9 for Windows Vista" shows: License has been accepted, can't get past this!

$
0
0

Hello,

my next problem with VMM and baselines:

When I add all Updates to a baseline, I get loads of EULAs that I have to accept, not a Problem so far. But the Update "Windows Internet Explorer 9 for Windows Vista" always shows: The Microsoft Software License Terms have been accepted.

When I click "close" and try to add the Updates again, the message pops up again.
I cant get past this, except by searching for the Update and manually removing it every time I update the baseline.

Is there Any way to solve it? Decline it in my WSUS Server perhaps?

Thanks

Template Deployment error 26558

$
0
0

Hello,

I know there's certain problems with Gen2 VMs and templates, but I also cannot deploy templates from Gen1 machines.

When I do so, it ends up in error 26558 stating:
VMM could not apply the access control entries on share NO_PARAM. This is needed for fast file copy transfers.

Recommended Action
Ensure that the file share is managed by VMM and that the management account has full access to the file share.

-

But I dont know which share it is talking about.
I can create / migrate machines without a problem. Also I'm quite sure it has full permissions on all file shares.

The full report it refers to can be found here http://nopaste.info/7b9642e98d.html

The report refers to floppy drives, but my machines don't have any floppy drives assigned.

can anyone tell me what to do?

thanks!

Canceled job for moving VM stuck

$
0
0

IN SCVMM 2012 R2 we were trying to move a VM  to another host, but because the move action took way to long, we canceled the move job. Now this job is stuck and the status of the VM is also stuck on Canceling or on 18% (moving progression). Refreshing the VM is failing with the message that a job is locked by another.

Running a Get-SCJob does not contain the job that is stuck, so we're unable to force a stop.

The VM contains a 1TB SQL Server database and uses up to 128GB of memory. This VM is business critical, so we like to avoid deleting and restoring the VM.

Anyone any suggestions how to solve this?


template stuck in status "creation failed" -> unusable

$
0
0

hello,

I have a template stuck in status: "creation failed".
I can't edit or use it.
Error message is:Source Template xyz is not in a valid state. Select a template that is in a valid state. ID 697
But it does not tell me how to get it into a valid state :(
I already deleted the VM that resulted from the creation status and also was in a failed status ofc.

How do i get the template to work again?

thanks!

SCVMM 2012 R2 Dynamic Optimization doesn't work

$
0
0

I found many similar questions in the forum. However, they doesn't resolve my issue.

I have two Windows Server 2012 R2 installed with Hyper-V and cluster enabled. They are managed by a SCVMM 2012 R2(the RTM version). I have "Automatically migrate virtual machines to balance load" and have CPU and Memory threshold specified. However, nothing happened. I tried to execute "OPtimize Hosts" and got the following information.

SCVMM2012R2 reinstall

$
0
0

Uninstall went through, but a bunch of messages came up.

Could not disconnect active SQL connection

Could not remove some file, go to "C:\ProgramFiles\System Center 2012\VMM\Bin\Something -uninstall"

Went there and there were no files.

Now I can't reinstall the darn thing, everytime I run setup it says "restart pending".

Removed SCVMM SP1 Manually and cannot reinstall

$
0
0

I had to remove SCVMM 2012 SP1 from a 2012 Windows Server manually and I do mean manually. "I tried all conventional means to uninstall the program normally"... I've been through the registry and removed all entries regarding SCVMM and deleted all folders on the server as well

When I start a new install, Its telling me that some components are still there, specifically the VMM Management Server component. Does anyone know what the install is looking at prior to actually launching the install.

Regards,

Addicus

Unable to delete an Orphaned Checkpoint

$
0
0

Hi,

I have a SCVMM 2012 R2 instance with 3 hosts

I recently moved a VM between the hosts which failed. Having tidied up I was left with a bunch of checkpoints on the VM, which I removed via the SCVMM GUI

The VM shows that it has no checkpoints (which is good), however some other objects within SCVMM (Namely VM Networks) show the checkpoints as dependencies, meaning I can't delete the VM Network.

If I run get-scvmcheckpoint from powershell I'm returned 4 checkpoints, none of which have an associated VM

(output from most recent below)

ParentCheckpointID    : 87F48F7D-AD2A-49BB-8E0A-F981317ABF2C
CheckpointID          : 20396B70-57A7-4CFD-9D3A-656F22F7A7BF
VMId                  : 3d7da10d-8f22-44a0-bc31-4202244b857a
IsViewOnly            : False
CheckpointHWProfile   : Microsoft.SystemCenter.VirtualMachineManager.Checkpoint
                        HardwareProfile
VirtualDiskDrives     : {VMMQSM1}
VM                    :
ObjectType            : VMSnapshot
Accessibility         : Public
Name                  : VMMQSM1
Description           : Temp QSM data
AddedTime             : 03/02/2014 09:59:09
ModifiedTime          : 03/02/2014 11:01:53
Enabled               : True
MostRecentTask        :
ServerConnection      : Microsoft.SystemCenter.VirtualMachineManager.Remoting.S
                        erverConnection
ID                    : d1ebf759-0f17-4245-bf9f-ea7abe886ef0
MarkedForDeletion     : False
IsFullyCached         : True
MostRecentTaskIfLocal :

And If I try get-scvmcheckpoint | remove-scvmcheckpoint I'm just returned an error:

VMM cannot find a required object. (Error ID: 20404)

Ensure the object is valid, and then try the operation again.

Is there any way for me to remove these orphaned checkpoints?

Phil








Viewing all 2770 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>