Qubes and USB Ethernet adapter

659 views
Skip to first unread message

Swâmi Petaramesh

unread,
Jun 16, 2017, 2:28:53 AM6/16/17
to qubes-users
Hi,

I have a new Asus laptop which comes with no integrated Ethernet, but an
USB Gigabit Ethernet adapter.

I wonder if this will be compatible with Qubes' Net VM, or if I will
need to allocate the complete USB controller to the net VM - which would
be extremely annoying to me...

Any clue appreciated.

Kind regards.

--
Swâmi Petaramesh <sw...@petaramesh.org> PGP 9076E32E

bbrr...@gmail.com

unread,
Jun 16, 2017, 6:33:34 AM6/16/17
to qubes-users
I've tried using an ASUS USB Ethernet adapter (with a Dell laptop in my case, but probably not relevant) without luck. I found that an USB Wifi Dongle worked better.

Swâmi Petaramesh

unread,
Jun 19, 2017, 12:13:07 PM6/19/17
to qubes-users
Hi,

Does anybody here have an idea about this ?

Le 16/06/2017 à 08:28, Swâmi Petaramesh a écrit :
> Hi,
>
> I have a new Asus laptop which comes with no integrated Ethernet, but an
> USB Gigabit Ethernet adapter.
>
> I wonder if this will be compatible with Qubes' Net VM, or if I will
> need to allocate the complete USB controller to the net VM - which would
> be extremely annoying to me...
>
> Any clue appreciated.
>
> Kind regards.


Reg Tiangha

unread,
Jun 19, 2017, 1:00:16 PM6/19/17
to qubes...@googlegroups.com
On 2017-06-19 10:12 AM, Swâmi Petaramesh wrote:
> Hi,
>
> Does anybody here have an idea about this ?
>
> Le 16/06/2017 à 08:28, Swâmi Petaramesh a écrit :
>> Hi,
>>
>> I have a new Asus laptop which comes with no integrated Ethernet, but an
>> USB Gigabit Ethernet adapter.
>>
>> I wonder if this will be compatible with Qubes' Net VM, or if I will
>> need to allocate the complete USB controller to the net VM - which would
>> be extremely annoying to me...
>>
>> Any clue appreciated.
>>
>> Kind regards.
>
> ॐ
>


Some people have it working with USB wifi network adapters, so I don't
see why it wouldn't work with an Ethernet one. It would depend on driver
and/or firmware support being installed in the NetVM first, though,
although if you have access to another machine with network access and a
USB flash drive, you could manually copy over any missing drivers or
firmware. But I don't know if other people got it working using a USB VM
and doing pass-through for just that device, or if they had to allocate
the entire USB controller to the Net VM.

Rusty Bird

unread,
Jun 19, 2017, 2:43:55 PM6/19/17
to Swâmi Petaramesh, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Swâmi Petaramesh:
> I have a new Asus laptop which comes with no integrated Ethernet, but an
> USB Gigabit Ethernet adapter.
>
> I wonder if this will be compatible with Qubes' Net VM, or if I will
> need to allocate the complete USB controller to the net VM - which would
> be extremely annoying to me...

You could use qvm-usb to attach just the one USB device to sys-net.
This would have to be done after every boot (either manually or by a
script):

$ qvm-usb --attach sys-net sys-usb:<your device>

Or you could switch sys-firewall's netvm from sys-net to sys-usb -
which is possible because sys-usb's VM type is NetVM - and enable
Network Manager in sys-usb:

$ qvm-prefs --set sys-firewall netvm sys-usb
$ qvm-service --enable sys-usb network-manager # then restart sys-usb

Rusty
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZSA3MXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEI1OUJDRkM2MkIxMjlGRTFCMDZEMDQ0
NjlENzhGNDdBQUYyQURGAAoJEEadePR6ryrf2YwP/R2edEWDqMdekrWPIQQtVTXJ
nVR174ywkueW6JGPyafhPeQIgYRjl+r7W2Akz+vmCHcNhlnmb4tSZ+w7rpfOZ8ep
zvNeawGtmWXHod3fEEG5q98I6ZdtEJUMZrMRSfESZKUtxEvVc8faKGLFu1p2Xwsj
BxpjyoymxnPkcKMVzZXEqxyxiL+JrBNcE5VJE62eYrr/qwKqBN4FRaYIDVkSJXsP
AapX2OvCQ7ZoDp/xAiVDFMFbmoArZJzR09UcwHv93rzBGZV4o0vE71mmlI4yquA7
LHy86ERvq/tYszgTcGgiPGIHs4Locw80bBnyjsPxK85efqoJi5GnfQGRBIxU/JjV
2OxHuwuwpS8omG2wlNWi2jbk4nrn7mHefMp4ZPbD5NOMQHKPlSwAOkpHjPdcRmVE
V3MFeW9tq2fTflBXvO4CzmIQdePpOwMQCXvhuT0c3Hoa4MPTUzwj526d6bgSqCEm
RPBVONoZFBmGZEZmP453YLaMYILB92EoPhXXTHp5nkFK3NT4twmUu1QjP/MeAFM0
dOjb0nNj8AfeQx758fSa5HOVTsnEbX/kvDcLfXMf+Y3l3HXUmlWmvf4fRqZcJ5BJ
zj/AelQXTBMazUjCJUwdeP8u/ZhwyYl0/7Ei3I2PDdlaFGN3WjF6rtT1ma/Mq+iN
mBt9Pokhpfsiryf/bMA7
=AVrk
-----END PGP SIGNATURE-----

Rusty Bird

unread,
Jun 19, 2017, 5:01:45 PM6/19/17
to Swâmi Petaramesh, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Rusty Bird:
> Swâmi Petaramesh:
> > I have a new Asus laptop which comes with no integrated Ethernet, but an
> > USB Gigabit Ethernet adapter.
> >
> > I wonder if this will be compatible with Qubes' Net VM, or if I will
> > need to allocate the complete USB controller to the net VM - which would
> > be extremely annoying to me...
>
> You could use qvm-usb to attach just the one USB device to sys-net.
> This would have to be done after every boot (either manually or by a
> script):
>
> $ qvm-usb --attach sys-net sys-usb:<your device>
>
> Or you could switch sys-firewall's netvm from sys-net to sys-usb -
> which is possible because sys-usb's VM type is NetVM - and enable
> Network Manager in sys-usb:
>
> $ qvm-prefs --set sys-firewall netvm sys-usb
> $ qvm-service --enable sys-usb network-manager # then restart sys-usb

Actually, run the qvm-prefs command _after_ restarting sys-usb

Rusty
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZSA9pXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEI1OUJDRkM2MkIxMjlGRTFCMDZEMDQ0
NjlENzhGNDdBQUYyQURGAAoJEEadePR6ryrfsTYP/0QXh7dzoL07XN2BS66cl0UB
5zZVt5Txvtpk/FDZYfI6kopr4KVhkH4XaPQ5xiXpVqxF1Sfm430SDCi6swS8Ynxv
SEadxfWD+BTmvrdDxD4BO2SoG3a7KeOw+QFcJS/yINda69wSQle5Y7QhY9EJ1nHU
w+vrvPwTi8gL+FeXgtc4aJbh7aEhLvjIhTLECnJvnRjqLS749BJqkbqwapcIWkyS
CziebhmViNuss4fASV2FDGwcpnLxTChuIILVYbs+y+5TlEw+huIdxEKJU1xiEuOh
MdaCTar7FW7Xx2/DbGP1cpQWRucDfrqzt9CgaKX1RtJAAN2TWYqKHmFkkAD0BUD1
EjXfI0HVmdpPZfL1lVap5DV4hxqg8x/EAuJAXUHjX4jtfYndKYXOBKdUW4ztC4ZW
HsDzIEY5t45xPOZ4JWQz/G9e/0bjImR97oI2Sr4OP+5UBN8THZe7nzvKMPtO46h1
7S0+bAVf6+UsgCIcpN/AbzGJr1WiiH1eG4njMlMAFVI2SDbv4XMqcIpB3Sk3S/5x
BCIf+eUt8qbz3JtpP1hlwx9FMjGPqM0/IpWXtxih727iFegSlteQgDzqM9Ub3zs0
VtbvCxDr/e1Wd8Uirm6d3PhxfWzZmME0SCelw+s8oUmm2Lhk7ZnR+DflMvvX3Nqi
BJfGhqfZQrAxHJDY4SoT
=GJH/
-----END PGP SIGNATURE-----

Swâmi Petaramesh

unread,
Jun 20, 2017, 3:51:15 AM6/20/17
to qubes-users
On 06/19/2017 07:45 PM, Rusty Bird wrote:
> You could use qvm-usb to attach just the one USB device to sys-net.
> This would have to be done after every boot (either manually or by a
> script):
>
> $ qvm-usb --attach sys-net sys-usb:<your device>
Uh. First time I tried this (after having performed a "qvm-usb -l" to
find the correct device), my sys-usb VM immediately crashed.

After restarting it however, when I try the same command again (device
ID in "qvm-usb -l" had changed), it fails with :

« ERROR: Device attach failed: /usr/lib/qubes/usb-import: line 51:
printf: write error: Invalid argument »


cooloutac

unread,
Jun 21, 2017, 10:11:54 PM6/21/17
to qubes-users

add it to sys-net, no?

If not delete your sys-usb.
don't even recreate it. and just to test find the right controller for the port you use,and add it to your sys-net.

cooloutac

unread,
Jun 21, 2017, 10:13:12 PM6/21/17
to qubes-users

oh but you prolly only have one controller. ya if i'm understanding correctly its already in sys-usb. so you should be adding it to sys-net to get network connection.

cooloutac

unread,
Jun 21, 2017, 10:31:23 PM6/21/17
to qubes-users

lol i just read "which would be extremely annoying to me" , sorry.

Reply all
Reply to author
Forward
0 new messages