I would like to open my VM in C# program (on button click)
i had two options :
Code: Select all
IVirtualBox virtualBox = new VirtualBox.VirtualBox();
foreach (IMachine machine in virtualBox.Machines)
{
if (machine.Name == "LinuxMint")
{
virtualBox.OpenMachine();
}
}
Code: Select all
System.Diagnostics.Process.Start("D:\\VirtualBox\\VBoxManage.exe",@"startvm LinuxMint");
And the second one is that is there any way to start some proces on that VM using the 2nd solution?
For example, after starting this LinuxMint i want to open proces "vsdesign.exe" and then go >File>Modify>Open