To KVM or not to KVM

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: To KVM or not to KVM

#11 Post by Head_on_a_Stick »

Paul.. wrote: Sat Dec 21, 2019 9:13 am Overall, what is the compatibility with .vbox files? Can KVM or gnome-boxes read them, or is there a significant conversion process required?
The qemu-img command should be able to convert disk images between various formats:

https://docs.openstack.org/image-guide/ ... mages.html
mod note: Signature removed, please read the forum rules

alamahant
Posts: 42
Joined: Thu Dec 19, 2019 9:48 pm

Re: To KVM or not to KVM

#12 Post by alamahant »

Buck Fankers
Yes that is correct.
""usermod -aG libvirt $USER"
This I think allows the non root user to use Virtual Manager from the desktop icon and connect to libvirt.
BUT you can also run it from a terminal like this
"sudo virt-manager"
In KVM you do NOT need to explicitly add any packages on the guests.It works out of the box.
I am unaware if this is the case also in gnome-boxes.

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: To KVM or not to KVM

#13 Post by Head_on_a_Stick »

alamahant wrote: Sat Dec 21, 2019 9:28 am In KVM you do NOT need to explicitly add any packages on the guests.It works out of the box.
I am unaware if this is the case also in gnome-boxes.
For gnome-boxes guests the spice-vdagent package is needed for shared clipboards and automatic resizing of the guest desktop to fit the display window and spice-webdavd is needed for shared folders.
mod note: Signature removed, please read the forum rules

alamahant
Posts: 42
Joined: Thu Dec 19, 2019 9:48 pm

Re: To KVM or not to KVM

#14 Post by alamahant »

Buck Fankers
Yes that is correct.
""usermod -aG libvirt $USER"
This I think allows the non root user to use Virtual Manager from the desktop icon and connect to libvirt.
BUT you can also run it from a terminal like this
"sudo virt-manager"
In Virtual Manager you do NOT need to explicitly add any packages on the guests.It works out of the box.
I am unaware if this is the case also in gnome-boxes.

User avatar
Buck Fankers
Posts: 767
Joined: Sat Mar 10, 2018 8:06 pm

Re: To KVM or not to KVM

#15 Post by Buck Fankers »

Head_on_a_Stick wrote: Sat Dec 21, 2019 9:10 am @{Buck Fankers}: yes, that's right. Just gnome-boxes and the spice packages should do it. MX-19 already has the spice-vdagent package (and I recently requested that they add spice-webdavd).
Thanks, will give it a try!

User avatar
Buck Fankers
Posts: 767
Joined: Sat Mar 10, 2018 8:06 pm

Re: To KVM or not to KVM

#16 Post by Buck Fankers »

alamahant wrote: Sat Dec 21, 2019 9:35 am Buck Fankers
Yes that is correct.
""usermod -aG libvirt $USER"
This I think allows the non root user to use Virtual Manager from the desktop icon and connect to libvirt.
BUT you can also run it from a terminal like this
"sudo virt-manager"
In Virtual Manager you do NOT need to explicitly add any packages on the guests.It works out of the box.
I am unaware if this is the case also in gnome-boxes.
Thank you for all the info!

alamahant
Posts: 42
Joined: Thu Dec 19, 2019 9:48 pm

Re: To KVM or not to KVM

#17 Post by alamahant »

Paul..
You need to transform VirtualBox disks to KVM format.
I think you have to use the "vboxmanage" command..

User avatar
gosia
Posts: 1128
Joined: Sun Apr 28, 2019 3:43 pm

Re: To KVM or not to KVM

#18 Post by gosia »

Head_on_a_Stick wrote: Sat Dec 21, 2019 7:15 am I think the package is actually called gir1.2-spiceclientgtk-3.0
Ah, now I've found a package gir1.2-spice-client-gtk-3.0

grelos
Posts: 76
Joined: Wed Mar 28, 2018 3:12 pm

Re: To KVM or not to KVM

#19 Post by grelos »

I'd like to ditch Virtualbox and start enjoying KVM but I am facing some issues even for creating my first VM.

I get this error:

Code: Select all

could not start virtual network 'default': internal error: Failed to initialize a valid firewall backend

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/netlist.py", line 361, in validate_network
    netobj.start()
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/network.py", line 81, in start
    self._backend.create()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2832, in create
    if ret == -1: raise libvirtError ('virNetworkCreate() failed', net=self)
libvirtError: internal error: Failed to initialize a valid firewall backend
I did a search on the web and found that some fixed it disabling ipv6 but I am not sure it is my case.
My pc is connected with wifi, not ethernet.
MX-19 on Lenovo 520-15IKB

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: To KVM or not to KVM

#20 Post by JayM »

Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

Post Reply

Return to “Tips & Tricks by users”