0
votes
0answers
35 views

Unable to access webservice running on virtual machine in windows phone emulator

I am trying to develop a windows phone application which will access the webservice running on my hyper v ubuntu box. but my windows phone emulator is unable to run that webservice while my host ...
0
votes
1answer
28 views

How can I call the FailoverClusters PowerShell module when working from C#?

I’m trying to call a PowerShell script from C#, which is usually very straightforward, except that for some reason the commands in the FailoverClusters module can never be found when calling from C# ...
1
vote
1answer
44 views

Connecting a Windows Phone 8 Emulator to Host machine

I've recently upgraded from VS2010 to VS2012 and the emulator is now a virtual machine, which means that my previous calls to the service running locally which were accomplished using ...
0
votes
2answers
141 views

Windows 8 Hyper-v run script on guest

I am looking to replace a Virtual Box solution with MS Hyper-V since I have had many problems with non-Reproducible issues in my automated test-suite using Virtual Box. I have a Windows 8.1 computer I ...
0
votes
0answers
185 views

Reading RAM and Disk utilization for VM's in Hyper-V using WMI Classes

I am new to WMI Classes, I want to read CPU, RAM and Disk Utilization for different Virtual machines on Hyper-V using WMI Classes in C# code. CPU Utilization: Able to get it by using properties ...
0
votes
1answer
90 views

Getting error 32775 while applying latest snapshot on HyperV VM using WMI

I am constantly getting error 32775 (Invalid state for this operation) when I try to revert my VMs to latest snapshot using WMI. I am using the following code (which is provided on MSDN website by the ...
0
votes
1answer
339 views

How to run the Windows Phone Emulator without Windows 8 Pro?

I am trying to run my application on the Windows Phone 8 emulator on my laptop running Windows 8.1. When I start the emulator, I get this message: The Windows Phone Emulator requires Hyper-V. Your PC ...
1
vote
1answer
1k views

No option to enable Hyper-V in my BIOS settings

I am new to Windows Phone 8 application development. I installed SDK 8.0. When I run my application, it shows an error telling me to enable Hyper-V. While searching, I found this MSDN documentation ...
0
votes
1answer
434 views

Windows Phone Emulator Won't Start, NetBT error

Windows Phone Emulator can not start. When I try to start emulator say "Windows Phone Os is Starting". I looked the Computer Management/Event Viewer. When I try to start Windows phone Emulator, in the ...
0
votes
1answer
393 views

Applying a snapshot in Hyper-V WMI V2 from C#

I am trying to replicate the following PowerShell in C#: # Details from here are not particularly important but needed for full sample $vms = gwmi -namespace "root\virtualization\v2" ...
1
vote
1answer
267 views

what is virtual-key code for ENTER Key?

I have implemented a remote hyper-v management class trough windows WMI but what is keycode for ENTER key. The method is "PressKey" and the class is Msvm_Keyboard class in Hyper-V WMI Classes. sample ...
0
votes
1answer
163 views

Connecting C# to a Named Pipe from Hyper-V Permissions

I'm trying to write a very simple client in c# for a named pipe created by hyper-v on windows 8 pro. The hyper-v named pipe is connected to the com port of a virtual machine. The code i have written ...
0
votes
2answers
742 views

Call a specific version of PowerShell from C#

I'm trying to use the Get-VM Cmdlet called from C# on a Hyper-V host. Obviously, the according PowerShell module Hyper-V has to be imported first. The import fails, however - apparently because the ...
1
vote
1answer
814 views

Create a new Hyper-V VM (using WMI) with specific hardware

I'm wanting to create a new Hyper-V VM with a determined amount of RAM, network card, number of processor cores, and attach a VHD file to the IDE controller. The problem is that the ...
7
votes
1answer
363 views

Socket exception on Hyper-V machine

Recently, our entire QA environment moved from VMWare to Hyper-V virtual machines. One of our applications sends UDP packets to a multicast cloud by a rate of 20K packets per second. While that ...
0
votes
1answer
591 views

c# remote powershell Hyperv cmdlet start-vm -Vm

i am trying to pass the VM object of that powershell command: Start-Vm -Vm <VirtualMachine> I would like to do this by c# code. So i create a remote runspace and so on: class ...
2
votes
0answers
379 views

Massive performance problems running applications in hyper v

Update: Se bottom: Added CreateArticleRelations code example. Ok, this is a tricky one. I am experiencing a massive performance problem in hyper-v when it comes to preview and production ...
0
votes
1answer
322 views

Hyper-V RequestStateChange returns undocumented value

I'm attempting to programmatically start a Hyper-V VM using C#'s System.Management API. I've had great success creating and configuring the VM, however starting the VM has proven elusive. I get a ...
0
votes
1answer
206 views

how to get WMI events?

How to list the WMI events registered to Msvm_ComputerSystem class. I have created a vm and have an event to registerpoweronEvent. now i want to list the events registered. please help in this.
0
votes
1answer
504 views

Shutdown Hyper- v virtual machine in c# using WMI

I want to close the virtual machine hyper v 2008 server using my C# application and then again restart after the intermediate process gets complete. I dont know how to use WMI in C#. Any Code snippet ...
0
votes
1answer
2k views

How to return an object from Powershell to c# [closed]

I'd like to return an object from Powershell to C#, so c# uses the object inside the C# code to call any method and get a property from the object. For example, I have a powershell script which gets ...
1
vote
0answers
61 views

bandwidth related queries [closed]

I am working with Hyper-V(with scvmm).I wanted to get the total bandwidth usage of hyper-v VM that is been used for a particular period(should specify it like july 1st to july 10th) using wmi or ...
1
vote
0answers
74 views

Bandwidth usage relates queries

We wanted to get the bandwidth usage of hyper-v i.e total amount of data moved in and out of the network and it should calculate it according to the specific period(for example like from specific ...
0
votes
1answer
1k views

Restore and back up of vm in azure

I want to take the backup and restore vm in azure.I could able to get the backup of vm as xml file, store it in the local machine and restore it back to windows azure successfully. But now my ...
2
votes
0answers
442 views

C# WMI hyper-v add VHD to “IDE Controller 0” after creation

I am able to create a VM in Hyper-V called "LON-DEV-01", but now I want to add the VHD "D:\Program Files\Microsoft Learning\10175\Drives\LON-DEV-01.vhd" to IDE Controller 0 as the main drive. I have ...
1
vote
1answer
389 views

what happens on port 2179?

Is there any way to code my own console client for hyper-v guest machines ? I don't want to connect to guest using RDP. I would like to do it in same way Microsoft is doing it. What I've found so far ...
3
votes
0answers
311 views

How do you modify an Msvm_VirtualSystemGlobalSettingData class in C#?

I'm trying to modify the AutomaticStartupAction (and shutdown) value in a given VM. I've got some code written for it, but the job always fails. I can show the sample code, but I'd like to know in ...
1
vote
2answers
1k views

How to get virtual machine state on Hyper-v using Delphi or C#

Is there any component or class that allows me to get the status of all VMs running on Hyper-v? I want to be able to list all vms and their state (stopped, running, paused, etc.). I know microsoft ...
1
vote
1answer
1k views

Setting Hyper-V snapshot's name programmatically

I'm creating an Hyper-V snapshot with a C# program: private static bool Snapshot(string vmName, string snapshotName) { var result = false; var scope = new ...
2
votes
1answer
491 views

How to reuse Get-VMMServer connection?

I am writing a C# application whose Main() will start multiple threads, each thread firing Get-VM commandlet. I am using RunspacePool for this. Currently each thread has to first fire Get-VMMServer ...
1
vote
0answers
533 views

How to eject a Virtual Floppy drive of a Virtual Machine in Hyper-V programmatically using WMI and C#?

I am trying to eject/remove a loaded *virtual floppy drive* (VFD) of virtual machine in Hyper-V using Hyper-V WMI API and VB.Net/C#. I perform this operation when Virtual Machine is turned of but i ...
2
votes
1answer
527 views

How to change gateway, subnet of a network adapter of a virtual Machine inside HyperV via WMI?

Helo all, My Question is: 1. How to set Subnet Mask , DNS address and Gateway address of network adapter inside a virtual machine in hyper-v programatically via WMI and C#? Note: I am successfully ...
1
vote
1answer
313 views

Where to start with backup/restore of Hyper-V in C#?

Where one would start to learn how to interact with Hyper-V thru C# to able to backup and restore virtual machines (preferably with snapshots and everything else related to backup)? I tried finding ...
1
vote
1answer
966 views

Hyper-V WMI: Import virtual machine and create snapshot

I'm using the Hyper-V WMI Provider to import virtual machines in Hyper-V, specifically using the ImportVirtualSystemEx method of the Msvm_VirtualSystemManagementService class, largely using the C# ...
1
vote
1answer
1k views

How do I enumerate network adapters on a Hyper-V guest using WMI?

I've got a Hyper-V host, with several guests, each with one or more network adapters. How do I enumerate the network adapters on those guests? Specifically, I'm looking for a particular guest, given ...
2
votes
2answers
4k views

Programmatically attaching a VHD to a remote Hyper-V VM

Using Hyper-V Manager, I can connect to a remote VM host, go to the settings of a VM, and add an existing .VHD file as a new hard disk. If the VM host is running Server 2008 R2, and the disk is being ...
10
votes
4answers
7k views

Manipulate Hyper-V from .NET

Are there any means for a .NET application to create, delete, start, and stop Hyper-V virtual machines? I would like to create an automated means of starting and stopping (the create & delete are ...