Tuesday, April 16, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 8683  / 2 Years ago, thu, march 3, 2022, 5:41:50

I want to only install the packages that provide virsh to create and manage KVM virtual machines. What do I need to install, what do I need not install to skip the GUI elements?



For the record, I want to run them headless. KVM displays the VMs' visual output using VNC transmitting on certain ports. It would be great if someone could tell me how to know and control what those ports are.


More From » kvm-virtualization

 Answers
1

virsh is provided by the package libvirt-bin. If you type




virshENTER




on the command line, Ubuntu tells you the package name and how to install it:



sudo apt-get install libvirt-bin python-libvirt


This does not seem to depend on GUI stuff. python-libvirt makes it easy to install KVM guests as opposed to directly editing virsh's XML machine configuration to create them. Refer to man python-libvirt for more info.


[#43330] Saturday, March 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
erettor

Total Points: 303
Total Questions: 121
Total Answers: 103

Location: Colombia
Member since Mon, May 2, 2022
2 Years ago
;