Dedicated mouse and keyboard for a virtual machine, is it possible?












25















Let's say I have a PC with two monitors atached. I'm running e.g. Windows Vista natively, and start up a virtual Ubuntu PC. I change to fullscreen mode so that on one Monitor, I see my Windows Desktop, and on the other one, the Ubuntu Desktop. I can now use my mouse and Keybord for both of them.



This works fine, but I'd really like to connect a second mouse and a second keyboard to my physical PC, and do some configuration so that one set of input devices is used for Windows, and another set for the virtual Ubuntu. Then two persons could work at the same time, as if they were using two separate computers, although there is only one physical machine.



I'm currently using Sun VirtualBox and it has a feature to assign specific USB devices to the virtual machine. While this sometimes works for e.g. external disk drives, it never worked for mice and keyboards for me (yes, of course my input devices are attached via USB!).



I'd like to know a solution that works with VirtualBox, but any answer is appreciated, even if another virtualization software or some additional hardware was needed.










share|improve this question



























    25















    Let's say I have a PC with two monitors atached. I'm running e.g. Windows Vista natively, and start up a virtual Ubuntu PC. I change to fullscreen mode so that on one Monitor, I see my Windows Desktop, and on the other one, the Ubuntu Desktop. I can now use my mouse and Keybord for both of them.



    This works fine, but I'd really like to connect a second mouse and a second keyboard to my physical PC, and do some configuration so that one set of input devices is used for Windows, and another set for the virtual Ubuntu. Then two persons could work at the same time, as if they were using two separate computers, although there is only one physical machine.



    I'm currently using Sun VirtualBox and it has a feature to assign specific USB devices to the virtual machine. While this sometimes works for e.g. external disk drives, it never worked for mice and keyboards for me (yes, of course my input devices are attached via USB!).



    I'd like to know a solution that works with VirtualBox, but any answer is appreciated, even if another virtualization software or some additional hardware was needed.










    share|improve this question

























      25












      25








      25


      12






      Let's say I have a PC with two monitors atached. I'm running e.g. Windows Vista natively, and start up a virtual Ubuntu PC. I change to fullscreen mode so that on one Monitor, I see my Windows Desktop, and on the other one, the Ubuntu Desktop. I can now use my mouse and Keybord for both of them.



      This works fine, but I'd really like to connect a second mouse and a second keyboard to my physical PC, and do some configuration so that one set of input devices is used for Windows, and another set for the virtual Ubuntu. Then two persons could work at the same time, as if they were using two separate computers, although there is only one physical machine.



      I'm currently using Sun VirtualBox and it has a feature to assign specific USB devices to the virtual machine. While this sometimes works for e.g. external disk drives, it never worked for mice and keyboards for me (yes, of course my input devices are attached via USB!).



      I'd like to know a solution that works with VirtualBox, but any answer is appreciated, even if another virtualization software or some additional hardware was needed.










      share|improve this question














      Let's say I have a PC with two monitors atached. I'm running e.g. Windows Vista natively, and start up a virtual Ubuntu PC. I change to fullscreen mode so that on one Monitor, I see my Windows Desktop, and on the other one, the Ubuntu Desktop. I can now use my mouse and Keybord for both of them.



      This works fine, but I'd really like to connect a second mouse and a second keyboard to my physical PC, and do some configuration so that one set of input devices is used for Windows, and another set for the virtual Ubuntu. Then two persons could work at the same time, as if they were using two separate computers, although there is only one physical machine.



      I'm currently using Sun VirtualBox and it has a feature to assign specific USB devices to the virtual machine. While this sometimes works for e.g. external disk drives, it never worked for mice and keyboards for me (yes, of course my input devices are attached via USB!).



      I'd like to know a solution that works with VirtualBox, but any answer is appreciated, even if another virtualization software or some additional hardware was needed.







      keyboard multiple-monitors virtualbox virtual-machine mouse






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 24 '09 at 15:23









      Lena SchimmelLena Schimmel

      4553711




      4553711






















          3 Answers
          3






          active

          oldest

          votes


















          7














          The wikipedia article on Multiseat desktop virtualization lists several solutions.



          The more general concept is Multiseat configuration, which is not specific to virtual machines, but if required, one of the users could run a virtual machine program at their seat.




          A multiseat, multi-station or multiterminal configuration is a single computer which supports multiple independent users at the same time. In modern usage the terms refer to multiple users using one personal computer, each with their own console, consisting of a keyboard a mouse, a monitor, and possibly headphones.







          share|improve this answer
























          • Good point - the audio also has to be separated.

            – Camilo Martin
            Aug 5 '13 at 22:01



















          11














          You can do this with virtualbox. I tested it with version 3.0.2 (not the OSE) with ubuntu as the host and XP as the guest, but this shouldn't make a difference. First you have to change the settings of the machine to pass the USB devices to the VM, but I guess you have already done that. For the keyboard you should disable "auto capture keyboard" under File->Preferences->Input. Then you start the VM and disable mouse pointer integration. Good luck!






          share|improve this answer
























          • Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

            – Lena Schimmel
            Jul 29 '09 at 9:21











          • Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

            – Kim
            Jul 29 '09 at 15:18











          • Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

            – Lena Schimmel
            Aug 3 '09 at 9:22











          • Experiences with vmware?

            – Edoardo
            Oct 18 '18 at 8:57



















          0














          I am using Windows 7 Pro x64. My VM is Kali Linux, the virtualbox I have is 4.2.xxx. I only installed extension pack and mounted the USB mouse and keyboard to the VM and it worked. I think it would have worked even without extension pack






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f12284%2fdedicated-mouse-and-keyboard-for-a-virtual-machine-is-it-possible%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            The wikipedia article on Multiseat desktop virtualization lists several solutions.



            The more general concept is Multiseat configuration, which is not specific to virtual machines, but if required, one of the users could run a virtual machine program at their seat.




            A multiseat, multi-station or multiterminal configuration is a single computer which supports multiple independent users at the same time. In modern usage the terms refer to multiple users using one personal computer, each with their own console, consisting of a keyboard a mouse, a monitor, and possibly headphones.







            share|improve this answer
























            • Good point - the audio also has to be separated.

              – Camilo Martin
              Aug 5 '13 at 22:01
















            7














            The wikipedia article on Multiseat desktop virtualization lists several solutions.



            The more general concept is Multiseat configuration, which is not specific to virtual machines, but if required, one of the users could run a virtual machine program at their seat.




            A multiseat, multi-station or multiterminal configuration is a single computer which supports multiple independent users at the same time. In modern usage the terms refer to multiple users using one personal computer, each with their own console, consisting of a keyboard a mouse, a monitor, and possibly headphones.







            share|improve this answer
























            • Good point - the audio also has to be separated.

              – Camilo Martin
              Aug 5 '13 at 22:01














            7












            7








            7







            The wikipedia article on Multiseat desktop virtualization lists several solutions.



            The more general concept is Multiseat configuration, which is not specific to virtual machines, but if required, one of the users could run a virtual machine program at their seat.




            A multiseat, multi-station or multiterminal configuration is a single computer which supports multiple independent users at the same time. In modern usage the terms refer to multiple users using one personal computer, each with their own console, consisting of a keyboard a mouse, a monitor, and possibly headphones.







            share|improve this answer













            The wikipedia article on Multiseat desktop virtualization lists several solutions.



            The more general concept is Multiseat configuration, which is not specific to virtual machines, but if required, one of the users could run a virtual machine program at their seat.




            A multiseat, multi-station or multiterminal configuration is a single computer which supports multiple independent users at the same time. In modern usage the terms refer to multiple users using one personal computer, each with their own console, consisting of a keyboard a mouse, a monitor, and possibly headphones.








            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 6 '11 at 13:54









            Hugh AllenHugh Allen

            7,43242541




            7,43242541













            • Good point - the audio also has to be separated.

              – Camilo Martin
              Aug 5 '13 at 22:01



















            • Good point - the audio also has to be separated.

              – Camilo Martin
              Aug 5 '13 at 22:01

















            Good point - the audio also has to be separated.

            – Camilo Martin
            Aug 5 '13 at 22:01





            Good point - the audio also has to be separated.

            – Camilo Martin
            Aug 5 '13 at 22:01













            11














            You can do this with virtualbox. I tested it with version 3.0.2 (not the OSE) with ubuntu as the host and XP as the guest, but this shouldn't make a difference. First you have to change the settings of the machine to pass the USB devices to the VM, but I guess you have already done that. For the keyboard you should disable "auto capture keyboard" under File->Preferences->Input. Then you start the VM and disable mouse pointer integration. Good luck!






            share|improve this answer
























            • Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

              – Lena Schimmel
              Jul 29 '09 at 9:21











            • Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

              – Kim
              Jul 29 '09 at 15:18











            • Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

              – Lena Schimmel
              Aug 3 '09 at 9:22











            • Experiences with vmware?

              – Edoardo
              Oct 18 '18 at 8:57
















            11














            You can do this with virtualbox. I tested it with version 3.0.2 (not the OSE) with ubuntu as the host and XP as the guest, but this shouldn't make a difference. First you have to change the settings of the machine to pass the USB devices to the VM, but I guess you have already done that. For the keyboard you should disable "auto capture keyboard" under File->Preferences->Input. Then you start the VM and disable mouse pointer integration. Good luck!






            share|improve this answer
























            • Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

              – Lena Schimmel
              Jul 29 '09 at 9:21











            • Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

              – Kim
              Jul 29 '09 at 15:18











            • Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

              – Lena Schimmel
              Aug 3 '09 at 9:22











            • Experiences with vmware?

              – Edoardo
              Oct 18 '18 at 8:57














            11












            11








            11







            You can do this with virtualbox. I tested it with version 3.0.2 (not the OSE) with ubuntu as the host and XP as the guest, but this shouldn't make a difference. First you have to change the settings of the machine to pass the USB devices to the VM, but I guess you have already done that. For the keyboard you should disable "auto capture keyboard" under File->Preferences->Input. Then you start the VM and disable mouse pointer integration. Good luck!






            share|improve this answer













            You can do this with virtualbox. I tested it with version 3.0.2 (not the OSE) with ubuntu as the host and XP as the guest, but this shouldn't make a difference. First you have to change the settings of the machine to pass the USB devices to the VM, but I guess you have already done that. For the keyboard you should disable "auto capture keyboard" under File->Preferences->Input. Then you start the VM and disable mouse pointer integration. Good luck!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 25 '09 at 9:11









            KimKim

            2,01221426




            2,01221426













            • Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

              – Lena Schimmel
              Jul 29 '09 at 9:21











            • Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

              – Kim
              Jul 29 '09 at 15:18











            • Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

              – Lena Schimmel
              Aug 3 '09 at 9:22











            • Experiences with vmware?

              – Edoardo
              Oct 18 '18 at 8:57



















            • Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

              – Lena Schimmel
              Jul 29 '09 at 9:21











            • Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

              – Kim
              Jul 29 '09 at 15:18











            • Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

              – Lena Schimmel
              Aug 3 '09 at 9:22











            • Experiences with vmware?

              – Edoardo
              Oct 18 '18 at 8:57

















            Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

            – Lena Schimmel
            Jul 29 '09 at 9:21





            Thanks for your answer. I just upgraded to 3.0.2 and still it does not work. But it actually appears to me that USB integration is not working at all on my Vista host, and neither on my XP host. I'm gonna try this on a OS X host soon and report if it's working there. If it works there, I'll consider filing a bug at virtualbox.

            – Lena Schimmel
            Jul 29 '09 at 9:21













            Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

            – Kim
            Jul 29 '09 at 15:18





            Did you add the devices under Settings->USB? Did you make all the settings I suggested? I'm not sure, but maybe you need the guest additions for this to work. What I'm 100% sure about is that if this was a bug, it would be fixed by now. It should even work with version 2.x but I don't have that installed here.

            – Kim
            Jul 29 '09 at 15:18













            Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

            – Lena Schimmel
            Aug 3 '09 at 9:22





            Yes, I made all those settings. I also had the chance to test this on a OS X host, and the menu entries to assign the USB mice and keyboards were grayed out, while those for other USB devices were available. So it wasn't workint there neither. I'm going to update my question with some screen shots soon - right now I don't have access to the host machines.

            – Lena Schimmel
            Aug 3 '09 at 9:22













            Experiences with vmware?

            – Edoardo
            Oct 18 '18 at 8:57





            Experiences with vmware?

            – Edoardo
            Oct 18 '18 at 8:57











            0














            I am using Windows 7 Pro x64. My VM is Kali Linux, the virtualbox I have is 4.2.xxx. I only installed extension pack and mounted the USB mouse and keyboard to the VM and it worked. I think it would have worked even without extension pack






            share|improve this answer






























              0














              I am using Windows 7 Pro x64. My VM is Kali Linux, the virtualbox I have is 4.2.xxx. I only installed extension pack and mounted the USB mouse and keyboard to the VM and it worked. I think it would have worked even without extension pack






              share|improve this answer




























                0












                0








                0







                I am using Windows 7 Pro x64. My VM is Kali Linux, the virtualbox I have is 4.2.xxx. I only installed extension pack and mounted the USB mouse and keyboard to the VM and it worked. I think it would have worked even without extension pack






                share|improve this answer















                I am using Windows 7 Pro x64. My VM is Kali Linux, the virtualbox I have is 4.2.xxx. I only installed extension pack and mounted the USB mouse and keyboard to the VM and it worked. I think it would have worked even without extension pack







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jul 14 '14 at 12:39









                Matthew Williams

                4,02182136




                4,02182136










                answered Jul 14 '14 at 12:06









                ntwanamntwanam

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f12284%2fdedicated-mouse-and-keyboard-for-a-virtual-machine-is-it-possible%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                    Alcedinidae

                    Can an atomic nucleus contain both particles and antiparticles? [duplicate]