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

looking fo a simple VM Import Script to Hyper-V

$
0
0

Hello everybody

In our company enviroment, we do offer Microsoft Learning Kurses. We deploy the whole Course Infrastructure thru an deployment tool like SCCM.
The Microsoft Learning Products come with Hyper-V VM's and if you don't use an Imaging tool like cloneZilla, you have to import every VM manually in Hyper-V.
But if you have many students and you have to do this on every single machine, it takes a lot of time.

Now iam looking for a script, wich import or add every Microsoft Learning VM to the Hyper-V Manager automatically.... I have tryed a lot of them ps1 stuff, but nothing is working fine for example this script:

Param ($ModulePath = ($env:psmodulePath -split ";")[1],$ModuleName = "HyperV",$path = "C:\Program Files\Microsoft Learning\10267\Drives\10267A-GEN-DEV\")            
 #Copy the HyperV module if it doesn't already exist
 if(!((Dir $ModulePath) -match $ModuleName)) {Copy-Item .\$ModuleName $ModulePath -Recurse}             

 #Import the HyperV module if not already imported
 if(!(Get-Module | Where{$_.Name -like $ModuleName})) {Import-Module $ModuleName}            

 #Create array to contain active VM's
 $ActiveVMs = Get-VM | Foreach{$_.ElementName}            

 #Create array to contain VM's to be imported
 $VMsToImport = ( Get-ChildItem $path ) | Foreach{$_.Name}
 [regex]$ActiveVMs_Regex = '(?i)^('+(($ActiveVMs |
        Foreach {[regex]::Escape($_)})-join "|" )+')$'            

 #Import the VMs            
 $VMsToImport -notmatch $ActiveVMs_Regex |             
        Foreach{ Import-VM ( Join-Path $path $_ )             
        Start-Sleep 5}

The funny thing is, you don't get an error and it is doing that after run the script:

\\TESTTR\root\virtualization:Msvm_ConcreteJob.InstanceID="2E60921B-95B4-4CF8-A04C-1ACFB66CCA2E"
\\TESTTR\root\virtualization:Msvm_ConcreteJob.InstanceID="A3315731-B9C8-42CB-BA8A-F289BBC08F31"
\\TESTTR\root\virtualization:Msvm_ConcreteJob.InstanceID="22C78488-BE5C-4C34-986C-C190885FCDA8"

But after, nothing happend in my Hyper-V manager, the Virtual Machine Pane is still empty!!!!
What is here going wrong? or has someone a script for a simple VM import from example Location "C:\Microsoft Learning" into the Hyper-V manager?????


I have this Disk Queue Length Failed

$
0
0
I've been getting this error " Disk Queue Length Failed" But, I cannot find where exactly is the system error is. Anyone sees this error before? Please advise thanks I hope i am posting this on right forum sections. It is runing on hyper-v guest and server 2008 r2 sp1.

Windows Server Standard 2003 32-bit restarting after changing a password of an Active Directory User

$
0
0

Hello Friends

This is one of the weirdest problem I have faced till now. I have active directory installed in Windows 2003 32-bit system. We have our company password filter which receives password change when a user tries to change any of the AD user password. The problem is that the password filter is installed correctly and the service is also started. But when I try to change the password of an Active Directory User, the system crashes and it restarts itself automotically. It first given an alert window saying that the windows cannot perform password change on the specified user and then restarts itself after 1 minute.

*************************************************************

When I tried to look at the Event Viewer of the Windows, I got the following error message in the Application or System log -

at System.Security.Principal.Win32.LsaOpenPolicy(String systemName, PolicyRights rights)
   at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection sourceSids, Boolean& someFailed)
   at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean& someFailed)
   at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
   at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
   at System.Security.Principal.WindowsIdentity.GetName()
   at System.Security.Principal.WindowsIdentity.get_Name()
   at Microsoft.Windows.ManagementUI.CombinedControls.ViewerContext.InitializeUserPermission()
   at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode..ctor()
   at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode..ctor(EventNodeType type)
   at Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.GetRootNode()
   at Microsoft.EventViewer.SnapIn.MMCRootNode..ctor(String remotecomputerName, String userDomain, String userName, SecureString encryptedPassword)
   at Microsoft.EventViewer.SnapIn.EventViewerSnapIn.OnInitialize()
   at Microsoft.ManagementConsole.SnapInBase.PostInitialize()
   at Microsoft.ManagementConsole.SnapInBase.Initialized()
   at Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.ISnapInClient.Initialize(ISnapInPlatform snapInPlatform)
   at Microsoft.ManagementConsole.Executive.SnapInInitializationOperation.OnStart()
   at Microsoft.ManagementConsole.Executive.Operation.Start()
   at Microsoft.ManagementConsole.Executive.RunningOperationsTable.EnqueueOperation(Operation operation)
   at Microsoft.ManagementConsole.Executive.StandAloneComponentData..ctor(SnapInRegistrationInfo info, Int32 bookkeepingId)
   at Microsoft.ManagementConsole.Advanced.FrameworkSnapInFactory.Microsoft.ManagementConsole.Advanced.ISnapInFactory.CreateSnapIn(Int32 bookkeepingId, String snapInKey, Object& snapIn)


A critical system process, C:\Windows\system32\lsass.exe, failed with status code 255.  The machine must now be restarted.

Faulting application lsass.exe, version 6.0.6001.18272, time stamp 0x4a364556, faulting module ntdll.dll, version 6.0.6001.18538, time stamp 0x4cb733dc, exception code 0xc0000374, fault offset 0x000b0dbc, process id 0x244, application start time 0x01cd6b6dafd569be.

****************************************

Note the windows is in VM and is updated till date. One of the important point I have to tell u guys is that I cannot activate the Windows on online. Whenever I try to activate it online it gives an error code of 0x8007232B.

Can some one help me in this issue. I cannot provide you much details about the password filter, i am sorry for this.

After some research what I came to know is that 'lsass.exe' might be getting corrupted which is causing the Windows to restart. But I am not understanding what to do?.

Can someone please help me in this matter?.

Thank you very much in advance

Sam

Hyper-V Server 2008 and 2012 VM Compatability

$
0
0
If I create a virtual machine that boots into Windows Server 2008 R2 via the standalone Hyper-V Server 2012,  will I be able to run this VM on the older Hyper-V Server 2008 R2 if I needed?  

Adding third node to a two node Hyper-v cluster

$
0
0

Hi there,

I have a two node Hyper-v cluster on Windows Server 2008R2+SP1 with cluster shared volumes.

I want to add a new third node.

On this third node I already connected the witness disk. It is showing in Disk Management as offline.

When I run the validate a configuration wizard it fails with "No disk were found to perform cluster validation tests."

From the LOG:

Disk with identifier 73588c7 has a Persistent Reservation on it. The disk might be part of some other cluster. Removing the disk from validation set
No disks were found on which to perform cluster validation tests. To correct this, review the following possible causes:

* The disks are already clustered and currently Online in the cluster. When testing a working cluster, ensure that the disks that you want to test are Offline in the cluster.

It says me what to do, but how do i do this correctly without interrupting the cluster?
Can I altually do this while the cluster and VM's remains 100% operational?

Thanks in advance,
John

Since windows server 2008R2Sp1 has to be installed on a host operating system, how do you calculate disk space for a small virtual network?

$
0
0

I am building an isolated network to do my labs for exam 70-680. I have an external drive with 439GB free disk space.

I want to install windows 7 enterprise as my host opp sys, then install windows server 2008 R2Sp1 on to it.

so i can create  two virtual machines that will have windows 7 enterprise and windows xp installed .

Do I create one massive virtual drive to hold the entire system platform or allocate as I create each drive from the physical external hard disk?

VM reports larger size than VHD file

$
0
0

I have a VM that was created using DiskToVHD - from a hardware server. Its OS is Server 2008 R2 Enterprise.

The size of the VHD on the host is about 40GB.

If you connect to the VM and go to Disk Management, it reports 139GB.

I understand how this happened - the VHD it was copied from was 139GB. But, I do not know how to fix it.

I did defrag it and then used disk management to shrink the volume, but it only shaved about 13GB.

Would a third-party defrag tool do a better job and allow me to shrink it more? If so, any recommendations?

I am flummoxed on this one. Any thoughts out there? Can this disparity in sizes cause problems?


Cathy Burnham, MCSA


Hyper-V and virtual NW adaptor ?

$
0
0

When I install Hyper-V to Win2008R2, virtual NW adaptor is created and physical NW adapter's TCP/IP v4,v6 setting is unchecked.

Is it common way to configure and use virtual NW adaptor and not to use physical NW adaptor ,when we use Hyper-V ? 


RemoteFX Dual Remote Screens displayed on a 3 Monitor workstation

$
0
0

Hi

I seem to be running into an issue getting RemoteFX running with anything less than all my local screens.

For instance:

My local Workstation has 3 monitors all running at 1280x1024

In hyper-v I add the RemoteFX adapter and set it to 2 screens with a resolution of 1280x1024

When I connect to the Remote session I only get a single monitor displayed and when checking the “Screen Resolution” on the Remote session it shows monitor 2 as detached.

If However I add a 3<sup>rd</sup> monitor to the VM and tick “use all my monitors” I get a fully functioning 3 screen session in the resolution I want with the ability to stream HD Video “impressed by the way” without any problems at all.

I have read the documents several times and the fail back to single monitor “sounds like what is happening” but this should only occur when:

  • If you request a resolution that is not supported, RemoteFX defaults to a single monitor session at a lower supported resolution.
  • If you request a resolution that is higher than the maximum resolution assigned to that virtual desktop, your session will default to a single monitor session at a lower resolution.
  • If you request a greater number of monitors than the maximum number assigned to a virtual desktop, your session will default to a single monitor session.
  • If you request a resolution that is not supported, you will get a single monitor RemoteFX-enabled session at a lower supported resolution.
  • If you request a resolution that is higher than the maximum resolution assigned to that virtual desktop, your session will fall back to a single monitor lower resolution session.  

From this list I can only think that the Client “local workstation” is requesting more Screens than the VM is capable of so failing the presentation back to a single screen, however I thought the Client side Group Policy “Computer\AT\WC\RDS\RDSH\Limit maximum number of monitors [Enabled, 2]””that has been set” was meant to force the client connection to only request 2 screens?

So what am I missing, any help would be great!

Many thanks

James

VM's show "Off-Critical" after replacing a hard drive

$
0
0

I'm running Windows 2012 Build 8400 as a Hyper-V server.(not core)  My boot drive is a 320GB IDE drive which is c:\.  Previously I had all my data on a secondary hard drive.(150GB Sata Raptor).  I can not remember if this was d:\ or e:\.  I had configured Hyper-V to keep all VHD's and library files on the 150GB drive.  The other day I stopped hyper-v and all vm's.. and copied them to c:\backup. 

Next I added a second 150GB Raptor hard drive to my machine booted into the motherboards cheap raid bios menu and configured the two 150gb drives as a raid 0 drive.  Booted into Windows and formatted it as e:\.  After format I copied the contents of c:\backup to the newly formatted e:\ drive.  I opened up the hyper-v settings and confirmed the vhd location was e:\, I set the library to e:\ and also tried e:\Virtual Machines, restarted the machine or just the hyper-v service but all VM's still show Off-Critical.

On the e:\ drive in the root are all the vhd's.  In e:\virtual machines there is an xml file with the guid as the name for each vm.  There is also a subfolder with the name of each GUID that is empty.

I went over:  http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/05/11/why-is-my-virtual-machine-off-critical.aspx

This seems to point at missing xml files.. but they are there.

I went over:  http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/cea95457-e0da-4ce0-baab-0326bdbda1b1

This seems to point at more of an issue with the xml file not correctly linking to the vhd..  I think my issue is more like Hyper-V is looking for the location of the xml files.. maybe by the old hard drives guid as opposed to drive letter?  I'm not sure where to set this though..

In C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines there is a bunch of xml shortcuts of 0 bytes.. if i delete them all all my vm's dissapear in the management console.. if i tried to open them up it would fail because it thought they were on d:\, I changed my e:\ to hd and d:\, modified the vhd and library paths in the hyper-v settings and restarted.. now the VM's show as off.. but when I try and turn them on "could not read or update virtual machine configuration, unspecified error:

Finding VPS base on IP on HyperV

$
0
0
Hi,

We are running a server Microsoft Windows Server 2008 Data Center R2 64bit Edition with Hyper V. We have install and setup VPS inside the Hyper V, however we were wondering how can we identify the VPS in which main node base on the VPS IP only since we do have multiple node.


Example

VPS01 -  with IP 111.1.0.1 is setup on the main node server IP 111.1.0.0

VPS02 -  with IP 111.1.0.2 is setup on the main node server IP 111.1.0.1


Base on the IP only how can we trace the VPS is in which node. Virtualization such as virtuzzo enable us to trace route to the IP and it will route to the main node IP before the VPS IP itself to let us know the VPS is in which main node. However HyperV VPS will direct route to the VPS itself without going through the main node IP

Hyper-V core and UPS

$
0
0
hi,
how can i manage the UPS i have on my Hyper-V server?
when it runs out of power it should also power down the Hyper-V server and its hosted VM's...
or does the management of the UPS has to be run on another machine and then what?

tia,
marc

boot manager is missing problem...

$
0
0

i formatted the c drive and when i am booting new windows from bootable pd, it shows bootmanager is missing...
help plzz

and cd drive is damaged...

Remove Diskette Drive?

$
0
0
Hello all,

I am curious if it's possible to remove the Diskette Drive from Hyper-V.  I have it listed in my VM's hardware list and I'd like to nuke it altogether (along w/ my COM1 and COM2 ports. :) ).

Thank you,
Michael

Physical Machine & Hyper-V Networks

$
0
0

hi all,

I am using windows server 2008 r2 in my physical machine.

i have installed hyper-v role in this machine and have created internal & external virtual network using hyper-v virtual network manager.

i have a VM in Hyper-v which is having DHCP,DNS & AD in it.Now in my physical machine's network connection there are 3 network adapters listed in total.

one Physical NIC ,one hyper-v external network and one hyper-v internal network.

Machine in hyper-v internal network communicates well,hyper-v external network also works fine.

Now my problem is that when ever i enable my hyper-v internal network in the physical machine network connection,Internet in the physical machine goes down so,i have to keep it disabled & because of which my physical machine cannot connect to the internet network.

Transfer of data from physical machine to the internal machine's is a big problem now.Every time i have to create an ISO file to do this.

Please help.

Thanks

Pranay.


Pinging Default Gateway timing out, limited internet access

$
0
0

This problem began on Friday and has become stranger and stranger.

At my company we have two Hyper-V Servers which each host a Domain Controller. All of a sudden these DC's lost the ability to ping certain addresses. Most importantly the internet. They can ping each other and hosts on the network but when pinging their Default Gateway they are receiving time outs. When the pings do connect they are received within <1ms for about three replies then times out. Then again three or four replies and the same.

I have cleared the arp cache and uninstalled and reinstalled the network cards but this problem is carrying on. I have powered off and on the DC's as well as the Switches they are supported by. The problem will be resolved for a short period and then users will begin to randomly lose internet connection. This will then carry on until all users are affected.

The default gateway is on a separate switch to the DC's (this was done today as I originally believed the problem to be the switch) however, this resolved the issue temporarily but then occurred again with the slowly losing internet connection for the office.

Please assist?

Standalone Hyper-V is too painful to use

$
0
0

This is really a complaint not a question.  I've been using the free version of VMware ESXi for development testing for years.  I keep reading about how Hyper-V is catching up to VMware in features.  I was excited about the free stand-alone version and decided to try it out.  I downloaded the Hyper-V 2012 RC standalone version and installed it.  This thing is a trainwreck!  There is not a chance in hell that anyone will ever use this thing in scenarios like mine.  It obviously intented to be used by IT Geniuses in a domain only.  I would really like a version that I can up and running in less than half an hour like esxi.  How the heck is anyone going to evaluate it this in a reasonable manner?  I feel like it was just thrown out there so Microsoft could claim they have a free virtualization server like MS?

Steps for free ESXi.

1. Download from website burn to CD/DVD.

2. Boot from disc, follow steps to overwrite hard drive and install.

3. After reboot, config management IP address.

4. Go back to my desk and open my web browser to Management IP and download client.

5. Install ESX client and start running VMs!

Steps for Hyper-V

1. Download from website burn to CD/DVD.

2. Boot from disc, follow steps to overwrite hard drive and install.

3. After reboot, config management IP address.

4. Scour the internet for server tools that install the Hyper-V management snap-in for Win 7.

5. Install server management tools pack.

6. Go to add/remove and enable the Hyper-V snap-in.

7. Open Hypver-V snap-in and connect TRY to connect to box.

8. Receive generic authentication error message.

9. Spend several hours scouring the internet looking for registry hacks, firewall hacks that actually allow you to connect to a damn hyper-v box!

10. Eventually you come across the website/project. http://archive.msdn.microsoft.com/HVRemote

This site walks you through all the script changes/reboots you have to make to connect to bloody hyper-v! 

Here is what I would prefer

I don't want to download any tools at all.  I just want a HTML5 web server on this box that allows me to do everything I can from the  Hyper-V console and doesn't make me configure anything other than a password.  It would be great if it was themed similar to the new Windows Azure Virtual Machines console.  I doesn't have to provide like a built-in viewer to actually interact with the VMs, I would be happy with a remote desktop style connection.

quickly creating hyper-v guest

$
0
0
playing around with hyper-v 08 r2, I want to be able to create a guest slice quickly. I don't have SC VMM. how can this be accomplished? I don't want to have to build a new slice from scratch ie load on OS and all updates etc, every time someone wants a slice created either for lab or production.

Hyper-V ver. 3 + CSV 2.0 (CSVFS) - still redirected IO mode during VSS backup job?

$
0
0

Hi all,

I am interesting about functionality CSV 2.0 in Hyper-V cluster during VM backup. In previous version there was redirected IO through the CSV LUN coordinator. What about in Hyper-V ver.3? I have read that there will be new Direct I/O mode through RDMA. What does it mean it reality? Will be possible make VM file level and image backup through the host similarly as in VMware vSphere? This solution will eliminate IO bottleneck during SW utilizated VSS backup? I didn't find any detailed information in documentation. Is it possible that some MS engineer will describe this new functionality in detail? I think that this is important improvement and more virtualization architects will welcome deep dive in this solution!

Thanks!!

How to reset/change MAC address for root Hyper-v VM?

$
0
0

Here is what I have done.

1. Default install of Window Server 2008 R2

2. Installed the Hyper-V Role

3.  I have used CloneZilla to make a clone of this server

4.  I have used CloneZilla to install the clone on 2 more servers

5.  I have assigned each of the 3 Hyper-V servers with their own/unique IP address

The problem is that at this point they all share the SAME MAC Address since  they all came from the cloned image.

What I need to know from this forum:

1. How can I change the MAC Address of the root VM for Hyper-V?

2. Can this be done from commandline, like using Powershell?

3.  What is the exact command to use if I want to set my MAC address to 5C-26-0A-20-A8-01?

Thank you all for your help.


Viewing all 19461 articles
Browse latest View live


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