DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
VGSOURCES
Get listed

cloud networkingPATCH 2026.10.15

How to Install and Configure LXD on an Ubuntu VPS

By VGSources Team 10 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install LXD from the self-contained snap, add your administrator account to the lxd group, start a new login shell, and run lxd init to choose storage, networking and API settings. Then launch an Ubuntu image with lxc launch ubuntu:24.04 ubuntu-container. Keep administration on LXD’s local Unix socket unless remote access is essential; if you enable HTTPS, protect it with certificate or token trust and firewall rules at both the VPS and provider layers.

What LXD provides on an Ubuntu VPS

LXD is a system-container and virtual-machine manager. It gives you a daemon, command-line client and reusable profiles for creating complete Linux environments rather than individual application containers. LXD is independent of Docker, so you can run LXD containers without installing or using Docker.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An Ubuntu Server cloud image might already contain LXD. Check before installing it; when it is absent, install the self-contained snap:

sudo snap install lxd

The snap supplies the daemon and client as one package. You still need to perform the post-install account and initialization steps before launching instances.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses | Anti UV Ray, For Computers & Gaming, Square Frame, Eyewear for Men and Women
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Prerequisites and decisions to make first

  • An Ubuntu VPS with administrative sudo access.
  • Enough disk capacity and I/O for the images, instance filesystems, snapshots and backups you intend to keep. Provider disk and I/O limits apply even when LXD is correctly configured.
  • A decision about whether you need ordinary system containers, virtual machines, or both. Containers share the host kernel; virtual machines boot a separate kernel and require KVM capability from the VPS provider.
  • A network policy. Decide which services should remain private, which (if any) need inbound access, and where firewall rules will be enforced.
  • A storage choice. The convenient directory backend is suitable for evaluation, while a production VPS normally needs an appropriate dedicated backend selected for its workload.

Do not expose the LXD API merely because you want to reach an application inside a container. Publish the application through its own carefully controlled service path and leave LXD administration on the local socket whenever possible.

Install LXD and enable your administrator account

Install the snap

Run the installation command as a sudo-capable user:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo snap install lxd

If the image already shipped with LXD, the command may report that it is installed. Continue with group membership and initialization rather than installing a second copy by another method.

Add the account to the lxd group

LXD’s local client normally talks to a Unix socket. Membership in the lxd group grants access to that socket, so it is effectively administrative access to the host. Add only trusted administrators:

sudo usermod -aG lxd "$USER"
newgrp lxd

newgrp lxd starts a shell with the new group immediately. Alternatively, log out and start a completely new login session. If you skip this step, commands can fail with a permission error even though id or the account database shows the group.

“Local access to LXD through the Unix socket always grants full access to LXD.” — Canonical LXD documentation, First steps with LXD.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Treat membership like root-level access: review who has it, remove stale accounts, and avoid granting it to an application service account that does not need host control.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Run lxd init deliberately

Initialize the daemon after installing the snap and refreshing your login shell:

lxd init

The initializer covers clustering, networking, storage pools and daemon access. Read each prompt as a design decision rather than accepting defaults blindly. A single VPS does not need clustering unless you have a documented multi-node plan; a cluster decision affects how the daemon is operated later.

Minimal initialization for a disposable test VPS

For a temporary experiment, use:

lxd init --minimal

This creates a basic configuration using a dir storage pool and a simple network setup. It is convenient for checking that LXD works, but the directory backend is less optimized for snapshot operations, copy and launch speed, quotas and backup performance. Do not mistake a successful minimal setup for a production storage design.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Production initialization

Use the interactive initializer for a long-lived VPS. Record the answers in your deployment documentation, and make sure they match the provider’s disk and networking limits.

  • Clustering: enable it only when the VPS is part of an intentional LXD cluster. A standalone host should have a simple standalone configuration.
  • Networking: choose whether LXD should create a managed bridge. A managed bridge such as lxdbr0 gives instances a predictable virtual network and address allocation.
  • Storage: choose a backend appropriate to your workload and available disks. Directory or loop-backed storage is useful for evaluation; production should use a suitable dedicated backend and account for snapshot and backup requirements.
  • Daemon access: keep the API on the local Unix socket unless a genuine remote administration requirement exists.

For repeatable builds, put the same decisions in a reviewed YAML preseed file and apply it with:

lxd init --preseed

Feed the command the approved YAML through standard input or your deployment automation. Store the file in version control with secrets handled separately; a preseed file should document the intended topology, pools, bridge and access policy, not become an unreviewed shortcut around them.

Choose storage with the workload in mind

Storage approach Best use Important limitation or check
Directory (dir) Evaluation, disposable test VPSs and simple functional checks Less optimized for snapshots, copy/launch speed, quotas and backup performance.
Loop-backed storage Evaluation when a basic pool is needed without dedicated block storage Confirm the image file’s size and the VPS provider’s disk and I/O limits; it is not automatically a production-grade design.
Dedicated production backend Long-lived services, frequent snapshots, controlled quotas or regular backups Select an appropriate backend for the provider’s disks and document its capacity, performance and recovery behavior.

LXD can launch an instance on a technically valid pool even when that pool is a poor operational choice. Test image import, copy, snapshot and restore behavior before committing production workloads. Keep free space for package updates and snapshots; a full VPS filesystem can prevent both the host and its instances from recovering cleanly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men | Office Gifts for Women, iPhone Stand, Gadgets for Men, Office Decor, Gaming Desk Accessories for Samsung Fold 8, Switch, iPad
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Understand the managed bridge and forwarding changes

A managed bridge gives instances a virtual interface and lets LXD provide local addressing. The convenience has a host-wide consequence: creating the bridge enables IPv4 forwarding globally, and enables IPv6 forwarding where applicable. The host is therefore capable of routing traffic between interfaces.

Before publishing a container service, review:

  • Which host interfaces can route to the bridge.
  • Whether the VPS provider already applies network filtering or disables forwarding.
  • Host firewall rules for inbound, outbound and forwarded traffic.
  • Any cloud firewall or security-group rules outside the VPS.
  • Whether the container should be reachable only from the host, from a private network, or from the public Internet.

Do not assume that a container’s private address is a security boundary. Forwarding and firewall policy determine whether packets can cross from an external interface to the bridge. A service can remain private even when the bridge exists, but that requires explicit rules and application binding choices.

Launch and verify your first Ubuntu container

Once initialization completes, launch the documented Ubuntu 24.04 image:

lxc launch ubuntu:24.04 ubuntu-container

The general form is lxc launch <image_server>:<image_name> <instance_name>. The command downloads the image, creates an instance on the selected storage pool and applies the default profile.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check state, configuration and access

lxc list
lxc info ubuntu-container
lxc exec ubuntu-container -- bash

Use the commands in this order when diagnosing a new instance:

  1. lxc list confirms that the instance exists, is running and has an address.
  2. lxc info ubuntu-container shows detailed state, devices and runtime information.
  3. lxc exec ubuntu-container -- bash opens a shell inside the running instance for package, process and network checks.

Confirm that the instance is running, uses the expected default profile, receives a root disk from the pool selected during initialization, and has a network interface attached to the intended bridge. If an address is missing, inspect the bridge and profile before changing application configuration.

Containers or virtual machines?

Characteristic LXD container LXD virtual machine
Kernel Shares the Ubuntu VPS host kernel. Boots its own guest kernel.
Startup and overhead Usually starts quickly with lower overhead because there is no guest kernel. Needs the resources and boot process of a complete virtual machine.
Isolation boundary Strong process and filesystem isolation, bounded by the shared-kernel model. Separate kernel and stronger kernel-level separation from the host.
VPS requirement Works on a VPS that supports LXD containers. Requires KVM capability exposed by the VPS platform.

Check whether the host can create virtual machines:

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
lxc info | grep -FA2 'instance_types'

If virtual-machine is absent from the output, the platform is not advertising the required capability. Use containers, or move to a VPS plan that exposes KVM (and any required nested-virtualization support). Do not attempt to force a VM configuration on a host that cannot provide it.

Keep administration local, or expose HTTPS intentionally

Default local access

By default, LXD is socket-activated and listens on a local Unix socket. This is the safest administrative posture for most single-server deployments: the API is not reachable from the Internet, and trusted administrators use the local client after joining the lxd group.

When remote API or UI access is necessary

To make LXD available to another machine, configure the daemon’s core.https_address setting to a deliberate HTTPS bind address and port. Bind only the interface and port you intend to use; avoid an unrestricted listener when a private management address is available.

Remote clients must then establish trust using LXD certificates or tokens. Trust is an authentication decision, not a side effect of opening a TCP port: issue access only to named administrators or automation, rotate credentials when staff or systems change, and remove obsolete trust entries.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Protect the listener in two places:

  1. On the VPS, allow the chosen TCP port only from approved management networks in the host firewall.
  2. At the cloud or VPS provider layer, apply the corresponding network-security rule. A provider firewall can block unwanted traffic before it reaches the host.

HTTPS encryption does not replace firewall policy, and a firewall does not replace client trust. Use both. If you only need to administer one VPS, leave core.https_address unset and use SSH to run the local client instead.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use profiles to make instance configuration predictable

A profile is a reusable bundle of instance configuration. The default profile normally supplies a network interface, which is why a newly launched container can obtain an address without a custom device definition.

Create a custom profile when you need predictable placement, limits or isolation. Define both a root disk and a network interface explicitly instead of relying on an implicit default:

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
  • The root disk device should point to the intended storage pool and mount as the instance root filesystem.
  • The network device should attach to the bridge or network that the workload is allowed to use.
  • Any resource limits or isolation settings should be documented with the profile so a replacement instance receives the same policy.

Apply profiles consistently when launching or rebuilding instances. This avoids a common failure mode in which a replacement container lands on a different pool or bridge simply because the host’s default profile changed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the setup repeatable with preseed YAML

Interactive answers are easy to forget and difficult to audit. A reviewed preseed file records the intended LXD configuration for a VPS and can be reapplied during a rebuild with lxd init --preseed. Include the decisions that matter operationally:

  • Whether the host is standalone or clustered.
  • Storage-pool names, drivers and source devices or paths.
  • Managed network and bridge settings.
  • Daemon access policy, including whether an HTTPS address is enabled.
  • Profiles and the root-disk and NIC devices they provide.

Review changes before applying them. A preseed file is powerful enough to alter routing and remote administration; treat it like infrastructure code, protect any embedded credentials, and test it on a disposable VPS first.

Troubleshoot the first setup

“Permission denied” from lxc

The account probably has not entered a new login shell after the group change. Run newgrp lxd or log out and back in. If the problem persists, verify that the intended account, rather than a different service user, is invoking the client. Remember that granting the group is equivalent to granting powerful host control.

The instance launches but has no useful network access

Check lxc list and lxc info ubuntu-container for an interface and address. Then inspect the default or custom profile’s NIC device and confirm it attaches to the intended managed bridge. Review host forwarding and firewall rules, including provider-level rules. A running container does not prove that forwarding or Internet egress is permitted.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Remote clients cannot connect

Confirm that core.https_address is bound to the intended address, that the VPS firewall and provider firewall permit the selected port from the management source, and that the client has a trusted certificate or token. Do not solve a trust failure by opening the port to the entire Internet.

Snapshots or backups are unexpectedly slow

Check whether the pool is using the directory backend or a loop-backed evaluation setup. The documented dir configuration is less optimized for snapshots, copy and launch speed, quotas and backup performance. Reassess the storage backend and the provider’s disk and I/O limits before tuning individual containers.

Virtual-machine launches fail

Run the instance-type check and look for virtual-machine. If it is not advertised, the VPS lacks the KVM capability LXD needs. Continue with containers or select a plan that exposes virtualization extensions; changing an LXD profile cannot create missing host hardware support.

A practical operating checklist

  • Install LXD from the snap only once and keep the package maintained through the snap channel.
  • Limit lxd group membership to trusted administrators.
  • Use lxd init --minimal only for disposable tests; choose and document production storage deliberately.
  • Record the bridge, forwarding and firewall implications before publishing any service.
  • Verify every new instance with lxc list, lxc info and a controlled lxc exec session.
  • Use containers when shared-kernel isolation is sufficient; use VMs only when KVM is available and a separate kernel is required.
  • Keep the API on the Unix socket by default. If HTTPS is enabled, combine certificate or token trust with host and provider firewalls.
  • Define root-disk and NIC devices in custom profiles when placement or isolation must remain stable.
  • Store approved initialization choices in preseed YAML so a rebuild produces the same topology.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

cloud networkingLinux containersLXDserver administrationUbuntu VPSvirtual machines

Leave a reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.