ok - 352.2 - LXC Flashcards

1
Q

Como ver as informações do container debian12?
A) lxc info debian12
B) lxc file edit debian12/etc/profile
C) lxc config set debian12 limits.memory 20%
D) lxc file delete debian12/tmp/arquivo.img

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Como mostrar toda a configuração do container?
A) lxc config show debian12
B) lxc file push ./novo-disco.img debian12/tmp/arquivo.img
C) lxc config set debian12 boot.autostart false
D) lxc config edit debian12

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como editar a configuração do container usando o editor padrão?
A) lxc file push ./novo-disco.img debian12/tmp/arquivo.img
B) lxc config edit debian12
C) lxc exec debian12 – apt install vim -y
D) lxc config show debian12

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como verificar se o container inicia automaticamente?
A) lxc config get debian12 boot.autostart
B) lxc file delete debian12/tmp/arquivo.img
C) lxc config show debian12
D) lxc config set debian12 boot.autostart false

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como desativar a inicialização automática do container?
A) lxc config edit debian12
B) lxc config set debian12 boot.autostart false
C) lxc config show debian12
D) lxc file edit debian12/etc/profile

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Como limitar o uso de memória do container para 20%?
A) lxc config set debian12 limits.memory 20%
B) lxc config show debian12
C) lxc info debian12
D) lxc file edit debian12/etc/profile

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Como remover o limite de memória do container?
A) lxc config edit debian12
B) lxc config set debian12 limits.memory 20%
C) lxc config unset debian12 limits.memory
D) lxc file pull debian12/etc/profile ./profile-debian12

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Como acessar o shell do container rocky9?
A) lxc file edit debian12/etc/profile
B) lxc config unset debian12 limits.memory
C) lxc exec rocky9 – /bin/bash
D) lxc config get debian12 boot.autostart

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Como instalar o vim no container debian12?
A) lxc exec debian12 – apt install vim -y
B) lxc config show debian12
C) lxc config get debian12 boot.autostart
D) lxc exec rocky9 – /bin/bash

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Como editar o arquivo /etc/profile dentro do container?
A) lxc config edit debian12
B) lxc file edit debian12/etc/profile
C) lxc file delete debian12/tmp/arquivo.img
D) lxc config set debian12 limits.memory 20%

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Como enviar um arquivo local para o container?
A) lxc file push ./novo-disco.img debian12/tmp/arquivo.img
B) lxc exec rocky9 – /bin/bash
C) lxc config unset debian12 limits.memory
D) lxc exec debian12 – apt install vim -y

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Como copiar o arquivo /etc/profile do container para o host?
A) lxc config unset debian12 limits.memory
B) lxc file push ./novo-disco.img debian12/tmp/arquivo.img
C) lxc file pull debian12/etc/profile ./profile-debian12
D) lxc config edit debian12

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Como excluir um arquivo do container?
A) lxc config edit debian12
B) lxc config set debian12 limits.memory 20%
C) lxc file delete debian12/tmp/arquivo.img
D) lxc info debian12

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Qual comando lista todas as redes disponíveis no LXD?
A) physical
B) ovn
C) macvlan
D) lxc network list

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Como visualizar os detalhes da rede lxdbr0?
A) sriov
B) lxc network show lxdbr0
C) lxc network list
D) lxc network set lxdbr0 ipv4.dhcp.ranges=10.119.220.100-10.119.220.200

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Como editar manualmente a configuração da rede lxdbr0?
A) bridge
B) lxc network edit lxdbr0
C) ovn
D) lxc network show lxdbr0

17
Q

Como definir o range de DHCP IPv4 da rede lxdbr0?
A) lxc network list
B) sriov
C) macvlan
D) lxc network set lxdbr0 ipv4.dhcp.ranges=10.119.220.100-10.119.220.200

18
Q

Qual tipo de rede LXD cria uma ponte entre containers?
A) physical
B) lxc network edit lxdbr0
C) lxc network list
D) bridge

19
Q

Qual tipo de rede LXD utiliza o Open Virtual Network?
A) lxc network show lxdbr0
B) sriov
C) lxc network list
D) ovn

20
Q

Qual tipo de rede LXD conecta diretamente à interface física?
A) physical
B) lxc network show lxdbr0
C) lxc network set lxdbr0 ipv4.dhcp.ranges=10.119.220.100-10.119.220.200
D) macvlan

21
Q

Qual tipo de rede LXD permite a criação de interfaces virtuais com VLANs via hardware?
A) lxc network list
B) bridge
C) physical
D) sriov

22
Q

Qual tipo de rede LXD usa endereço MAC virtual para se comunicar via interface física?
A) physical
B) ovn
C) macvlan
D) lxc network set lxdbr0 ipv4.dhcp.ranges=10.119.220.100-10.119.220.200

23
Q

Como criar um snapshot padrão do container debian12?
A) lxc restore debian12 nome-snapshot
B) lxc snapshot debian12
C) lxc snapshot debian12 nome-snapshot
D) /var/lib/lxd/snapshots/

24
Q

Como criar um snapshot com nome personalizado?
A) lxc restore debian12 nome-snapshot
B) lxc copy debian12/snap0 debian12-2
C) lxc snapshot debian12 nome-snapshot
D) lxc info debian12

25
Q

Como restaurar o container debian12 a partir de um snapshot?
A) lxc snapshot debian12 nome-snapshot
B) lxc snapshot debian12
C) lxc restore debian12 nome-snapshot
D) lxc info debian12

26
Q

Como deletar o snapshot ‘snap0’ do container debian12?
A) lxc snapshot debian12 nome-snapshot
B) lxc delete debian12/snap0
C) lxc copy debian12/snap0 debian12-2
D) lxc restore debian12 nome-snapshot

27
Q

Como visualizar as informações (inclusive snapshots) do container debian12?
A) lxc info debian12
B) lxc copy debian12/snap0 debian12-2
C) lxc restore debian12 nome-snapshot
D) lxc delete debian12/snap0

28
Q

Como copiar um snapshot para criar um novo container?
A) lxc copy debian12/snap0 debian12-2
B) lxc restore debian12 nome-snapshot
C) lxc snapshot debian12
D) lxc snapshot debian12 nome-snapshot

29
Q

Qual é o caminho onde os snapshots são armazenados?
A) /var/lib/lxd/snapshots/
B) lxc restore debian12 nome-snapshot
C) lxc snapshot debian12
D) lxc copy debian12/snap0 debian12-2

30
Q

Como listar todos os perfis disponíveis no LXD?
A) lxc profile set production environment.EDITOR vim
B) lxc profile copy default production
C) lxc profile add debian12 production
D) lxc profile list

31
Q

Como exibir o conteúdo do perfil ‘default’?
A) lxc launch 1u1u1u1u1u1 rockylinux9-2 -p production
B) lxc profile list
C) lxc profile show default
D) lxc profile edit production

32
Q

Como copiar o perfil ‘default’ para um novo perfil ‘production’?
A) lxc profile copy default production
B) lxc profile remove debian12 production
C) lxc profile list
D) lxc profile add debian12 production

33
Q

Como editar manualmente o perfil ‘production’?
A) lxc profile add debian12 production
B) lxc profile edit production
C) lxc profile remove debian12 production
D) lxc profile list

34
Q

Como definir o editor padrão como vim no perfil ‘production’?
A) lxc profile copy default production
B) lxc profile remove debian12 production
C) lxc profile set production environment.EDITOR vim
D) lxc profile list

35
Q

Como definir o autostart como true no perfil ‘production’?
A) lxc profile edit production
B) lxc launch 1u1u1u1u1u1 rockylinux9-2 -p production
C) lxc profile set production environment.EDITOR vim
D) lxc profile set production boot.autostart true

36
Q

Como adicionar o perfil ‘production’ ao container debian12?
A) lxc profile add debian12 production
B) lxc profile edit production
C) lxc profile list
D) lxc profile set production environment.EDITOR vim

37
Q

Como remover o perfil ‘production’ do container debian12?
A) lxc profile set production boot.autostart true
B) lxc profile list
C) lxc profile edit production
D) lxc profile remove debian12 production

38
Q

Como lançar um container com o perfil ‘production’?
A) lxc profile set production boot.autostart true
B) lxc profile show default
C) lxc profile add debian12 production
D) lxc launch 1u1u1u1u1u1 rockylinux9-2 -p production