简体   繁体   English

如何以编程方式启动虚拟机?

[英]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. 您可以只从C#代码中调用powershell命令,然后使用powershell代码实际管理您的VM。

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

Powershell and VMs: Powershell和VM:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何以编程方式将文件传输到同一网络上的虚拟机? - How to transfer files to a Virtual Machine on the same network programmatically? 如何以编程方式将运行c#应用程序的本地计算机中的文件(.csv)保存到虚拟机 - How to programmatically save files (.csv) from local machine running c# application to virtual machine 以编程方式在远程计算机上启动Selenium Hub - Start a selenium hub on a remote machine programmatically 使用C#代码或.net以编程方式在Windows Azure中创建虚拟机 - Create a virtual machine in windows azure programmatically with C# code or .net 如何在Windows计算机上以编程方式登录 - How to logon programmatically on a Windows machine 如何验证Azure虚拟机用户名和密码? - How to validate Azure Virtual machine username and password? 如何在 Windows 机器上制作虚拟扩展屏幕? - How to make Virtual extended screen on windows machine? 虚拟机如何执行指令? - How does a virtual machine execute instructions? 如何检查我的Windows Server是虚拟机还是物理机 - How to check my windows server is virtual machine or physical machine 如何以编程方式在虚拟ListView中显示底部行 - how to programmatically display the bottom row in virtual ListView
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM