Best tool to manage Centos KVM ? + Guide
-
@msff-amman-Itofficer just use the libvirt shell, virsh! You can both connect to the host via ssh and use virsh installed on the host, or install virsh in the machine you are connecting from and use virsh in a remote fashion.
Virsh can do almost anything you can do with KVM: you can even edit the XML configuration of vm and networks by hand, so really no flexibility limit.
It's also easy scriptable and include a serial remote console, so you can install your OS by hand etc.If you really really need a graphical console with virsh, you can install any VNC client on your machine and connect to a vm using virsh this way.
-
While I understand what your saying, and it is the ''pure way'' its not that I dont want to learn new things, its just I want to be quick at deploying VMs, and having a tool for me is much preferred.
But will try to keep that as an option, I do deal with virsh shell, but in very humble mannor, like Virsh Destroy and list --all and start/shutdown. But down the road I will learn more.
-
I found this as well:
https://github.com/tobimensch/aqemu
https://sourceforge.net/projects/aqemu/?source=navbarBUt no windows port I wonder how long and much will it take to me port it
-
@msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:
While I understand what your saying, and it is the ''pure way'' its not that I dont want to learn new things, its just I want to be quick at deploying VMs, and having a tool for me is much preferred.
But will try to keep that as an option, I do deal with virsh shell, but in very humble mannor, like Virsh Destroy and list --all and start/shutdown. But down the road I will learn more.
Mmmh, if you want to quickly provision VMs you just have to script it! I have made scripts that creates simple VMs (small, large, etc) with different OSs using <10 lines of bash or python.
It's also very easy to export the xml of a gold master VM and create N new VMs using the master configuration as a template… surely quickly than going through all those gui-based steps!Libvirt include several tools that automatically install, customize and deploy VMs in a cloud-like way.
For example, in one line of virt-builder you can create ready-to-go VM customizing password, installed packages and many other stuff without look at an install prompt: everything is completely automated. -
@msff-amman-Itofficer just look at this for quickly provisioning.
-
Virt-Manager obfuscates the entries in the window on purpose. If you generate a key instead of using a password to log into the machine, it won't ask you for the password any more. This is especially helpful when using SPICE as it will ask you for your password on every channel it sets up for the console.
Virt-Manager and virsh are the only tools I use to manage KVM.
-
Needs tags
-
Hey man.
I managed to generate keys (inside Linux environment using ssh-keygen -t rsa and use ''authorized_keys'' file on both machines) and things are alot smoother now, but going back to what you mentioned:
''Virt-Manager obfuscates the entries in the window on purpose."
Seeing you have many posts that deal with KVM, can you help me sort this out. How can I fix this? does it need something like ssh pass-wordless login to resolve, but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?
-
@msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:
Hey man.
I managed to generate keys (inside Linux environment using ssh-keygen -t rsa and use ''authorized_keys'' file on both machines) and things are alot smoother now, but going back to what you mentioned:
''Virt-Manager obfuscates the entries in the window on purpose."
Seeing you have many posts that deal with KVM, can you help me sort this out. How can I fix this? does it need something like ssh pass-wordless login to resolve, but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?
That I don't know how to answer. I don't have any Windows machines so I never encounter those issues.
-
Install SSH on your Windows box: https://chocolatey.org/packages/openssh. This is a port of OpenSSH made by Microsoft's Powershell team.
-
@msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:
but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?
Windows has had SSH for a while now. Both OpenSSH as a server and OpenSSH as a client, plus tools like Putty, too.
-
The Windows 10 Developer set installs SSH by default now, too.
-
@scottalanmiller said in Best tool to manage Centos KVM ? + Guide:
The Windows 10 Developer set installs SSH by default now, too.
Very cool.
-
@scottalanmiller said in Best tool to manage Centos KVM ? + Guide:
@msff-amman-Itofficer said in Best tool to manage Centos KVM ? + Guide:
but in Windows environment (virt-viewer) they dont have ssh... so how can I resolve it?
Windows has had SSH for a while now. Both OpenSSH as a server and OpenSSH as a client, plus tools like Putty, too.
That doesn't help with virt-viewer though unless you're making a tunnel. I've never used virt-viewer on windows so I don't know if it has an option for keys.