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

Need help to install Windows 2003 R2 as guest OS on Windows Server 2008 R2 Standard

0
0

All, 

I have Windows Server 2008 Standard installed. My goal is to install Windows Server 2003 R2 in Hyper-V. From following link I learned "With Windows Server 2008 Standard, I get 1 free running virtual instance on that particular host". 

Here are my questions:

1. I am assuming after reading the article that I can have Windows Server 2003 as Guest OS and no need to buy additional license, correct?

2. Where can I find ISO for Windows Server 2003 R2 since I never had CD/DVD for it.

I really appreciate all the help. 




Windows Server 2012 - Can occasionally not access second virtual hard drive inside a VM

0
0

I run Windows Server 2012 RTM Hyper-V and I can occasionally not access the second virtual hard drive (dynamically expanding VHDX) attached to the VM through the virtual SCSI controller. I can however access the first hard drive that is connected with the virtual IDE controller.

I get the following warning in the event log under “Administrative Events” every 30 seconds when this happens:

  • Log Name: System
  • Source: Storvsc
  • ID: Storvsc
  • Message: “Reset to device, \Device\RaidPort0, was issued.”

I get this error once or twice a week and it has caused serious problems since one of the virtual servers that have this problem is a fileserver and the second hard drive contains all the data.

The only quick solution to the problem that I have found is to force the virtual machine to stop using the “Turn Off” feature since a normal shut down does not work (stops at shutting down the event log or similar) and then start the virtual machine again.

You can also wait for about 30 minutes or longer until the disk for some reason becomes accessible again by itself.

My research into this problem shows that:

  • Only 2 of the 10 VMs running Windows Server 2012 RTM that I have, have this problem.
  • Both these VMs have a second virtual hard drive (dynamically expanding VHDX) that cannot be accessed for 30 minutes or longer.
  • Check Disk of the virtual hard drive shows no errors.
  • The second hard drive is attached to the virtual SCSI controller.
  • I can find no problems at all with the physical storage on the (not related) 4 hosts that I have. The problem exists only in the VMs.

I have now attached the second virtual hard drive to the virtual IDE controller to see if this permanently fixes this problem (i.e. does not happen for at least a week).

Is there something wrong with the virtual SCSI controller or the virtual SCSI device driver that comes with Windows Server 2012 RTM? Does anyone else have this problem?

Server 2012 Virtual Machine BSOD after hardware crash - 4 times

0
0

I have now had 4 Server 2012 VMs fail to boot after a hardware failure in the cluster, requiring the servers to be rebuilt. This has happened in a span of 2 months since we started deploying this configuration and using Server 2012.

This has happened at 3 different locations, meaning it is NOT tied to a specific SAN, switch, or server.
-The first and second failures was when the Hyper-v servers both BSOD at the same time, causing the guests to die. BSOD was due to a network driver issue, and both systems receiving the same bad packet.
-The third failure was in our lab as we were building the cluster prior to production deployment. We had a power outage that killed the SAN, but left the storage and switch running.
-The fourth failure was when we had the switch doing iSCSI reboot on us. None of the Server 2008 machines were effected, but 1 of our 2012 Domain Controllers BSOD and needed to be rebuilt from scratch.

Here's the hardware setup for each location. I have this setup in 15+ locations, the problem has happened in different locations, so it is not specific to one location's hardware.

-2 Cisco UCS servers running Server 2012 Datacenter with Hyper-V in a cluster.
-Nimble storage array for iSCSI volumes.
-HP switch for iSCSI backbone.
-All hardware and drivers are being updated at the time of the build.

The dead systems all share these things:
-Running Server 2012 standard
-Domain controller
-created from the same template VHDX file

At this point I have no faith that any VM will survive any sort of hardware crash or power outage. I can see it occasionally causing a VM to not boot after a crash, but we've had 5 system crashes, and of those 5, 4 of them have caused me to rebuild a Server 2012 guest VM. That's an 80% failure rate.

Anyone else experiencing this level of failure?

I've been doing iSCSI VMs on VMware for 6+ years, seen countless crashes, and never had to rebuild a VM because of it. This is my first go at hyper-v. I'm not trying to bash it and say VMware is better, I'm just amazed at what I'm seeing, as it's not expected.

I've followed all the guidelines of MS and the storage vendor for iSCSI configuration. The problem doesn't appear to be storage related though. The VM will boot, so the VHDx file is not corrupt,it just seems that Server 2012 as a VM is not very crash resilient.

I have some systems in the lab now getting ready to ship, I am going to see if I can BSOD a Server 2012 guest running on local storage.

Deleted a VM in Hyper-V 2012, can't import

0
0

Hi, I just deleted a VM from Hyper-V 2012 by accident (I wanted to delete a snapshot but wasn't paying 100% attention).

I've previously been able to import VMs into Hyper-V2012 that were not exported, however when I try to import this VM the import Wizard lets me select the folder but it doesn't list any VMs ("No virtual machines found").

I had a bunch of static network configurations in the VM so I'd prefer not to create a new VM and copy the VHD as it loses all this information (well, the device gets hidden and a new set of NICs are created with default settings).

Is there a way to get Hyper-V to reimport this VM?


Jason Warren
Infrastructure Architect

Network adapter cannot be found in CentOS 6.3 guest

0
0
  • Host OS: Windows Server 2008 R2
  • Guest OS: CentOS 6.3 (64bit)
  • Drivers for guest: Linux Integration Services v3.4 for Microsoft Hyper-V

Everything looks well except network adapter in guest after I installed the Linux Integration Services v3.4 for Microsoft Hyper-V in the guest OS. For example, mouse can be used perfectly in the guest, only network adapters cannot be found. Actually I added two network adapters, one is normalNetwork Adapter, another is Legacy Network Adapater. But I cannot find eth0 or eth1.

Synthetic FibreChannel Port: Failed to start reserving resources with Error 'Insufficient system resources exist to complete the requested service' 0x800705AA

0
0

Good day -

Receiving this error at random. Running on Dell R720, Qlogic 2562 9.1.10.26, Cisco Nexus, Compellent SAN. We can live migrate with no issues, quick migrate with no issues. However, when doing maintenance, start getting the error message in title. It is deceptive that it does not give much information. After a reboot of host, all is well. Wondering if anyone else has came across this issues or any other pointers.

Общий том кластера

0
0

Конфигурация:

2 одинаковых сервера с :

  • Windows Hyper-V server 2008R2
  • 2 сетевых интерфейса
  • 1 FC 
  • FАailoverCluster

Возникает ошибка в логах каждые 3 минуты на второй ноде:

Источник:failover cluster

код события:5121

Общий том кластера "Volume1" ("Диск кластера 1") более не доступен напрямую с этого узла кластера. Ввод-вывод будет перенаправлен к устройству хранения по сети через узел-владелец, которому принадлежит этот том.Это может привести к снижению производительности. Если перенаправление доступа для этого тома включено, отключите его. Если перенаправление доступа отключено, устраните неполадки связи этого узла с устройством хранения; после восстановления связи с устройством хранения работоспособность ввода-вывода также будет восстановлена.


Windows Server 2012 - Hyper-V - Cluster Sharded Storage - VHDX unexpectedly gets copied to System Volume Information by "System", Virtual Machines stops respondig

0
0

We have a problem with one of our deployments of Windows Server 2012 Hyper-V with a 2 node cluster connected to a iSCSI SAN.

Our setup:

Hosts - Both run Windows Server 2012 Standard and are clustered.

  • HP ProLiant G7, 24 GB RAM. This is the primary host and normaly all VMs run on this host.
  • HP ProLiant G5, 20 GB RAM. This is the secondary host that and is intended to be used in case of failure of the primary host.
  • We have no antivirus on the hosts and the scheduled ShadowCopy (previous version of files) is switched off.

iSCSI SAN:

  • QNAP NAS TS-869 Pro, 8 INTEL SSDSA2CW160G3 160 GB i a RAID 5 with a Host Spare. 2 Teamed NIC.

Switch:

  • DLINK DGS-1210-16 - Both the network cards of the Hosts that are dedicated to the Storage and the Storage itself are connected to the same switch and nothing else is connected to this switch.

Virtual Machines:

  • 3 Windows Server 2012 Standard - 1 DC, 1 FileServer, 1 Application Server.
  • 1 Windows Server 2008 Standard Exchange Server.
  • All VMs are using dynamic disks (as recommended by Microsoft).

Updates

  • We have applied the most resent updates to the Hosts, VMs and iSCSI SAN about 3 weeks ago with no change in our problem and we continually update the setup.

Normal operation:

  • Normally this setup works just fine and we see no real difference in speed in startup, file copy and processing speed in LoB applications of this setup compared to a single host with two 10000 RPM Disks. Normal network speed is 10-200 Mbit, but occasionally we see speeds up to 400 Mbit/s of combined read/write for instance during file repair.

Our Problem:

  • Our problem is that for some reason a random VHDX gets copied to System Volume Information by "System" of the Clusterd Shared Storage (i.e. C:\ClusterStorage\Volume1\System Volume Information).
  • All VMs stops responding or responds very slowly during this copy process and you can for instance not send CTRL-ALT-DEL to a VM in the Hyper-V console, or for instance start task manager when already logged in.
  • This happens at random and not every day and different VHDX files from different VMs gets copied each time. Some time it happens during daytime wich causes a lot of problems, especially when a 200 GB file gets copied (which take a lot of time).

What it is not:

  • We thought that this was connected to the backup, but the backup had finished 3 hours before the last time this happended and the backup never uses any of the files in System Volume Information so it is not the backup.

An observation:

  • When this happend today I switched on ShadowCopy (previous files) and set it to only to use 320 MB of storage and then the Copy Process stopped and the virtual Machines started responding again. This could be unrelated since there is no way to see how much of the VHDX that is left to be copied, so it might have been finished at the same time as I enabled  ShadowCopy (previos files).

Our question:

  • Why is a VHDX copied to System Volume Information when scheduled ShadowCopy (previous version of files) is switched off? As far as I know, nothing should be copied to this folder when this functionis switched off?

List of VSS Writers:

vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2012 Microsoft Corp.

Writer name: 'Task Scheduler Writer'
   Writer Id: {d61d61c8-d73a-4eee-8cdd-f6f9786b7124}
   Writer Instance Id: {1bddd48e-5052-49db-9b07-b96f96727e6b}
   State: [1] Stable
   Last error: No error

Writer name: 'VSS Metadata Store Writer'
   Writer Id: {75dfb225-e2e4-4d39-9ac9-ffaff65ddf06}
   Writer Instance Id: {088e7a7d-09a8-4cc6-a609-ad90e75ddc93}
   State: [1] Stable
   Last error: No error

Writer name: 'Performance Counters Writer'
   Writer Id: {0bada1de-01a9-4625-8278-69e735f39dd2}
   Writer Instance Id: {f0086dda-9efc-47c5-8eb6-a944c3d09381}
   State: [1] Stable
   Last error: No error

Writer name: 'System Writer'
   Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
   Writer Instance Id: {7848396d-00b1-47cd-8ba9-769b7ce402d2}
   State: [1] Stable
   Last error: No error

Writer name: 'Microsoft Hyper-V VSS Writer'
   Writer Id: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}
   Writer Instance Id: {8b6c534a-18dd-4fff-b14e-1d4aebd1db74}
   State: [5] Waiting for completion
   Last error: No error

Writer name: 'Cluster Shared Volume VSS Writer'
   Writer Id: {1072ae1c-e5a7-4ea1-9e4a-6f7964656570}
   Writer Instance Id: {d46c6a69-8b4a-4307-afcf-ca3611c7f680}
   State: [1] Stable
   Last error: No error

Writer name: 'ASR Writer'
   Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}
   Writer Instance Id: {fc530484-71db-48c3-af5f-ef398070373e}
   State: [1] Stable
   Last error: No error

Writer name: 'WMI Writer'
   Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
   Writer Instance Id: {3792e26e-c0d0-4901-b799-2e8d9ffe2085}
   State: [1] Stable
   Last error: No error

Writer name: 'Registry Writer'
   Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
   Writer Instance Id: {6ea65f92-e3fd-4a23-9e5f-b23de43bc756}
   State: [1] Stable
   Last error: No error

Writer name: 'BITS Writer'
   Writer Id: {4969d978-be47-48b0-b100-f328f07ac1e0}
   Writer Instance Id: {71dc7876-2089-472c-8fed-4b8862037528}
   State: [1] Stable
   Last error: No error

Writer name: 'Shadow Copy Optimization Writer'
   Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
   Writer Instance Id: {cb0c7fd8-1f5c-41bb-b2cc-82fabbdc466e}
   State: [1] Stable
   Last error: No error

Writer name: 'Cluster Database'
   Writer Id: {41e12264-35d8-479b-8e5c-9b23d1dad37e}
   Writer Instance Id: {23320f7e-f165-409d-8456-5d7d8fbaefed}
   State: [1] Stable
   Last error: No error

Writer name: 'COM+ REGDB Writer'
   Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
   Writer Instance Id: {f23d0208-e569-48b0-ad30-1addb1a044af}
   State: [1] Stable
   Last error: No error

Please note:

  • Please only answer our question and do not offer any general optimization tips that do not directly adress the issue! We want the problem to go away, not to finish a bit faster!

Corrupt VHD

0
0

Hi There,

I currently run a piece of backup software call Storage Craft Shadow Protect. It is an image backup. We have a virtual server where this is running and now the software says:

"The source volume is corrupt - please run a CHKDSK"

I have run a check disk which found no errors. They assure me that the problem is with the VHD but im not sure what more I can do to repair it?

Thanks

Dave

Advanced ethernet/NIC property settings for Hyper-V hosts

0
0

I just spent the last 2 days pulling my hair out because I had accidentally enabled VMQ on one of the NICs, which completely destroyed the networking performance of my VMs. As a result, I'd like to know what are the best settings for the multitude of options for the NICs in a Hyper-V host. I realize that different vendors have different settings, but most are in common. I also realize that these settings may vary depending on your environment, but I would at least like a starting point. I'm half-tempted to just disable everything, but I suspect that some of these can really help with performance. So, here are some of the settings I'm wondering about:

Common physical NIC settings:

  • Ethernet@WireSpeed
  • Flow Control
  • Interrupt Moderation
  • Jumbo Mtu/Packet
  • Large Send Offload V2 (IPv4)
  • Large Send Offload V2 (IPv6)
  • Locally Administered Address
  • Maximum Number of RSS Queues
  • Priority & VLAN
  • Receive Side Scaling
  • Speed & Duplex
  • TCP/UDP Checksum Offload (IPv4)
  • TCP/UDP Checksum Offload (IPv6)
  • Virtual Machine Queues
  • VLAN ID
  • VMQ VLAN Filtering
  • Wake on Magic Packet
  • Wake on Pattern Match

Physical Broadcom NIC:

  • Receive Buffers
  • Transmit Buffers

Physical HP NIC:

  • 802.3az EEE
  • ARP Offload
  • EEE Control Policies
  • NS Offload
  • WOL Speed

Virtual NIC/Switch:

  • Header Data Split
  • IPsec Offload
  • IPv4 Checksum Offload
  • Large Send Offload Version 2 (IPv4)
  • Large Send Offload Version 2 (IPv6)
  • MAC Address
  • Receive Side Scaling
  • Recv Segment Coalescing (IPv4)
  • Recv Segment Coalescing (IPv6)
  • TCP Checksum Offload (IPv4)
  • TCP Checksum Offload (IPv6)
  • UDP Checksum Offload (IPv4)
  • UDP Checksum Offload (IPv6)
  • Virtual Machine Queues
  • Virtual Machine Queues - Shared ... (can't read the rest)
  • Virtual Machine Queues - VLAN Id ...

DHCP and Private Virtual network = APIPA (Hyper-V 2012)

0
0

I have a Desktop on which 2012 has been installed.

This desktop has no network and i prefere to remain it that way since it is only used for testing purposes.

So i've created some VM into a Private network but none of the VM does receive any valid ipadress.

Who provides ipadresses when the Private network is choosen ? and how can it be setup ?

Thanks for your help.

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.

2-node 2008R2 hyper-V HA cluster migrating to 2012 Hyper-V HA cluster with a 3rd node on the same ISCSI SAN

0
0

I would like to know the best way on doing an upgrade\migration from a 2 node HA cluster with 2008R2 to 2012. What I need to have done is to place the new 2012 hyper-v server as the initial server and then migrate the guests to the new 2012 server. Which would create a single node cluster. I would then want to do a clean install of 2012 server on the other 2 nodes and join them to the cluster. The only problem is that we only have one ISCSI SAN that we are currently using with the 2 node cluster. Would I need to recreate the cluster to allow 2012 to join? If not can I connect to the same cluster with all of the 2012 and 2008r2 nodes connected?

These node servers each have 1.5TB of storage that is local and it would accommodate the move of the guests for the time being. Would it be wise to move the guests locally off of the SAN then move them back when all is ready and in place?

Should I reformat the CSVs drives so that ReFS would now be in effect on the SAN?

I know that the process that I have in place will remove my ability to Live migrate until the other nodes are in place but I really have no choice.

I am trying to find the best way to accomplish this.

Thank you for your advice.


Live Migration Fails at 14%

0
0

Afternoon

****Background Info ******

We have currently carried out an upgrade on our Left Hand P4000 SAN. We updated the HyperV Host Servers and SAN using SPP 2013.020.2013. After we carried out the initial upgrade we realise that the Failover Cluster manager was unable to Communicate with the Witness or the Cluster Shared Volumes.

We logged a call with both HP (SAN Providers) and Microsoft Premier Support. After a lengthy discussion with both parties we came to the realisation that the issue was being caused by the DSM for MPIO. On Microsoft recommendations we removed the HP DSM for MPIO software from the 4 SAN Nodes, after removing the software from the First Node we noticed an immediate improvement as we were able to talk to certain Shared Volumes and the Witness. Once the Software had been removed from all Nodes are SAN appeared to be fully functional.

At this Stage both Microsoft & HP recommended that we install the latest version of HP DSM. So we installed “HP StoreVirtual DSM for MPIO Installer AT004 10503” this brought it upto version 10.0.0.1486.1. The San appeared to remain stable, we were able to talk to the Witness, all CSV’s and we spot checked Live Migrate, Quick Migrate and Move VM to another Node. All appeared to work at this point.

***** Issue*****

The following day we carried out a full health check to confirm that all servers could migrate using all 3 methods. During our testing we discover several of the VM’s were unable to migrate from a particular Node2. We were able to migrate VM’s onto this node but not off it. Several other VM also seemed to have issues migrating onto other Nodes.

The VM’s affected have multiple OS, live in different CSV’s and are managed by different Nodes. Although these VM’s are unable to Live Migrate the majority of them will quick migrate or can be moved to another node.

*****Testing******

During are testing we have tried several tests to see if we can stop the potential issue. None of which has caused any difference when live migrating

  1. Restarted the HyperV Host Server
  2. Re installing the virtual quest services
  3. Remove the network connection from the VM
  4. Remove the Virtual Network Adapter
  5. Readded the Virtual Adapter (Synethic Adapter)
  6. Re created the Live Migration Team

Questions

  1. Has anyone else come across these issues after applying latest SPP version
  2. Is there any best practice methods for troubleshooting this issue
  3. Which is the best DSM for MPIO for a Left Hand P4000 SAN
  4. We are thinking of reverting back to the Microsoft DSM for MPIO, is this likely to cause any additional issues?
  5. What is the best way to revert back to the Microsoft DSM for MPIO (one Host Server at a time, or all at the same time?)

At this point it might be relevant to mention that we have set up a HP Team for Live Migration. All Teams have been set identically, same NICs (one onboard nic and one external nic) all set with LACP, same naming conventions. We have noticed that when we try to migrate from Node2 the Network Migration Team traffic fluctuates between 0.1% & 0.3% of the Nic Capability, while on other Host Servers it transfers at 35-40%.

How to create the answer file to automates the only package installation (.Net3.5) during windows setup leaving windows setup with attended mode.

0
0

The .Net3.5 is on demand feature in Hyper-V 2012, hence it has to be installed with the help of  internet connection to MS servers or installation media. 

How to create the answer file to automates the only package installation (.Net3.5) during windows setup leaving windows setup with attended mode.

I am looking answers to following questions

  1. How to create the answer file (unattend.xml) file to automates only .Net3.5 installation not OS installation. 
  2. Where should i place the unattend.xml

Luns are unavailable

0
0
I am having a EMC VNX storge and having HP C7000 enclosure of 16 bays, I have been assigned few luns from EMC storage to one of the 3 servers which are under windows cluster, after assigning the luns i can see the luns only in  second server and other first and third servers are not unable to see the luns. If i restart the first server and restart the second server the luns are seen in second server and disappears in first server and if the same i do like restart the second and then third the luns will be available in third server and disappears from second. Can anyone guide me how to resolve this as i need to see the same luns in all the 3 servers. Awaiting for your reply.

How to get list of all network adapters of Virtual Machine with C# ?

0
0

Hi ,

I am facing an issue with a virtual machine in Hyper-V. The setup is as mentioned below:

 

  1. I have a virtual machine (named HV4), it contains Windows 2012 Server. Hyper-V Manager is enabled on this machine.
  2. There are more than one virtual machines under Hyper-V Manager (HV4 nested) . All machines contains Windows 2012 Server.
  3. All the machine are connected with External switch and assigned the IP 192.168.x.x. series.

 

 

The description of the issue is as below:

Now I want to get list of names of all network adapters of each Virtual Machine like;  NetConnectionID  (Local Area Connection1, Local Area Connection 2 etc.. ) using C#,WMI (Windows Management Instrumentation) withusing System.Management;

 

I am using CIM_NetworkAdapter Class (http://msdn.microsoft.com/en-us/library/aa387931%28v=vs.85%29.aspx).

 

  1. When the name of the virtual machine in Hyper-V Manager and Computer name of that machine is same then its working fine.
  2. If I change the Computer name of virtual machine then I get an error Message : “The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)”. But it works fine in theabove case (i.e. case 1).

 

The used code is given below:

 

private void GetNetAdapterInfo()

        {

            string strVirtualMachineName = string.Empty;

            StringBuilder strEthernet = new StringBuilder();

            try

            {

                //create a management scope object

                ManagementScope scope = new ManagementScope("\\\\VM2008R2\\ROOT\\cimv2");

                //create object query

                ObjectQuery query = new ObjectQuery("SELECT * FROM CIM_NetworkAdapter");

 

                //create object searcher

                ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query);

                //get collection of WMI objects

                ManagementObjectCollection queryCollection = searcher.Get();

                //enumerate the collection.

                foreach (ManagementObject m in queryCollection)

                {

                    // access properties of the WMI object

                    foreach (PropertyData propNet in m.Properties)

                    {

                        strEthernet.Append(propNet.Name + " :\t" + propNet.Value);

                        strEthernet.Append("\n");

                    }

                }

 

            }

            catch (Exception expGetNetAdapterInfo)

            {

                MessageBox.Show(expGetNetAdapterInfo.GetBaseException().ToString());

            }

            MessageBox.Show(strEthernet.ToString());

        }

Please help me in this regard.

Thanks & Regards



Alok kumar sharma

Virtual Storage Error Count report large number

0
0

Hi,

I've win 2012 std with hyperv role on it.

i've setup a virtual machine with 1 IDE disk and 1 SCSI disk all VHD on local disk.

when i monitor the server with veeam one it report that the Virtual Storage Error Count in large (9) on the SCSI driver even if this drive is not loaded at all.

why is that?

How to add passthrough disk in Windows 2012 hyper-v cluster?

0
0

I'm having problems with passthrough disks in a Windows 2012 Hyper-V cluster. 2 nodes both are Windows 2012 datacenter. I can add the disk into the cluster no problem. Run validation and everything is ok. If the disk owner is node1, I can add the disk into a virtual machine that is on node2. I get an access denied error when I try to add the disk into a virtual machine on node1. if I move the disk owner to node 2, then I can add disk into virtual machines on node1 but same error on node2.

I tried to search an official article on how to add a passthrough disk in Windows 2012 hyper-v cluster but it seems there is none. All the links are about how to do it in Windows 2008 R2. Anyone know where could be wrong?

The passthrough disk is via iSCSI. I added the disk to the 2 nodes first, make it online, initialize it, then make it offline, then add it into the cluster.

 Detailed error is like this:

Hyper-V virtual machine management service account does not have permission to open attachment (followed by the disk path). error: general access denied error(0x80070005)

Hyper-V Best practice regarding snapshots

0
0

I'm looking for some advice.  

I have inherited a Hyper-V server that is used for testing purposes.  Generally when someone goes onto the machine they will take a snapshot, carry out their testing and then revert.  These snapshots and filling up the disk space. 

  • Is there a way I can control who has the ability to take a snapshot?
  • How can I set-up a base-image for the machine that users can revert to when they are finished testing?  (Thereby changing the process to revert, perform testing and then revert when finished).
  • Are there any other best-practice tips I should be aware of for this type of environment?

Thanks in advance.

Alan

Viewing all 19461 articles
Browse latest View live




Latest Images