ok - 352.2 - LXC Flashcards
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
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
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
B
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
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
B
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
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
C
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
C
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
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%
B
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
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
C
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
C
Qual comando lista todas as redes disponíveis no LXD?
A) physical
B) ovn
C) macvlan
D) lxc network list
D
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
B
Como editar manualmente a configuração da rede lxdbr0?
A) bridge
B) lxc network edit lxdbr0
C) ovn
D) lxc network show lxdbr0
B
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
D
Qual tipo de rede LXD cria uma ponte entre containers?
A) physical
B) lxc network edit lxdbr0
C) lxc network list
D) bridge
D
Qual tipo de rede LXD utiliza o Open Virtual Network?
A) lxc network show lxdbr0
B) sriov
C) lxc network list
D) ovn
D
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
A
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
D
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
C
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/
B
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
C
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
C
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
B
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
A
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
A
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
A
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
D
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
C
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
A
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
B
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
C
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
D
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
A
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
D
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
D