Archive

Archive for julho \29\UTC 2010

Como monitorar a placa de rede usada por uma maquina virtual em um ambiente de cluster?

 

Se voce usa o Hyper-V em cluster, ja deve ter se deparado com essa situacao. Então, como resolver?

A solucao ideal e’usar NIC Teaming. Mas se seu cenario nao da’suporte a Teaming, entao voce tera de partir para uma "alteranativa", que seria a adicao de um criacao de um cluster resource script no Cluster Group.

Interessado ? A solucao disponibilizada aqui, refere-se ao blog http://blogs.msdn.com/b/robertvi/archive/2008/12/05/howto-monitor-the-nic-used-by-a-virtual-machine-in-a-hyper-v-cluster.aspx

copy and paste the below and save as NicHa.vbs 

‘*******************************************************************************************************************************************************
‘ Nic HA Script. Sample. Please feedback to robertvi at microsoft.com

‘INSTALL INSTRUCTIONS

‘ 1. copy this script to all cluster nodes into %windir%cluster
‘ 2. In Failover Cluster Management Select the VM you wish to add NIC Monitoring
‘ 3. Select "Add a resource" -> Generic Script
‘ 4. Enter %windir%clusternicha.vbs
‘ 5. Next, Finish. Note the name of the created resource (nicha Script)
‘ 6. Run ncpa.cpl
‘ 7. Identfiy the Phyiscl NIC that is used by the Switch for this VM (This NIC should only have the Switch Protocol bound)
‘    Usually something like "Local Area Connection"
‘ 8. Rename this NIC to something like "VM Network 1"
‘ 9. Do steps 6 to 8 on all cluster nodes
‘ 10. Open a Elevated CMD Prompt
‘ 11. Using the names from above, "nicha script", "VM Network 1"’
‘ 12. In cmd prompt, issue the following command: cluster res "nicha Script" /priv NicName="VM Network 1"
‘ 13. Online the Script Resource

‘You may edit the properties of the Virtual Machine Group in Failover Cluster Management to allow more failovers in a given period.
‘The Default of 2 may be reached easily during testing. The script resource will then fail, but the group will not move

‘The availability of the NIC is checked every minute by default.
‘This could be changed in the Advanced Properties of the Script Resource in the "Thorough resource health check interval", if needed



‘*******************************************************************************************************************************************************

‘*******************************************************************************************************************************************************

‘*******************************************************************************************************************************************************
‘Global variables
‘*******************************************************************************************************************************************************
‘Script Version
ScriptVersion = "0.2"

‘*******************************************************************************************************************************************************
‘Open()

‘*******************************************************************************************************************************************************
Function Open()
   
 On Error Resume Next
 Resource.LogInformation("Entering Open() for NIC Monitoring Generic Script Version " & ScriptVersion)

 If Resource.PropertyExists("NicName") = FALSE Then
  Resource.AddProperty("NicName")
  Resource.LogInformation("NICHA: Property NicName not configured")
 End If

Open = 0

End Function

‘*******************************************************************************************************************************************************
‘Online()

 
‘*******************************************************************************************************************************************************
Function Online()

 ‘Check if the NIC is connected, otherwise fail Open

 Online = 1

 strComputer = "."
 strNicName = Resource.NicName
 strquery = "Select * from Win32_NetworkAdapter where NetConnectionID = ‘" & strNicName & "’"

 Set objWMIService = GetObject("winmgmts:" _
  & "{impersonationLevel=impersonate}!\" & strComputer & "rootcimv2")

 Set colItems = objWMIService.ExecQuery(strquery)

 if colItems.Count = 0 then
  Resource.LogInformation("NICHA: Error – NIC not found")
  set objWMIService = nothing
  Set colItems = nothing
  Exit Function
 end if

 set objItem = colItems.ItemIndex(0)

 if objItem.NetConnectionStatus = 2 then
  Online = 0
 else
   Resource.LogInformation("NICHA: Error – NIC not in connected state")

 end if

 set objWMIService = nothing
 Set colItems = nothing
 set objItem = nothing

End Function

‘*******************************************************************************************************************************************************
‘LooksAlive()

‘Return success
‘*******************************************************************************************************************************************************
Function LooksAlive()
 On Error Resume Next
 LooksAlive = TRUE
End Function

‘*******************************************************************************************************************************************************
‘IsAlive()

‘*******************************************************************************************************************************************************
Function IsAlive()
   
 On Error Resume Next
 IsAlive = FALSE

 strComputer = "."
 strNicName = Resource.NicName
 strquery = "Select * from Win32_NetworkAdapter where NetConnectionID = ‘" & strNicName & "’"

 Set objWMIService = GetObject("winmgmts:" _
  & "{impersonationLevel=impersonate}!\" & strComputer & "rootcimv2")

 Set colItems = objWMIService.ExecQuery(strquery)

 if colItems.Count = 0 then
  Resource.LogInformation("NICHA: Error – NIC not found")
  set objWMIService = nothing
  Set colItems = nothing
  Exit Function
 end if

 set objItem = colItems.ItemIndex(0)

 if objItem.NetConnectionStatus = 2 then
  IsAlive = TRUE
 else
   Resource.LogInformation("NICHA: Error – NIC not in connected state")

 end if

 set objWMIService = nothing
 Set colItems = nothing
 set objItem = nothing

End Function

‘*******************************************************************************************************************************************************
‘Offline()

‘*******************************************************************************************************************************************************
Function Offline()

 On Error Resume Next
 Offline = 0

End Function

‘*******************************************************************************************************************************************************
‘Terminate()

‘*******************************************************************************************************************************************************
Function Terminate()

 On Error Resume Next
 Terminate = 0

End Function

‘*******************************************************************************************************************************************************
‘Close()

‘Return success
‘*******************************************************************************************************************************************************
Function Close()
 Close = 0
End Function

 

Windows 7/Windows 2008 R2 Service Pack 1

 

Ja fez o download do Windows 7/Windows 2008R2 SP1 Beta?  clique aqui para fazer o download

No Windows 7 este SP1 irá trazer, várias correções de falhas na segurança. melhorias no desempenho do sistema, inúmeras correções de bugs e melhor compatibilidade com aplicativos.

Se voce ja usa o Windows 2008R2 e utiliza Hyper-V e Remote Desktop, Tenha certeza de faze-lo. 2 novas features especiamente para que utiliza essas tecnologias estao no SP1 :Remote FX, que oferece uma experiência rica em gráficos 3D para usuários remotos e mais controle para ajustar o uso da memória sem sacrificar a sua performance. Também será capaz de transmitir as portas USB do cliente local para a máquina virtual que está a ser acedida através do dispositivo

MEMÓRIA DINÂMICA permite aos administradores do Hyper-V pools de memória disponível em um host físico e distribuí-lo dinamicamente para as máquinas virtuais em execução no host. Assim como o workload da máquina física altera-se, exigindo mais ou menos memória, a memória dinâmica permitirá que os administradores alterarem a alocação de memória para suas VMs sem interrupção do serviço

clique aqui para fazer o download

 

Atualizada documentacao do SCVMM 2008R2

A Microsoft Atualizou a documentacao do System Center Virtual Machine 2008 R2
 
Basicamente voce encontra informacoes sobre requesitos de Hardware e Software para instalacao do SCVMM:
para fazer o download, clique aqui