Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I thought if you don't have it enabled kvm will not function.
You can also make things run faster by adding more video ram to the disk image. By default only 9mb is assigned. You have to do that in the xml file though for the specific vm.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336
Original Poster
Rep:
Where are these XML files that tutorials talk about? I have yet to find that. Some tutorials even say to create it myself, but what do I put in it? I find the documentation is very lacking.
Anyway, I ended up giving up and went to VMware ESXi and VMs just fly now. Got it up and running in less than an hour, even got all my vlans working.
I can also make changes to the VM such as change the CD or network interface without having to shut down the VM for the changes to take effect. That was a big drawback I discovered afterwards while trying KVM.
Where are these XML files that tutorials talk about? I have yet to find that. Some tutorials even say to create it myself, but what do I put in it? I find the documentation is very lacking.
The XML files can be used with/by libvirt and aren't part of KVM per se. You can create an XML file for an existing VM with virsh dumpxml, and a VM can be created from an XML file with virsh define.
I have to agree about the documentation being somewhat unclear. I found it to be quite thorough when it came to explaining each separate setting, but a complete sample file would have literally saved me hours of trial and error.
Quote:
Originally Posted by Red Squirrel
Anyway, I ended up giving up and went to VMware ESXi and VMs just fly now. Got it up and running in less than an hour, even got all my vlans working.
That's actually a pretty good description of my experiences with KVM over the last 6-8 years.
Quote:
Originally Posted by Red Squirrel
I can also make changes to the VM such as change the CD or network interface without having to shut down the VM for the changes to take effect. That was a big drawback I discovered afterwards while trying KVM.
There's no drawback, as KVM allovs hotplugging of devices and media. You can do it with virsh, which actually has a half-decent help function.
But I'd have to agree that the GUIs in ESXi (and VirtualBox, for that matter) makes it much easier.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336
Original Poster
Rep:
Yeah I had tried that, and the module was loaded (think it was called kvm_intel if I recall)
Though good to know that hot plugging is available through virsh. I just could not find any documentation saying how to do much in there and did not see any option. Everything seems to want a xml file but that's not really explained very well anywhere. Only snippets here and there but it's very vague.
One of these days I might look at writing a proper interface for kvm. Something that you can just point and click, like vmware, and with none of the limitations some of the existing ones like proxmox have (ex: not being able to read subfolders in the ISO folder). But now I just needed something up and running without messing around.
I imagine that will vary from distro to distro and most of the time I don't put a GUI anyway, but to me that seems really flaky. Is there a way to fix that?
From what I can tell, it has to do with compositing and transparencies. The only way I've found around it is to use Spice for accessing the VM. (I use proxmox, so it's pretty easy for me to do).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.