8,560
edits
(Created page with "left <br clear="all" /> 1. '''[https://ru.wikipedia.org/wiki/Виртуализация Virtualization]''' <br clear="all" /> 2. '''[https://ru.wikip...") |
(Updating to match new version of source page) |
||
Line 35: | Line 35: | ||
<br clear="all" /> | <br clear="all" /> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
= What we absolutely must know = | = What we absolutely must know = | ||
<br clear="all" /> | <br clear="all" /> | ||
Line 47: | Line 48: | ||
5. The minimum hardware requirements of the operating system you want to install as a virtual machine. | 5. The minimum hardware requirements of the operating system you want to install as a virtual machine. | ||
<br clear="all" /> | <br clear="all" /> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
= Install virt-manager, qemu and all dependencies= | = Install virt-manager, qemu and all dependencies= | ||
<br clear="all" /> | <br clear="all" /> | ||
From terminal: | From terminal: | ||
sudo pacman -S virt-manager qemu | sudo pacman -S --needed virt-manager qemu-desktop libvirt edk2-ovmf dnsmasq iptables-nft | ||
For TPM support: | |||
sudo pacman -S --asdeps swtpm | |||
Enable and start service | Enable and start service | ||
sudo systemctl enable libvirtd.service | sudo systemctl enable libvirtd.service | ||
Line 60: | Line 65: | ||
# You don't need this step to run system-level virtual machines. However, virt-manager will prompt for sudoer's password when launch if the user is not in the ''libvirt'' group | # You don't need this step to run system-level virtual machines. However, virt-manager will prompt for sudoer's password when launch if the user is not in the ''libvirt'' group | ||
# You can also create '''user'''-level virtual machines (qemu:///session) and use without sudoer's privelige. However, some features such as [https://libvirt.org/kbase/virtiofs.html VirtioFS file sharing] may be unavailable in qemu:///session}} | # You can also create '''user'''-level virtual machines (qemu:///session) and use without sudoer's privelige. However, some features such as [https://libvirt.org/kbase/virtiofs.html VirtioFS file sharing] may be unavailable in qemu:///session}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
= Using Virt-Manager for guest creation= | = Using Virt-Manager for guest creation= | ||
<br clear="all" /> | <br clear="all" /> | ||
Line 96: | Line 103: | ||
<br clear="all" /> | <br clear="all" /> | ||
{{warning|'''All these steps are visible on youtube.''' '''[https://youtu.be/DiUG_hlLk3c >>> PLAY THIS] [[File:YouTube_1.png|thumb|center|300px]]'''}} | {{warning|'''All these steps are visible on youtube.''' '''[https://youtu.be/DiUG_hlLk3c >>> PLAY THIS] [[File:YouTube_1.png|thumb|center|300px]]'''}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Install guest additions== | ==Install guest additions== | ||
Once the VM is started and running you have to install the [https://www.spice-space.org/download.html spice guest tools]. | Once the VM is started and running you have to install the [https://www.spice-space.org/download.html spice guest tools]. | ||
Line 105: | Line 114: | ||
<br clear="all" /> | <br clear="all" /> | ||
Visit: '''[http://www.spice-space.org/download.html Spice download]''' | Visit: '''[http://www.spice-space.org/download.html Spice download]''' | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Tune the display settings== | ==Tune the display settings== | ||
The default model of display card is QXL. If your virtual machine is Linux system, you can change it to virtio and enable 3D acceleration for better graphic performance. | The default model of display card is QXL. If your virtual machine is Linux system, you can change it to virtio and enable 3D acceleration for better graphic performance. | ||
Line 115: | Line 126: | ||
# In virtual machine details, go to display card. Under the XML tab, change the value of '''vgamem''' to 65536, then apply the change. | # In virtual machine details, go to display card. Under the XML tab, change the value of '''vgamem''' to 65536, then apply the change. | ||
<br clear="all" /> | <br clear="all" /> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==File sharing between host and guest== | ==File sharing between host and guest== | ||
For Linux guests, Virtio-FS and 9p are available for file sharing. See [https://wiki.archlinux.org/title/Libvirt#Sharing_data_between_host_and_guest ArchWiki] for more information. | For Linux guests, Virtio-FS and 9p are available for file sharing. See [https://wiki.archlinux.org/title/Libvirt#Sharing_data_between_host_and_guest ArchWiki] for more information. | ||
Line 125: | Line 138: | ||
Check [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_virtualization/sharing-files-between-the-host-and-its-virtual-machines_configuring-and-managing-virtualization#sharing-files-between-the-host-and-windows-virtual-machines_sharing-files-between-the-host-and-its-virtual-machines this article] for more information. | Check [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_virtualization/sharing-files-between-the-host-and-its-virtual-machines_configuring-and-managing-virtualization#sharing-files-between-the-host-and-windows-virtual-machines_sharing-files-between-the-host-and-its-virtual-machines this article] for more information. | ||
<br clear="all" /> | <br clear="all" /> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Optimize vCPU== | ==Optimize vCPU== | ||
Check [https://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/ch25s06.html this article] to customize vCPU topology for better performance. | Check [https://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/ch25s06.html this article] to customize vCPU topology for better performance. | ||
Line 131: | Line 146: | ||
For example, my CPU has 1 socket, 8 cores, and 16 threads in total. The automatic topology assigns 4 sockets, 1 core, and 1 thread to my guest. After changing it to 1 socket, 4 cores, and 1 thread, the performance increases significantly. | For example, my CPU has 1 socket, 8 cores, and 16 threads in total. The automatic topology assigns 4 sockets, 1 core, and 1 thread to my guest. After changing it to 1 socket, 4 cores, and 1 thread, the performance increases significantly. | ||
<br clear="all" /> | <br clear="all" /> | ||
</div> | |||
= Рекомендации = | = Рекомендации = | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
'''[https://virt-manager.org/ Virt-manager]''' | '''[https://virt-manager.org/ Virt-manager]''' | ||
<br clear="all" /> | <br clear="all" /> | ||
Line 146: | Line 163: | ||
'''[http://www.amd.com/en-gb/innovations/software-technologies/processors-for-business/virtualization Amd-v]''' | '''[http://www.amd.com/en-gb/innovations/software-technologies/processors-for-business/virtualization Amd-v]''' | ||
<br clear="all" /> | <br clear="all" /> | ||
</div> | |||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] |