# Getting mavsdk server running on voxl2

Source: https://forum.modalai.com/topic/4164/getting-mavsdk-server-running-on-voxl2
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Tags: voxl-sdk
Posted: 2025-02-10 19:17:28 UTC by binu.abraham
Replies: 6 · Views: 1539

## binu.abraham · 2025-02-10 19:17:28 UTC

I have a voxl2 drone, I can ssh to it, but can't adb in right now. 
I am trying to follow the instructions on https://docs.modalai.com/mavsdk/ But cannot find the voxl-mavsdk.tar file that is referenced in the video in the download. 
So I have tried to build it using the docker https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk. But the build.sh assumes the device is connected via adb . 
I tried running those commands from the ssh shell , but I couldn't find voxl-configure-docker-support.sh. 
Is there a different set of instructions for voxl2 ?

## Reply by binu.abraham · 2025-02-10 20:54:48 UTC

@binu-abraham I found the voxl-configure-docker-support script, trying to run it now

## Reply by binu.abraham · 2025-02-11 14:12:47 UTC (in reply to binu.abraham)

@binu-abraham Is there a pre-built docker image for mavsdk server on voxl2 ?

## Reply by binu.abraham · 2025-02-12 22:32:12 UTC (in reply to binu.abraham)

@binu-abraham 
Wanted to post about how I got this working finally 
I was having issues with docker build ( would segfault on ubuntu) and building the mavsdk from source ( while running the binary on voxl2, it complained that  glibc was missing ) , so I finally  downloaded the mavsdk_server_linux-arm64-musl from https://github.com/mavlink/MAVSDK/releases

Followed the instructions to set the vision hub prameters from https://docs.modalai.com/mavsdk/

Started the mavsdk-server 
./mavsdk_server_linux-arm64-musl -p 50051 udpin://0.0.0.0:14550

From the android app 
            drone = System(
                <drone IP address>,
                50051 // -p parameter for mavsdk-server
            )
Don't call mavsdkServer.run as mavsdkserver is already running in voxl2

## Reply by brahim · 2025-02-18 20:01:19 UTC (in reply to binu.abraham)

@binu-abraham you can do an scp of the  get_docker.sh script [here](https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk/-/blob/main/third_party/get-docker.sh?ref_type=heads) on to the voxl2 and then run it.

Most of the voxl suite packages assume you have an adb connection.

As for building the docker image over ssh, I would just clone down voxl-docker-mavsdk on to the voxl2 itself, change directory to voxl-docker-mavsdk, and then just run the following command:

```
docker build . -t mavsdk --network=host

```
This should build an ubuntu focal image with mavsdk + all dependencies as well as the takeoff and land example

## Reply by brahim · 2025-02-18 20:08:07 UTC (in reply to binu.abraham)

@binu-abraham I do not believe modalai has images on docker hub or any other docker repo. The gitlab repo has all of the Dockerfiles though.

## Reply by luisdelavega · 2025-04-09 14:11:39 UTC (in reply to brahim)

@brahim Thanks for this advice!

I'm working on Windows with WSL and it is impossible for me to build the docker image by following the instructions on the [voxl-docker-mavsdk](https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk/-/tree/main) README.

I'm still unsure why the image build on the VOXL and not on my WSL Ubuntu, but at least I got it to work.
