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

Change disk size for dynamically expanding VHDX?

0
0

I have a dynamically expanding VHDX virtual disk, where I set the disk size (as the vm sees it) to 64 TB when I created it.

The file is now expanded to 12.3 TB and inside of it there is 14,9 TB of unallocated space at the end of the disk.

Is there a way to reduce the disk size down from 64 TB to (for example) 54 TB, thus reducing the unallocated space to 4,9 TB?


Assigning CPU core to VMs

0
0

Hi

We have an HV host server with 8 cores and there are 8 VMs with 2 cores, so total 16 cores assigned to the VMs. Theoretically how this works?

Thanks in advance 


Server Engineer

No networking, till virtual switch disabled/re-enabled.

0
0

OK, so this is weird.

Once physical nic (onboard, Intel I219-V), and one virtual switch enabled from that. Set so the host can share networking. Every time I boot Windows 10x64, I have no networking until I disable and re-enable the virtual switch. All the settings on it are right, it just needs an on/off to spring to life. Any ideas?

Until I disable/re-enable the switch, the system event log fills with


Hyper-V-Vm-Switch Event Id 25 The MAC address 40-8D-5C-50-5D-7C has moved from port C37F171C-9D82-470F-BCB5-80FC6160C33C (Friendly Name: External) to port 30CA8B90-F073-47EB-89EC-764EEB07E8F8 (Friendly Name: External_External).

Hyper-V-Vm-Switch Event Id 25 The MAC address 40-8D-5C-50-5D-7C has moved from port 30CA8B90-F073-47EB-89EC-764EEB07E8F8 (Friendly Name: External_External) to port C37F171C-9D82-470F-BCB5-80FC6160C33C (Friendly Name: External).

That's the MAC address of my external Virtual switch. It continuously flips between those two entries. Why would the MAC address be flapping from port to port like that?

Then, I disable/re-enable the vSwitch and

Hyper-V-VmSwitch EventID 7 Miniport NIC 6D97AB55-966A-4BAD-9664-9DB3B7D17B4E (Friendly Name: External) successfully initialized.

Event 5 Miniport NIC 6D97AB55-966A-4BAD-9664-9DB3B7D17B4E (Friendly Name: ) successfully enabled

Event 5 Miniport NIC 7ADB06B9-C08D-4993-A8B7-78B2EF4A0B89 (Friendly Name: ) successfully enabled

And that's it - I have networking again and the event log behaves itself.

Any ideas? (vSwitch is of course set to allow host networking)

(Saw this post, but I only have one physical and no NLB: https://social.technet.microsoft.com/Forums/windowsserver/en-US/681708f1-8fa7-4fcf-b6fc-5c56788d6dfa/hypervvmswitch-event-25-continuously. Apart from that, it's spot in in terms of number of entries)

A




P2V: Windows 2000 SCSI boot issues and getting the VM to IDE

0
0

So, I have an application that I don't have any way of updating it or reinstalling it on another new VM. This app happens to be on Windows 2000 and I am trying to do a Physical to Virtual Conversion of it.  I am installing this on my Windows 2008 R2 Hyper-V Host.

However, I am having issues with it booting on hyper-V because it has the BSOD, however, I can get it to boot under Virtual Box by using SCSI boot using "BusLogic" SCSI controller.  I have no issues here when I set Virtual Box to "BusLogic" and boot from SCSI from that.

However, on Hyper-V it won't allow you to boot from SCSI unless you have 2012 R2 and it's on a Generation 2 VM, this is obviously a problem because I need SCSI to be able to boot the image and we are using Windows 2000. 

I have tried the instructions here to take out the old drivers and rebooting according to the link below, but it still bluescreens no matter what I do. 

NOTE: THIS LINK BELOW DID TAKE OUT THE OLD HARDWARE WHEN I REBOOTED, but it still CRASHES, if use anything other than SCSI "Buslogic".  Nothing else will work.  IDE/SATA/SAS, etc...

http://itknowledgeexchange.techtarget.com/virtualization-pro/removing-old-hardware-after-a-p2v-conversion/

Summary:

I need to Switch the Windows 2000 VHD over from SCSI to IDE and it should work, but because I get the BSOD, the only thing that works is the Buslogic SCSI Adapter in Virtualbox.  This needs to work in 2008 R2 Hyper-V.

Any ideas on this?




VM Restarted

0
0

Hi 

We have Hyper v 2012 R2 Failover Cluster , Intermittently Virtual Machines abruptly restarted 

On Event viewer Event ID 41 is generated on it . Experts any idea .. 

Hyper-V - Cannot find the physical computer that runs the virtual machine

0
0

Yesterday I was changing a network adapter on a server (Server 2008 R2) that is running a few Hyper-V machines. Once I booted it back up I went to add a new virtual machine and I started getting an error:

http://chattypics.com/files/ErrorPNG_tqswyrw7kx.png

I have been googling and trying everything. Most of the the resolutions say to do the following:

- go into the Registry and delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\DnsPolicyConfig"
- in an elevated command prompt, enter: sc control dnscache paramchange

Except the key in reference is not in the registry and the command needs more parameters


unable to connect to a "Microsoft Hyper-V Server 2012" using the "Connect-VIServer " command

0
0

i have many ESX hosts servers which i can connect to using the following PowerCli commnad:-

Connect-VIServer 
and i can retrieve their info and their VMs info using the following commands without any problem:-

Get-VMHost

Get-VM

but when i try to execute the Connect-VIServer on a "Microsoft Hyper-V Server 2012" server, i got the following error:-

>>Connect-VIServer

Network connectivity error occured. Please verify that the network address and port are correct.



here is the screen shot from inside the PowerCli :-

vi.png

 

so can anyone adivce why i am unable to connect to MS hyper-v server in the same way i do for the ESX ? and if i manage to connect to it will i be able to runGet-VMHost& Get-VM power cli scripts on "MS hyper-v" ?

 

Thanks

How to properly move a VM to another physical server

0
0

Hi folks,

I have two Dell R-170 servers both running Server 2008 R2 and Hyper -V, each with two VM's installed and running.  One of the physical servers is beginning to run low on disk space.  I would like to move one of my VM's (about a 200Gb .vhd) from one server to another, so I will havce 3 VM's on one server and only one on the other at least temporarily.  Likely I will move a smaller one from the one machine to the other later on to balance them out.

Anyway, the VM I want to move is a SBS 2008 server, which is running Exchange and is the DC for the domain.  Any special considerations based upon that information?

I want to make sure I do the right steps to properly move that VM from one physical server to the other and have it come back online smoothly.  Can someone point me to the proper steps to take?  Here is what I think they are, but I'm not 100% sure.

Shutdown the VM on the current physical server.

Copy the VM's .vhd file to either an external drive or network copy to the new physical server.

Create the VM in Hyper-V on the new server, get the network configured  (Can you copy the settings from the old host?)

Boot the VM on the new server and it should work now?

Tell the VM on the old server to not restart except manually, then after verifying all is working well on the new host, delete the VM and the .vhd file to recapture disk space.

Can someone point me in the right direction to do this properly.  Since it's my DC and my Exchange server I really want to do this right the first time.

Thanks!


Is Exporting VM's in Hyper V file level or bit level copy?

0
0

HI,

We are in preparation in redoing our hyper V server because of bad blocks on our raid volume from a punctured array.

Dell informed us that we need to backup and restore data using data done on a file level and not a bit level or system image.

"CAUTION! Do not do a bare metal restore or bit-level backup of your Virtual Disks, this will copy the corrupted data and put it back on your VD continuing the issue."

My question is, when we shut down the VM's im Windows Server 2012 and perform a export of the vm's to a external disk,  is this ok to use to restore the VM's once after we reinstall and get the host running again?

I know we can just manually copy the VM files in windows explorer to a external disk which will be a file level copy for sure but we already did the export feature in hyper V.  FIle level copy in windows explorer of the vm files would take another 5-6 hours.

Thanks in Advance.

Windows 10 Build 10240 Managing Hyper-V on 2012 R2 Datacenter Cannot Connect

0
0

So, we have a total of six Hyper-V servers in our environment. All six were installed from the same Server 2012 R2 Datacenter ISO. I have been managing these from my Windows 8.1 machine with no issues. I got ahold of Windows 10 build 10240, and I am running into an issue connecting to the servers now.

The strange thing is that I CAN connect to one of them. I cannot figure out what is different on this one server from the other five. Windows updates maybe? I migrated all the VMs off one of the servers I cannot manage remotely, performed all Windows Updates, and I still cannot connect to it.

I am reading that Windows 10 should be backward-compatible with managing Hyper-V on 2012, but on connection, it appears a WMI namespace is missing that the Windows 10 tools are trying to connect to.

I am not trying to use alternate credentials (I read this will NOT work from 10 to 2012 R2). Any ideas why this is not working? Several Google searches have not told me anything so far. I realize Windows 10 has not officially been released yet, but a few of us are testing the waters for compatibility issues.

I would appreciate any help anybody can offer.

Eric

Hyper-V Replica VLANs

0
0

Hello everyone,

small question:
Are the VLAN-Settings of Source-VM and Replica-VM independent from each other?

Background is that we are replicating VMs cross-datacenter and can't have the same VLAN_IDs. So upon failover, I need to change the VLAN_ID. I'm not sure though if the VLAN_ID is being replicated from the source VM to the replica VM.

Thanks,
Jens


jensit.wordpress.com

Hyper V server 2012 R2 Corrupt firewallrule name for Remote Dekstop

0
0

Hello,

I've currently installed Hyper v server 2012 r2 for testing proposes, but I've encounter a problem with all of the Remote Dekstop firewall rules in order to connect to the server using remote dekstop I'm force to disable all profile rules in order to connect. Note: It's in Workgroup and am remoting from Win 8.1 pro

Here is a list ot things I've done so far without a result:

Reinstalling Hyper V server

Rebuilding firewall rule for Remote Dekstop TCP-IN (The rule was added but again with corrupt name)

Rewriting USB and reinstalling the Server (The USB is writen for GTP partition with UEFI scheme and formated Fat32)

Factory Reset the bios

There isn't anyother firewalls exept those on the server the connection with network is directly from a router and there isnt any firewall avable there.

P.S I am not able to enable remote dekstop rule for TCP-IN and UDP-IN because the names doesn't match and  I even used enable netfirewall rule with the current remote dekstop name am still unable to connect the only solution is to disable the firewall but thats not an option.



new-vm : Failed to add device 'Synthetic Disk Drive'. Windows 10 Hyper-V

0
0

Creating VMs using PowerShell and I get this problem:

new-vm : Failed to add device 'Synthetic Disk Drive'.

I have created the VMs in the GUI but I seemed to strike out with PowerShell

new-vm-NameWin2012r2-SC01-MemoryStartupBytes2gb-BootDeviceCD-SwitchNameWAN-Generation2-NewVHDPath'D:\HVStore\VM\Win2012r2-SC01\Virtual Hard Disks\Win2012r2-SC01.vhdx'-NewVHDSizeBytes40gb-Path'D:\HVStore\VM'

Thanks

Hyper-V Replica replacement of primary server

0
0

Hi, If i have a primary server with SQL and 5x separate VHDX files for the Data, logs, tempdb etc and this VM is replicating to a DR site, and something happens to it - like a blue screen or driver malnfunction etc, i want to be able to fail it over to the other site and while it runs there, do a restore from backup (Application consistent) at the primary site, then reverse replicate the changes from the DR site back to primary site and run off the primary site again.

Is this the normal procedure for recovering a primary site replicated server? If not, what is ? If the primary site wont come back up, how can i ever get the changes at the DR site to become replicated back to the primary site again?

Error with static ip for Hyper-V

0
0

Error in setting static ip to Virtual Machine.

Even when i try to set a static ip, whenever my pc restarts it's ip will again become dynamic.

There is another case it that TCP/IPv4 is showing not installed when i enable Hyper-V.

TCP/IPv4 will be shown enabled when i disable Hyper-V.

Is there any way to set static ip to all the connections including my local network and Hyper-V ?

Screenshots 01:Screenshot 01

Screenshot 2 :

Screenshot 02


Vaikesh (-_-)


No networking, till virtual switch disabled/re-enabled.

0
0

OK, so this is weird.

Once physical nic (onboard, Intel I219-V), and one virtual switch enabled from that. Set so the host can share networking. Every time I boot Windows 10x64, I have no networking until I disable and re-enable the virtual switch. All the settings on it are right, it just needs an on/off to spring to life. Any ideas?

Until I disable/re-enable the switch, the system event log fills with


Hyper-V-Vm-Switch Event Id 25 The MAC address 40-8D-5C-50-5D-7C has moved from port C37F171C-9D82-470F-BCB5-80FC6160C33C (Friendly Name: External) to port 30CA8B90-F073-47EB-89EC-764EEB07E8F8 (Friendly Name: External_External).

Hyper-V-Vm-Switch Event Id 25 The MAC address 40-8D-5C-50-5D-7C has moved from port 30CA8B90-F073-47EB-89EC-764EEB07E8F8 (Friendly Name: External_External) to port C37F171C-9D82-470F-BCB5-80FC6160C33C (Friendly Name: External).

That's the MAC address of my external Virtual switch. It continuously flips between those two entries. Why would the MAC address be flapping from port to port like that?

Then, I disable/re-enable the vSwitch and

Hyper-V-VmSwitch EventID 7 Miniport NIC 6D97AB55-966A-4BAD-9664-9DB3B7D17B4E (Friendly Name: External) successfully initialized.

Event 5 Miniport NIC 6D97AB55-966A-4BAD-9664-9DB3B7D17B4E (Friendly Name: ) successfully enabled

Event 5 Miniport NIC 7ADB06B9-C08D-4993-A8B7-78B2EF4A0B89 (Friendly Name: ) successfully enabled

And that's it - I have networking again and the event log behaves itself.

Any ideas? (vSwitch is of course set to allow host networking)

(Saw this post, but I only have one physical and no NLB: https://social.technet.microsoft.com/Forums/windowsserver/en-US/681708f1-8fa7-4fcf-b6fc-5c56788d6dfa/hypervvmswitch-event-25-continuously. Apart from that, it's spot in in terms of number of entries)

A




Network problem with a Windows 2008 image running on a Windows 2012 Hyper-V

0
0

Hello everyone

This days I am setting up a new server for my company, and I've decided to install Windows 2012 in it. But I'd like to be able to run my previus server, which has a Windows 2008 R2 in a virtual machine running in Hyper-V.

The thing is, I was able to create a VHDX from the old 2008 server using DISK2VHD, and run it in the 2012 Hyper-V server. The first time I run it, I have network connectivity. The image then proceeds to install some software upgrade, I presume, and ask me to restart the system. But when the image boots again, it has lost network connectivity. In this same server I have other virtual machines, and they don't have any network connectivity problems.

The configuration of the Hyper-v virtual switch follower is as external network. The first time I boot the image, it has 2 network adapters, one of which has network connectivity, while the other cannot identify the network. When I restart, I only have the second one.

What could be the cause of the problem? Might it be because the old server is still connected to the same network (although with different ip configuration, and a different computer name)

Hyper-V and Windows Backup

0
0
Hi All,

I have noticed that when creating a Microsoft Backup image that VHD files are created for each of the partitions backed up.  In a typical Microsoft installed environment that includes a system reserved partition and the OS partition.  I have been able to create a virtual machines attaching each of these VHDs.  Neither will boot because the "bootstrap" on the system reserved partition does not find the OS partition on the same drive.  Does anyone know if it is possible to combine or join these VHDs somehow to get a bootable VM.

Thanks,

Scott

Add-VMNetworkAdapterExtendedAcl and a subnet as a RemoteIPAddress parameter

0
0

Hello,

I get some strange results using an Add-VMNetworkAdapterExtendedAcl cmdlet.  

If I provide a subnet address as a RemoteIPAddress parameter  - the Add-VMNetworkAdapterExtendedAcl cmdlet doesn't work as expected,

-RemoteIPAddress <any subnet address> works exactly as -RemoteIPAddress ANY.

But according to the documentation here http://technet.microsoft.com/en-us/library/dn464289.aspx 
and here http://technet.microsoft.com/en-us/library/dn375962.aspx#bkmk_detailed
it's possible to use a subnet address with RemoteIPAddress.



My environment (Steps to reproduce):

1) I have a physical server with a Windows Server 2012 R2 with kb2919355 and hyper-v role installed and a VM with a public IP-address and guest OS Windows Server 2008 R2 SP1.  

Hyper-V switch which is used by the VM configured as follows:

PS C:\> Get-VMSwitch External | fl AllowManagementOS
AllowManagementOS : False

No any VMNetworkAdapterAcl or VMNetworkAdapterExtendedAcls configured for the VM.

2) ping <VM IP-address> -t from outside networks works.

3) ping google.com (or something pingable) -t from VM OS works. 

4) I run a following command on the hyper-v host:

Add-VMNetworkAdapterExtendedAcl -VMName test -Action Deny -Direction Outbound -Protocol "1" -Weight 11 -RemoteIPAddress 10.0.0.0/24

Both ping commands started to return "Request timed out" at once, 
despite the fact that there are no hosts from 10.0.0.0/24 subnet in the test environment.

Here is the VMNetworkAdapterExtendedAclconfig:

ParentAdapter      : Microsoft.HyperV.PowerShell.VMNetworkAdapter
Direction          : Outbound
Action             : Deny
LocalIPAddress     : ANY
RemoteIPAddress    : 10.0.0.0/24
LocalPort          : ANY
RemotePort         : ANY
Protocol           : 1
Weight             : 11
Stateful           : False
IdleSessionTimeout : 0
IsolationID        : 0
ToRemove           : False


5) Running Get-VMNetworkAdapterExtendedAcl -VMName test | Remove-VMNetworkAdapterExtendedAcl restores ping replies.


I guess I can use any valid IPv4 network address instead of 10.0.0.0/24 and I will get the same result (I've already tried 123.0.0.0/8 and so on)

Using a single IP-address instead of subnet works without any problem.

So, is that a bug? 

Export-VM used with -ComputerName parameter get an access denied on a network share -Path

0
0

Hi,

I am trying to export VM from a cluster to a network share. Accordingly to several posts and the knowledge base article: https://support.microsoft.com/en-us/kb/2008849, the computer account is used. So I have granted full control on the network share to the computer accounts Node1, Node2 and Cluster account.

When I input the PowerShell command: Export-VM -Name " + $ExportParam.Name + " -Path " + $exportParam.Path

It's working fine for the locally hosted VMs. Both node are able to successfully export the VMs hosted locally. Of course, the VMs hosted on another host is not exported as the parameter computername is missing.

When I input: Export-VM -Name " + $ExportParam.Name + " -ComputerName " + $VMHost + " -Path " + $exportParam.Path

It still working fine for locally hosted VMs but for VMs hosted on the other node (the node specified in $VMHost) I get the error: Failed to create export directory with error 'The user name or password is incorrect.'(0x8007052E) and the export directory is not created.

Do you know what is the account used when -ComputerName option is used? When the export is working (without -ComputerName parameter), the owner of the folder is the account who launch the Export-VM.


Viewing all 19461 articles
Browse latest View live




Latest Images