[Solved]How do I get systemd on Ubuntu 22.04.3, when using X-11 ?

Asked by Bernard Stafford

I have Ubuntu 22.04.3 currently.
$ lsb_release -a; uname -a; dpkg -l | grep ' linux-i'
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Linux b3-VirtualBox 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
ii linux-image-6.2.0-26-generic 6.2.0-26.26~22.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-22.04 6.2.0.26.26~22.04.7 amd64 Generic Linux kernel image

I need systemd to run instances correctly with LXD for making instances of containers, according to Ubuntu discourse.
* On this system how do I get to and boot each time on systemd ?
* How do I make x11 boot every time ?
During boot their is no "Advanced feature" to initiate using systemd.
Boot goes directly to the OS then boots automatically.
Operating system is running in Virtual Box.
Found this as some kind of reference: ?
https://askubuntu.com/questions/1417094/when-is-ubuntu-likely-to-have-systemd-251
This is why I ask this question.. I am now perplexed..?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bernard Stafford
Solved:
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#1
Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#2

$ lxd init
Would you like to use LXD clustering? (yes/no) [default=no]: no
Do you want to configure a new storage pool? (yes/no) [default=yes]: yes
Name of the new storage pool [default=default]: Rpool
Name of the storage backend to use (dir, lvm, zfs, btrfs, ceph) [default=zfs]:
Create a new ZFS pool? (yes/no) [default=yes]:
Would you like to use an existing empty block device (e.g. a disk or partition)? (yes/no) [default=no]:
Size in GiB of the new loop device (1GiB minimum) [default=5GiB]:
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
-----
Command line output:
$ lxd init
Would you like to use LXD clustering? (yes/no) [default=no]: no
Do you want to configure a new storage pool? (yes/no) [default=yes]: yes
Name of the new storage pool [default=default]: Rpool
Name of the storage backend to use (dir, lvm, zfs, btrfs, ceph) [default=zfs]:
Create a new ZFS pool? (yes/no) [default=yes]:
Would you like to use an existing empty block device (e.g. a disk or partition)? (yes/no) [default=no]:
Size in GiB of the new loop device (1GiB minimum) [default=5GiB]:
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
Would you like the LXD server to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]:
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:
[enter for defualt]
b3@b3-VirtualBox:~$

What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
Would you like the LXD server to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]:
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: no
hit enter for default.. Nothing..command line turned to user input.

Revision history for this message
Bernard Stafford (bernard010) said :
#3

I forgot to:
lxc config set ubuntu-1804 limits.memory 500MB
b3@b3-VirtualBox:~$ lxc exec ubuntu-1804 bash
root@ubuntu-1804:~# free -m
Limit the memory usage for the LXD container.
 Systemd requirements must be irrelevant, works fine in wayland and x-11 with out using systemd.
From:
total used free shared buff/cache available
Mem: 7933 37 7816 0 78 7895
Swap: 0 0 0

To:
total used free shared buff/cache available
Mem: 476 37 360 0 78 439
Swap: 0 0 0