OSDComputername HyperV VM

HI All
so I have SCCM 2012R2 and integrated MDT.
I am automating my laptop,desktop and tablet builds using L%assettag% for example and all is working fine.
however when I run tests on my HyperV vms its not working as its spoofing the Desktop and trying to set a computer name which is too long and there for failing. can someone let me know how to either stop it from thinking its a Laptop/desktop or how to set
it to a shorter Serial number.
many thanks
Chris

You can use the IsVirtual variable for one.
Or WMI query Select * From Win32_computersystem where Model='VirtualBox' or Model='VMware Virtual Platform' or Model='Xen' or Model='Virtual Machine'"
Or you can use a VBScript (that's what I do, see below)
Or you can use customsettings.ini like this: ComputerName=#Right("%SERIALNUMBER%",8)#
On Error Resume Next
DIM Gateway(7)
strComputer = "."
set objTSEnvironment=CreateObject("Microsoft.SMS.TSEnvironment")
Set objWMIService=GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colAdapters=objWMIService.ExecQuery ("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
Set colSerial=objWMIService.ExecQuery ("SELECT * FROM Win32_BIOS")
Set colBat=objWMIService.ExecQuery( "Select * from Win32_Battery")
Set colItems=objWMIService.ExecQuery("Select * From Win32_computersystem where Model='VirtualBox' or Model='VMware Virtual Platform' or Model='Xen' or Model='Virtual Machine'")
Set colUUIDItems=objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct")
Set WshShell = CreateObject("WScript.Shell")
'Arrays
Gateway(1)="BHM,198.99.1.1,192.102.1.1"
Gateway(2)="CHR,198.64.1.1"
Gateway(3)="HSV,198.60.1.1"
Gateway(4)="MTG,198.61.1.1"
Gateway(5)="NSV,198.10.100.1,198,17.0.1"
Gateway(6)="WDC,198.65.1.1"
Gateway(7)="JKS,198.62.1.1"
Set ProgressUI = CreateObject("Microsoft.SMS.TsProgressUI")
ProgressUI.CloseProgressDialog
'Getting Default Gateway
For Each objAdapter in colAdapters
If Not IsNull(objAdapter.DefaultIPGateway) Then
For i = 0 To UBound(objAdapter.DefaultIPGateway)
strGateway=objAdapter.DefaultIPGateway(i)
For a=1 to UBound(Gateway)
If instr(Gateway(a),strGateway)<>0 Then
strLoc=Left(Gateway(a),3)
GetAltLocation
End If
Next
Next
End If
Next
'Getting Serial Number
For Each objSerial in colSerial
strSerial=objserial.serialnumber
Next
'Checking for HW Type
strType="D"
strOSType="Windows7"
For Each objItem in colBat
For Each objVMItem in colItems
If objVMItem.model <> "VirtualBox" Then
strType="L"
End If
Next
Next
'VM Specific Settings
For Each objItem in colItems
If objitem.model="VMware Virtual Platform" Then
strIsVMWare="yes"
End If
For Each UUIDItem in colUUIDItems
strSerial=Right(UUIDitem.UUID,7)
strType="V"
strOSType="Windows7"
ServerBuildCheck
Next
Next
If strType <> "V" Then
If strType <> "S" Then
ThinClientCheck
End If
End If
'Setting OU Path
If strType="L" Then strOUPath="OU=Thick Desktop,OU=Physical,OU=Computers,OU=Unified Desktop,DC=MYDOMAIN,DC=com"
If strType="D" Then strOUPath="OU=Thick Desktop,OU=Physical,OU=Computers,OU=Unified Desktop,DC=MYDOMAIN,DC=com"
If strType="V" Then strOUPath="OU=Virtual,OU=Computers,OU=Unified Desktop,DC=MYDOMAIN,DC=com"
If strType="S" Then strOUPath="OU=Deployment Testing,OU=Servers,OU=" & strLoc & ",OU=BackEnd,DC=MYDOMAIN,DC=com"
If strType="T" Then strOUPath="OU=Desktops,OU=Computers,OU=" & strLoc & ",OU=FrontEnd,DC=MYDOMAIN,DC=com"
If strType="SD" Then strOUPath="OU=SharedDesktops,OU=XenApp,OU=Citrix,OU=FrontEnd,DC=MYDOMAIN,DC=com"
'Setting TS Variables
objTSEnvironment("Location")=strLoc
objTSEnvironment("SN")=strSerial
objTSEnvironment("HWType")=strType
If strType="SD" Then
objTSEnvironment("CompName")=strServerName
Else
objTSEnvironment("CompName")=strLoc & "-" & strType & "-" & strSerial
End If
objTSEnvironment("OUPath")=strOUPath
objTSEnvironment("OSType")=strOSType
objTSEnvironment("VMWARE")=strIsVMWare
objTSEnvironment("SharedDesktop")=strIsSharedDesktop
'sub GetAltLocation
'Set WshShell = CreateObject("WScript.Shell")
'strTimeOut=WshShell.Popup("Will this machine be used at different location?" & vbCrLf & "(This Message Will Close in 10 Seconds)", 10, "Location Check", 4 + 32)
' If strTimeOut=6 Then
' strInput=InputBox("If this machine is NOT being built for " & strLoc & vbCrLf & "Please enter the number from the list below" & vbCrLf & "1. BHM" & vbCrLf & "2. CHR" & vbCrLf & "3. HSV" & vbCrLf & "4. JKS" & vbCrLf & "5. MTG" & vbCrLf & "6. NSV" & vbCrLf & "7. WDC", "Alternate Location Selction")
' If IsNumeric(strInput)=0 Then
' ErrorRoutine
' ElseIf strInput <> "" Then
' If strInput < 8 Then
' If strInput=1 Then strLoc="BHM"
' If strInput=2 Then strLoc="CHR"
' If strInput=3 Then strLoc="HSV"
' If strInput=4 Then strLoc="JKS"
' If strInput=5 Then strLoc="MTG"
' If strInput=6 Then strLoc="NSV"
' If strInput=7 Then strLoc="WDC"
' Else
' ErrorRoutine
' End If
' End If
' End If
'End Sub
'Sub ErrorRoutine
'Set WshShell = CreateObject("WScript.Shell")
'strError=WshShell.Popup("You have not enetered a incorrect answer" & vbCrLf & " Do you want to select again?" & vbCrLf & "(This Message Will Close in 10 Seconds)", 10, "Incorrect Selection Made", 4 + 32)
'If strError=6 Then
' strInput=""
' strError=""
' GetAltLocation
'End If
'End Sub
'Sub ServerBuildCheck
'Set WshShell = CreateObject("WScript.Shell")
' strServerTimeOut=WshShell.Popup("Virtual hardware has been detected." & vbCrLf & "The default OS is Windows 7, would you like to change it to Windows Server 2008 R2?" & vbCrLf & "(This Message Will Close in 15 Seconds)", 15, "Virtual Hardware Detected", 4 + 32)
' If strServerTimeOut=6 Then
' strType="S"
' strOSType="Server"
' strServerName=InputBox("Please enter a name for the new Server:", "Server Name Prompt")
' strIsSharedDesktop="no"
' strSharedDesktopOU=msgbox("Will this machine be used as Citrix Shared Desktop?",4,"Citrix Shared Desktop Prompt")
' If strSharedDesktopOU=6 Then
' strIsSharedDesktop="yes"
' strType="SD"
' End If
' End If
'End Sub
'Sub ThinClientCheck
'Set WshShell = CreateObject("WScript.Shell")
' strServerTimeOut=WshShell.inputbox("Physical hardware has been detected." & vbCrLf & "The default OS is Windows 7, would you like to change it to Windows Thin PC?" & vbCrLf & "(Windows Thin PC is used for a thin client host system" & vbCrLf & "(This Message Will Close in 15 Seconds)", 15, "Physical Hardware Detected", 4 + 32)
' If strServerTimeOut=6 Then
' strType="T"
' strOSType="Thin"
' End If
'End Sub
John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

Similar Messages

  • Error while running script HyperV - Dash Board - VM and Storage Report

    Hi Team,
    I am getting below error while running HyperV dashoboard monitor & storage report script from Technet script library.
    HyperV - Dash Board - VM and Storage Report
    Finished processing VM  - xxxx
    Processing VM - xxxxx
    Get-VHD : Unable to cast COM object of type 'System.__ComObject' to interface type 'System.Management.IWbemServices'.
    This operation failed because the QueryInterface call on the COM component for the interface with IID
    '{9556DC99-828C-11CF-A37E-00AA003240C7}' failed due to the following error: The requested object does not exist.
    (Exception from HRESULT: 0x80010114).
    At C:\Scripts\HyperV-DashBoard-v2.1.ps1:210 char:10
    +                     If (Get-VHD -VMID $vmDetails.VMID -ComputerName $cNodes.Name[$i])
    +                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-VHD], InvalidCastException
        + FullyQualifiedErrorId : Unspecified,Microsoft.Vhd.PowerShell.GetVhdCommand
    Get-VMNetworkAdapter : Unable to cast COM object of type 'System.__ComObject' to interface type
    'System.Management.IWbemServices'. This operation failed because the QueryInterface call on the COM component for the
    interface with IID '{9556DC99-828C-11CF-A37E-00AA003240C7}' failed due to the following error: The requested object
    does not exist. (Exception from HRESULT: 0x80010114).
    At C:\Scripts\HyperV-DashBoard-v2.1.ps1:238 char:12
    +                      If ((Get-VMNetworkAdapter -VMName $vmDetails.Name -ComputerName $cNodes.Na ...
    +                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-VMNetworkAdapter], InvalidCastException
        + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.GetVMNetworkAdapterCommand

    Hi ,
    I found that the problem had been solved in the script blog by your self :
    http://gallery.technet.microsoft.com/scriptcenter/HyperV-Dash-Board-VM-Disk-299bac7d/view/Discussions#content
    Best Regards
    Elton Ji
    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.

  • Windows 7 (Ent) Sp1 on server 2012 R2 HyperV, RFX USB redirection not working

    Hello, 
    I currently have  windows server 2012 R2 with HyperV installed. I have built two virtual machines. A windows 8.1 and Windows 7 sp1. Both are enterprise editions  
    For RemoteFX the hypervisor is using a Zotec GTX 760 GPU. It recognizes it and uses it to apply remoteFX adapter on my Windows 7 Sp1 VM. 
    As you are aware I do not need to use a GPU to enable RFX on my Windows 8.1 it can do this without the need of a GPU.    
    Using an RDP client( v8.1)  I can connect to my Windows 8.1 VM with a USB headset,memory Key or a printer and they all enumerate on the Virtual machine. The driver for each device installs 
    and I can use the device without any issues. 
    However this issue lies with the Windows 7 SP1 VM. I can connect to it via RDP( Same client)  but I cannot redirect any devices to it. I have installed the latest integration services available on the VM. I have ran all updates available.
    Because I have ran all updates the rdp version on the VM is running v8.1.
    Previous to installing the updates USBr still was not working
    I have enabled the following group polices under remote desktop services on the Windows 7 SP1 VM : 
    RDP 8.0 -- Enabled
    Configure RFX -- Enabled
    Is there a known issue with USB redirection not working on a Windows 7sp1 virtual machine hosted on server 2012 Hypervisor ??
    Many Thanks 
    Brian 

    Hi,
    According to the log above, I found that we run the script on both Server6 and Server7. Errors as below:
    Server6: Conversion is not supported in restricted language mode or a Data section.
    Server7: Couldn't figure out valid servers from the specified destination scope. Check your parameters and try again.
    Since we can only run the RollAlternateserviceAccountPassword.ps1 Script on CAS server, the script not works well if Server6 is MBX server.
    For Server7, based on the error message, it seems you still have no right to run the script/cmdlet.
    Please add your account to Organization Management Role group(ADUC->domain.com->Microsoft Exchange Security Groups) to test if possible.
    By the way, from Technet:
    You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Client Access Security" entry in the Client Access Permissions topic.
    Client Access Permissions
    http://technet.microsoft.com/en-us/library/dd638131.aspx
    Feel free to contact me if there is any problem.
    Thanks
    Mavis
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Mavis Huang
    TechNet Community Support

  • Win 8.1 running HyperV as VPN server

    Hello,
    I have a PC running WIN 8.1, I'm running HyperV on it (for win8phone development)
    On this PC, I want to set up a VPN server. When I set up incoming connection, it says, that there's no interface for incoming connections. What shall I do so?

    Hi,
    As Microsoft suggest, you need add two virtual NIC, then attache the NIC to the different vSwitch, one vNIC for the internal another one for the external.
    The simlar third party article:
    Setup a Windows Server 2012 VPN
    http://www.sysads.co.uk/2013/02/setup-windows-server-2012-vpn-part1/2/
    Hope this helps.
    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.

  • Serial Ports using HyperV in Ubuntu guest OS

    I need to run a terminal session (term) from within the guest OS, Ubuntu 12.04.3 LTS to a serial port on the Windows 8.1P host. In my case a USB to serial adapter that Windows has mapped to COM5.
    I don't really know where to start.  In HyperV, under Settings, I see a Com1 and Com2 under hardware. The two options are None or Named pipe.  Not all that clear what to do here.
    Presumably this is what will be visible to Ubuntu as  /dev/ttyXX   ??
    Can anyone point the way to map a serial port into Ubuntu?   Or a suitable workaround?
    Thanks.

    "How can a VM be so cut off from the hardware like that?"
    Well, for the most part, it's been a long time since I have even seen a machine with a serial port on it.  It is so uncommon that one generally needs to buy an add-on card or do something like USB to serial.  That trend has been going on for a
    long time - that's why network based serial devices have tended to the solution for this.  This is nothing new.  Even Microsoft's Virtual Server, the precursor to Hyper-V (which was released five years ago) did not have access to serial ports.
    Since you are asking in the Hyper-V forum, the answer is you can't get to a physical serial port on your host.
    .:|:.:|:. tim

  • Windows Server 2012 HyperV VMs becoming extremely sluggish and slow

    I have recently set up a new system for a client consisting of a single Dell T320 server with Xeon E5-2350 2.2GHz 6 core cPU and 32GB of RAM.  Windows Server 2012 Standard is installed on the bare metal, and runs only the HyperV role.  It is not
    joined to any domains.
    It hosts two VMs, one a Windows Server 2012 Standard VM containing the RDS related roles acting as remote desktop server, with 10GB RAM allocated and 3 cores.  Only 5 people use the terminal server concurrently.
    The second VM is a Windows Server 2008 R2 based primary domain controller, with 16GB of RAM allocated and 3 cores.  It runs the AD role, as well as Exchange and GFI MailEssentials 2012.  Avira is also installed on this VM.
    The problem is that the system will function properly for 3-4 days, then suddenly it goes into a state where a multitude of applications would start consuming inordinate amount of CPU time, and become very, very slow.  Almost like the hypervisor goes
    into a software emulation mode where everything runs like molasses.  This affects BOTH VMs equally.  For example, Exchange and GFI on the Windows 2008 R2 VM together consume about 25% CPU, most of it is spent in kernel CPU time.  At the same
    time, in the other Windows Server 2012 VM, svchost, Taskmgr, WMIPrvSE, LogonUI, Explorer,  sqlservr, wsmprovhost etc. will all consume a total of about 70% CPU time, this time 99% of this is user time, not kernel time.  When one user starts any application,
    be that internet explorer, firefox or TaxPrep, the CPU spikes up to 100%.  
    All while nobody is using the system, the system is idle and no mails are flowing in or out of the system.  A reboot of the VMs does not fix anything, even a reboot of the host server does not fix anything.  When I yanked out the two power supplies
    and performed a hardware diagnostic (which came back 100% OK), it booted up and the slowness was gone for 3 days, until today when it started acting up again like I described above.  
    One more thing, when the system behaves normally the sunspider javascript benchmark in IE10 takes 316ms to execute (average) on the HyperV host operating system.  When the system goes slow like this, I pause the two VMs in HyperV then run sunspider
    again, only to be greeted by an average time of 5084ms.  So this clearly does not only affect the virtual machines but the host operating system as well. My gut still tells me the hypervisor is getting messed up somehow.
    Any ideas?  This is a major problem and I have no idea what is causing it.  

    We have had the EXACT same thing happen with a Dell T320 on two separate servers. The first one was running SQL Server 2008 with nothing else funny going on. It ran fine for a month or so, then it developed this slowness issue. We finally installed SQL on
    a loaner box (without Hyper-V) and it worked fine. We brought the T320 back to our shop and tested the hell out of it with Dell's assistance and it was NTF. Took it back onsite and moved an SBS 2011 VM over to it. After a few days, it ground to a halt. CPU
    utilization was 100%. I started shedding services, killing Exchange, Sharepoint, etc. Even stripped to the essentials, the CPU was still up in the 60-70% range. 
    I put a T310 out onsite and downed the guest SBS vm. I copied the HUGE vhd over to the T310 (running Server 2008r2 with the Hyper-V role) and it ran perfectly. CPU at about 2-4%, spiking to 15% occasionally.
    We finally concocted a story that the USB controller was bad, so they replaced the motherboard (not the CPUs) and it all seems to be working OK now after we sunk at least 100 man-hours into the problem.
    Our second one is a similar setup. T320, Server 2012, Hyper-V role, SBS 2011 Standard and a couple of member servers running basic apps. No one can find any problem and everyone acts like this is something new, although my posting comes one year after Tim's
    original posting.
    MCP SBSC

  • Unable to delete the files from CSV volumes on HyperV Cluster

    Hello There,
    I have a HyperV failover cluster with CSV Volumes recently i moved some of the VMs to another cluster.
    VMs are moved but i still have the VM files on the CSV volumes which are occupying the disk space i tried to delete the VHD files / VM folders which are moved but it doesn't delete the files, please suggest.
    This file when i browse it from  a server and delete the file it disappears but when i revisit the folder i find the files still on the disk, i did try to delete the files directly
    from the server through command line as it is running server core.
    Regards,
    Maqsood
    Maqsood Mohammed Senior Systems Engineer MCITP-Enterprise Admin & ITILv3 Foundation Certified

    HyperV is good about not allowing you to delete files while they are still in use. You can try to reboot host, make sure all parts if your VM moved to the new location. If that VHD is associated with a VM on any host you will not be able to delete
    it. Delete the VM's that may have links to it. Not knowing you configuration could it be a parent disk?  Be carful because if you can't delete it it's likely in use, I've see VHD merge after you delete a VM too preventing you from deleting the files.
    You may just want to wait a day or so and see if it free's up. If it is doing a merge reboot will pause and restart it so you won't be able to remove until the merge is done, once you delete a VM and a merge starts there is no way to tell if it's merging,
    watch the size and timestamp of the VHD is it changing if it is something is using it.

  • Saved state is not backuped in HyperV backup for Win2012R2

    I am trying to backup Win2012 R2 VM on my Win2012 R2 hyperv host using VSS.
    Before starting backup my vm is in Saved status.
    But after backup I cant find saved state file *vsv and *bin file in the backup so I am loosing whatever contains I have in saved state.
    Its working fine on Win2008. Is there any change in VSS/Saved state behavior in Win2012R2?
    hypervbackup is the utility  I used to run backup.
    Thanks In advance. Please let me know if more details are required.

    Hi Sir,
    According to your description , one thing came into my mind .
    In 2008/R2 , to backup VM online the hyper-v vss writer must be registered , if not , the VM will run into saved state untill accomplishing  the backup .
    http://blogs.technet.com/b/askcore/archive/2008/08/20/how-to-enable-windows-server-backup-support-for-the-hyper-v-vss-writer.aspx
    If you are in that case ( hyper-v VSS writer was not registered in 2008/R2 ) , actually the backup will perform a file based backup  , it will keep the VSV file there .  
    If you do same backup in 2012 R2 (select VM's folder then backup) , the VSV file should be backed up .
    In 2012/R2 you do not to manually register vss writer , you just need to select VM and backup .
    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] .

  • Prblem with iSCSI on Win Server 2012R2 with HyperV role

    Hi all,
    I have some problems with iSCSI on Win server. The problem is the following.
    When I restart server it cannot find the path with VMs configuration and VMs can't start. After few minutes all problems are gone and HyperV can find everything but I must start VMs manually.
    The server is DELL R710 with Broadcom NICs. I tried to configure LAN interfaces for iSCSI in two ways. First - from OS and second - from Broadcom BACS with disabled NDIS/Ethernet and enabled iSCSI. The results are the same.
    I have two more servers connected to the storage in the same way and everything is fine there.
     Events are following:
    1. Source MSiSCSI. ID 108
    Status 0x00001069 determining that device interface \\?\{8e7bd593-6e6c-4c52-86a6-77175494dd8e}#MsVhdHba#1&3030e83&0&01#{2accfe60-c130-11d2-b082-00a0c91efb8b} does not support iSCSI WMI interfaces. If this device is not an iSCSI HBA then this error
    can be ignored.  
    2. Source bxois. ID 1
    Initiator failed to connect to the target. Target IP address and TCP Port number are given in dump data.
    3. Source MSiSCSI. ID 113
    iSCSI discovery via SendTargets failed with error code 0xefff0003 to target portal *10.10.45.36 0003260 B06BDRV\L4SC&PCI_163914E4&SUBSYS_02351028&REV_20\5&2457021e&0&30050200_0 10.10.45.37.
    4. Source Hyper-V-Config. ID 4096
    The Virtual Machines configuration 72D1CB1A-A7E3-425A-A709-DA9F6BF0E1A9 at 'I:\VM\exch01-t' is no longer accessible: The system cannot find the path specified. (0x80070003).
    5. Source SMagent. ID 1
    Message from SM agent service: SMagent: The SMagent service attempted to start but terminated. Possible causes include:  [1] The access virtual disk is disabled in NVSRAM. [2] No RAID controller modules with compatible firmware were found. [3] The default
    logical unit number (LUN) assigned to the access virtual disk (typically 7 or 31) is not in the range supported by the host or is already in use by the host for another device. See your storage management documentation for more details.   
    The Host Context Agent did NOT start because 0 RAID controller modules were found.
      

    Hi Sergey,
    >>When I restart server it cannot find the path with VMs configuration and VMs can't start. After few minutes all problems are gone and HyperV can find everything but I must start VMs manually.
    As a workaround you can set the "startup delay" for VMs .
    >>Initiator failed to connect to the target. Target IP address and TCP Port number are given in dump data.
    The possible cause may be the network stack is not fully prepared when the initiator was trying to connect to persistent targets. The initiator will try to connect. When the network stack is fully prepared, the connection should be successfully established.
    If you receive this error when the iSCSI target device that is listed on the  
    Favorite Targets tab no longer exists, you can resolve this issue by removing the iSCSI target device from the list of favorite targets. 
    If you receive this error, and you cannot access an iSCSI target device that is still configured on the network, make sure that the client computer has network connectivity to the iSCSI target. Additionally, make sure that name resolution is working correctly. 
    If you have successfully connected to your iSCSI target device despite this error, it indicates that the connectivity issue was temporary. Therefore, you can safely ignore this Error event.
    https://support.microsoft.com/kb/976072?wa=wsignin1.0
    Best Regards
    Elton JI
    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.

  • Stress test on an HyperV server.

    I have just installed my 1st HyperV server and it seems a bit sluggish.
    Does Microsoft have a program to stress test the system(CPU, memory, NIC, Harddrive) and provide a report...?
    Thanks,
    Tom...
    Tom Karpowski...

    "Copying a file" now requires context.
    The management OS?  Within a VM? To a VM from the Management OS?
    Where are the VMs stored?  Where was the file stored?
    There is a large amount of context that is required to respond to your statement.
    Could the addition of Hyper-V impact the time it takes to copy a file?  Possibly.  But this is a huge; 'it depends' type of answer.
    Can you stress your server?  Yes.  Can you compare these results against servers without Hyper-V installed?  No, not really.  Everything is now different.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Restore Domain Controller Server with Snapshot in HyperV

    Dear Team,
    I
    have a Domain Controller (Windows Server 2008R2) hosted  in my HyperV, and Accidentally
    its got corrupted and i have a snapshot backup which took 20 days back. when i restore that snapshot, i am unable to establish communication with al other computers those were already added to the domain. 
    We will highly appreciate if you could let us know how we can resume our AD Server’s communication with
    other servers.

    ALSO SEE
    https://jorgequestforknowledge.wordpress.com/2006/03/08/backup-and-restore-of-active-directory-2/
    Cheers,
    Jorge de Almeida Pinto
    Principal Consultant | MVP Directory Services | IAM Technologies
    COMMUNITY...:
    DISCLAIMER: This post is provided "AS IS" with no warranties of any kind, either expressed or implied, and confers no rights! Always evaluate/test yourself before using/implementing this!

  • HyperV 2012 R2 Failover cluster, HV problem, all VMs restart

    Hello, I have 2 node Failover cluster with two nodes, Hyperv 2012, multipath SAS storage MSA2000. But hardware problem with one node (node2). It shutdown unexpectly. When It hapens NODE1 restar all VMs it is normal? It was configured by cluster validation
    tool. There is no witness. I don't clearly understand what happens if one node crash. KR.

    As Eric has said it will start the VM's in a crash consistent state on the non crashed host.
    But from your example I take your seeing your guests on the non crashed host restart. If this is the case I would say yes! I have seen this happen before. It can happen if your not using quorum because only one node has a vote. I would recommend you create
    a witness, on your MSA 2000 carve out 1 GB and do a disk witness. Or if you have a server not in the VM cluster you could do a file share witness, file share is my preferred. Once you have a witness in play you will see all of your hosts having a vote. Look
    in the cluster manager at the nodes section. You should see a vote column. Currently it will say 1/0, once the witness is created it will show 1/1.

  • 0x8345000E in HyperV 2008 R2 Datacenter

    Hi,
    We have three  HyperV 2008 R2 datacenter server and they are in Cluster. recently some VM instants are going down frequently with I/O device error. These server is pinging but not accessible either remote or direct connect. I am getting
    I/O offline device error when i logged the server directly. Kindly find the error as below and let me know the resolution for the same.
    Error :-
    'BLR-WIN-DEMO' failure in machine remoting system. Error: '%%2202337294' (0x8345000E). (Virtual machine ID FFA51950-4765-4FE7-ABF6-E4845F7C79CE)
    blr-Mobi-gim-qa00.altimetrik.com' was reset because an unrecoverable error occurred on a virtual processor that caused a triple fault. If the problem persists, contact Product Support. (Virtual machine ID 0F74C679-37C7-4ADC-850F-5B3BAA0139C1)
    blr-Mobi-M-Wiki-app.altimetrik.com': The Data Exchange integration service is either not enabled, not running or not initialized. (Virtual machine ID 9DC2611B-A4D7-41F5-901D-9930DAE3BCF9)

    Hi Sir,
    >>blr-Mobi-M-Wiki-app.altimetrik.com': The Data Exchange integration service is either not enabled, not running or not initialized. (Virtual machine ID 9DC2611B-A4D7-41F5-901D-9930DAE3BCF9)
    According to the errror , please check if the integration services were installed on these VMs .
    What is the OS of problematic VMs ?
    >>I am getting I/O offline device error when i logged the server directly
    If the VM is using pass-through disk , please try to unplug the pass-through disk and give it a normal vhd file for test .
    Any further information please feel free to let us know.
    Best Regards,
    Elton Ji
    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.

  • Windows Server 2012 HyperV Cluster - Dynamic Memory Config

    Hello There,
    I am about to configure two node HyperV Cluster on Windows 2012 R2.
    There is 192 GB RAM on each node but my VMs requirement is around 216 GB but some VMs doesn't require the full memory capacity all the time so in this scenario what is the best method to use dynamic memory utilization.
    RAM
    48 GB
    48 GB
    16 GB
    48 GB
    48 GB
    8 GB
    I need to provision 6 VMs with the above memory config but want to utilize it effectively through dynamic memory, please suggest.
    I don't need the full RAM capacity all the time as in the table.
    Thanks,
    maqsood
    Maqsood Mohammed Senior Systems Engineer MCITP-Enterprise Admin & ITILv3 Foundation Certified

    Of course you can, this is the aim of the dynamic memory feature.
    In the VM's memory configuration, you will find three parameters:
    Start up RAM : This is the memory allocated to the VM when it's started
    Maximum RAM : This is the maximum amount of memory that a VM can request from the Hypervisor. If there is available memory the host will grant it more memory, if not, the VM will not receive memory
    Minimum RAM : Because the memory configuration is dynamic, when a VM will not use memory, it will give back its memory resources to the host, but it will never go down its Minimum RAM value (The total minimum RAM of all VMs can never exceed the available
    memory, otherwise the VMs will not even start)
    And there is the Priority option that tell the hypervisor which VM to satisfy first.
    Look here for more explanation
    Regards, Samir Farhat Infrastructure and Virtualization Consultant || Virtualization, Cloud, Azure ? Follow and Ask here https://buildwindows.wordpress.com

  • How long is Hyperv WMI provider (V1 is supported) in coming windows server versions

    Hi Guyz,
    We currently have Windows Server 2008r2 servers and recently moved few of them to windows server 2012.  we have lot of powershell scritps that we require for adminstrative purposes and all of them are using Hyperv Wmi Provider (\Root\Virtualization)
    via powershell and even after moving to windows server 2012 , we found that the support for WMI provider  1 is available in 2012. But we want to know that is this support always there in coming future versions for hyperv..??? because we have lot of complex
    powershell functions written and we seriously need to give lot of time if we wanna change it.

    The v1 virtualization namespace was announced as deprecated with the release of Server 2012.  This release contained both v1 and v2 namespaces.
    The v1 virtualization namespace was fully deprecated with the Server 2012 R2 release.  This release contained only the v2 namespace.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

Maybe you are looking for