Linux - Virtualisation

From Smithnet Wiki
Jump to navigation Jump to search

libvrit

systemctl enable libvirtd
systemctl start libvirtd

Use Virtual Machine Manager to create new virtual network(s):

  • NAT: default (with internal DNS/DHCP)
  • Routed: External networks need to have static routes
  • Isolated: Only internal communications

Default virtual network device: virbr0

Use virsh for command line tools

pool-list
pool-destroy default
pool-undefine default
pool-define-as --name default --type dir --target /mnt/vm
pool-autostart default
pool-start default

Here we use "default" as the pool name.

Default storage:

  • /var/lib/libvirt/images

VirtualBox

Download the repo file into /etc/yum.repos.d

dnf install VirtualBox