Cannot connect to virtual machine in hyper-v

One of our servers got corrupted and I managed to salvage the VHDs of the two VMs we were running on it. The server was Win Serv 2003 and was running virtual server.
Now I'm trying to import the VHDs into Hyper-V on a newer 2008-R2 server and while the VM seemed to import just fine I cannot connect to it. Each time I try it gives me this error:
"Cannot connect to the virtual machine. Try to connect again. If the problem persists, contact your system administrator."
I think the issue could be that the VM was apart of a domain and now I'm trying to connect with a server that is on a different domain and has a different DNS.
Is there anyway I can save this VM and not have to start from scratch?

Hi,
Is Windows Server 2003 is a DC? Is there a backup DC for Windows server 2003 if it is a DC?
If you logon with domain account, you cannot connect to the origin domain if you don't have DC or you haven't restored DC. To fix this issue, you can restore Windows 7 to the point when windows 7 doesn't domain if you have such a restore point.
Also, if you have DC and still connect to the virtual machine, i recommend you to log on the Windows 7 client with local adminstrator , disjoin from origin domain, then re-join the domain. At last, it will work well.
Andy Altmann
TechNet Community Support

Similar Messages

  • Client Hyper-V "Cannot Connect to Virtual Machine"

    I'm trying to run Client Hyper-V on my Windows 8 Pro machine. I was able to successfully install the service, and can create virtual machines and hard disks on my local system. I can even start them, and see boot activity via the preview window in the MMC.
    I cannot, however, connect to any machines from the local system: when I do, it hangs on "Connecting to <machinename>" for 30 seconds before it pops up with the dialog:
    "Cannot connect to virtual machine. Try to connect again. If the problem persists, contact your system administrator."
    Obviously, because this is Client Hyper-V, I am the system administrator, so I scour the Internet to solve my problem. I see solutions related to firewalls, administrative permissions, a few other things, and nothing has worked. I also tried creating
    a virtual machine on a Windows 8 Enterprise system (which can connect to it just fine) and export it for the Pro machine to import, and I still cannot connect to it, whether the VM is registered in place or copied to the host.
    Some other notes:
    - None of these systems has an OS installed - two locally created ones either had no boot or booted off a Linux LiveCD, and the exported one attempted to do a PXE boot. Thus, I cannot attempt to link via Remote Desktop since the computers have no names
    - Hyper-V has some other quirks on my system as well: in order to stop a virtual machine, I have to end the vmwp process - which restarts the machine - and then stop it from the console within a few seconds. Otherwise, it hangs in the "Stopping"
    state. In addition, none of the buttons on the side of the MMC work, but that occurs over all of MMC.
    - No events show up in the Event log when a connection fails
    - I am an admin on the Pro machine and have permissions to connect to machines and operate the management view

    When you checked the event log’s what sources did you check? 
    Can you verify there are not any relevant error/warning events under the following sources:
    Applications and Services Logs
    Microsoft
    Windows
    Hyper-V-VMMS
    Admin
    Operational
    Hyper-V-Worker
    Admin
    Operational
    If not we should enable some additional logging if possible to see what is going on.
    Shutdown any running VM’s
    Close all of the Hyper-V UI
    Stop the VMMS service (net stop vmms)
    Enable Analytic logging for the VMMS and Worker Process (see below)
    Enable UI Tracing for Hyper-V Manager and VMConnect (see below)
    Start the VMMS service (net start vmms)
    Open Hyper-V Manger
    Restart the VM
    Attempt to connect (try two or three times)
    Gather Logs (see below)
    Disable Tracing (see below)
    Enabling Analytic Logging For the VMMS and Worker Process
    Open the Event Viewer
    From the menu bar select View -> Show Analytic and Debug Logs
    Navigate to the Hyper-V logs and Enable the Analytic Channels
    Applications and Services Logs
    Microsoft
    Windows
    Hyper-V-VMMS
    Analytic
    Right Click -> Enable (yes if a pop up asks about enabling the logs)
    Hyper-V-Worker
    Analytic
    Right Click -> Enable (yes if a pop up asks about enabling the logs)
    Enabling UI Tracing
    Create a new text file named “VMClientTrace.config” in the "%appdata%\Microsoft\Windows\Hyper-V\Client\1.0\” folder
    Copy the following XML text into that file:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <Microsoft.Virtualization.Client.TraceConfigurationOptions>
            <setting name="TraceTagFormat" type="System.Int32">
                <value>3</value>
            </setting>
            <setting name="BrowserTraceLevel" type="System.Int32">
                <value>71</value>
            </setting>
            <setting name="VMConnectTraceLevel" type="System.Int32">
                <value>71</value>
            </setting>
        </Microsoft.Virtualization.Client.TraceConfigurationOptions>
    </configuration>
    Save the file.
    Gathering The Logs
    The Analytic logs will be in the analytic folder (you often have to refresh or select another source then analytic again to see them)
    The UI trace Logs will be in %temp% (sometime back one directory i.e. %temp% = “C:\Users\taylorb\AppData\Local\Temp\2” for me but the logs are at “C:\Users\taylorb\AppData\Local\Temp”
    Disabling Tracing
    To disable Analytic Tracing just right click on the analytic sources and select disable (same as enabling)
    To disable UI tracing just delete the “%appdata%\Microsoft\Windows\Hyper-V\Client\1.0\VMClientTrace.config” file.
    -Taylor Brown
    -Program Manager, Hyper-V
    -http://blogs.msdn.com/taylorb

  • Windows Pro 8.1 Hyper-V enabled - cannot connect to Virtual Machines

    I'm running Windows Pro 8.1. Virtualization is enabled in BIOS. Account is in Admin, Hyper-V, RDP groups. I open Hyper-V manager. Create a new Virtual Switch (internal) and name it. Then create a new virtual machine - name it, place it in a folder under
    C:, Specify Generation (tried both 1 and 2), startup memory 512mb not dynamic, Lan- select the virtual switch created earlier, create an vhdx hard disk, and install the O.S. from an ISO on C. Creates the new VM under Virtual Machines.
    I select the new VM, click connect, then start. A window opens with the new VM on server and says it's connecting to it and it's status is Running. In the Hyper-V manager  in the New Virtual Machine pane (bottom pane) it shows a image that
    appears to have a login screen. The VM window that displays the "Connection to" eventually throws an error : Virtual machine connection: Cannot connect to the virtual machine, Try to connect again. contact your admin, Try again etc. selecting connect
    eventually errors out with check integration services etc. I've read the logs, there are no errors. When I try to shut down or turn off the vm it doesn't respond. I've configured this before on different boxes. It's the work environment for the MCSA 70-462
    training kit Preparation. any direction would be greatly appreciated.

    That is correct.  This has been well documented.
    The WMI namespace changed.  2008 and 2008 R2 now of the v1 virtualization namespace.  2012 knows of both v1 and v2.  And 2012 R2 only knows the v2 virtualization namespace.
    That said, there is more to this.
    2008 management console only knows 2008 features.  So if you connect it to a 2012 server to manage the 2012 server, you cannot manage any of the features released with 2008 R2 nor 2012.
    So, take this second point, mix it with the first point and I recommend that your management server / client release matches the release of the Server you are managing.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • How to Install Hyper-V on a Virtual Machine in Hyper-V on windows 2erver 2012 R2 ?

    Hi ,
    anybody know  How to Install Hyper-V on a Virtual Machine in Hyper-V on windows 2erver 2012 R2 ?
    I want to create lab but i couldn't  I follow this article but the new VM is off
    http://blogs.technet.com/b/gbanin/archive/2013/06/26/how-to-install-hyper-v-on-a-virtual-machine-in-hyper-v.aspx
    one of hyper-v component is not running
    thanks

    Previously it has been blocked to install Windows Server in the VM and then add the Hyper-V Role.
    However, it has always been possible to install Hyper-V Server inside a VM. (the free Hyper-V Server SKU)
    The Hyper-V Server VM is fully manageable, but it cannot start any VMs.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • How to Allow microphone and all hardware in Virtual Machine using Hyper-v

    I have recently installed Windows 10 preview in Windows 8.1 pro.
    How i can allow Microphone and all things in virtual machine from Hyper-v
    Thanks
    Thank You , Shan Ali Khan

    You connect to the VM using the RDP Client - connecting to the IP / name of the VM over the network.
    This enabled all device redirection by default.
    You can possibly use Enhanced Session Mode as well.  That again uses RDP under the hood.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Type 2 Virtual Machine in Hyper-V will not PXE boot with WDS

    Hi
    Bit of a wierd scenario this but I'm doing a bit of a lab experiment kind of thing. The setup is as follows:
    VMWare Workstation 10 with Windows Server 2012 R2 running as a virtual machine. In VMW10 I have a NAT network interface and a Bridging interface set to load with the virtual machine. These seem to work fine (although the NAT doesn't seem to want to connect
    to the internet but that's why the bridging one is there in addition).
    Server 2012 is configured with the following roles:
    ADDS, DHCP, DNS, Hyper-V, Printer, WDS
    I have correctly configured WDS to work on the same machine as DHCP and I can get PXE boot working with WDS on a Type1 Virtual Machine in Hyper-V using the Legacy Network adapter. My problem is when I try and PXE boot on a Type2 Virtual Machine (this type
    is new in R2 and should eliminate the need for a legacy network adapter) using the same network interface that I used for the Type1 machine, I get an IP address from DHCP but WDS doesn't seem to respond. Instead I get the "PXE-E16: No Offer Received"
    message. I have tried just about everything I can think of and spent the whole day trying to figure out why this is the case but came up with nothing. Has anyone else encountered this or can anyone shed any light on the matter? 
    Many thanks in advance

    "VMWare Workstation 10 with Windows Server 2012 R2"and "Server 2012 is configured with the following roles: ADDS, DHCP, DNS, Hyper-V, Printer, WDS"
    Hyper-V is not supported to be run as a VM.  It is a Type 1 hypervisor, which means it works on the bare metal.  You have it running as a VM on a Type-2 hypervisor, so it has no access to the bare metal.  Yes, VMware may have made it so some
    things work in that environment, but it is not a supported (or tested) environment for Hyper-V.
    .:|:.:|:. tim

  • Could not intialitize a virtual machine on Hyper-V Manager on a Windows 8.1 laptop

    Hello,
    I am receiving the following error when I try to start any virtual machine on Hyper-V Manager on a Windows 8.1 lap"color:black;">An error occurred while attempting to start the selected virtual machine(s):
    Morillo-DC could not initialize (Virtual Machine ID …)
    On the Event Viewer, I can see:
    Event ID 3040
    Log Name: Microsoft-Windows-Hyper-V-Worker/Admin
    Morillo-DC could not initialize (Virtual Machine ID …)
    Thank you in advance for any help.
    Regards,
    Alberto Morillo

    Hello,
    Hyper-V was working fine with Windows 8 before installing Windows 8.1 update.
    On the Applications and Services Logs (Event Viewer), I found the following event:
    Log Name:     
    Microsoft-Windows-Hyper-V-Worker-Admin
    Source:       
    Microsoft-Windows-Hyper-V-Worker
    Date:         
    12/16/2013 3:59:13 PM
    Event ID:     
    3040
    Task Category: None
    Level:        
    Error
    Keywords:     
    User:         
    NT VIRTUAL MACHINE\E304221F-2B11-4E29-B235-85A3F505EC48
    Computer:     
    MorilloPC
    Description:
    'borrar' could not initialize. (Virtual machine ID E304221F-2B11-4E29-B235-85A3F505EC48)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-Hyper-V-Worker" Guid="{51DDFA29-D5C8-4803-BE4B-2ECB715570FE}" />
    <EventID>3040</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2013-12-16T19:59:13.665065300Z" />
    <EventRecordID>114</EventRecordID>
    <Correlation />
    <Execution ProcessID="6364" ThreadID="3340" />
    <Channel>Microsoft-Windows-Hyper-V-Worker-Admin</Channel>
    <Computer>MorilloPC</Computer>
    <Security UserID="S-1-5-83-1-3808698911-1311320849-2743416242-1223427573" />
    </System>
    <UserData>
    <VmInitialize xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
    <VmName>borrar</VmName>
    <VmId>E304221F-2B11-4E29-B235-85A3F505EC48</VmId>
    </VmInitialize>
    </UserData>
    </Event>
    Thank you for your help.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • I want to deployment virtual machine by Hyper-V with windows 2012 server

    I want to deployment virtual machine by Hyper-V with windows 2012 server. So I need step by step guide line with screenshot and video link.
    Thanks,
    Qamrul

    Hi Qamrul,
    Additionally here is the link for hyper-v getting started guide (server2008 ) :
    http://technet.microsoft.com/en-us/library/cc732470(v=ws.10).aspx
    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.

  • Harddisk damage after sleep mode while running 3 virtual machine on Hyper-V

    Hi, I have laptop with specification Intel Core i3, 8 Gb ram, 500 Gb 5400 rpm Hdd. I am running 3 virtual machine on that laptop using Hyper-V. Each vm have 1 Gb ram and 1 core processor. I left the laptop for
    lunch. After comeback from lunch I see that laptop on sleep mode. I press the power button to turned back on the laptop, after the power is on, the harddisk won't boot and the disk become damage. Is there anyone could explain why that is
    happen?  Thanks  :)

    Hi Budi-Kurniawan,
    Based on your description, this issue shouldn’t be caused by current configurations on your environment (as
    you described: wake up from sleep mode while run 3 virtual machine on Hyper-V). I guess that there are some troubles in this harddisk. As Dave mentioned, please contact with laptop manufacturer and confirm it. I believe we will get a better assistance there.
    Best regards,
    Justin Gu

  • No longer able to view virtual machine from Hyper-V Manager

    From the Windows 2008 R2 host machine, I can run the Hyper-V Manager and 'connect' to the Virtual Machine.  The window pops up with nothing but a gray background (clearly the same gray background of the log in screen), but no 'ctrl-alt-delete' prompt
    and no ability to log in.  This was previously working fine.
    Note that I can still make a Remote Desktop connection to the Virtual Machine and it works fine.
    Thanks.

    Hi,
    I never seen this issue before, base on my experience, it may cause by your AV soft block some critical components of Hyper-V host, please try the following exclude specific
    directories or process with your AV soft.
    •Default virtual machine configuration directory (C:\ProgramData\Microsoft\Windows\Hyper-V)
    •Custom virtual machine configuration directories
    •Default virtual hard disk drive directory (C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks)
    •Custom virtual hard disk drive directories
    •Custom replication data directories, if you are using Hyper-V Replica
    •Snapshot directories
    •Vmms.exe (Note: This file may have to be configured as a process exclusion within the antivirus software.)
    •Vmwp.exe (Note: This file may have to be configured as a process exclusion within the antivirus software.)
    The related KB:
    Virtual machines are missing, or error 0x800704C8, 0x80070037, or 0x800703E3 occurs when you try to start or create a virtual machine
    http://support.microsoft.com/kb/961804/en-us
    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.

  • Move Virtual Machine from Hyper-V Server 2008 R2 SP1 to Hyper-V Server 2012 fails with Error 2901

    I have six Hyper-V 2008 R2 SP1 servers and two Hyper-V 2012 servers. I am running SCVMM 2012 SP1. I am trying to use "move virtual machine" from within SCVMM to move VMs from a 2008 host to a 2012 host. I have tried different VMs on different hosts
    and they all fail with this error:
    ==========
    Error (2901)
    The operation did not complete successfully because of a parameter or call sequence that is not valid.
    The parameter is incorrect (0x80070057)
    Recommended Action
    Ensure that the parameters are valid, and then try the operation again.
    ==========
    I have successfully created a VM on one of the 2012 hosts and moved it to the other 2012 hosts.  I can move VMs from 2008 host to 2008 host.  I just cannot move VMs from 2008 host to 2012 host.
    Does SCVMM 2012 SP1 not support moving VMs from Hyper-V 2008 to Hyper-V 2012?

    Hello Kevin,
    Have you got an resolution yet ? Do you have latest update roll up pack applied to SCVMM 2012 SP1?
    With SCVMM 2012 SP1  " Running VMs (Live Migartion) and VMs which are in Saved state or having checkpoints can not be migrated from 2008R2 host to 2012 Host " 
    above was fixed in SCVMM 2012 Update Roll up 1
    Apart this please check the approx. size of data (VHDs) which will get transferred over the network , If you have large files chances are more to get such errors.
    Thanks
    ~NY

  • Strange problem with virtual machines backup (Hyper-V 2012R2)

    Hi
    I have a strange problem with backup of virtual machines in one of my Hyper-V environments. Let me describe how does it looks like: There are two physical servers - HP DL360 G8. They are used as hosts for four virtual machines - domain controllers in two domains.
    Each of them runs one DC in every domain. I've configured backup "inside" every virtual machine (with Windows Server Backup tool), in its operating system, because domain controllers should have their system state, regularly backuped, etc. Backup
    is made on the network share - all machines to the same server as destination. And now the case - two virtual server are backuped as expected - the operation takes 3 - 4 minutes and is always succeded. But in case of two remaining it looks as below:
    - Backup operation starts (is scheduled).
    - Volume shadow copy is made.
    - The first partition of VM starts to be copied. It's Windows 2012 R2 Generation2 VM, so it has EFI, Recovery and C: partition. EFI is as first and at this moment backup stucks for a 2-3 hours! Progress of copying is 0%. After for example 3 hours this partition
    is completed and starts the next (disk C:). And again - it freezes for a few hours and suddenly is pushed. As a result the backup is made successfully, but it takes for example 10 hours.
    Both "dodgy" VMs are on separated hosts. All four of them were installed in the same time. I tried to change destination to locally connected disk, but no result. It's interesting as well, that after rebooting VM, the first backup is made normally,
    but every next has described problem again. In EventLog I can't find any errors, I don't know how to diagnose such case precisely, etc. Have you got idea what can cause such behaviour or where on the server should I look for some hints?
    Thanks
    Marcin

    Hi Marcin,
    >>that after rebooting VM, the first backup is made normally, but every next has described problem again.
    It shouldn't happen .
    To narrow this issue down , Please try to backup an Gen1 VM and check the result .
    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.

  • Connect to Virtual Machine Fails

    Hello, I have a quick question about authentication in SCVMM console. We use non-privileged account on our local workstations where we use our SCVMM consoles (which has no access to SCVMM). When we open our console, SCVMM prompts for credentials, we provide
    it our privileged account and get logged in. This works great until we try to connect to the console of a VM. The system tries to use our non-privileged credentials to open the console, which fails with Access Denied.  Is there anyway to make SCVMM use
    the same account that we logged into the console as to also open the VM consoles?  Thanks.

    This seems a bug wherein VirtualMachineViewer.exe process launches in the same security context with which you logged onto your workstation
    Possible workaround is to create a new Definition that only allow viewing / receiving input and output from the Hyper-v virtual machines , To do this
    Start Authorization manager (azman.mmc) on each Hyper-V hosts (in your cluster or host groups in SCVMM)
    Open the InitalStore.xml document located within \ProgramData\Microsoft\Windows\Hyper-V\
    Expand out InitialSTore.xml, then Hyper-V Services, then Definitions.
    Create a new definition ,specify the appropriate name and Click Add  | Move to  the "Tasks" section.  |  Click on the "operations" tab and select below given options to
    "Allow input to VMs & Allow output from VMs &  View VMs configurations"
    Hit OK to comeback to main definition page , here expand out Role Assignments, and right click the new definition, select "Assign users and Groups", then select "From Windows and Active Directory"
    Add the users that need to open the console only for viewing VM's and opening the VM Viewer console.
    Hopefully you will achieve what you expects :)
    Thanks
    ~NY

  • Cannot open 2 Virtual Machines at the same time to access the same Database

    Folks,
    Hello.
    I am installing Oracle Database 11gR2 RAC system using 2 Virtual Machines (rac1 and rac2) on the top of VMPlayer 3.
    The VM rac1 and rac2 run correctly when one of them is shutdown.
    Their locations are F:\VM_RAC\rac1 and F:\VM_RAC\rac2.
    While rac2 is running, I open rac1. But this error message comes up:
    Error: "Cannot open the disk F:\VM_RAC\sharerac\asm1.vmdk or one of snapshot disks it depends on. Reason: failed to lock the file."
    While rac1 is running, I open rac2. But this error message comes up:
    Error: "Cannot open the disk F:\VM_RAC\sharerac\asm1.vmdk or one of snapshot disks it depends on. Reason: failed to lock the file."
    The 2 error messages are the same. This means I cannot open 2 VMs rac1 and rac2 at the same time. When we run RAC system, we have to open 2 machines or more than 2 machines at the same time so that all machines can access the same Database Server.
    My question is:
    Can any folk tell me how to have rac1 and rac2 run at the same time ?
    Thanks.

    You need to disable disk locking, which ordinarily is performed by the first VM to prevent any other VMs from corrupting your vmdk files via uncoordinated writes. You will have to shutdown both of your VMs and edit the *.vmx flat file for each, adding lines like the following (settings taken from workstation 6, but should be nearly identical settings for VM Player 3.x):
    http://crosbysite.blogspot.com/2007/10/clustering-in-vmware-workstation-6.html
    scsi1.sharedbus = "Virtual"
    disk.locking = "false"
    diskLib.dataCacheMaxSize = "0"
    diskLib.dataCacheMaxReadAheadSize = "0"
    diskLib.dataCacheMinReadAheadSize = "0"
    diskLib.dataCachePageSize = "4096"
    diskLib.maxUnsyncedWrites = "0"
    A few comments:
    - your shared disks (scsi1) must be on a separate virtual scsi bus than the boot disk (scsi0), to allow setting the sharedbus flag as seen above.
    - you must also ensure the cache parameters and unsynced writes settings are set to guarantee that all IO is immediately flushed to the vmdk file so the other VM can immediately access the latest version of data.

  • IP Virtualization not working in Virtual Machine on Hyper-V

    Hello everyone. Have such issue. We are using cisco agent desktop for our users. For working in Terminal server environment it needs dedicated IP for each program session. Currently we'are using hardware server with Windows Server 2008 R2 SP1 with RDS.
    We've added IPpool in registry for Virtualisation per program. It works fine. Now i'm trying to create a virtual machine with WS 2012 R2 with the same configuration(Hyper-V 2012 R2). The problem is it doesn't work. When creating new session or launching new
    program i get APIPA address or get nothing at all. Will it work or still this functionality doesn't work?

    have you setup the IP virtualization GPOs in the new environment?
    computer configuration > administrative templates > windows components > remote desktop services > remote desktop session host > application compatibility
    I'm not sure what regkeys you have implemented but you may want to see if they still apply to 2012 R2, you might have to remove them

Maybe you are looking for