[GroupID]-[Option]-[VMName]
規則 | 内容 |
---|---|
GroupID | グループID |
Option | NetworkIDなど(現時点では0) |
VMName | VM名 |
(例)
1-0-TestVM
-> GroupID(1),Option(0),VMName(TestVM)
- Ubuntu20.04 LTS
sudo apt install qemu-kvm qemu-system libvirt-daemon-system libvirt-daemon libvirt-dev libvirt-clients bridge-utils libosinfo-bin libguestfs-tools virt-top cloud-image-utils
/etc/libvirt/libvirt.conf
unix_sock_group = "libvirt"
unix_sock_ro_perms= "0777"
unix_sock_rw_perms= "0770"
/etc/default/grub
#Intel
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu = on"
#AMD
GRUB_CMDLINE_LINUX_DEFAULT="AMD_iommu = on"
sudo grub-mkconfig -o /boot/grub/grub.cfg
echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
kvm -M help (ubuntu)
/usr/libexec/qemu-kvm -machine help (CentOS)
WebSocketポートはVNCポート-500により