Run process from Windows7 host to a Ubuntu Guest

Discussion about using the VirtualBox API, Tutorials, Samples.
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

Code: Select all

public void executeFileUbuntu() {
        VirtualBoxManager mgr = VirtualBoxManager.createInstance(null);
        ISnapshot s = null;
        IVirtualBox vbox = null;
        try {
            mgr.connect("", " ", " ");
            vbox = mgr.getVBox();
            ISession session = mgr.getSessionObject();


            IMachine vm = vbox.findMachine("Ubuntu32");
            if (session.getState() != SessionState.Locked) {
                vm.lockMachine(session, LockType.Shared);
            }

            IConsole console = session.getConsole();
            IGuest guest = console.getGuest();
            Long time = 50 * 1000L; // let's make it 50 seconds
            IGuestProcess gp = null;

            log.info("Logging into Guest System");

            IGuestSession gs = guest.createSession("username", "password", "", ""); // Za ubuntu
            GuestSessionWaitResult result = gs.waitForArray(Arrays.asList(GuestSessionWaitForFlag.Start), time); // let's use waitForArray to be clear

            String cmdpath = "/opt/sublime_text/sublime_tex %F";

                List<String> arguments = new ArrayList<>();
                arguments.add(cmdpath);

                gp = gs.processCreate(null, arguments, null, Arrays.asList(ProcessCreateFlag.WaitForProcessStartOnly), time);
                log.info("Created the process");

                List<IGuestProcess> gps = new ArrayList<>();
                gps = gs.getProcesses();
                for (int i = 0; i < gps.size(); i++) {
                    IGuestProcess gp_foo = gps.get(i);
                    System.out.print("Ex. Path: " + gp_foo.getExecutablePath() + " ");
                    System.out.print("PID: " + gp_foo.getPID() + " ");
                    System.out.println("Status: " + gp_foo.getStatus());
                }

                List<ProcessWaitForFlag> foo = new ArrayList<>();
                foo.add(ProcessWaitForFlag.Start);

                ProcessWaitResult waitResult = gp.waitForArray(foo, time); // again, use a valid timeout
                if (waitResult == ProcessWaitResult.Start) {
                    System.out.println("Process Load finished");
                }



        } catch (Exception e) {
        }
    }
First I start the machine and try to execute this method. When run shows status of process "Error". Same code runs fine in Win7 virtual machine, yet not on Ubuntu. I have the necessary rights, as i log as admin.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Run process from Windows7 host to a Ubuntu Guest

Post by noteirak »

You don't tell us what is the problem with the code and you don't give any info if there was an error message.

I see the following issues with the code itself:
- you use %F in the command which most likely wonlt work (nothing to resolve it)
- you need to give the command itself and its arguments as different items in an array, else the full string will be considered as the executable path
- you silence all exception in the last catch - all errors would be hidden
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

Sorry, my bad. I have forgotten to print the exception.
The issue is that the command would not execute. As for the path, i am giving the command with which i start the program manually in the Ubuntu from the terminal.
This is the error:

Code: Select all

Ex. Path: /opt/sublime_text/sublime_tex %F PID: 0 Status: Error
org.virtualbox_5_1.VBoxException: VirtualBox error: rc=0x80bb0005 The guest execution service is not ready (yet) (0x80bb0005)
	at org.virtualbox_5_1.IProcess.waitForArray(IProcess.java:277)
	at com.lirex.service.VirtualBoxService.executeFileUbuntu(VirtualBoxService.java:235)
	at com.lirex.controller.ManageController.executeVBoxFileUbuntu(ManageController.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:220)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:89)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.virtualbox_5_1.jaxws.RuntimeFaultMsg: VirtualBox error: rc=0x80bb0005 The guest execution service is not ready (yet) (0x80bb0005)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:135)
	at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
	at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
	at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
	at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
	at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
	at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
	at com.sun.proxy.$Proxy91.iProcessWaitForArray(Unknown Source)
	at org.virtualbox_5_1.IProcess.waitForArray(IProcess.java:268)
	... 56 more
org.virtualbox_5_1.VBoxException: VirtualBox error: rc=0x80bb0005 The guest execution service is not ready (yet) (0x80bb0005)
	at org.virtualbox_5_1.IProcess.waitForArray(IProcess.java:277)
	at com.lirex.service.VirtualBoxService.executeFileUbuntu(VirtualBoxService.java:235)
	at com.lirex.controller.ManageController.executeVBoxFileUbuntu(ManageController.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:220)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:89)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.virtualbox_5_1.jaxws.RuntimeFaultMsg: VirtualBox error: rc=0x80bb0005 The guest execution service is not ready (yet) (0x80bb0005)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:135)
	at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
	at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
	at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
	at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
	at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
	at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
	at com.sun.proxy.$Proxy91.iProcessWaitForArray(Unknown Source)
	at org.virtualbox_5_1.IProcess.waitForArray(IProcess.java:268)
	... 56 more
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Run process from Windows7 host to a Ubuntu Guest

Post by noteirak »

Seems like the guest additionw are either:
- not installed
- not started yet (Guest OS is still booting)
- just not started or failed to start.

Just before running that code, please run the following command under the same user and post the output (replace VMNAME)

Code: Select all

vboxmanage showvminfo VMNAME
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

I ran the command and made a screenshot, but it is too big for me to upload.
I would need to crop the picture, so could you tell me what should I include in the picture.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Run process from Windows7 host to a Ubuntu Guest

Post by noteirak »

Can't you just copy/paste the text itself? If not, simply reduce the quality of the image and you'll be able to upload it, especially in PNG.
Right now, I'm not looking at anything specific, I would need a full overview of the VM first so I can ask you the right questions.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

Code: Select all

C:\Program Files\Oracle\VirtualBox>vboxmanage showvminfo Ubuntu32
Name:            Ubuntu32
Groups:          /
Guest OS:        Ubuntu (32-bit)
UUID:            ****************
Config file:     VirtualBox VMs\Ubuntu32\Ubuntu32.vb
Snapshot folder: VirtualBox VMs\Ubuntu32\Snapshots
Log folder:      VirtualBox VMs\Ubuntu32\Logs
Hardware UUID:   ***********************
Memory size:     2048MB
Page Fusion:     off
VRAM size:       16MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       off
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           running (since 2016-12-28T09:36:29.441000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE (1, 0): Empty
SATA (0, 0): VirtualBox VMs\Ubuntu32\Snapshots\{0940
NIC 1:           MAC:************, Attachment: NAT, Cable connected: o
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (se
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: DSOUND, Controller: AC97, Codec: AD19
Clipboard Mode:  disabled
Drag and drop Mode: disabled
Session name:    GUI/Qt
Video mode:      800x600x32 at 0,0 enabled
VRDE:            disabled
USB:             enabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

VRDE Connection:    not active
Clients so far:     0

Video capturing:    not active
Capture screens:    0
Capture file:       VirtualBox VMs\Ubuntu32\Ubuntu32
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB
OS type:                             Ubuntu
Additions run level:                 0

Guest Facilities:

Facility "Seamless Mode": not active (last update: 2016/12/28 09:36:29

Snapshots:

   Name: Snapshot4 (UUID: 903fbfae-80f1-41aa-a115-e3ba9f12b463)
      Name: Snapshot2 (UUID: de4d59e1-4a06-4471-a68c-0f2d9b308595)
         Name: Snapshot1 (UUID: 0c6510c9-3913-4ebe-b9d7-6712f0691993) *
Last edited by socratis on 28. Dec 2016, 12:55, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

I think the problem might be in the guest drivers, as when i try running " rcvboxadd setup " it says that the command is not found.
I have gcc and gnu make on the OS, i also tried the steps shown in this manual https://www.virtualbox.org/manual/ch04.html, yet i am stuck at step one
and don't have such .iso file on the host
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

I just installed the guest additions and restarted the machine, yet the problem stands :(
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Run process from Windows7 host to a Ubuntu Guest

Post by noteirak »

Then please give the output of the command again. The first one showed they were not installed/running
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

Code: Select all

C:\Program Files\Oracle\VirtualBox>vboxmanage showvminfo Ubuntu32
Name:            Ubuntu32
Groups:          /
Guest OS:        Ubuntu (32-bit)
UUID:           **************************
Config file:     C:\Users\amladzhov\VirtualBox VMs\Ubuntu32\Ubuntu32.vbox
Snapshot folder: C:\Users\amladzhov\VirtualBox VMs\Ubuntu32\Snapshots
Log folder:      C:\Users\amladzhov\VirtualBox VMs\Ubuntu32\Logs
Hardware UUID:   *******************************************
Memory size:     2048MB
Page Fusion:     off
VRAM size:       16MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       off
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           running (since 2016-12-28T12:55:19.381000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE (1, 0): C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso (UUID: 6b46badf-19f2-4af0-a8b5-2f4322e9ed8c)
SATA (0, 0): \Ubuntu32\Snapshots\{e80c3b83-c4c5-4c32-b28e-495406a2960e}.vdi (UUID: e80c3b83-c4c5-4c32-b28e-495406a2960e)
NIC 1:           MAC:************, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: DSOUND, Controller: AC97, Codec: AD1980)
Clipboard Mode:  disabled
Drag and drop Mode: disabled
Session name:    GUI/Qt
Video mode:      800x600x32 at 0,0 enabled
VRDE:            disabled
USB:             enabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

VRDE Connection:    not active
Clients so far:     0

Video capturing:    not active
Capture screens:    0
Capture file:       \VirtualBox VMs\Ubuntu32\Ubuntu32.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB
OS type:                             Linux26
Additions run level:                 1
Additions version:                   5.1.10 r112026


Guest Facilities:

Facility "VirtualBox Base Driver": active/running (last update: 2016/12/28 11:36:12 UTC)
Facility "Seamless Mode": active/running (last update: 2016/12/28 12:55:19 UTC)
Facility "Graphics Mode": active/running (last update: 2016/12/28 12:55:19 UTC)

Snapshots:

   Name: Snapshot4 (UUID: ********************************************)
      Name: Snapshot2 (UUID:  ********************************************)
         Name: Snapshot6 (UUID:  ******************************************)
Last edited by Iwk0 on 28. Dec 2016, 15:10, edited 1 time in total.
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

I think they are running now, but this method just won't work. I debugged it and it is showing that the status of the gs (IGuestSession) is Error.
I even tried making the main thread to sleep for 10 sec, but no effect.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Run process from Windows7 host to a Ubuntu Guest

Post by noteirak »

The guest drivers are running yes, but not the system service that handles guest sessions.
It is not listed in the guest facilities and the run level is at 1 (drivers only)

Here's an example of what you should see in the last part of the output:
Guest:

Configured memory balloon size: 0 MB
OS type: Linux26_64
Additions run level: 2
Additions version: 4.3.28 r100309


Guest Facilities:

Facility "VirtualBox Base Driver": active/running (last update: 2016/12/28 08:55:26 UTC)
Facility "VirtualBox System Service": active/running (last update: 2016/12/28 08:55:32 UTC)
Facility "Seamless Mode": not active (last update: 2016/12/28 08:55:26 UTC)
Facility "Graphics Mode": not active (last update: 2016/12/28 08:55:26 UTC)
Have a look at this HOWTO for proper installation steps of the guest additions.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

This worked for me, thank you very much :)
Iwk0
Posts: 14
Joined: 23. Dec 2016, 14:42

Re: Run process from Windows7 host to a Ubuntu Guest

Post by Iwk0 »

But i still have problem running the problem. When i start the application it doesn't show any errors and says that everything is working, yet the program won't start.
Post Reply