# My Incus Migration from LXD

**URL:** <https://discussion.scottibyte.com/t/my-incus-migration-from-lxd/359>\
**Category:** Uncategorized\
**Created:** [February 24, 2024, 3:47pm UTC](https://discussion.scottibyte.com/t/my-incus-migration-from-lxd/359 "2024-02-24T15:47:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott](https://discussion.scottibyte.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://discussion.scottibyte.com/u/scott)\
**Post date:** [February 24, 2024, 3:47pm UTC](https://discussion.scottibyte.com/t/my-incus-migration-from-lxd/359/1 "2024-02-24T15:47:10Z")

</div>

In my last tutorial “[Convert LXD Server to Incus](https://www.youtube.com/watch?v=mgNe8JjazX0)” we converted my LXD desktop instance to Incus. This time, I convert both of my production LXD servers (vmsmist & vmsrain) to Incus. After three years of focusing on LXD, the ScottiBYTE channel forks to Incus.

Log into your LXD Server with ssh (substitute your IP address of your LXD server with n.n.n.n):

```auto
ssh n.n.n.n

```

Change to the root user:

```auto
sudo su

```

Make a folder to hold the installation key(s) (the -p creates the path only if it doesn’t exist):

```auto
mkdir -p /etc/apt/keyrings/

```

Download the Incus key to the folder we just created.

```auto
curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc

```

Add the repository for Incus using the keys. Cut and paste the entire code segment into your terminal and press enter.

```auto
sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc

EOF'

```

Update the repositories.

```auto
apt update

```

Install incus:

```auto
apt install incus -y

```

Exit the root account:

```auto
exit

```

Put your user into the incus-admin group and verify its there:

```auto
sudo usermod -aG incus-admin scott
newgrp incus-admin
groups

```

Now we are ready to convert the LXD Server to an Incus Server with the following command:

```auto
sudo lxd-to-incus

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/1X/ca115fd8bb11b94dee6e75db06e6f1e9c011702f.jpeg)

As you can see above this failed and I had to remove the indicated key before proceeding with the conversion by entering the following command:

```auto
lxc config unset core.trust_password

```

Then we try the conversion again. I answered “yes” to proceed and “yes” to uninstall the LXD package:

```auto
sudo lxd-to-incus

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/1X/8a55e5d37328b0caf4f6e84c52ecc01d1b075632.jpeg)

**Note: LXD Dashboard does not support Incus servers. You must install LXConsole if you want a great GUI to manage your server by following my tutorial entitled “[LXConsole: The New LXD Dashboard](https://www.youtube.com/watch?v=AAJzENdM-HM)”.**

In the video, I performed the same steps above to migrate vmsrain to incus.

I ran into an issue where after the vmsrain conversion my Incus win11 VM would not boot due to different sound support in Incus. I fixed the issue with the following command:

```auto
incus config set win11 raw.qemu -- "-device intel-hda -device hda-duplex -audio spice"

```

I was then able to start and access the Incus VM for Windows:

```auto
incus start win11 --console=vga

```
