Start host process from within guest OS

I am using VMWare Workstation 10.
Some of my vm's are dedicated to compiling code using CruiseControl.NET.
What I am attempting to do is add a step that automates testing a completed setup on several clean virtual machines. From what I can see, the guest OS will be required to 'announce' to the host OS that a build has completed and then launch a process to revert the virtual machines, start the virtual machines and then launch a process that does the following:
Copy the setup.exe from a known location to a directory on the virtual machine
Launch the setup.exe with parameters from a command line
Wait for setup.exe to finish
Launch an automated testing tool to validate basic functionality of the application.
Wait for automated testing to complete
Shut down the virtual machines
Wait for next successful build
I am attempting to work on this problem using vmrun.exe within a powershell script. With this script I can successfully revert virtual machines, start and stop virtual machines.
What I am trying to work out is how to pass data from CruiseControl.net in the guest operating system to the host operating system. So I am turning to this community to see if anyone here has any ideas?
I have not read of any ideas of communication from the guest to the host while there is a 'host' <yeah, pun is intended> of information of sending info from the host to the guest. Note that the guest OS does not have VMWare Workstation installed, nor is it desirable to do this.
My initial thoughts, even as I write this question, is that all of the guest OS build machines map a drive to the host. At the end of of a successful build the setup is copied to a directory and a sentinel file is updated with information. The host OS will have CruiseControl.net installed and will monitor for file changes for the sentinel file. When changed then it will start the automated testing process.
Is there a better way to accomplish this goal?
I appreciate any suggestions.
Sincerely,
Dan Lee | Release Engineer

>I guess I was expecting VPC to work like Remote Desktop, where you would automatically see the host drives listed in Windows Explorer ("C on hostname", "D on hostname", etc).
It really should, but there's a RDP update that messes up this
functionality.
>Edit 2: I've just set up a mapped drive, but it seems very unreliable. It gets slower and slower as I "drill down" through folders on the host, and right-clicking a file to copy it to the guest causes Windows Explorer to hang, and never
shows the context menu. I've tried uninstalling IS from the guest and re-installing/enabling it, but it made no difference. Thoughts?
Turn of all TCP and UDP offloading in the NIC properties on the host. Not
all NIC's are fully compatible on that feature.
Bob Comer Microsoft MVP -- Hyper-V

Similar Messages

  • Cannot see host drives from within guest OS

    My host PC is Win7 64-bit, and guest PC is Win7 32-bit. I've installed and enabled Integration Services and ticked the relevant resource sharing options under "Integration features". Should I expect to see the host's drives appear in the guest's
    Windows Explorer? Or am I missing something?

    >I guess I was expecting VPC to work like Remote Desktop, where you would automatically see the host drives listed in Windows Explorer ("C on hostname", "D on hostname", etc).
    It really should, but there's a RDP update that messes up this
    functionality.
    >Edit 2: I've just set up a mapped drive, but it seems very unreliable. It gets slower and slower as I "drill down" through folders on the host, and right-clicking a file to copy it to the guest causes Windows Explorer to hang, and never
    shows the context menu. I've tried uninstalling IS from the guest and re-installing/enabling it, but it made no difference. Thoughts?
    Turn of all TCP and UDP offloading in the NIC properties on the host. Not
    all NIC's are fully compatible on that feature.
    Bob Comer Microsoft MVP -- Hyper-V

  • Starting notepad.exe from within Java app?

    Is it possible to start notepad.exe from within a java app to display a log file (for instance)?

    search the forum for Runtime.getRuntime()

  • Start BPM Process from ABAP with another User as GUEST

    Hi all,
    i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin.
    My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calling the webservice should be my own user instead of GUEST.
    Thanks in advance.
    Regards,
    Christoph

    the last reply is regarding the configuration at consumer side.
    of course you have to configure at the service provider side to enable the logon ticket as acceptable authentication method.
    I checked at my side, i found the the service for triggering bpm is already configured to use id/pwd and logon ticket as authentication method.
    you can check in this way,
    CE nwa-> SOA  Management->Application and Scenario Communication-->Single Service Administration
    find your service, if you haven't assign any profile to your service, there will be only one configuration generate by system
    you can edit this configuration.
    go to configuration tab, select the endpoint, select security tab in the bottom tab list.
    change the setting there.
    Edited by: John Wu on Sep 10, 2010 7:29 PM

  • Start BPM process from ABAP report. Need some investigations.

    Hi there!
    I have to start a BPM process from ABAP report. I found an article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10d75b45-7fef-2b10-bc8e-c6012e0a9457?QuickLink=index&overridelayout=true and have done everything it describes but the process doesn't start.
    What I've done:
    1) Created a service proxy in SE80.
    2) Created a logical port in SOAMANAGER.
    3) Write a code to start a WebService in ABAP Report.
    But when I start a program nothing happens, no errors.
    What analysis I did:
    1) See logs and traces in SOAMANAGER - there is nothing appears after I start the report.
    2) Tried to test connection to my WebService in SM59 - the connection works, but it use a POST method instead of GET:
      Error: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    But I think it is OK and from the report it use a right method.
    3) Tried to delete a logical port - the error of communication problem appears. So it means that all settings are right.
    4) No logs in NWA logs
    My thoughts - if there is not any errors and no result, it can be because the user authorization. E.g. it tried to start a process by a user who doesn't have SAP_BPM_SuperAdmin role. But I can't find a way how to check what really happens. So I want to ask for a help, colleagues:).

    Dear Kirill Zhuklinets,
    Can you share your solution as i am facing the same error while trying to consume BPM webservice from SRM ECC
    Error Message from SRM ECC :
    Exception occurred in communication framework:Error in HTTP Framework:405Method Not Allowed
    Log from BPM Web service
    Error: process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    Please share your solution..
    Regards,
    Yasin

  • Start GP Process from VC using Web Service with parameters

    Hi,
    II´m trying to instantiate a GP process from a Vc iView using a Web Service; I always used Instantiation via URL but using this method I don´t have any "return" data from GP saying "Ok - The process started succesfully".
    The questions are:
    1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
    2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
    Best regards,
    Marco.

    1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
    A: Yes. You can send input parameters to the service through WS.
    2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
    A: Yes. The return message can be added to the WS. It depends on how do designed the WS.
    -Ashutosh

  • How to start a browser from within a java program?

    I want to make a help file for my java program and want to run the browser from the menu of my program.
    How can I start my browser from my program?
    A small code will be helpful.
    Thanks.
    Niteen

    This should work on Windows without having to know where the browser is located. See http://www.javaworld.com/javaworld/javatips/jw-javatip66.html for more details
      public static void viewHtml(URL url, boolean fixHtmlExtension){
          String cmd = "rundll32 url.dll,FileProtocolHandler " + url.toExternalForm();
          if (fixHtmlExtension){
            //There is a bug in rundll32. For http requests, it doesn't like .html or .htm extensions,
            //but replacing the 'm' with '%6D' works. 
            //This fix is not needed for file requests.
            if (cmd.endsWith(".htm")){
              cmd = cmd.substring(0,cmd.length()-1) + "%6D";
            else if (cmd.endsWith(".html")){
              cmd = cmd.substring(0,cmd.length()-2) + "%6Dl";
          Process process = Runtime.getRuntime().exec(cmd);
          try{
            process.waitFor();
          catch(InterruptedException e){

  • Repairing start up disk from within disk utiltity no longer an option

    When I first upgraded to 10.4, I could repair the startup volume from within disk utility, now, that button is greyed out and no longer an option!
    Any thoughts?
    thanks

    Methinks you are mistaken. You could not verify or repair the boot volume using Disk Utiltiy prior to 10.4.3. In 10.4.3 and later, you can verify it, but need to enable journaling. See <http://docs.info.apple.com/article.html?artnum=302672> for details.

  • [Solved] Start a background process from within a loop?

    What I'm trying to do is this:
    for i in $(seq 3); do
    sleep $i &
    done
    but bash doesn't like the one-line version:
    [foutrelis@foutboxd ~]$ for i in $(seq 3); do sleep $i &; done
    -bash: syntax error near unexpected token `;'
    Halp?
    Last edited by foutrelis (2008-09-20 17:23:23)

    The '&' after the sleep command is the termination of the command, so you don't need the extra ';'
    $ for i in $(seq 3); do sleep $i & done
    See the section "Lists" under "SHELL GRAMMAR" near the top of the bash man page.
    Last edited by jcasper (2008-09-20 17:19:13)

  • Accessing VirtualBox host drive from IIS guest OS

    Hi there,
    I have a setup with Windows 7 as the host OS that is running VirtualBox (4.2.18). The guest I am running is using Windows Server 2012 as the OS. The guest OS has its own domain, completely separate from the host.
    For development purposes I want to configure a dev web app that pulls its files from the host and runs them in an IIS process within the guest. How do I proceed?
    I really would like to use the VirtualBox's UNC path \\vboxsrv\d_drive but I am getting the following error from IIS:
    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.
    One solution as a workaround that I have found is creating a new shared drive, e.g. d$ on the host, add an account (e.g. "virtualbox") on host and guest, and configure this account as the apppool-account and as the connection-account with cleartext
    credentials to the physical path of the webapp. This is a lot of work. With this setup I experience delays of 5 seconds, that I guess are due to the authentication that is always taking its time.

    Hi,
    It seems like that the user account you're using for your app pool doesn't have rights to the web site directory, so it can't read config from there.  Check the app pool and see what user it is configured to run as.  Check the directory and see
    if that user has appropriate rights to it.  While you're at it, check the event log and see if IIS logged any more detailed diagnostic information there.
    Please post in the IIS forum for further analysis:
    http://forums.iis.net/
    Regards,
    Yan Li
    Cataleya Li
    TechNet Community Support

  • Starting one process from another

    Hi,
    I want to wite a program which starts 2 java processes.
    One way is like , start.bat is a batch file , which contains two commands as ,
    start.bat
    java start_program_1
    java start_program_2
    Use exec command to run batch file.
    I tried doing this , but batch file is not called.
    Can any one help me out.
    Thanx.

    I understand now but, still, how can you be sure there's a problem with the command prompt?
    Let me try to explain better:
    When Runtime.exec() executes it returns a new Process object.
    This Process object does not use the same streams as your calling program. Instead it uses three new streams which can be obtained by calling Process.getInputStream(), Process.getOutputStream() and Process.getErrorStream(). (I believe the names are from the caller's point of view, i.e. in is actually out and vice versa) Before you can conclude there's something wrong with your system please try to read data from these streams.
    It is normal not to see anything in System.out and System.err. They are not being used at all by the called process!
    Finally be sure your caller process waits for the subprocess to finish before it terminates. Use Process.waitFor()

  • Start Unix process from oracle

    Hi All :) ,
    I'm started subj from Java stored procedure , but unsuccessfully :(
    ls -la zzz :
    zzz* rwxr-x--- test test ;
    User oracle is included in group test and has right on directory with zzz .
    When zzz hat sgroup flag : zzz* rwxr-s--- , then ok .
    I cann't undestand , why ?
    With best regards :)

    Hi Slava,
    If you haven't seen the following two web pages already, perhaps they
    can help you?
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1135912::NO::F4950_P8_DISPLAYID,F4950_P8_B:150612348067,Y
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1135912::NO::F4950_P8_DISPLAYID,F4950_P8_B:952229840241,Y
    Good Luck,
    Avi.

  • Starting another process from Automated Activity

    Hello,
    is it generally possible to trigger the instantiation of another process via an automated activity?
    I ask this question, because I already tried this and the service call did execute properly but the second process instance does not start. (Even though it starts when triggered vie the Webservice Navigator.)
    Thank you,
    Kevin

    Thank you for the reply,
    I just added a Provider System for my local system and assigned it to the Service Group I am using and now it works.
    Kevin

  • Starting a search from within a report

    Hi to everyone!
    Is it possible to start the content area wide (or portal wide) search from a report that is written in portal. I want to have a link on (e.g. a number) and then if I click on that number portal shall search for all the documents that have this number inside (intermedia as well).
    Please let me know
    Henrik

    Hi,
    maybe this will help you
    http://dstas.blogspot.com/2010/05/master-view-search-form-display-only.html
    Regards,
    Dimitris.

  • Starting new threads from within shutdown hooks

    I'd like to discuss this statement from the java 6 API:
    "A shutdown hook is simply an initialized but unstarted thread. When the virtual machine begins its shutdown sequence it will start all registered shutdown hooks in some unspecified order and let them run concurrently. *When all the hooks have finished it will then run all uninvoked finalizers if finalization-on-exit has been enabled. Finally, the virtual machine will halt*. Note that daemon threads will continue to run during the shutdown sequence, as will non-daemon threads if shutdown was initiated by invoking the exit method. "
    Now, my question is this: If I have a hook that starts a new non-daemon thread and then goes on to complete it's run() method, will the JVM finalize and halt? Or will it wait for my new thread to complete as well?
    I trust the specification, and believe that the JVM will either not allow me to create the thread or will finalize and shutdown even if it is running. However it's not explicitly stated anywhere, and I think that it's a hole in the documentation.
    I'm going to write a test case for this now. But chime in if you have thoughts.

    This is what happens if you start a new thread from a shutdown hook and do not wait for it to finish:
    public class ShutdownTest {
        private static class Shutdownhook extends Thread{
            public void run() {
                System.out.println("Shutdownhook starting");
                Thread t = new Thread(){
                    public void run(){
                        System.out.println("Thread successfully started");
                        try{ Thread.sleep(5000); }
                        catch(Throwable e){ System.out.println("Throwable from sleep: "+e); }
                        System.out.println("Thread successfully finished");
                t.start();
                //try {t.join();} catch (InterruptedException e) {}
                System.out.println("Shutdownhook completing");
        public static void main(String[] args) {
            Runtime.getRuntime().addShutdownHook(new Shutdownhook());
            System.out.println("Exiting from main()");
            Runtime.getRuntime().exit(0);
    Exiting from main()
    Shutdownhook starting
    Shutdownhook completing
    Thread successfully startedHowever, as you might expect, if you join() or wait for the thread's isAlive() to return false, you will be able to complete the thread.
    I'll leave someone else to figure out if that new thread gets finalized and if finalizers on exit is on, what happens. Mostly because it doesn't matter for my purposes.
    Enjoy

Maybe you are looking for

  • Java issue with web analysis

    Hi, Web analysis is taking too long to start on client machines. I had this issue a couple of years ago with java 1.4.10. hyperion came back with a solution to increase the memory java uses on both the server and the client. »Xms128m -Xmx256m -Xss2m

  • Change client of MSS

    Hi..    My MSS Portal works fine, but i need to connect it with another R/3 client to do some test. How ca i do that? Thanks in advance...

  • Edit in Photoshop - opening original file, no adjustments, no options

    I have LR4 and CS5, when I right click on the photo to edit in photoshop I don't have any options as to how I want to open the file such as original, edited with LR adjusemnts, etc.  When the file immediately opens in photoshop it is opening without

  • HT4623 sync

    Okay so I'm having a few technical problems with my Apple devices. 1) I'm trying to sync my iPhone 4s with my iTunes music library on my MacBook Air. Whenver I plug up the device to my laptop it's almost like my laptop isn't seeing the device. It's a

  • Two rows instead of one in the database when form with 2 data blocks.

    Hi All, I have created a form having 2 data blocks data block one to populate table A data block two to populate table B . now when i save the data after pressing the save option ....i find 2 records instead of one in the database table A and Table B