Featured image of post Testing a Linux Tauri App on a Hyper-V Ubuntu VM

Testing a Linux Tauri App on a Hyper-V Ubuntu VM

What is this Link to this heading

Notes on the steps I follow to try out a Tauri app built on a Windows host machine on an Ubuntu virtual machine (VM) running on Hyper-V.

Environment Link to this heading

  • Windows 11 Pro
  • Ubuntu VM on Hyper-V: Ubuntu 26.04 LTS

Preparation Link to this heading

On the Windows host Link to this heading

Build for Linux ahead of time. I use Docker for the build. As long as you end up with a .deb file, you are good to go.

On the Ubuntu VM Link to this heading

Install an SSH server on the Ubuntu VM.

sudo apt update
sudo apt install openssh-server
sudo systemctl enable --now ssh

Check the IP address of the Ubuntu VM.

ip addr

The address like 172.XX.XX.XX shown under inet for eth0 is the VM’s IP.

Installing on the VM Link to this heading

Copy the .deb file from the Windows host to the Ubuntu VM. The easiest way is to run scp from the directory that contains the .deb file. Replace your-app.deb with the name of the .deb file you are copying, username with the user name on the Ubuntu VM, and 172.XX.XX.XX with the IP address of the Ubuntu VM.

Run on the Windows host
scp your-app.deb username@172.XX.XX.XX:/tmp/

If scp asks Are you sure you want to continue connecting (yes/no/[fingerprint])?, answer yes. It then prompts for a password, so enter the login password of the Ubuntu VM.

Once the copy succeeds, you can confirm it with the ls command.

Run on the Ubuntu VM
ls /tmp/

With the file in place, install it.

Run on the Ubuntu VM
sudo apt install /tmp/your-app.deb

If the installation succeeds, you can launch the app and check that it works.

Uninstalling on the VM Link to this heading

To uninstall the app you installed, run the following command. Replace your-app with the name of the app you installed.

Run on the Ubuntu VM
sudo apt remove your-app

If you also want to remove the configuration files, use purge instead.

Run on the Ubuntu VM
sudo apt purge your-app

After that, run the following command to remove dependency packages that are no longer needed.

Run on the Ubuntu VM
sudo apt autoremove

The installer can be deleted with rm.

Run on the Ubuntu VM
rm /tmp/your-app.deb
Licensed under CC BY-NC-SA 4.0
Last updated on Sep 13, 2026