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

I want to deployment virtual machine by Hyper-V with windows 2012 server

0
0

I want to deployment virtual machine by Hyper-V with windows 2012 server. So I need step by step guide line with screenshot and video link.

Thanks,

Qamrul


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!

  

Does Windows 7 Pro support dynamic memory on Server 2012R2?

0
0

I can't understand if Windows7 Pro Edition supported for dynamic memory in Hyper-v 2012R2

Here it's marked as supported:

http://technet.microsoft.com/en-us/library/5aad349f-ef06-464a-b36f-366fbb040143#BKMK_SOFT

But my vm writes to system log that dynamic memory driver failed... for this OS edition.

Should i switch to VMware for correct memory balooning in Windows7 Pro?

Live Migration with Different CPU versions on the hosts, win 2012R2 Datacenter

0
0

Hello
This question have been asked in different forums but when I read the the thread's I feel that I get mixed answers.
And most answers are dating from 2012 (Win 2008R2), I don't know if they are still correct in win 2012R2.

So now I ask the question myself and hope to get at clear answer :)

We are in the process of installing a new Hyper-V cluster using Win srv 2012 R2 Datacenter as OS.
I'm planning to re-use some of the "old" servers from our current Hyper-V 2008 R2 cluster, removing it from the cluster and do a clean installation of 2012R2 Datacenter.
But I will need to buy two new servers to manage this (with a new version of CPU, same brand (AMD))
Old server: AMD Opteron(tm) Processor 6172 (12 Cores)
New server: AMD Opteron™ 6344 (12-core)

Now my question:
Will Live Migration work between these servers in my new cluster without me doing any special settings in hyper-v or in the VM or what do I need to do to get this to work?

/Anders

Windows Hyper-V 2012 R2, licensingUI.exe can not be found

0
0

Hello,

Since 2 days, I have an error message that appears every 2 hours. Indeed, the "LicensingUI.exe" file is not found. This causes a reboot to all my virtual machines! 

What can I do to fix it please ? It is very detrimental.

Thank you in advance !

Maxime

IMPOSSIBLE to Stop Windows 7 VM in Hyper-V!!!

0
0

I'm running HYPER-V on a Windows 2012 box. I have a problem that countless others have found - a Windows 7 VM refuses to shutdown and gets stuck in an everlasting STOPPING state. After several days of searching and research, I found a promising thread that suggests I use a LEGACY NIC in the VM. I was able to successfully remove the BROADCOM NIC from one VM and add a legacy nic. Works flawless now - albeit very slow in shutting down.

I've got one other VM however that I'd like to remove the Broadcom NIC from and add in a legacy NIC. Unfortunately, I CANNOT shut the VM down! No matter what I try, it sticks in the STOPPING state. I've tried the following:

1. Tried to SHUTDOWN straight from the OS interface (START button). Sticks in the STOPPING state.

2. Run PROCESSEXPLORER as administrator; attempt to kill the vmwp.exe process. Will not die - get ACCESS DENIED after 2nd attempt.

3. Tried killing the HYPER-V service and restarting. Does not stop VM.

4. Tried stopping the VM by going directly to the ACTION menu, and using TURN OFF. Sticks in the STOPPING state.

5. Tried rebooting Windows Server 2012 box after all of these actions and the VM shows as RUNNING after a server restart. If I open the VM after a restart it runs fine. I just can't shut it down!

I'd love to be able to change the NIC to a legacy NIC and see if this fixes the problem but for the life of me I CANNOT find a way to stop the VM so I can change settings! You'd think with the number of people exhibiting the problem Microsoft might try to address it - but to date I've not found a solution to STOP the VM so I can change settings. HELP!

Russ Foszcz


Russ Foszcz

run hyper-v on physical machine with server 2012

0
0

I currently am running windows 8.1 with several 8.1 hyper-v clients. I am about to have to do a new install of the host os because i am getting a new faster drive. The convenience and speed of backing up and moving hyper-v clients to different systems is so easy i was hoping i could take advantage of it for the future. i would also like to use some of the functions of windows only available in the server edition of windows. as a dreamspark student you can get a free copy of windows server 2012. I have not set up a windows server, but i have run a Linux and bsd one. I only have 1 physical machine. Does it make sense at all to install windows server 2012 and then have all of my working systems be hyper-v clients? i play games and have a nice graphics card. the clients i don't think use them directly, but would use it via the host i think. I also use visual studio for app dev and i beliebe VS installs a Virtual like machine for windows phone. Can i do this? what would it prevent me from doing that i currently do? is there a better way to go about this? maybe do the reverse and run the server in hyper-v? thanks


Hyper v cluster and storage

0
0
I am looking to set up a hyper v cluster using server 2012 and a NAS storage with an addition DAS attached via SAS.  Should I also attach the clustered servers to the NAS via SAS. The network is only a 1gb and I would have between 10 and 15 servers as VM's.  Any thought would help.

Unknown devices on Windows 2003 Virtual Machines

0
0

We have recently setup a Windows Server 2012 R2 environment, Hyper-V and Clustering.

Our existing environment is Windows server 2008 R2 / Hyper-V and Clustering.

We are experimenting with migrating VM’s from the old cluster to the new cluster, either using the cluster migration wizard or simply exporting VM’s / re importing VM’s

We are experiencing issues with Windows Server 2003 R2 virtual machines, we always end up with 2 unknown device drivers in the device manager, both are stating they are on the Hyper-V Virtual Machine bus, we have installed  the integration services on the VM’s, we have even on the existing ones removed any mention of the Integration servers from the registry and completing a fresh install but they still show up as unknown.  The strange thing is the device status is working properly, the VM functions correctly but I’m not happy going forward into production with unknown device drivers.

Windows 2008 guests are fine it’s only Windows 2003 guests, we still need to run a number of these legacy servers so upgrading the VM’s not an option.

Has anyone else come across the issue / fixed this issue?

Any advice?

WMI High CPU Usage on Hyper-V VMs - Related to Data Exchange Integration Service

0
0

Title pretty much says it all.  Some of my VMs have high CPU and moderate usage going to the WMI Integration Service.  I have tracked it down to the Data Exchange Integration Service.  If I de-select the service under the VM configuration, everything works normally.  Has anyone seen anything like this yet?

Thanks, TJ

Hyper V manager on 2008 R2 connect to 2012 R2 server core hyper V without domain

0
0

Dear all

I am using Hyper V manager on 2008 R2.

Now I have one 2012 R2 server core hyper V without domain, I want to manage this server core hyper V with Hyper V manager on 2008 R2.

When I add/connect, it display credential wrong. (use command net use drive works)

May I know is it a must to join domain?

thx


Q K

Backup practice for HyperV Host or Individual virtual Machines

0
0

Hello,

Current Strategy: We have 5 physical virtual host servers (windows server 2008 & 2008 R2) with 5-6 virtual instances/machines on each. Currently we are using Microsoft DPM 2007 to backup individual virtual machines and not backing up the host. DPM 2007 isn't doing the job for us anymore due to Tape drive compatibility issues and it's just old software with limited functionality.

Question: What is the best way to backup each virtual machine or host (do I need to?) AND easily restore machines or data?

Goal: In case we have a virtual host crash and we need to rebuild new box or use another host, I would like grab a backup and restore the entire virtual machine as it was night before onto another host including data and Machine settings (plug a& play). 

Also, in case we have a single virtual instance/machine corrupt or crash, I would like to use the full back and restore everything like it was (including all VM settings and data). 

I am open to all options including new software, hardware or 3rd party software. As long as solution is rock solid and reliable, i am good.

Thanks for you help!

When using SMBv3 for storage of HyperV - are separate shares needed for each host?

0
0

Documents like http://technet.microsoft.com/en-us/library/jj134187.aspx#BKMK_Step5

Seem to indicate seperate shares are needed one the SMBv3 Server for each HyperV Host (or possibly each guest)

I can't find a mapping to indicate the separation required. Is it a seperate share for each Host? Guest? Are folders enough?

Thanks
Paul

Hyper-V VM on All-In-One server

0
0

I am working for a small law firm that only has 1 hefty 2008 R2 server. That's all they really need. It does AD/DNS/DHCP/File Print/Hyper-V. The server has 2 NICs. I would like to completely separate the VMs from the Host server as far as network access goes. I have tried to configuring this in many different ways but all come back to the VMs not able to access the host server and not being able to resolve DNS requests, or none of them having any network access including the host server.

Is this possible to configure? How do I configure the virtual network manager to achieve this?

Thanks!

TOny

Not able to manage virtual machines when they are off in a Windows 2012 Hyper-V cluster environment

0
0

Hi I'm wondering if anyone else has encounter this weird problem: I have a 3-node Windows 2012 enterprise hyper-v cluster. If a virtual machine is shut off I can't manage it. When I right click on the virtual machine and choose Settings it gives me an error" Hyper-V encountered an error trying to access an object on computer "hyper-v-host1" because the object was not found". But if I move the virtual machine to a different node then everything will be fine(doesn't matter if I move it back or not). To me it feels like the host is not able to refresh the virtual machine's settings and by moving the VM it is able to refresh and let me change the settings after.

Any help is appreciated.


Hyper-v and very slow network

0
0

Dear all,

I have a big problem with my hyper-v server and network card. I've found a lot of topic around this question but none of them helped me.

I have a Win 2008 R2 Server with only Hyper-V installed. I have 3 NIC , one is reserved to the host management and the others two are reserved for virtual machine .

All NIC are Intel, one is integrated on the Intel motherboard and the others are Intel Gigabit ET Dual port .

Before installing the role of Hyper-V all NIC worked perfectly with speed around 1Gb (file transfer average 90 MB/Sec, of course I have a Gigabit LAN) .

After Hyper-V install, the host system  is going very slow and the network file transfer using the dedicated NIC is about ten time slower (9-10MB /sec) . Same problem with all VM off and also if I remove all VM !

I tried all of suggestion found in old post (disabling TCP checksum / offload ...) but nothing happens.

What is really strange is that by removing all network card all the Host operating system seems to improve the speed... but, of course, I can't use  my LAN :(

I need help because every night I must make a full backup of Virtual hard disk from the host to a backup server in my lan.

My configuration:

- Server Win 2008 R2 SP1 with Hyper-V and no others role

- 2 Virtual Machine (one Win 2008 R2 and one Win 7 Ultimate)

- NAS Linux (access via SMB with no problem)

- Various Windows 7 Pro client

 

Thanks in advance to everybody,

Luca M.

WMI create extendedAcl for VM

0
0

What method  must be used for create new instance in Msvm_EthernetSwitchPortExtendedAclSettingData?

(Namespace: Root\virtualization\v2)

Windows Server 2012 R2

Request additional allocation of dynamic memory

0
0

Hyper-V 2012 host

Server 2012 R2 guest

The guest is configured for startup and minimum memory of 2 GB with a maximum memory of 64 GB.  Once per day a PowerShell script runs which uses 7-Zip.exe to compress some large files.  The 7-Zip command fails if there is less than 10 GB of memory immediately available.  I do not want to allocate that much minimum memory to the guest, as it doesn't need it for anything but this one script.

How can I programmatically request or instruct the host to allocate 10 GB to the guest before I run the 7zip command?

Currently I am launching a PowerShell job running Sysinternals TestLimit64.exe and running it until I see the allocated memory go up on the host.  But this workaround is inelegant, inexact, imprecise, and slow.

Thank you.


Tim Curwick
MadWithPowerShell.com

Template/WinRM issue

0
0

Hello all,


I have implemented IBM StorWize V3700 in my Hyper-V stack where I use VMM 2012 SP1 and since I have presented volumes to all of my hosts I lost ability to deploy VM templates, all jobs get stuck on 66% (infamous "Installing VM components"). VMM reports that WinRM is the problem, but I have tested it thoroughly on all host and it works. Another thing is that templates are working just fine on hosts without volumes presented from StorWize.

Kind regards,

Alex Somby

Virtual network adapter not showing as domain network

0
0

Hi

I've got a Windows 8.1 machine that is connected to a domain on the LAN.

Before I installed Hyper-V the network showed up as "Domain Network" in the network and sharing center but when I installed Hyper-V I created a virtual switch (external) and since then the network has shown up as "Private Network".

This is on the Windows 8.1 host and the machine has full access to the LAN and the Internet and is using the domain for logins and permissions, which allows me to browse file shares on other machines on the network without having to sign-on. Most of the time I'm not even running any virtual machines on the PC, I have Hyper-V for testing websites on different versions of IE.

The only problems I have are the network type not being detected correctly, my local firewall blocking lots of stuff I run on it (due to the firewall rules all being set up for a domain network) and also when I RDC to another machine it refuses to use saved credentials as it can't identify the machine (I don't know if this is related to the domain network problem).

Has anyone any suggestions what could be going wrong or how I can diagnose the problem?

Thanks

Viewing all 19461 articles
Browse latest View live




Latest Images