Am I able to use libvirt api for LXD container?

I need to manage my various virtual machines and containers with libvirt, and there’s libvirt api for LXC: https://libvirt.org/drvlxc.html

Now I wonder:

  1. If I’m able to use libvirt api for LXD containers?
  2. if I can’t , how to convert my LXD profiles to LXC configurations? My LXD profile is mainly about unix-char devices, such as /dev/input/* and /dev/tty*

LXD does more or less the exact same job as Libvirt as managing VM and containers, so it will be a bit redundant IMO.

Closing this topic as per LXD is no longer part of the Linux Containers project, LXD is no longer part of Linux Containers and its support is now handled by Canonical on the Ubuntu Discourse forum.