<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=LXD-VM</id>
	<title>LXD-VM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=LXD-VM"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=LXD-VM&amp;action=history"/>
	<updated>2026-04-28T04:38:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=LXD-VM&amp;diff=379&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;#  - https://discuss.linuxcontainers.org/t/trying-lxd-virtual-machines/6182  ``` root@lantea:~# snap install lxd --edge &amp;&amp; lxd.migrate -yes 2019-11-19T20:35:09Z INFO Waiting f...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=LXD-VM&amp;diff=379&amp;oldid=prev"/>
		<updated>2020-02-02T05:20:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;#  - https://discuss.linuxcontainers.org/t/trying-lxd-virtual-machines/6182  ``` root@lantea:~# snap install lxd --edge &amp;amp;&amp;amp; lxd.migrate -yes 2019-11-19T20:35:09Z INFO Waiting f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# &lt;br /&gt;
- https://discuss.linuxcontainers.org/t/trying-lxd-virtual-machines/6182&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
root@lantea:~# snap install lxd --edge &amp;amp;&amp;amp; lxd.migrate -yes&lt;br /&gt;
2019-11-19T20:35:09Z INFO Waiting for restart...&lt;br /&gt;
lxd (edge) git-2b837b6 from Canonical✓ installed&lt;br /&gt;
=&amp;gt; Connecting to source server&lt;br /&gt;
=&amp;gt; Connecting to destination server&lt;br /&gt;
=&amp;gt; Running sanity checks&lt;br /&gt;
The source server is empty, no migration needed.&lt;br /&gt;
&lt;br /&gt;
The migration is now complete and your containers should be back online.&lt;br /&gt;
&lt;br /&gt;
All done. You may need to close your current shell and open a new one to have the &amp;quot;lxc&amp;quot; command work.&lt;br /&gt;
To migrate your existing client configuration, move ~/.config/lxc to ~/snap/lxd/current/.config/lxc&lt;br /&gt;
&lt;br /&gt;
root@lantea:~# lxd init&lt;br /&gt;
Would you like to use LXD clustering? (yes/no) [default=no]: &lt;br /&gt;
Do you want to configure a new storage pool? (yes/no) [default=yes]: &lt;br /&gt;
Name of the new storage pool [default=default]: &lt;br /&gt;
Name of the storage backend to use (btrfs, ceph, dir, lvm, zfs) [default=zfs]: dir&lt;br /&gt;
Would you like to connect to a MAAS server? (yes/no) [default=no]: &lt;br /&gt;
Would you like to create a new local network bridge? (yes/no) [default=yes]: &lt;br /&gt;
What should the new bridge be called? [default=lxdbr0]: &lt;br /&gt;
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: &lt;br /&gt;
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: &lt;br /&gt;
Would you like LXD to be available over the network? (yes/no) [default=no]: &lt;br /&gt;
Would you like stale cached images to be updated automatically? (yes/no) [default=yes] &lt;br /&gt;
Would you like a YAML &amp;quot;lxd init&amp;quot; preseed to be printed? (yes/no) [default=no]: &lt;br /&gt;
&lt;br /&gt;
root@lantea:~# lxc profile edit default&lt;br /&gt;
root@lantea:~# lxc profile show default&lt;br /&gt;
config:&lt;br /&gt;
  user.vendor-data: |&lt;br /&gt;
    #cloud-config&lt;br /&gt;
    apt_mirror: http://us.archive.ubuntu.com/ubuntu/&lt;br /&gt;
    ssh_pwauth: yes&lt;br /&gt;
    users:&lt;br /&gt;
      - name: ubuntu&lt;br /&gt;
        passwd: &amp;quot;$6$s.wXDkoGmU5md$d.vxMQSvtcs1I7wUG4SLgUhmarY7BR.5lusJq1D9U9EnHK2LJx18x90ipsg0g3Jcomfp0EoGAZYfgvT22qGFl/&amp;quot;&lt;br /&gt;
        lock_passwd: false&lt;br /&gt;
        groups: lxd&lt;br /&gt;
        shell: /bin/bash&lt;br /&gt;
        sudo: ALL=(ALL) NOPASSWD:ALL&lt;br /&gt;
description: Default LXD profile&lt;br /&gt;
devices:&lt;br /&gt;
  eth0:&lt;br /&gt;
    name: eth0&lt;br /&gt;
    nictype: bridged&lt;br /&gt;
    parent: lxdbr0&lt;br /&gt;
    type: nic&lt;br /&gt;
  root:&lt;br /&gt;
    path: /&lt;br /&gt;
    pool: default&lt;br /&gt;
    type: disk&lt;br /&gt;
name: default&lt;br /&gt;
used_by: []&lt;br /&gt;
root@lantea:~# lxc launch ubuntu:18.04 c1&lt;br /&gt;
Creating c1&lt;br /&gt;
Starting c1                               &lt;br /&gt;
&lt;br /&gt;
root@lantea:~# lxc init ubuntu:18.04 v1 --vm&lt;br /&gt;
Creating v1&lt;br /&gt;
root@lantea:~# lxc config device add v1 config disk source=cloud-init:config&lt;br /&gt;
Device config added to v1&lt;br /&gt;
root@lantea:~# lxc start v1&lt;br /&gt;
&lt;br /&gt;
root@lantea:~# lxc console v1&lt;br /&gt;
To detach from the console, press: &amp;lt;ctrl&amp;gt;+a q&lt;br /&gt;
&lt;br /&gt;
v1 login: ubuntu&lt;br /&gt;
Password: &lt;br /&gt;
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-70-generic x86_64)&lt;br /&gt;
&lt;br /&gt;
 * Documentation:  https://help.ubuntu.com&lt;br /&gt;
 * Management:     https://landscape.canonical.com&lt;br /&gt;
 * Support:        https://ubuntu.com/advantage&lt;br /&gt;
&lt;br /&gt;
  System information as of Tue Nov 19 21:53:52 UTC 2019&lt;br /&gt;
&lt;br /&gt;
  System load:  0.24              Processes:             110&lt;br /&gt;
  Usage of /:   10.8% of 8.86GB   Users logged in:       0&lt;br /&gt;
  Memory usage: 12%               IP address for enp5s0: 10.86.33.201&lt;br /&gt;
  Swap usage:   0%&lt;br /&gt;
&lt;br /&gt;
0 packages can be updated.&lt;br /&gt;
0 updates are security updates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The programs included with the Ubuntu system are free software;&lt;br /&gt;
the exact distribution terms for each program are described in the&lt;br /&gt;
individual files in /usr/share/doc/*/copyright.&lt;br /&gt;
&lt;br /&gt;
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by&lt;br /&gt;
applicable law.&lt;br /&gt;
&lt;br /&gt;
ubuntu@v1:~$ sudo -i&lt;br /&gt;
root@v1:~# mount -t 9p config /mnt/&lt;br /&gt;
root@v1:~# cd /mnt/&lt;br /&gt;
root@v1:/mnt# ./install.sh &lt;br /&gt;
Created symlink /etc/systemd/system/multi-user.target.wants/lxd-agent.service → /lib/systemd/system/lxd-agent.service.&lt;br /&gt;
Created symlink /etc/systemd/system/multi-user.target.wants/lxd-agent-9p.service → /lib/systemd/system/lxd-agent-9p.service.&lt;br /&gt;
&lt;br /&gt;
LXD agent has been installed, reboot to confirm setup.&lt;br /&gt;
To start it now, unmount this filesystem and run: systemctl start lxd-agent-9p lxd-agent&lt;br /&gt;
root@v1:/mnt#&lt;br /&gt;
&lt;br /&gt;
root@lantea:~# lxc restart v1&lt;br /&gt;
root@lantea:~# lxc list&lt;br /&gt;
+------+---------+-----------------------+-------------------------------------------------+-----------------+-----------+&lt;br /&gt;
| NAME |  STATE  |         IPV4          |                      IPV6                       |      TYPE       | SNAPSHOTS |&lt;br /&gt;
+------+---------+-----------------------+-------------------------------------------------+-----------------+-----------+&lt;br /&gt;
| c1   | RUNNING | 10.86.33.59 (eth0)    | fd42:6f9e:d112:ebe1:216:3eff:fefc:8d5b (eth0)   | CONTAINER       | 0         |&lt;br /&gt;
+------+---------+-----------------------+-------------------------------------------------+-----------------+-----------+&lt;br /&gt;
| v1   | RUNNING | 10.86.33.201 (enp5s0) | fd42:6f9e:d112:ebe1:216:3eff:fea4:d961 (enp5s0) | VIRTUAL-MACHINE | 0         |&lt;br /&gt;
+------+---------+-----------------------+-------------------------------------------------+-----------------+-----------+&lt;br /&gt;
&lt;br /&gt;
root@lantea:~# lxc exec v1 bash&lt;br /&gt;
root@v1:~# ls /&lt;br /&gt;
bin   home            lib64       opt   sbin  tmp      vmlinuz.old&lt;br /&gt;
boot  initrd.img      lost+found  proc  snap  usr&lt;br /&gt;
dev   initrd.img.old  media       root  srv   var&lt;br /&gt;
etc   lib             mnt         run   sys   vmlinuz&lt;br /&gt;
root@v1:~# exit&lt;br /&gt;
root@lantea:~# &lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>