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

Any way to find when a Hyper-V VM was last powered on or how long it's been off?

$
0
0

Hi,

We're trying to weed out some old VMs that have been off for an unknown amount of time and want to know what that amount of time is.

I found a script here that seems to get some good info:
http://www.altaro.com/hyper-v/get-virtual-machine-last-on-off-time

However, I get some strange results with regard to the Used/Changed time vs the Powered On/Off time so I'm not sure how accurate that is.

Are there any built-in commands to get any info on this or does anyone know of any other scripts to determine this information?

Thanks!


Backing up VM from CSV, VSS writer problems ?

$
0
0

Hi, here is my problem.

I've set up 3 hyper-v hosts windows 2012 R2 in a Cluster.  My problem arise when i try to backup my VM's with Veeam, i can take a crash consistent backup but when i try to use the "Application Aware Processing" it fails.  

Here is the error reported by Veeam :
Unable to create snapshot (Microsoft CSV Shadow Copy Provider) (mode: Veeam application-aware processing). Details: Writer 'Microsoft Hyper-V VSS Writer' is failed at 'VSS_WS_FAILED_AT_PREPARE_SNAPSHOT'. The writer experienced a transient error. If the backup process is retried, the error may not reoccur. --tr:Failed to verify writers state. --tr:Failed to perform pre-backup tasks.
Make sure VM does not have 'iSCSI Software Target Storage Provider' feature installed.
Retrying snapshot creation attempt (Writer 'Microsoft Hyper-V VSS Writer' is failed at 'VSS_WS_FAILED_AT_PREPARE_SNAPSHOT'. The writer experienced a transient error. If the backup process is retried, the error may not reoccur. --tr:Failed to verify writers state. --tr:Failed to perform pre-backup tasks.)
Unable to allocate processing resources. Error: Writer 'Microsoft Hyper-V VSS Writer' is failed at 'VSS_WS_FAILED_AT_PREPARE_SNAPSHOT'. The writer experienced a transient error. If the backup process is retried, the error may not reoccur. --tr:Failed to verify writers state. --tr:Failed to perform pre-backup tasks.

 I've reboot my hosts multiple time and retry the backup job multiple times to.I can see, when i use "diskshadow", that the VM's are excluded from backup because the volume is not in the shadow copy set:

Excluding writer "Cluster Shared Volume VSS Writer", because all of its components have been excluded.
Excluding writer "Shadow Copy Optimization Writer", because all of its components have been excluded.
Excluding writer "BITS Writer", because all of its components have been excluded.
Component "\0AE47DB4-FD22-43AB-9789-AB2266B2A8D6" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\150DC140-5057-415E-948A-23B27DB3DC5D" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-SVEX2010-1\ which is not in the shadow copy set.
Component "\362811A4-FDCB-4687-9063-CE04B8FCDEAF" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\4C630BE2-26E2-4103-82A0-2F0EC41ABE62" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\74E78C64-FB7A-4410-AEEC-262D0104687F" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\7B47238C-A13C-4D22-AF9D-286B6A3F0FA1" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\917DA525-F1E2-4D37-BB26-BA4DC19FD1BC" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\9B6B706C-4603-4967-AE90-B58C1E54B7C2" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\9C63A59D-91B1-4AAE-870A-DBB24F9337F9" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-2\ which is not in the shadow copy set.
Component "\D1141663-8B00-4233-BBF1-1517C8E351A0" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\D3E97A71-17C8-4071-A1B6-316E6CA986AB" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\D8F51252-13AF-4ABF-8D7B-2798D4055F17" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\E25D318B-2D76-4771-9A9C-1DD37ED51A2D" from writer "Microsoft Hyper-V VSS Writer" is excluded from backup,
because it requires volume C:\ClusterStorage\VM-HyperV2012R2-1\ which is not in the shadow copy set.
Component "\BCD\BCD" from writer "ASR Writer" is excluded from backup,
because it requires volume  which is not in the shadow copy set.
The writer "ASR Writer" is now entirely excluded from the backup because the top-level
non selectable component "\BCD\BCD" is excluded.

* Including writer "Task Scheduler Writer":
        + Adding component: \TasksStore

* Including writer "VSS Metadata Store Writer":
        + Adding component: \WriterMetadataStore

* Including writer "Performance Counters Writer":
        + Adding component: \PerformanceCounters

* Including writer "System Writer":
        + Adding component: \System Files
        + Adding component: \Win32 Services Files

* Including writer "Microsoft Hyper-V VSS Writer":
        + Adding component: \Host Component

* Including writer "Registry Writer":
        + Adding component: \Registry

* Including writer "WMI Writer":
        + Adding component: \WMI

* Including writer "COM+ REGDB Writer":
        + Adding component: \COM+ REGDB

* Including writer "Cluster Database":
        + Adding component: \Cluster Database

I have no problem taking backups with Veeam from my Windows 2008 R2 Hyper-V Cluster

Can somebody help me figure out this issue ?

Thank you

Error applying hard drive changes when adding vhd to VM

$
0
0

I have a generation 1 VM running on a windows server 2012 r2 machine which has a local vhd attached. I have another vhd stored on a NAS which i need to add to the VM but when i try to add the new hard drive i get the following error "Error applying hard drive changes, Adding the device 'Microsoft:Hyper-V:Virtual Hard Disk' to 'BTRSRV03' failed."

Both the host server and the NAS are on the domain.The domain admin account i'm using on the host has full access to the shared folder on the NAS were the vhd is stored. Also the local machine account has full access to that shared folder on the NAS and i'm trying to add the vhd via the UNC path not through a mapped drive.

Unfortunately i cannot store the vhd which is on the NAS locally because of its size so i need to get this working with the vhd on the NAS.

Any help would be much appreciated. 

Error when creating VHDX via Hyper-V Manager remotely

$
0
0

Hey all!

So, I installed Hyper-V 2012 Core on a box, patched it, and then joined it to the domain. If I connect to the server via Hyper-V Manager from either a Windows 8 machine or Server 2012 machine and try to create a VM, it says "There was an unexpected error in configuring the hard disk on [Insert VM Name Here]." I feel like I've tried everything. I can not create the disk manually via the Manager on its own, before or after the VM being created. I can, however, create the disk via PowerShell with out a problem! Via PowerShell, I can create a dynamic VHDX disk every time without an issue.

I was curious if anyone has had this problem and/or knows a solution.

Thanks in advance!

Can the power down option be used to shut down VMs gracefully on a Hyper-V Host

$
0
0

Our business system is very simple - one host running three VMs.

On another domestic system we have a UPS that signals a power supply incident to one machine which then RDPs into a Home Server and closes it down.  So far we've not lost any data as far as we can tell.

We want to do something similar on the business system but don't understand PowerShell commands sufficiently well.  We thought that if the Hyper-V host received a Windows Exit message it would then initiate taking an image of the three machines by selecting that option in the management console  (we are only 4 users at present by the way) and in due course shut down.

When the power comes back on we have staggered the VMs so that the Mailserver, then the AD Machine and finally the Mailserver start up.  

But I cannot figure out what command I ought to put into the RDP start up box and in any event how to bypass the Ctrl+Alt+Del security.

Can anyone guide me please - in simple terms ;-)

Thanks

Jean

Exporting to a shared folder in Hyper-V 2012 R2

$
0
0

I have searched the internet and tried a whole bunch of different things, absolutely nothing works.

I have have a host running Hyper-V Server 2012 R2 named 'HV-1'.

I have a server for exports named 'Exports-1'.

Both computers are on the same subnet and the same domain.

I am trying to simply export a virtual machine from HV-1 to a shared folder (\\Exports-1\VMs)

The 'VMs' folder on 'Exports-1' has advanced sharing enabled with 'Everyone' having full control. When I go to the Security tab, it lists 'Everyone' with full control. I added the Computer account 'HV-1' with full control, but it still made no difference.

When I export a vm from Hyper-V Manager on 'Exports-1' I immediately get an error:

"Failed to create export directory. Failed to create export directory with error 'General access denied error' "

Remove CheckPoint Sub that's currently Applied

$
0
0

I'd like to remove a checkpoint sub that I have applied to the Virtual Machine. If I keep that checkpoint applied without applying another checkpoint and delete the checkpoint sub that is currently applied to the VM, will that negatively affect the VM?

I want to reduce the length of the checkpoint tree where possible. Where I know I don't need a particular checkpoint anymore before making the checkpoint longer. So far the checkpoint sub I am referring to is the last in its line, so it's not like I am deleting a checkpoint in the middle of its tree.

Thank you,

Kevin M

CPU Compatibility

$
0
0

Hi,

I have what I hope is a simple question... I currently have a 2 node 2012 R2 Hyper-V cluster which has an Intel Xeon E5 2650 which I think is v2 processor.  I need to add another couple of new nodes into this cluster, and the only CPU's that are available now are Intel Xeon E5 2650 v3 processors.  Will the v2 processors be compatible with the v3 processors so that VM's can Live Migrate between them without any issues?

Many thanks in advance.


Robert Milner | Website: http://www.remilner.co.uk | Twitter: @robm82



Virtual Machine Ping Unsuccessful

$
0
0

I have 2 base Machines. Virtual machines created in them have internal as well as external Switch created.

I would like to internally connect the Virtual Machines created on both the base machines:(one of them is a DC)

Here's the scenario

Base Machine 1 IP address

IPv4 Address. . . . . . . . . . . : 10.134.96.23
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.134.96.1

Base Machine 2 IP address

IPv4 Address. . . . . . . . . . . : 10.134.97.24
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.134.96.1

VM1 on Base Machine 1(DC)

IPv4 Address. . . . . . . . . . . : 10.134.96.12
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.134.96.1

Ethernet adapter Ethernet 2:

Connection-specific DNS Suffix  . :
IPv4 Address. . . . . . . . . . . : 50.1.1.1
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 0.0.0.0

VM 2 on Base Machine 1(connects to VM 1)

IPv4 Address. . . . . . . . . . . : 10.134.96.21
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.134.96.1

Ethernet adapter Ethernet 2:

Connection-specific DNS Suffix  . :
IPv4 Address. . . . . . . . . . . : 50.1.1.2
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 50.1.1.1

VM 1 on Base Machine 2

IPv4 Address. . . . . . . . . . . : 10.134.96.26
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.134.96.1

Ethernet adapter Ethernet 2:

Connection-specific DNS Suffix  . :
IPv4 Address. . . . . . . . . . . : 50.1.1.5
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 50.1.1.1

I would like to connect the VM 1 on Base Machine 2 to VM1 on Base Machine 1(DC) how can I achieve it?

Windows 7 ENT GPT/Generation 2/UEFI

$
0
0

Hello, 

I know natively Hyper-V doesn't seem to allow the install of Windows 7 using Generation 2 and therefore can't get GPT formatted drive.

I am creating a Hardware Agnostic image and UEFI is required. I was wondering if there's a workaround or a fix to create UEFI compatible Windows 7 VM with Hyper-V now? If not, is there a service that would allow this? I know this is possible in VM Workstation 12 Player, but it's not for corporate use and it doesn't have the ability to create snapshots it seems.

Anyway seeking advice on how to do this with Hyper-V primarily and if not, what are some software recommendations I can use as an alternative?

Kevin M

Hyper-V 3.0 VM stuck in "Stopping" state

$
0
0

We are running Hyper-V on a 2012 server and for the 20nd time in as many months I've logged into a VM and restarted or migrated to another host it but it's stuck in the "stopping" state in Hyper-V 3.0 and doesn't give me any Turn Off, Shutdown, Save, Pause or Reset options.  The only thing I've been able to do is to schedule a time to reboot the Hyper-V server.  Has anyone else experienced this?  Is there any command I can run get the VM  top turn off  w/o having to reboot or restart the Hyper-V service?

Our host environment as below:

HP C7000 Blade Chasis

16x ProLiant BL460c Gen8 Server (Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz (8 Cores) - 256GB Ram)

Blades server have Hp FlexFabric 10Gb 2-port

2x HP VC Flex-10 Enet Module on Chassie

HP VC 8Gb 20-Port FC Module on Chassie

Also We turned off tcp checksum offloading but it didn't work.

We've opened case to HP support but they analyzing our system and didn't find any problem to themself.

Does anybody have any fixes for these problems?

Hyper-V replication in Cluster

$
0
0

We have a Hyper-V (VM1) machine sitting in Data center 1. Data Center 1 has three nodes running Hyper-V and VM1 is part of that cluster.

we have set VM1 to replicate to Data center 2 host. the data center has three nodes running in a cluster.

we have noticed that the replication fails (suspended) randomly. we suspect that its the pipe between the two datacenters but dont have any monitoring between the two links.

is there any way that i can find out exactly why the replication gets suspended?

BTW, looking at error logs we see errors 32088 Hyper-V could not replicate changes for virtual machine 'VM1' as replication is suspended on the Replica server. (Virtual machine ID ....)

How to get access internet on my virtual lab

$
0
0

hi 

How to get access internet on my virtual lab

Because software updates need internet how to access.

2008 R2 snapshot delete with low disk space - can I move individual disks, or export without snapshot in the GUI?

$
0
0

Server 2008 R2, one VM with two VHD files (C: and D: to the guest). C: VHD and AVHD are about 600GB total, D: VHD and AVHD are about 2.7TB total. Single snapshot was deleted but not merged as best I can tell. 120GB free on the host disk.

I inherited this server and snapshots have grown out of control. What is the best course of action of these paths (or others)?:

Since the snapshot has been deleted (gone from the UI), can I still export it somehow (as it’s 2008 R2) to other storage into two single VHD’s, merging the AVHD’s in the process, then import back? If so, would I create a new snapshot, then export that, or how would I?

Can I shut down the VM, move the VHD and AVHD holding C: to external storage, allow the VHD and AVHD holding D: to complete its merge, move the C: VHD and AVHD back, and allow them to merge? Is a snapshot delete/merge process with two VHD files done one after the other, or simultaneously? I'm unsure even if this worked, if I would have enough free space. But the ability to merge one disk then the other would help a lot.

Move all files to another Hyper-V server, spin it up, merge, then move back?

Does MS have a tool to convert hyper-v VMs to VMWARE VMs?

$
0
0

Does MS have a tool to convert hyper-v VMs to VMWARE VMs?

Does SCVMM have this ability natively?  guessing no.

I am guessing MS does not make a stand alone free tool for this?


dsk


Need better understanding between fixed and pass-through disks

$
0
0

Hello guys,

 

I have working quite a few times on Hyper-V disk types but some points still remain unclear to me.

 

I know the basic differences between dynamic/fixed and pass-though disks.

 

I also know that since the latest updates, the performance gap between these 3 has really decreased. Pass-through disks are still preferred for production environment, or fixed disk for their advantages of being a VHD and all the good points we know about.

We also know that fixed disks are better for less fragmentation than dynamically expanding disk, even if they take more space from the start.

 

But my question is, between fixed and pass-through disks, which one is the absolutely best in terms of performance AND fragmentation if you rely on the latest updates ?

I'm not considering VHD advantages here, just perfs and fragmentation only. Mainly because I don't see how fixed and pass-through can act differently in term of fragmentation...

 

 

Thanks a lot ! :)


Win10: Bug – Hyper-V Cancel Apply Checkpoint (Doesn’t Cancel)

VM falls back to startup memory after some time when Dynamic Memory is enabled event id 19548

$
0
0

Hello All,

We have multiple Server 2008R2 VM's on different Server 2012R2 hosts that have the following problem.

VM Dynamic Memory enabled
Startup 2048Mb
Minimal 1024Mb
Maximum 10240Mb

VM starts up and allocates memory, Memory demand is ok and Memory status also. Sometimes after a reboot the Assigned memory is 2048Mb, the Memory demand and Memory status columns are empty (hyper-v manager), dynamic memory is still enabled according to the column and inside the VM the maximum memory is 2048Mb. On the host I get the following event:

Event id 19548

The dynamic memory balancer could not add memory to the virtual machine 'vm01' because its configured maximum has been reached (Virtual machine ID 5AC8B7DE-0848-49E2-AD0B-7D2C1A56803D).

There is plenty of RAM available on the host to cover twice the maximum configured RAM. All the VM's and Hosts have the latest updates, all the integration services are running inside the VM and there is no message in the event log inside the VM. I can't figure out why this event id is generated because there is more than enough RAM. I looked in several event logs on the Host and inside the VM but the only thing I can find is the one above (that's related to this problem I guess). Any help? for now the workaround is to reboot the server and watch what it does.

Regards,
Peter


Error applying DVD Changes. Failed to add device 'Virtual CD/DVD Disk'. User Account does not have permissions to open attachment.

$
0
0

I am getting an error message, Error applying DVD Changes. Failed to add device 'Virtual CD/DVD Disk'. User Account does not have permissions to open attachment., when trying to launch/install a Guest Operating System from an iso image.

HyperV Server: I have installed Hyper-V Server 2016 Tech Preview on a Dell R710 server. In bare metal, no GUI mode.

Windows Server/HyperV Manager: I have installed Windows Server 2016 Tech Preview on a different Dell R710, in full Desktop Experience mode, and have added the Hyper-V Manager as a feature only.

Both machines are in a WORKGROUP only.  I have enabled remote administration on HyperV.

I have created a VM in Hyper-V Manager, and am later trying to boot it to an .iso image of Windows 8.1 which is stored in a shared drive on Windows Server 2016 Tech Preview, c:\isos.

I am getting the error message, Error applying DVD Changes. Failed to add device 'Virtual CD/DVD Disk'. User Account does not have permissions to open attachment.

How can I boot this VM from an .iso image ?

Moving DC between Hyper-V nodes

$
0
0

hello,

we have two stand alone hyper-V nodes in production each with six VMs as follow:

HV01 hosts these VMs:

  • Primary Domain controller for abc domain
  • secondary domain controller for xyz domain
  • a couple of application servers

HV02 hosts these VMs:

  • secondary domain controller for abc domian
  • primary domain controller for xyz domain
  • a couple of application servers

Due to hardware maintenance we must move all domain controllers to HV01 then upgrade the hardware on HV02 then again move all domain controllers to HV02 then distribute all domain controllers as it was ,again in near future i have to move all DC to a newly deployed Hyper-V node

my question is how do i safely move virtual domain controllers across hyper-V nodes fast and safe

best

shad

Viewing all 19461 articles
Browse latest View live




Latest Images