Posted in
Virtual Machine Manager |
No Comment | 7,568 views | 13/10/2009 00:26
You may get this error when you try to add an external host to SCVMM 2008 R2:
Error (415)
Agent installation failed copying C:\Program Files\Microsoft System Center Virtual Machine Manager 2008 R2\agents\I386\2.0.4271.0\msiInstaller.exe to \\hyperv02.yusufozturk.info\ADMIN$\msiInstaller.exe.
(The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you)
Recommended Action
1. Ensure hyperv02.yusufozturk.info is online and not blocked by a firewall.
2. Ensure that file and printer sharing is enabled on hyperv02.yusufozturk.info and it not blocked by a firewall.
3. Ensure that there is sufficient free space on the system volume.
4. Verify that the ADMIN$ share on hyperv02.yusufozturk.info exists. If the ADMIN$ share does not exist, reboot hyperv02.yusufozturk.info and then try the operation again.
Solution: Check external host’s AD DNS servers. In my scenario, DNS servers were down, I couldn’t get authenticated.
Posted in
Virtual Machine Manager,
Windows Powershell |
No Comment | 11,071 views | 14/04/2009 22:58
You can’t find this any other website because I wrote it :) Please leave a comment if it works for you.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| Add-PSSnapin -name Microsoft.SystemCenter.VirtualMachineManager
Get-Vmmserver localhost
# VM Status Script - Yusuf Ozturk
# http://www.yusufozturk.info
$VMProp = Get-VM | Select-Object -Property Name,Status
foreach ($i in $VMProp)
{
$VMName = $i.Name
$VMStatus = $i.Status
$contentStatus = ' <status>' + $VMStatus + '</status>'
clear-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml"
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value '<?xml version="1.0"?>'
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value '<serverSettings>'
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value $contentStatus
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value '</serverSettings>'
} |
Add-PSSnapin -name Microsoft.SystemCenter.VirtualMachineManager
Get-Vmmserver localhost
# VM Status Script - Yusuf Ozturk
# http://www.yusufozturk.info
$VMProp = Get-VM | Select-Object -Property Name,Status
foreach ($i in $VMProp)
{
$VMName = $i.Name
$VMStatus = $i.Status
$contentStatus = ' <status>' + $VMStatus + '</status>'
clear-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml"
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value '<?xml version="1.0"?>'
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value '<serverSettings>'
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value $contentStatus
add-content -path "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\wwwroot\Status\$VMName.xml" -value '</serverSettings>'
}
You could run this as cronjob. You can see status in http://scvmm.domain.com/status/$vmname.xml.