[ 
https://issues.apache.org/jira/browse/MESOS-4420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiang Jun updated MESOS-4420:
-----------------------------
    Description: 
We followed the docs to build and run Mesos Slave with network-isolator.
When we run it inside of a VM, the error message comes:
{quote}
Failed to read /sys/class/net/eth0/speed: Invalid argument
{quote}

It seems that {{/sys/class/net/eth0/speed}} is not available in a VM using 
virtio.
The reason: 
http://serverfault.com/questions/738840/get-link-speed-of-an-virtio-net-network-adapter

I prefer to warn the user or use some other methods to get physical link speed, 
rather than quit the program. Nor, the Mesos Slave with 
{{--isolation="network/port_mapping"}} will not be able to run in a VM. In some 
production cases, people really need to install Mesos Slave in VMs.

  was:
I followed the docs to build and run Mesos Slave with network-isolator.
When I run it inside of a VM, the error message comes:
{quote}
Failed to read /sys/class/net/eth0/speed: Invalid argument
{quote}

It seems that {{/sys/class/net/eth0/speed}} is not available in a VM using 
virtio.
The reason: 
http://serverfault.com/questions/738840/get-link-speed-of-an-virtio-net-network-adapter

I prefer to warn the user or use some other methods to get physical link speed, 
rather than quit the program. Nor, the Mesos Slave with 
{{--isolation="network/port_mapping"}} will not be able to run in a VM. In some 
production cases, people really need to install Mesos Slave in VMs.


> Support read host physical link speed from virtio driver
> --------------------------------------------------------
>
>                 Key: MESOS-4420
>                 URL: https://issues.apache.org/jira/browse/MESOS-4420
>             Project: Mesos
>          Issue Type: Bug
>          Components: isolation, slave
>    Affects Versions: 0.26.0
>         Environment: In a VM using 'virtio' as its network driver
> {quote}
> 00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
> {quote}
>            Reporter: Jiang Jun
>
> We followed the docs to build and run Mesos Slave with network-isolator.
> When we run it inside of a VM, the error message comes:
> {quote}
> Failed to read /sys/class/net/eth0/speed: Invalid argument
> {quote}
> It seems that {{/sys/class/net/eth0/speed}} is not available in a VM using 
> virtio.
> The reason: 
> http://serverfault.com/questions/738840/get-link-speed-of-an-virtio-net-network-adapter
> I prefer to warn the user or use some other methods to get physical link 
> speed, rather than quit the program. Nor, the Mesos Slave with 
> {{--isolation="network/port_mapping"}} will not be able to run in a VM. In 
> some production cases, people really need to install Mesos Slave in VMs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to