nerdexam
LPI

305-300 · Question #99

Which of the following devices exist by default in an LXC container? (Choose three.)

The correct answer is A. /dev/log B. /dev/console C. /dev/urandom. LXC (Linux Containers) is a lightweight virtualization technology that allows multiple isolated Linux systems (containers) to run on the same host. LXC uses Linux kernel features such as namespaces, cgroups, and AppArmor to create and manage containers. Each container has its…

Containerization

Question

Which of the following devices exist by default in an LXC container? (Choose three.)

Options

  • A/dev/log
  • B/dev/console
  • C/dev/urandom
  • D/dev/kmem
  • E/dev/root

How the community answered

(44 responses)
  • A
    75% (33)
  • D
    18% (8)
  • E
    7% (3)

Explanation

LXC (Linux Containers) is a lightweight virtualization technology that allows multiple isolated Linux systems (containers) to run on the same host. LXC uses Linux kernel features such as namespaces, cgroups, and AppArmor to create and manage containers. Each container has its own file system, network interfaces, process tree, and resource limits. However, containers share the same kernel and hardware with the host, which makes them more efficient and faster than full By default, an LXC container has a minimal set of devices that are needed for its operation. These devices are created by the LXC library when the container is started, and are removed when the container is stopped. The default devices are: /dev/log: This is a Unix domain socket that connects to the syslog daemon on the host. It allows the container to send log messages to the host's system log. /dev/console: This is a character device that provides access to the container's console. It is usually connected to the host's terminal or a file. It allows the container to interact with the user or the host's init system. /dev/urandom: This is a character device that provides an unlimited source of pseudo-random numbers. It is used by various applications and libraries that need randomness, such as cryptography, UUID generation, and hashing.

Topics

#LXC#device files#/dev#container defaults

Community Discussion

No community discussion yet for this question.

Full 305-300 Practice