wikiv1:install_eveng
Table of Contents
Instalação do EVE-NG
Instalando o KVM
$ sudo yum install qemu-kvm libvirt virt-install bridge-utils
$ sudo systemctl enable --now libvirtd
]$ sudo systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Ter 2022-07-26 09:16:48 -03; 13s ago Docs: man:libvirtd(8) https://libvirt.org Main PID: 29488 (libvirtd) Tasks: 19 (limit: 32768) CGroup: /system.slice/libvirtd.service ├─29488 /usr/sbin/libvirtd ├─29569 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper └─29571 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper Jul 26 09:16:49 mba-vm-03 dnsmasq[29565]: listening on virbr0(#4): 192.168.122.1 Jul 26 09:16:49 mba-vm-03 dnsmasq[29569]: started, version 2.76 cachesize 150 Jul 26 09:16:49 mba-vm-03 dnsmasq[29569]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth nettlehash no-DNSSEC loop-detect inotify Jul 26 09:16:49 mba-vm-03 dnsmasq-dhcp[29569]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h Jul 26 09:16:49 mba-vm-03 dnsmasq-dhcp[29569]: DHCP, sockets bound exclusively to interface virbr0 Jul 26 09:16:49 mba-vm-03 dnsmasq[29569]: reading /etc/resolv.conf Jul 26 09:16:49 mba-vm-03 dnsmasq[29569]: using nameserver 177.75.176.25#53 Jul 26 09:16:49 mba-vm-03 dnsmasq[29569]: read /etc/hosts - 2 addresses Jul 26 09:16:49 mba-vm-03 dnsmasq[29569]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses Jul 26 09:16:49 mba-vm-03 dnsmasq-dhcp[29569]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Criando a rede bridge e vlan
$ sudo nmcli con add type bridge con-name br270 ifname br270 $ sudo nmcli c mod br270 ipv4.method disabled $ sudo nmcli c mod br270 ipv6.method ignore $ sudo nmcli c mod br270 bridge.stp no $ sudo nmcli c add type vlan con-name vlan270 dev enp11s0f1 id 270 master br270
Criando o datastore para as vms
$ sudo mkdir /datastore/imagens $ sudo virsh pool-define-as --name default --type dir --target /datastore/imagens $ sudo virsh pool-autostart default $ sudo virsh pool-start default
$ sudo virsh pool-list Nome Estado Auto-iniciar ------------------------------------------- default ativo sim
$ sudo getfacl -e /datastore/imagens/ $ sudo setfacl -m u:qemu:rx /datastore/imagens/ $ sudo getfacl -e /datastore/imagens/ $ sudo systemctl restart libvirtd
Criando a vm
$ sudo virt-install \ --name eve \ --description="EVE Community Edition" \ --ram 32768 \ --vcpus 4 \ --disk size=256,format=qcow2 \ --cdrom /datastore/imagens/isos/eve-com-v5.iso \ --virt-type kvm \ --os-type Linux \ --os-variant ubuntu20.04 \ --network bridge:br270 \ --graphics vnc,listen=0.0.0.0 \ --noautoconsole
Acessando a vm
Referências
wikiv1/install_eveng.txt · Last modified: by 127.0.0.1

