Share USB NIC over VMware












0















I have a host system running Ubuntu 18.04 and VMware 14.x and a guest OS of Windows 7



The only active interface on the system is a Verizon USB Dongle (4G)



The dongle works fine for the Ubuntu host, but when I attempt to launch the Windows 7 VM I receive the following error:



The specified device is claimed by another driver (cdc_ether) on the host 

operating system. The device might be in use. To continue, the device will

first be disconnected from its current driver.


If I go ahead an launch the VM, both operating systems will have NO connectivity.



From what I can tell, the Linux host is locking the USB and when VMware tries to access it the USB becomes disconnected and I lose all connectivity.



I have playing with networking settings in VMware (Bridged, NAT, etc) None of these settings seemed to help.



Does anyone here have any experience/solution for this?










share|improve this question























  • Any device disconnected from the host will work in the guest provided that OS supports it. You would need to install drivers, if required, the same way you would do in an installed system. So, when you disconnect it from the host and pass it to the guest, if the guest (Ubuntu) has no drivers for said device nothing will work obviously. But you don't need to do that and there are only a few situations in that it would make sense to pass a network device to the VM.

    – GabrielaGarcia
    Jan 18 at 21:12
















0















I have a host system running Ubuntu 18.04 and VMware 14.x and a guest OS of Windows 7



The only active interface on the system is a Verizon USB Dongle (4G)



The dongle works fine for the Ubuntu host, but when I attempt to launch the Windows 7 VM I receive the following error:



The specified device is claimed by another driver (cdc_ether) on the host 

operating system. The device might be in use. To continue, the device will

first be disconnected from its current driver.


If I go ahead an launch the VM, both operating systems will have NO connectivity.



From what I can tell, the Linux host is locking the USB and when VMware tries to access it the USB becomes disconnected and I lose all connectivity.



I have playing with networking settings in VMware (Bridged, NAT, etc) None of these settings seemed to help.



Does anyone here have any experience/solution for this?










share|improve this question























  • Any device disconnected from the host will work in the guest provided that OS supports it. You would need to install drivers, if required, the same way you would do in an installed system. So, when you disconnect it from the host and pass it to the guest, if the guest (Ubuntu) has no drivers for said device nothing will work obviously. But you don't need to do that and there are only a few situations in that it would make sense to pass a network device to the VM.

    – GabrielaGarcia
    Jan 18 at 21:12














0












0








0








I have a host system running Ubuntu 18.04 and VMware 14.x and a guest OS of Windows 7



The only active interface on the system is a Verizon USB Dongle (4G)



The dongle works fine for the Ubuntu host, but when I attempt to launch the Windows 7 VM I receive the following error:



The specified device is claimed by another driver (cdc_ether) on the host 

operating system. The device might be in use. To continue, the device will

first be disconnected from its current driver.


If I go ahead an launch the VM, both operating systems will have NO connectivity.



From what I can tell, the Linux host is locking the USB and when VMware tries to access it the USB becomes disconnected and I lose all connectivity.



I have playing with networking settings in VMware (Bridged, NAT, etc) None of these settings seemed to help.



Does anyone here have any experience/solution for this?










share|improve this question














I have a host system running Ubuntu 18.04 and VMware 14.x and a guest OS of Windows 7



The only active interface on the system is a Verizon USB Dongle (4G)



The dongle works fine for the Ubuntu host, but when I attempt to launch the Windows 7 VM I receive the following error:



The specified device is claimed by another driver (cdc_ether) on the host 

operating system. The device might be in use. To continue, the device will

first be disconnected from its current driver.


If I go ahead an launch the VM, both operating systems will have NO connectivity.



From what I can tell, the Linux host is locking the USB and when VMware tries to access it the USB becomes disconnected and I lose all connectivity.



I have playing with networking settings in VMware (Bridged, NAT, etc) None of these settings seemed to help.



Does anyone here have any experience/solution for this?







networking drivers usb virtualization vmware






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 18 at 18:52









JoeJoe

1224




1224













  • Any device disconnected from the host will work in the guest provided that OS supports it. You would need to install drivers, if required, the same way you would do in an installed system. So, when you disconnect it from the host and pass it to the guest, if the guest (Ubuntu) has no drivers for said device nothing will work obviously. But you don't need to do that and there are only a few situations in that it would make sense to pass a network device to the VM.

    – GabrielaGarcia
    Jan 18 at 21:12



















  • Any device disconnected from the host will work in the guest provided that OS supports it. You would need to install drivers, if required, the same way you would do in an installed system. So, when you disconnect it from the host and pass it to the guest, if the guest (Ubuntu) has no drivers for said device nothing will work obviously. But you don't need to do that and there are only a few situations in that it would make sense to pass a network device to the VM.

    – GabrielaGarcia
    Jan 18 at 21:12

















Any device disconnected from the host will work in the guest provided that OS supports it. You would need to install drivers, if required, the same way you would do in an installed system. So, when you disconnect it from the host and pass it to the guest, if the guest (Ubuntu) has no drivers for said device nothing will work obviously. But you don't need to do that and there are only a few situations in that it would make sense to pass a network device to the VM.

– GabrielaGarcia
Jan 18 at 21:12





Any device disconnected from the host will work in the guest provided that OS supports it. You would need to install drivers, if required, the same way you would do in an installed system. So, when you disconnect it from the host and pass it to the guest, if the guest (Ubuntu) has no drivers for said device nothing will work obviously. But you don't need to do that and there are only a few situations in that it would make sense to pass a network device to the VM.

– GabrielaGarcia
Jan 18 at 21:12










1 Answer
1






active

oldest

votes


















0














I figured it out. The error I was getting occurs because VMware is actually grabbing possession of the USB port. Only one system can 'own' the usb port.



Normally, in a networking context, this wouldn't matter. VMware is designed to working with the host's network interfaces. It doesn't try and take full possession of the network interfaces, it just routes traffic through them.



However, in my situation the eth0 and wlan0 were both disconnected from the internet, so when the guest OS took possession of the usb port I lost connectivity. As @GabrielaGarcia mentions in the comment, the guest doesn't have the drivers to deal with the USB card.



Solution



I went to the USB NIC's webUI and grabbed the routing information. I then created a Virtual Network in VMware and pointed the Guest traffic at the same Gateway which the USB NIC was pointed to. (Use NAT mode in the virtual network editor)



After that it just started working.



Note: If it is not working check in VMware settings for "removable devices". From that option menu you can ensure that the guest has released the USB device (or other device).






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f1110960%2fshare-usb-nic-over-vmware%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I figured it out. The error I was getting occurs because VMware is actually grabbing possession of the USB port. Only one system can 'own' the usb port.



    Normally, in a networking context, this wouldn't matter. VMware is designed to working with the host's network interfaces. It doesn't try and take full possession of the network interfaces, it just routes traffic through them.



    However, in my situation the eth0 and wlan0 were both disconnected from the internet, so when the guest OS took possession of the usb port I lost connectivity. As @GabrielaGarcia mentions in the comment, the guest doesn't have the drivers to deal with the USB card.



    Solution



    I went to the USB NIC's webUI and grabbed the routing information. I then created a Virtual Network in VMware and pointed the Guest traffic at the same Gateway which the USB NIC was pointed to. (Use NAT mode in the virtual network editor)



    After that it just started working.



    Note: If it is not working check in VMware settings for "removable devices". From that option menu you can ensure that the guest has released the USB device (or other device).






    share|improve this answer




























      0














      I figured it out. The error I was getting occurs because VMware is actually grabbing possession of the USB port. Only one system can 'own' the usb port.



      Normally, in a networking context, this wouldn't matter. VMware is designed to working with the host's network interfaces. It doesn't try and take full possession of the network interfaces, it just routes traffic through them.



      However, in my situation the eth0 and wlan0 were both disconnected from the internet, so when the guest OS took possession of the usb port I lost connectivity. As @GabrielaGarcia mentions in the comment, the guest doesn't have the drivers to deal with the USB card.



      Solution



      I went to the USB NIC's webUI and grabbed the routing information. I then created a Virtual Network in VMware and pointed the Guest traffic at the same Gateway which the USB NIC was pointed to. (Use NAT mode in the virtual network editor)



      After that it just started working.



      Note: If it is not working check in VMware settings for "removable devices". From that option menu you can ensure that the guest has released the USB device (or other device).






      share|improve this answer


























        0












        0








        0







        I figured it out. The error I was getting occurs because VMware is actually grabbing possession of the USB port. Only one system can 'own' the usb port.



        Normally, in a networking context, this wouldn't matter. VMware is designed to working with the host's network interfaces. It doesn't try and take full possession of the network interfaces, it just routes traffic through them.



        However, in my situation the eth0 and wlan0 were both disconnected from the internet, so when the guest OS took possession of the usb port I lost connectivity. As @GabrielaGarcia mentions in the comment, the guest doesn't have the drivers to deal with the USB card.



        Solution



        I went to the USB NIC's webUI and grabbed the routing information. I then created a Virtual Network in VMware and pointed the Guest traffic at the same Gateway which the USB NIC was pointed to. (Use NAT mode in the virtual network editor)



        After that it just started working.



        Note: If it is not working check in VMware settings for "removable devices". From that option menu you can ensure that the guest has released the USB device (or other device).






        share|improve this answer













        I figured it out. The error I was getting occurs because VMware is actually grabbing possession of the USB port. Only one system can 'own' the usb port.



        Normally, in a networking context, this wouldn't matter. VMware is designed to working with the host's network interfaces. It doesn't try and take full possession of the network interfaces, it just routes traffic through them.



        However, in my situation the eth0 and wlan0 were both disconnected from the internet, so when the guest OS took possession of the usb port I lost connectivity. As @GabrielaGarcia mentions in the comment, the guest doesn't have the drivers to deal with the USB card.



        Solution



        I went to the USB NIC's webUI and grabbed the routing information. I then created a Virtual Network in VMware and pointed the Guest traffic at the same Gateway which the USB NIC was pointed to. (Use NAT mode in the virtual network editor)



        After that it just started working.



        Note: If it is not working check in VMware settings for "removable devices". From that option menu you can ensure that the guest has released the USB device (or other device).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 19 at 0:44









        JoeJoe

        1224




        1224






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f1110960%2fshare-usb-nic-over-vmware%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido