简体   繁体   中英

How to start virtual machine programmatically?

我有2个虚拟机:Windows 10和Windows 10中托管的Ubuntu 10内部虚拟机。如何从c#应用程序启动这些VM?即启动OS等。

You could just call powershell commands from your C# code, and then actually manage your VMs with your powershell code.

Executing powershell in C#: https://blogs.msdn.microsoft.com/kebab/2014/04/28/executing-powershell-scripts-from-c/

Powershell and VMs:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM