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

Add user input runonce commands

$
0
0

Is it possible to ask input of the user during deployment of the (linux) vm in scvmm?

In the guest OS profile, you can choose a new root password etc but i I want to add additional users to a linux vm during the deployment.


How to maximise screen (Windows 10 build 14352 hyper-v )

$
0
0

Hi, 

I'm running the latest insider build of Windows 10, 14352 so this problem might be related to that.

The problem: I cant maximise or full-screen my vm. I'm running a lenovo laptop with 2540x1440 resolution (or something like that). When I start my Ubuntu 16.04 workstation, I expect to be able to maximise it so that I can actually see the letters on the screen. What happens is that the hyper-v "client" starts at around 1/4 of my screen estate (see pic), and no matter how many times I press the "maximise" button it doesn't scale beyond that. View--> Fullscreen just blacks out the rest of the screen, but the actual vm screen size is the same. There's no way for me in the VM display properties to change screen resolution either, since Hyper-V doesn't seem to report that to the VM.

I totally understand that Windows is the "priority one" OS for Hyper-V, but I was really hoping that Linux support was at least at level "useable".

What's the indended behavior here?

windows 2008 R2 not booting (virtual machine )

Move-VMStorage failing with error 0x80070005

$
0
0

I'm issuing this command on the Hyper-V host SERVER2:

    Clear; Get-VM | ForEach { 
      Write-Host "Migrating: "$_.Name;
      Move-VMStorage
        -VM $_
        -DestinationStoragePath "\\SERVER1\D$";
    }

Both servers are domain-joined, non-clustered.

This is the result I'm getting:

>Move-VMStorage : Storage migration for virtual machine 'ADMIN' (4F452569-7DB9-4606-9371-A905267A7B0F) failed with
error 'General access denied error' (0x80070005).
Migration did not succeed. Could not start mirror operation for the VHD file 'D:\Virtual Hard Disks\ADMIN.vhdx' to
'\\SERVER1\D$\Virtual Hard Disks\ADMIN.vhdx': 'General access denied error'('0x80070005').
You do not have permission to perform the operation. Contact your administrator if you believe you should have
permission to perform this operation.

ACLs are correctly configured:

    PS C:\Users\domain.admin> Get-Acl 'D:\Virtual Hard Disks' | FL


    Path   : Microsoft.PowerShell.Core\FileSystem::D:\Virtual Hard Disks
    Owner  : BUILTIN\Administrators
    Group  : DOMAIN\Domain Users
    Access : CREATOR OWNER Allow  268435456
             NT AUTHORITY\SYSTEM Allow  FullControl
             BUILTIN\Administrators Allow  FullControl
             BUILTIN\Users Allow  CreateFiles, AppendData
             BUILTIN\Users Allow  ReadAndExecute, Synchronize
             NT VIRTUAL MACHINE\Virtual Machines Allow  CreateFiles, AppendData, Read, Synchronize
             DOMAIN\SERVER2$ Allow  -2147483642
             DOMAIN\SERVER2$ Allow  CreateFiles, AppendData, Read, Synchronize
    Audit  :
    Sddl   : O:BAG:DUD:AI(A;OICIIO;GA;;;CO)(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;CI;DCLC;;;BU)(A;OICI;0x1200a9;;;BU)(A;OICI;0x
             12008f;;;S-1-5-83-0)(A;CIIO;DCLCGR;;;S-1-5-21-369066176-630964511-2072824237-1119)(A;;0x12008f;;;S-1-5-21-3690
             66176-630964511-2072824237-1119)

and:

    C:\Users\domain.admin>net localgroup Administrators
    Alias name     Administrators
    Comment        Administrators have complete and unrestricted access to the compu
    ter/domain

    Members

    -------------------------------------------------------------------------------
    Administrator
    DOMAIN\Domain Admins
    The command completed successfully.

    C:\Users\domain.admin>net group "Domain Admins"  <==(on the PDC)
    Group name     Domain Admins
    Comment        Designated administrators of the domain

    Members

    -------------------------------------------------------------------------------
    Administrator            domain.admin
    The command completed successfully.

    C:\Users\domain.admin>whoami
    DOMAIN\domain.admin

I've delegated Kerberos as discussed [here][1]. Incoming and outgoing migrations are enabled on both machines, on Kerberos under any available network. Both firewalls are off.

I've contacted my administrator and I don't know what's wrong either.

Where to look next?


  [1]: http://windowsitpro.com/windows-server-2012/windows-server-2012-storage-live-migration

PCI compliance: Audits

$
0
0

Hi,

I need to make an Hyper-v DSS PCI compliant, so I need to archive logs about any change or access to hyper-v from administrators. In Event logs I can find operations, but not the user that requested them (I think it's because a user asks for a change, then it's forwared to hyper-v from the parent partition, and the original user is lost). I tries an audit log to the VMs files, but it creates tons of logs from System user (replica updates, etc).

What is the right way to make Hyper-V DSS PCI compliant and retrieve rights audit logs?

thanks

Hyper-V with Simple Storage Space CSV

$
0
0

I'm looking for ways to improve the performance of our virtual machines, mainly through IO, because I believe that CPU, RAM and networking are pretty well taken care of.  Ever since Server 2008 R2 with Hyper-V we've had issues with disk latency.  Most of which was resolved by upgrading to 2012 R2 with the new CSV technology and SMB 3.0 backend.  We're still seeing issues though, and I really need to track down what's causing it, because of VM performance isn't anywhere near where it should be.

We recently invested in a new SAN array, not just for virtualization, but it utilizes quad 8Gb controllers and currently has several shelves of disks (important to note they are all 7.2k, but striped heavily for increased read and write operations).  I'm interested in testing this array to see how it compares, but I'm looking for suggestions on how to implement it properly.  My main idea is to get several disks presented to our host nodes (most likely 2TB each), place them into a simple storage space (with no redundancy) and then use that storage space as a CSV for the Hyper-V cluster.  I'm sure the SAN will allow the host to utilize all allocated space/IOPs for a specific LUN, but the host operating system will most likely not support channeling as many IOPs as we need into one LUN with FC overhead, processing power allocation to one LUN and so on.  My feeling is this will help us by allowing the host to load balance the load across several disks, even if they are from the same array, hopefully helping it to utilize more available IOPs.

Any thoughts on this? Or even if it will work?

Hyper-V encountered an error while configuring network

$
0
0

Hey guys, a little help here

Hyper-V encountered an error trying to access an object on computer 'localhost' because the object was not found. The object might have been deleted, or you might not have the permission to perform the task. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.

I checked and Hyper-V, VMMS is already running. Tried using both domain administrator and member server administrator account to create new virtual machine but still get the same error. Any idea what the problem may be?

Cannot add Intel Associated network card to virtual network

$
0
0
Hi,

The problem happens on Hyper-V installed on a Windows 2008 Datacenter Core installation.

This server has 2 NICs + 2 Dual Port NICs that are teamed 2 by 2 using Intel ProSet and drivers utilities (Switch Fault Tolerance).
Configuration is OK on the host and networks works fine.

The problem is that when I try to use the NIC associations in a virtual network I get the following errors :

Using Virtual Machine Manager :
Unknown error (0x8005)

Using Hyper-V Manager MMC Snap-in :
"Echec du commutateur d'installation. Le commutateur n'a pas pu se lier à ... car il est déjà lié à un autre commutateur."
(Switch installation failure. The switch cannot link to ... because it is already linked to another switch"

Note that there is no existing virtual network when I proceed ...

Must I anderstand that there is absolutly no way to get switch redondancy to work with Hyper-V ??


Beebop

How to remove a VEthernet virtual switch from a NIC Team

$
0
0

Hi and thanks for reading. How do I remove or delete a vswitch from a team (not from a vm) or do I have to delete the Nic team?

I seem to only be able to find powershell cmds to delete or remove from a VMachine.

If you can help please can you post the actual cmd to delete\remove any of the vswitch as shown in the image.

Any help much appreciated.

Paul 


Paul Edwards



Unable to remove Hyper-V

$
0
0

have you tried this:

Dism /Online /Disable-Feature:Microsoft-Hyper-V-All or Dism /Online /Disable-Feature:Microsoft-Hyper-V


Mohsen Almassud

Unfortunately, on the next start after a reboot I get an error:

We couldn't complete the features

Undoing changes

Don't turn off your computer.


Any clue on how to get the Hyper-V removed?


Well this is the world we live in And these are the hands we're given...


"we couldn't complete the features undoing changes" on activating Hyper-V

$
0
0

I've been looking for this error all over the internet, and I can't find any solution.

So I have a Asus N750JK with Windows 8.1 64 bits Pro installed.

I have SLAT feature (I downloaded a small application to check and it says I have it all) , I also have activated Intel Virtualization in the BIOS. When I go to Control Panel -> Programs -> Enable or disable Windows Features, I go to Hyper V and check"Hyper V Platform" , it applies the updates, asks to restart computer, and it does, then it goes normally, starts to update, restarts the windows and it goes up to 100% and in the end it says: "We couldn't complete the features undoing changes" and restarts my windows once again and says: "we couldn't complete the updates undoing changes"

I have tried:

Dism /Online /Cleanup-Image /ScanHealth

Dism /Online /Cleanup-Image /RestoreHealth

but nothing changed.

What do I have to do to fix this?

Thanks.

Hyper V VM Machine lost Mouse (shows up as unknown device) in Device manager,

$
0
0

All of a sudden I have no mouse in my VM yet my other VM's running on the same server don't have problems. 

To make matters worse when I RDP into the machine I get a black screen then I'm kicked out with a failed to login message

in the device manager I there are no mouse or pointers yet unknown devices. I've rebooted everything, installed guest services and integrated services.

WIN 2012 VM and WIn 2012 hypervisor. the mouse shows up as a dot, but has no functionality.


nambi

CSV and Chkdsk scan need alerts

$
0
0

Hi

We have configured Hyper V clustering with Windows 2012 R2 DC. All the disks are configured as CSV, later installed guest OS and applications and everything is working fine as of now. Now most of teh CSV are showing the information Chkdsk scan needed. We are looking for a solution to correct this / run Chkdsk on CSVs and if required how frequently do we need to run chkdsk on CSVs

Thanks in advance   


LMS

Cannot connect to virtual machine

$
0
0

I am running a Server 2008 R2 as a host server for Server 2008 R2 virtual machine.  I have the following error in the Hyper-v Worker event log:   failure in machine remoting system. Error: 'Unspecified error' (0x80004005). If I open the Hyper-V manager, I get the following message:Cannot connect to virtual machine.

Most of the research I have seen, it says that there is a certificate expired problem, but the certificate in question does not expire until July 28 2016.  I remember getting a warning last year that the certificate was going to expire, but it renewed automatically.  Any answers to this problem.

Virtual Machine Connection Window Size

$
0
0

Hello,

I'm facing a issue with the Hyper-V Virtual Machine Connection running on Windows 10 Enterprise version 1511.

When I switch windows from a full screen virtual machine connection to another application, the virtual machine window resizes and exits the full screen mode. The resolution is not affected though.

Is there a way to change this back?

Thanks in advance,

Christos


Hyper-V 2012 R2 VM Settings very slow loading

$
0
0

Hi All,

I have a environment of Hyper-v 2012 R2 Failover Cluster and what i am experiencing is whenever i go to settings of any VM it takes ages to load it. Tried couple of workarounds from google but no luck till yet. Any Suggestions?

P.S. Its a production Hyper-V host so no restarts or shutdown solutions.

Your generous help would save a lot of time for me.

Hyper-V VM Generation 2 - How to boot from .ISO

$
0
0

Hi guys, 

Server OS: Windows Server 2012 R2

I have a VM Gen2 with following settings: 

I can boot fine from the same .iso from a Gen1 VM so the .iso is bootable. 

I know that the Gen2 VM uses SCSI instead of IDE, but I have no clue regarding how to boot from the .iso..

Any ideas?

Thanks in advance!

Best regards,

Kenny

vmconnect.exe FROM Windows 7 TO Hyper-V 2012 R2?

$
0
0

Hi,

I am trying to remotely administrate a Hyper-V Core 2012 R2 Server using a Windows 7 client.
As I understand it, this is not possible using the Hyper-V Manager because the Server and client versions are incomaptible?

However, I'd like to know if I should be able to connect to a guest-VM on said Hyper-V Server from my Windows 7 client using the "vmconnect.exe"?

Or is this also not possible due to the different Versions?

Thanks in advance for the info!

With kind regards,
Florian Seifer

Problem communicating over vNICs

$
0
0

I am implementing a Hyper-V converged network (4 cluster nodes), however having an communications issue on the vNICs connected to my management switch.

The same issue on all 4 nodes. If anyone has any suggestions, I would appreciate it.

 Each host has the following

  • 8 physical NICS (NIC1-NIC8)
  • NIC1 –a temporary management of IP of vLAN151
  • NIC4 - spare

 2 Teams (Configuration below)

  • ManagementTeam – NIC6/7
  • VirtualMachineTeam – NIC2/3/5/8

2 Virtual Switches

  • Management Switch – 3 virtual NICs created for Management (vLAN151), Live Migration (vLAN152) & CSV traffic (vLAN153)
  • Virtual Team Switch – no virtual NICs

 1 Physical Switch Stack

  • NICs 6/7 – ports trunked, vLAN 151, 152, 153 permitted
  • NICs 2/3/5/8 – ports trunked, vLAN 400, 800, 71 permitted

 I ran the following attached PS commands (without any errors) to create & configure Teams, Virtual Switches, Virtual NICs – per host.

# Create Management NIC Team
New-NetLbfoTeam -Name "ManagementTeam" -TeamMembers "NIC6","NIC7" -TeamNicName "ManagementTeamNIC" -TeamingMode SwitchIndependent -LoadBalancingAlgorithm “TransportPorts”

# Create a Hyper-V Virtual Switch that binds to the NIC team
New-VMSwitch “Management Switch” –NetAdapterName “ManagementTeamNIC” –MinimumBandwidthMode Weight –AllowManagementOS $false

# Create a virtual NIC in the management operating system for Live Migration
Add-VMNetworkAdapter –ManagementOS –Name “LM” –SwitchName “Management Switch”

# Create a virtual NIC in the management operating system for Cluster/CSV
Add-VMNetworkAdapter –ManagementOS –Name “CSV” –SwitchName “Management Switch”

# Create a virtual NIC in the management operating system for Management
Add-VMNetworkAdapter –ManagementOS –Name “Management” –SwitchName “Management Switch”

# Assign a weight to Management
Set-VMNetworkAdapter –ManagementOS –Name “Management” –MinimumBandwidthWeight 10

# Assign a weight to Live Migration
Set-VMNetworkAdapter –ManagementOS –Name “LM” –MinimumBandwidthWeight 50

# Assign a weight to Cluster
Set-VMNetworkAdapter –ManagementOS –Name “CSV” –MinimumBandwidthWeight 40

# assign a VLAN to a virtual network adapters in the Management OS
Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName "Management" –Access –VlanId 151
Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName "LM" –Access –VlanId 152
Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName "CSV" –Access –VlanId 153

# Create Virtual Machine NIC Team

New-NetLbfoTeam -Name "VirtualMachineTeam" -TeamMembers "NIC2","NIC3","NIC5","NIC8" -TeamNicName "VMTeamNIC" -TeamingMode SwitchIndependent -LoadBalancingAlgorithm HyperVPort

# Create a Hyper-V Virtual Switch that binds to the NIC team
New-VMSwitch “Virtual Machine Switch” –NetAdapterName “VMTeamNIC” –AllowManagementOS $false

# Now configure IP addresses on NICs

Get-NetAdapter -Name "vEthernet (Management)" | New-NetIPAddress -IPAddress 172.16.151.5 -Defaultgateway 172.16.151.1 -Prefixlength 24
Get-NetAdapter -Name "vEthernet (Management)" | Set-DnsClientServerAddress -ServerAddresses ("137.191.4.194","137.191.4.43")
Get-NetAdapter -Name "vEthernet (CSV)" | New-NetIPAddress -IPAddress 172.16.153.5 -Prefixlength 24
Get-NetAdapter -Name "vEthernet (LM)" | New-NetIPAddress -IPAddress 172.16.152.5 -Prefixlength 24

Note - Cluster Node 1 has following IPs presented to the ManagementOS 

NIC1 – 172.16.151.55/24 (temp management)

"vEthernet (Management)"    - 172.16.151.5/24  -Defaultgateway 172.16.151.1

"vEthernet (CSV)" - 172.16.153.5/24

"vEthernet (LM)"  - 172.16.152.5/24

 

Some of the testing results:

Ping 172.16.151.1 – Works Fine – Note, the system using the temp management IP 172.16.151.55 as the source

Ping 172.16.151.5 –S 172.16.151.5 – works fine

Ping 172.16.152.5 –S 172.16.152.5 – works fine

Ping 172.16.153.5 –S 172.16.153.5 – works fine

Ping 172.16.151.1 –S 172.16.151.5 – FAILS - so unable to ping the Default Gateway using "vEthernet (Management)" as source IP.

Conclusion

Therefore it seems I can’t pass any traffic via the Virtual NICS & Management Virtual  Switch. The physical Network Teams look ok. All the ports on the physical switch stack are UP. Phyiscal ports are trunked and required vLANs permitted


Hyper-v error 32780

$
0
0
Hello,
I have 2 Windows Server 2012 R2 machines. Both have Hyper-V installed.
I want to migrate a VM from one machine to another.
After selecting where to move the VM a popup appears:
Move Wizard / There was an error during move operation. / Migration operation on 'VM-NAME' failed. / The operation failed with error code '32780'.
I searched all Internet for Hyper-V error 32780, no luck so far.
Any ideas?
Thank you!

Viewing all 19461 articles
Browse latest View live




Latest Images