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

Disk Merging

$
0
0
So, I forgot i had one file inside my disk before I merged it and now I can't delete it. Anyone know what to do?

Storage Migrate Shared vhdx

$
0
0
I am stumped with how to migrate some shared vhdx from one CSV to another.  I have a two node SQL cluster and have shared vhdx so that I can have a guest cluster.  I've loosely followed the directions in this article - http://www.systemcentercentral.com/steps-to-migrate-virtual-machines-from-one-cluster-to-another/.  I've got both SQL nodes off and I convert a disk to not shared.  When I try to storage migrate the vhdx or simply make a copy of the file, I get a message saying that the file is in use by some other process.  Does anyone have experience moving shared vhdx?  I'm on Hyper-V 2016.  I do have SCVMM management in play.

TIP - Control Windows 2012 r2 Hyper-V servers from Windows 2016 PowerShell

$
0
0

Microsoft support was not much help on this one, thought I might save someone some trouble.  They said they even tried it in their lab and couldn't figure it out, I must not have been deep enough into the support hierarchy


PROBLEM:  Can’t control Windows 2012 Hyper-V server through PowerShell, error returned is

    “The Hyper-V module used in this Windows PowerShell session cannot be used for remote management of the server”

CAUSE:  Unlike most PowerShell modules, the Hyper-V module that ships with Server 2016 is NOT backwards compatible.

SOLUTION: you have to load the downlevel version in your script with this command:

   Import-Module Hyper-V -RequiredVersion 1.1

NOTE:  The current version (if loaded) must be unloaded before calling the new module:  

  Remove-Module Hyper-V

You must remove whatever version is loaded when switching back and forth between version - even within a script

Trying to load a different version of the same module without unloading the module in memory results in a screen of red loading errors.

Note:  It appears a reboot may be required to access the downlevel version after installing the Hyper-V remote server admins tools through Roles & Features. I do not have the ability to test or confirm this at this time.

Licenses for Virtualization

$
0
0

Hello! I need a license for virtualizing print servers. Which license should I choose to server?

Do I need CALs for each computer on the networks?

Sorry, but I usually work with VMware and now, I would like to know what Microsoft's virtualization engine looks like. 

I plan to buy servers with 2 8-core processors and a storage of at least 6 TB.

Hyper-v encountered an error while loading virtual machine configuration from "path"

$
0
0

I have tried 4 times to both export and import this one specific vm. I have exported and imported 3 other vm successfully from the same server to this one. But this one will not import i have restarted both servers and still not working.

Tells me " Hyper-v encountered an error while loading virtual machine configuration from "Path" 

import of virtual machine failed

How to change the volume where is located the path to "planned virtual machines" folder

$
0
0

When we call ImportSystemDefinition method of the Msvm_VirtualSystemManagementService class, .vmcx and .vmrs are created in the planned virtual machines folder under C: drive. 

Do we have any way to change the volume where it is located ?

.vmcx and .vmrs are created under this path : 

"C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines"

.vmrs is sometimes as large as some GBs, and the room in C: becomes tight with it.

I would like to change it to other volume like E: .


Start/Shutdown VMs In a Specific Order/Manner

$
0
0

So here's the problem I have, I have this 2019 Datacenter Hyper-V Host running a lot of vms.

VM1 is an AD DC, this VM I set it to start immediately upon boot, it's storage is local (C Drive).

VM2 is FreeNAS, Hyper-V passes through several physical drives to this guest and freenas does a great job of managing with ZFS, L2 ARC Cache and iSCSI, it's storage for boot is also C drive.

VM3 and Above rely on iSCSI disk which has been mapped to the host as the B drive

Now if the host for any reason needs to shutdown (this is actually a "mobile" server) so it gets turned off and moved to a different location almost every week plus any windows updates that may happen and force the host to restart the VMs must be turned off in a specific order, if the AD DC is shutdown before everything the vms sort of crash and glitch out in a saved state probably because of permissions, so obviously DC needs to be shutdown last, also VM3 and above relies on iSCSI from freenas so if the host decides to automatically Save the state of freenas of shut it down the VMs 3 and above will all lose connectivity to their boot drives and go critical/crash/worse.

So I know you can have delayed timers for VMs which works well for the sake of booting but how can i make sure my vms shutdown properly and yes this whole thing used to be part of a much larger network and it may not make sense at first but there's a good reason for having AD and everything running off a single server for the time being at least.



The speed of processor X in group Y is being limited by system firmware. Is Hyper-V performance slowing?

$
0
0
Good afternoon.
I observe this warning in the logs of the server with the Hyper-V role.

Will a decrease in processor speed in the host OS affect the performance of virtual VM processors?

VM status - locked

Hyper-V on Windows 10 networking logic - can anyone explain?

$
0
0

Hi,

I realize this is Windows Server and not Windows 10, but since this is the only relevant Hyper-V forum I decided to post it here, hope all is good and hopefully Windows 10 Hyper-V logic is similar to Windows Server Hyper-V logic.

I set up my laptop with a fresh installation of Windows 10 and enabled Hyper-V feature so it's all pretty much default settings so far. It still uses it's default virtual switch and I haven't made any relevant network changes which would influence my upcoming questions.

My machine got an extra network adapter called 'vEthernet Default Switch', so far so good. It has its default IP properties (unchanged by me) set at: 192.168.211.81/28 (255.255.255.240).

Now every new Hyper-V virtual image I create (Linux, Windows, whatever) works fine and seems to use vEthernet Default Switch as some sort of bridge, at least I think it does and things get a bit unclear to me from this point on:

- My Hyper-V images automatically get an IP somewhere in the 192.168.211.80/28 range and use 192.168.211.81 (vEthernet Default Switch) as its gateway and DNS server. This works fine and there's no question here
- Where is the logic in this Hyper-V DHCP "server" (if we can speak of one) and is there anyplace I can modify these settings?
- If I want to use a static IP for my Hyper-V image instead of randomly assigned IP's within this subnet (because the Hyper-V can change it's IP when rebooted) should I simply set it to anything within this range?
- If I do so, will it cause conflicts with Hyper-V's internal DHCP mechanism?
- Can I simply modify vEthernet Default Switch properties (for example change the octet value and/or enlarge the subnet) without breaking functionality?

It would be great if anyone could give some insight into Hyper-V's (on Windows 10) logic for me. I wouldn't be surprised if most settings are controlled on PowerShell level instead of GUI and hopefully someone can clarify this.

Thanks!



Failed while adding virtual ethernet switch connections server 2016

$
0
0

Hi,

    I am trying to add a virtual switch in Hyper V and getting an error message "failed while adding virtual Ethernet switch connections". I had created 1 virtual switch for one of my VM earlier and now when trying to create a new on another port it is throwing this error. Can anyone suggest a work around for this issue..

Thank you...

Hyperv is not in a state to accept replication on the Replica server when using existing VM to start initial replication

$
0
0

I tried to use "Use an existing virtual machine on the Replica server as an initial copy". I exported VM on primary and exported the same VM on replica keeping the same GUID. To make sure it has the same GUID I used powershell to confirm and that part looks good.

When I wanted to enable replication using mentioned method, i got an error "Hyperv is not in a state to accept replication on the Replica server when using existing VM to start initial replication". 

I have replication working on primary and replica server using certificates for a long time that means replication is properly configured and it is working from primary to replica and vice versa. 

I tried to use the same method using another primary and replica server but got the same error.

We have 2012r2 server on both primary and replica.

Appreciate any help. 


Live migration error: Mirror operation failed. General access denied error. 0x80070005

$
0
0

I keep getting an error when performing a live migration from one host to another. There were 5 VMs on the source host. I moved 4 of them to the destination host without issue. For some reason, the last one keeps failing. It will perform the migration, and once it gets to 100%, it errors out and fails. After the failure, the VM reboots on the source host and comes back up normally (hard reset). There is no VM on the destination host, but there is a vhdx file in the proper location that is the same size as the source vhdx file.

The only difference that I can tell between the machines is that the one that is failing is 650GB (takes around 8 hours to migrate). The next highest is 350GB (no issues).

Both hosts on the same domain. Both hosts are running Hyper-V Server 2012 R2 (not Windows Server).

Both hosts are configured with the default options and locations (mostly).

Both hosts using local storage (no NAS/SAN/shared storage).

File permissions of source vhdx look identical to all other vhdx files on my other hosts.

I have 15 other hosts set up similarly on the same domain/network. I've done hundreds of live migrations between them, and never had an issue (up until this one).

Things I've tried:

1) Migrating to a different destination host. Same issue.

2) Shutting down the VM. Deleting the VM. Creating a new VM. Attaching the same vhdx file. Same issue.

3) Migrating a different VM from the destination host to the source host, then back again. Works just fine... The issue seems to be only with this VM and/or vhdx file.

Full error:
There was an error during move operation.

Virtual machine migration operation failed at migration source.

Mirror operation failed.

Virtual machine migration operation for 'VM-NAME' failed at migration source 'SOURCE-HOST'.

Migration did not succeed. Mirror operation failed for the source VHD file 'C:\users\public\Documents\hyper-v\Virtual hard disks\VM-NAME.VHDX' to the destination file '\\DESTINATION-HOST\SOURCE-HOST.1856233294$\C\users\public\Do...\Virtual hard disks\VM-NAME.VHDX': 'General access denied error' ('0x80070005').

Thoughts on possible issues:

1) Is it possible that the permissions/kerberos tickets expire due to the long migration time?

2) Is there an issue with this path: \\DESTINATION-HOST\SOURCE-HOST.1856233294$\C\users\public\Do...\Virtual hard disks\VM-NAME.VHDX' ?   The destination path should be \\DESTINATION-HOST\c$\users\public\documents\hyper-v\virtual hard disks\VM-NAME.VHDX . I am not sure if this is some temporary share created by hyper-v, or if this is where the error is occurring. The file seems to transfer to the correct location, but maybe the final commands after it reaches 100% are using the wrong path so it fails?

3) Some other issue? Any ideas would be appreciated. If you know of anywhere I can look to get more details (logs), please let me know. If you need what is in the logs, please be specific (as there are many logs and places to look).

I wish I could call Microsoft so they could help me with this bug, but unfortunately, there is noone to call.

dismount graphics card dda

$
0
0

i have one Tesla 4 card installed in a new dell r740 preloaded w/ server 2019.  here are the results from the surveyDDA.ps1

NVIDIA Tesla T4
Express Endpoint -- more secure.
    And its interrupts are message-based, assignment can work.
    And it requires at least: 304 MB of MMIO gap space
PCIROOT(85)#PCI(0200)#PCI(0000)

i'm not sure if i'm putting in the wrong info for the location path for the dismount command.

Dismount-VMHostAssignableDevice -force -LocationPath #PCI(0200)
that command fails!  Is there some syntax i have wrong, or am i just wrong on how i'm going about it.  


IT guy

Troubleshooting Hyper V

$
0
0

Hi quick query

Looking to troubleshoot a situation from a few weeks ago

Customer has a failover Hyper V setup, issue was connection to second HyperV went completely 

From the event log I am seeing a lot of 1254 failover cluster errors

I did a filter and these happen 3 days before this incident happened

Whats best way to troubleshoot this and do a RCA, is 1254 serious enough to make this happen what causes 1254 errors?

Thanks in advance


Problem with Enhanced Session Connection

$
0
0

I'm getting this error when I try to connect to Ubuntu through Hyper-V:

Ubuntu 18.04.3 LTS Not Working in Enhanced Mode

$
0
0

First, my hardware:  x64 Dell XPS 8930 with an i9-9900 (BIOS 1.1.10 (10/31/19)) with 32GB RAM, 4TB internal storage, 8GB nVidia 2770.  OS: Windows 10 Pro, build 18362

Ran Hyper-V Quick Create and Ubuntu 18.04.3 LTS shows in 'Select an operating system' so selected it.

Selected Enhanced Session (screen was aqua) - Session is Xorg (also tried X11rdp and sesman-any with same result)

Waited...

Received error - was able to connect sesman and login but when started connecting - failed ("some problem"). If I switch to Basic Session, no problems but cannot connect to Windows drives and that's critical as all of my scripts, databases, configurations are in a Windows folder.  I could blow away Hyper-V and run VirtualBox but would rather use Hyper-V if it works.  HELP!!!

In advance, thank you!

Nick.

[New Admin Question] Remote into Server

$
0
0

I downloaded and installed the Core Hyper-V 2019 (where you only use PowerShell). I cannot for the life of me figure out how to "remote" into the VM after starting it. I've used the Virtual Manager in Windows 10 Pro before  where you can click"CONNECT" and I'm sure there is another term that I don't know but I've tried Googling my eyes out trying to figure this out.

In other news, I've tried to connect my Hyper-V Management Console from my Windows 10 Pro box to simply use the connect button, but I get an error: "The operation on computer "HyperServer" failed: The WinRM client cannot process the request. A computer policy does not allow the delegation of the user credentials to the target computer because the computer is not trusted. The identity of the target computer can be verified if you configure the WSMAN service to use a valid certificate using the following command: winrm set winrm/config/service @{CertificateThumbprint"<thumbprint>"} OR you can check the event viewer for an event that specifies that the following SPN could not be created: WSMAN/<computerFQDN>. If you find this event, you can manually create the SPN using setspn.exe. if the SPN exists, but CredSSP cannot use Kerberos to validate the identity of the target computer and you still want to allow the delegation of the user credentials to the target computer, use gpedit.msc and look at the following policy: Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow Fresh Credentials with NTLM-Only Server Authentication. Verify that it is enabled and configured with an SPN appropriate for the target Computer. For example, for a target computer name "myserver.domain.com", the SPN can be one of the following: WSMAN/myserver.domain.com or WSMAN/*.doman.com. Try the request again after these changes.

Here is all the items I've accomplished via both Client and Server:

// Server
[X] Enable-PSRemoting -Force
[X] Enable-WSManCredSSP -Role Server
[X] Set-Item WSMan:\localhost\Client\TrustedHosts -Value "PC10"
[X] Set-NetConnectionProfile -Name "Network" -NetworkCategory Private

// Client
[X] Enable-PSRemoting -Force
[X] Enable-WSManCredSSP -Role Client -DelegateComputer "HyperServer"

[X] Start-Service -Name winrm
[X] Set-Item WSMan:\localhost\Client\TrustedHosts -Value "HyperServer"
[X] Stop-Service -Name winrm

[X] Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All

[X] gpedit.msc > Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-Only server authentication
 > Enabled
 > Show > WSMAN/HyperServer

Thanks in advance and any help would be awesome.


KB3095308 not installing on HyperV Server 2012

$
0
0

We are having a Dynamic memory issue on one of our VM where it's not increasing automatically on HyperV Host version Microsoft HyperV Server 2012 R2 6.3.9600.  I googles and found an hotfix KB3095308 for this issue but whenever I tried to install it on my hyperV host it gives me the following error:

"Windows Update Standalone Installer, The update is not applicable on your computer."

I downloaded the KB from below link:

https://www.catalog.update.microsoft.com/Search.aspx?q=3095308

Worth mentioning that prereq KB2919355 has already installed on this host.


Please guide me how to install this update to resolve my dynamic memory issue.

how to configure network setting in VM via Hyper-V access internet

$
0
0

Hi,

Please be informed that I enabled Hyper-V in Win 10 PC and create 2 VMs.

May I know how to configure network setting in VM via Hyper-V so that internet. the PC which enable Hyper-V  can access internet already.

Thx

Viewing all 8743 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>