Quantcast
Channel: Hyper-V forum
Viewing all 19461 articles
Browse latest View live

Equivalent to VirtualBox Host-Guest Communication Manager in Hyper-V?

$
0
0

Hello,

Chapter 7 of the VirtualBox SDK Programming Guide (pdf) explains that the "VirtualBox Host-Guest Communication Manager (HGCM) allows a guest application or a guest driver to call a host shared library."

Is there anything like this in Hyper-V?

The document also goes into a bit more details on the implementation, stating "HGCM uses the VMM virtual PCI device to exchange data between the guest and the host."

Is it possible to implement a 3rd-party virtual device in Hyper-V?

Thanks for your time!


General questions to get started with virtualization server cluster.

$
0
0

Hello all, this is my first time posting here in the tech net forums. I am a software development student and have been spending most of my time lately in Linux.  First I would like to apologize if I am at all not complying with the forum ethics or protocol based on the fact that I am rushing to get this post in and wasn't able to do as much reading as I would normally like before posting. If my questions seem to be to noobish feel free to just tell me so.  That being said, I would appreciate some help. My systems have been down now for the better part of a month with trying to figure out, not how to configure the system I want, but rather to find a system to configure and be able to stick with it without running into issues that make me start researching a whole new system.

So for a quick explanation of what I am trying to accomplish:

I am looking to utilize the equipment I have, and put together a small virtual machine host.  The last few weeks I was working on building a Proxmox cluster which overall seemed to be pretty close to what I want, however the compatibility just isn't there yet in my eyes for a home use server.  I am trying to take basically the 5 or 6 PCs that I have already built, and configure them into a cluster that will be able to hopefully utilize as much system resource as possible.  From what I have learned in recent, this is referred to as a Beowulf cluster, or just a virtualization cluster.  So ideally I want to combine the 5-6 processors to form one "super computer" that will serve as nothing but a virtual machine host.  I am sorry if I am using the wrong terms for any of this but like I said, I am just trying to figure it all out still.  What is the best Microsoft OS to use to do this?  I am currently looking at either Server 2012 R2, but I have also looked briefly into Systems Center 2012 R2 and really like the look of this.  This is just for my personal use.  The reason I am looking to do this is that I currently use many different OSs and have many different tasks that require different configurations.  The bulk of the work I am doing, coding, 3D rendering, video editing, a lot of Autodesk and Adobe work.  Then of course I would like to be able to do some gaming still but haven't even begun to research to feasibility of gaming on a VM because of course my main priority is the work.  So is there a way that I can pull this off?  I am planning to start purchasing some server racks, like a 9 or 12U wall mount rack that I was planning on putting about 4 or 5 2U atx cases in.  Right now in my small office I have 5 fully built atx towers and then multiple laptops and tablets and chrome books and bla blah!  It is just too much so I am looking for a way to consolidate.  Also, regarding the 3D rendering, if there is a way to utilize multiple processors at once in this same config, that would be great.  I have again done some research on "render farms" which sounds similar to a Beowulf but I just need to focus in an area that I can research more thoroughly because right now I just keep jumping around every time I think I have found a better solution.  Please help!  Thank you very much to anyone who takes the time to help me with this task.  It is very much appreciated!

VMs network speed 2

$
0
0

Hello!

Consider the following testing environment: there're two host machines - HOST1 and HOST2 - (Core i5, 16Gb RAM, 3 Nics, one of the nics -HV - is used for test VMs) that host one VM each (now they are "DC" and "EXCH1"). These VMs are connected by the 5-port 1Gb switch UPVEIL.

All operating systems (both for host and virtual machines) are Windows Server 2012R2.



To make sure VM1 can communicate with VM2 I run on VM1 "ping VM2 -t" - there would be NO any packet loss however many minutes/hours thisping continues.

When any action starts that require a bit more network traffic to pass from VM1 to VM2 or vice versa (copying files, connecting to the other VM's Computer Management console...) the network communication stops after several seconds:

After some timeout it resumes and the process of stopping/resuming may be repeated several times or the operation may never be completed at all.

Exactly the same Nics and switch operate perfect when connecting HOSTs (NOT the VMs) - the problem arises ONLY between VMs (Hyper-V).

I did this test many times with different Nics and different switches - no problems exist until the Nics start to get used by Hyper-V.

???

Thank you in advance,

Michael


Cannot configure Hyper-V Replica - cleanup required

$
0
0

Enable-VMReplication -VMName $VM -Computer $SourceHV - ReplicaServerName $DestHVBroker -ReplicaServerPort 80 -AuthenticationType Kerberos

returns:

Enable-VMReplication : Replication has already been enabled on virtual machine '[vmname]'. Please use the Set-VMReplication cmdlet to modify replication settings.

Set-VMReplication -VMName $VM -Computer $SourceHV -CompressionEnabled $true

returns:

Set-VMReplication : Replication has not been enabled on virtual machine '[vmname]'. Please use the Enable-VMReplication cmdlet to enable replication.....

How do I fix or clean up this situation?

Network Drop issue

$
0
0

Hi Friends,

We have a scenario. 

Os: Windows 2012/2012R2 running on 2 Hosts.

On top of this Hyper-v is Enabled with Clustering configuration.

On top of Hyper-v, Exchange 2010 CAS Servers are running on two VMs

On both CAS VMs,  Under Private NIC Configuration, MAC Spoofing is enabled.

On Exch CAS Servers, WNLB is configured in Unicast Mode

Issue is:

When WNLB Cluster in formed, after sometime, all other VMs running on two Hosts experience network drop issue. When we remove the WNLB Configuration, after some time, issue disappears.

Wondering, what could be the issue and any suggestion towards troubleshooting are welcome.


Best Regards, Ranjit Singh

Hyper-v 2012 R2 checkpoint fails

$
0
0

Hi all,

Need some advice please.

When trying to make a checkpoint on a virtual machine (only happens to this one) I get the following messages:

'My VM' could not initiate a checkpoint operation: The directory or file cannot be created. (0x80070052). (Virtual machine ID 5E4B7C4C-6F95-498D-BDA5-AF917B0D4B5B)



'My VM' could not create auto virtual hard disk C:\ClusterStorage\Volume6\My VM\My VM_disco_E_CA282C1F-35FE-4928-B56D-80C4C1C938B5.avhd: The directory or file cannot be created. (0x80070052). (Virtual machine ID 5E4B7C4C-6F95-498D-BDA5-AF917B0D4B5B)

thanks in advance

Miguel

Hyper-V Massive networking interruption on host machine

$
0
0

Hello everyone !

I have a little game server running on an Hyper-V Linux, which is hosted on a Windows Server 2012 R2 (I only have remote access on this machine).

To play on this game server, I've to connect on the port 6666. I've made a rule that let comes TCP and UDP packets on this specific port. After that I've made a NAT that redirect UDP and TCP from this specific port to my Hyper-V Linux.

The client can successfully connect to the server, and receive/send TCP request (menu side).

But when I launch a match, clients and the server have to communicate through UDP. At this moment, I don't know what happen, my client receives nothing from the server and I lose the connection on my Remote Desktop Session too, thats quiet weird isn't it?

Do you guys, have any idea about what the hell is happening?

Thank you,

Best regards,

2012 Hyper-V Integration Services Access Denied driver update on 2003 and XP VMs

$
0
0

When trying to install Microsoft Hyper-V Heartbeat driver it comes up with access denied. This is the latest version of 2012 Integration Services. this is only happening on XP or 2003 VMs



Server 2012 R2 And Hypervisor Issues

$
0
0

Im having some issues and Supermicro customer support is not being very helpful. Anyone have any thoughts on this.

 Please see below:

I have a SC846e1:

MB: X8DTE-F

PR: x5660 (2)

Mem: 32gig Samsung EEC 1333

Raid: adaptec 6805 (slot 4)

OS:Samsung 850pro SSD (2) (direct to the raid card, raid 1)
Files: HGST 3tb NAS (6) (enhanced JBOD) (using StableBit BD to pool)

 I am trying to enable Hyper-V on a new build with Server 2012r2. I have added the role and it caused a boot loop which I found to be due to having "execute-disable bit capability" enabled. I disabled this and it booted up but hypervisor will not start and states that virtualization  andexecute-disable must be turned on.

I have reset the bios to "optimal defaults" and have only changed: (did a complete power off to validate change)

  • numlock: disabled
  • execute-disabled: disabled (due to boot loop)
  • IPMI: configured

 

There is also a mention in the error for hypervisor not starting that states thatvt-d and trusted execution must be disabled.

VT-D: is confirmed to be disabled

 Trusted execution: cannot be found which i believe is TPM which is not showing up in he bios and while looking at the manual and board can only find a TPM header but no jumper to disable it as per the instructions in the manual. (Manual states to disable TPM with a jumper)

 Is TPM what is causing my issue? and causing the boot loop when execute-disabled enabled?

 Also checked boot loader and hypervisorlaunchtype: Auto

 Any assistance you can provide would be greatly appreciated

 

Long Story short....I have reformatted and reinstalled with no changes before implementing the role. once the role is implemented and then rebooted it goes into a boot loop that can only be stopped is when BITS is disabled. Supermicro has no idea why it would be having a boot loop and the VT-D should be enabled. Ive tried it both ways with no effect.

Guide to remote manage Hyper-V servers and VM's in workgroups or standalone

$
0
0

This guide is based on the following 3 products:
Windows server 2012 (core)
Windows 8
Hyper-V server v3 / Hyper-V server 2012

The following guide will enable you to:

1: remotely manage your Hyper-V Virtual Machines with Hyper-V manager
2: remotely manage your Hyper-V servers' firewall with a MMC snap-in.
3: remotely manage your Hyper-V server (2012) with server manager

! This should also work for Core installations of server 2012, but I haven't tried.

This guide is purely focussed on servers in a WORKGROUP, or as a stand alone.
I CAN NOT tell you what you need to do to get it working in a domain.


* You can run these commands straight from the console (Physically at the machine) or through RDP.
* You will need to be logged on as an administrator.
* Commands are listed in somewhat random order; I do however advise to follow the steps as listed.
* Commands with ? in front of them are only ment to be helpfull for troubleshooting,
* and to identify settings and changes made.
* Commands and instructions with ! in front of them are mandatory.

- server: means the server core or hyper-v server (non gui)
- client: means the machine you want to use for remote administration.
- Some commands are spread over 2 lines; be sure to copy the full syntax.


> To enable the Hyper-V manager to connect to your server, you need to perform the following 2 actions: (Assuming you have already installed the feature)

1:
! Client: Locate the C:\Windows\System32\Drivers\etc\hosts file.
! right-click --> properties --> security
! click --> edit --> add --> YOURUSERNAME or Administrator --> OK
! then select this new user, and tick the "modify"-box under the "allow"-section.
! apply the change, and close.
! doubleclick the file, and open with notepad
! add the ip-address and name of your server (no // or other crap needed)
! Save the file
# I recommend putting a shortcut to this file on the desktop.
# If you change the ip-address of your server (e.g. move the server from staging to a live environment)
# you might forget to do so in the hosts file.
# Hyper-V manager, MMC, RSAT, and Server-manager all rely on the hosts-file to resolve the name.
# some of these might connect to their respective service on an i.p.-level, but some don't.
# This is the main reason you need to modify this file.

! USE AN ELEVATED CMD/POWERSHELL PROMPT TO CONTINUE !
# the next config needs to be done on windows 8.
# It seems that it's already preconfigured under server 2012

2:
! Client: dcomcnfg
! open component services --> computers
! right-click -> my computer -> properties
! select "COM SECURITY" tab
! under "ACCESS PERMISSIONS" select "edit limits"
! select "ANONYMOUS LOGON", and tick "remote access" under ALLOW
# Without this adjustment, you can't connect to your Hyper-V server
# with the Hyper-V manager if you're not in a domain.

> And if you haven't done so already... make sure you have enabled remote management number 4 on the Hyper-V server console.
----------------------------------------------------------------------


> Next, is to get the MMC firewall snap-in working.
   The reason for this, is to have a GUI available to configure it.
   If you're happy without it, you may skip this and use a shell instead to do so.

? server: netsh advfirewall show currentprofile
# shows the current profile (public/domain/private) and its settings
# depending on your needs, you should set the right profile to fit your needs.
# You can easily do this when the MMC snap-in is done. (after you've followed these steps)

! server: netsh advfirewall set currentprofile settings remotemanagement enable
# enables remote management of the firewall on an application level 
# (In other words: allows the firewall to be remotely managed)

! server: netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new enable=yes
# allows remote management of the firewall, through the required firewall ports with TCP protocol.
# 4 rules will be updated to allow access: public & Domain, dynamic and endpoint-mapper.
# You can disable/add/change the rule from the MMC snap-in after finishing this guide.
# e.g. set the firewall through the MMC-GUI to only allow specific ip-addresses etc.

? server: netsh advfirewall firewall show rule all
# Shows a list of available rules, and their current state.
# when run from cmd, the list exceeds the maximum length for review.
# (from cmd,type:) start powershell, and run the command from there.

! Client: cmdkey /add:YOURSERVERNAME /user:USERNAMEONTHESERVER /pass:THEPASSWORDOFTHATUSER
# I recommend you to use a username with enough privileges for management
# All capital letters need to be replaced with your input
# CMD answers "credential added successfully" when you're done

! Client: locate MMC, and run it as an admin.
# In windows 8/2012, go to search and type MMC. Right-click the icon, 
# and choose run as admin on the bar below.

! Client: application MMC: select "file" --> Add/remove snap-in 
! --> (left pane) scroll down to "windows firewall" --> select and click "add"
! select "another computer"
! type the name of the server you want to manage (NO workgroup/ or //, just same name as you typed for cmdkey)

* Part 2 is done.
# Have a look by doubleclicking the firewall icon in the left pane.
# It looks and works the same as the GUI version that you are familiar with.

-------------------------------------------------------------------------------

! Next is the Server Manager.
# Follow the steps listed to get your server listed and manageable in the server manager.


! Client: Open the created Firewall snap-in for your server.
! Find the 3 "Remote Event Log Management" entries in the list of INBOUND rules, and enable them.

! Open powershell --> in cmd windows, type: start powershell
! run the following line in powershell
! Client: in C:\Windows\system32> set-item WSMAN:\localhost\client\trustedhosts -value YOURSERVERNAME -concatenate

# WinRM Security Configuration.
# This command modifies the TrustedHosts list for the WinRM client. The computers in the TrustedHosts list might not be
# authenticated. The client might send credential information to these computers. Are you sure that you want to modify
# this list?
# [Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y
#
# I recommend to choose yes; unless you like to pull some more hairs...

! server: winrm qc
# WinRM service is already running on this machine.
# WinRM is not set up to allow remote access to this machine for management.
# The following changes must be made:
# Configure LocalAccountTokenFilterPolicy to grant administrative rights remotely
# to local users.
# Make the changes? y / n
!  select yes

! Client: open the server 2012 server manager
! click manage -> add server
! select the DNS tab, and type the name of your server

Done.

You can now manage your remote server through the familiar computer management GUI.

! Right-click your remote server, and select "Computer Management"

--------------------------------------------------------------------------

A few side notes:

? The Performance tab seems to list the local machine's performance, in stead of the remote servers'
? If you want Windows server backup, you need to right-click the server in the server manager, and select "add roles and features.
? it will then become available under the "computer management" of the remote server.


If you liked this guide you may thank my employer, Mr. Chris W.
for giving me the time to work it all out.

Cheers!

  

2012 R2 Hyper V Cluster

$
0
0

Hi

we have windows Server 2012 r2 Hyper V failover Cluster..  we face slow network performance issue in widows 2012 R2

terminal Services .. VMQ is disable on Physical NIC of Hyper V Network.

Remaining Servers are working perfectly only issue face on terminal user login on terminal server node..

Any idea 


Problem with VMQ

$
0
0

Hello.

We have Windows 2012 R2 Datacenter Hyper-V cluster. 4 of VMs are TMG servers (2 proxy/reverse proxy and 2 Exchange 2010 Edge with TMG). TMG server pairs included in NLB clusters.

On each Hyper-V node I enable network team (Dynamic mode) with SCVMM Logical Switch.

I try to enable VMQ on its nodes. All is okay, but 4 TMG VMs don't receive VMQ for NLB virtual adapters and lost connection thru NLB. Other NLBs (SharePoint, Exchange, AD RMS, CRL) work as expected. TMG VMs get VMQ only for 3rd, non-NLB adapter (TMG intra-array communication).

I try to disable VMQ on problem virtual adapter but without success.

Last Emulex network adapters firmware and drivers were installed. I also install KB3031598 on Hyper-V nodes.

I disable VMQ on physical adapters until another solution.


VMs failing to start (failed to lock virtual machines configuration file)

$
0
0

I have a Win2012 hyper-v failover cluster running in our Dev lab. It is very simple with 2 nodes and shared SMB storage on the server running the failover cluster role. a few nights ago all of the VMs on one of the nodes failed to start giving the error message: failed to lock virtual machines configuration file (unspecified error 0X800040005).

I checked the path configured on the Hyper-V node (c:\program data\Microsoft\hyper-v\virtual machines) that points to the configurations files and VHDX files on the SMB share and it was correct. I also tested that the node could access the path listed in the symlink via explorer and it could. I disabled AV to no avail and also there is no back up software running in this node. I also tried re-adding the symlink using the mklink command but this still did not get the VM to start. It reports a lock on the config file however when I go on to the server with the storage I do not see any open handles on the files.

There were no changes as far as I am aware and the only way I have found to get each server back on-line is to delete the config file which causes the VM to dissapear from the inventory and recreate using the existing VHDX file, albeit that I have to re-add the additional configurations again and that the new config file is stored on the local disk rather than the shared storage. There were no permissions changes as this would have caused issues on the second node which is working fine. 

I would really like to find out what caused this and find out how I can get the rest f the VMs back on-line without having to rebuild them.

Windows Server 2012 HyperV Cluster - Dynamic Memory Config

$
0
0

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

How to check the RAID or HDD config in Hyper v 2012 core

$
0
0

I have hyper v 2012 / hyperv 2008 core running in rack server. I wanted to verify whether the server is in RAID or not. How do i check that?

Regards,

Sathish


Sathishkumar M


DC on a Hyper-V cluster

$
0
0

Hi there,

I have a 2 node Server 2012R2 Hyper-V cluster and a stand alone Hyper-V 2012R2 host. I have one virtualized DC on the standalone host and one on the cluster as a highly available VM. Can someone please advise if I need to assign static mac addresses to the nics on the virtualized DCs. Some people seem to say yes and other that there is no need to. If the answer is yes, then what would be the best way to go about it given that the DCs are already virtualized? My concern is that if the Mac address changes, will it affect AD in any way. 

Thanks very much,

HA


Creating new VHDx on a virtual hard drive or physical partition

$
0
0

Ladies and gents,

Any input is appreciated, here is the deal.

I have a Server 2012 R2 running Hyper-V, my questions is as follows:

1 - Should I create individual partitions in my RAID drive (dedicated to VHD drives), where I can create a partition named VM1-C of 500GB, VM1-D of 500GB Or,

2 - Create a 1TB Partition where I store VM1-C as a VHDx (file) and VM1-D as a VHDx (file) each of 500GB Fixed size.

Which option will give me the best performance? These 2 partitions will be accessed by 20-30 users and they will reside on a RAID 5 where the physical drives are 10K RPM.

What would be your take if performance is the biggest concern.

TIA!

SQL and Hyper-V services can reside together on the same server?

$
0
0

SQL and Hyper-V services can reside together on the same server?

I have a server with an active SQL DB and also with Hyper-V working on it and hosting a VM used as a DC for a branch.

What is the best practice?

Is it OK to have both services activated on the same servers?

Oficial docs please :)

Rafa

2012 R2 guest hangs at hyper-v logo

$
0
0

Windows Server 2012 R2 Host with GUI.

Windows Server 2012 R2 Guest with GUI.

When the guest is turned on, it gets to the Hyper-V log with the spinning circle and goes no further.  The circle continues to spin.  After rebooting the guest three times, the recovery console comes up.  I can also enter the recovery console using the Windows Server 2012 R2 DVD/ISO. 

ChkDsk says the disk is fine.

SCF /SCANNOW/ /OFFDIR /OFFWINDIR did fix some files but that didn't help.

I have reason to believe the last round of MS updates hosed the guest.  Are there any boot logs I can check to see where boot is failing?

JamesNT


ATTENTION MODERATORS: I do indeed mark responses as answers after I have had time to test said response and verify that it works. Please do NOT assume you speak on my behalf by marking responses to my questions as answers. Mass-proposing responses as answers gets on my nerves, too. Thank you.

Merge AVHD files without the latest one?

$
0
0

I accidentally clicked on create snapshot and the then tried to cancel it.  By the time I clicked cancel it had created a .avhd file in my windows server 2008. I accidentally deleted the newly/partially created avhd file from the windows explorer(shouldn't have done that.. realized it later) after deleting the snapshot from the hyper v console.

I still have 2 old avhd files. Can I merge them manually even though I lost the latest one. Both the avhd are showing the same timestamp so its hard to tell which one is the youngest. Any pointers? Thanks!


Viewing all 19461 articles
Browse latest View live




Latest Images