The officially official Devuan Forum!

You are not logged in.

#1 2024-03-15 09:24:26

chomwitt
Member
Registered: 2019-09-24
Posts: 119  

A devuan wiki page on virt-manager

---- UPDATE ---
I stopped the wiki page on virt-manager and instead i started a new one
on using Qemu in CommandLineInterface. Using QEMU from a CLI
---- endupdate ---

I started a wiki page on virt-manager in the https://wiki.devuan.org

It's in the sandbox in https://wiki.devuan.org/Sandbox/Virt-Manager .

I occasionaly use virt-manager and in now as in the past i had again difficulties in setting
it right in devuan. So i think a wiki page could function as focus in order to collect
instructions and tips to smooth things out.

devuan wiki needs i guess some thinking about how to organize things so for
time being i put it in the sandbox.

Also for now i choosed to  use as name the package name that i used for installation.

Any corrections and suggestions are welcomed .

Last edited by chomwitt (2024-03-26 08:32:48)


Devuan(Chimaera)(Daedalus)  DS+WM: XorgX11server+StumpVM

Offline

#2 2024-03-15 12:33:55

stopAI
Member
Registered: 2023-04-04
Posts: 131  

Re: A devuan wiki page on virt-manager

Hello.

For better experience, i use these packages:

qemu-kvm libvirt-clients libvirt-daemon libvirt-daemon-system bridge-utils virtinst virt-manager

Also, don't forget to add your user to libvirt and libvirt-qemu  groups:

adduser username libvirt
adduser username libvirt-qemu 

Last edited by stopAI (2024-03-15 12:34:05)

Offline

#3 2024-03-15 15:32:02

chomwitt
Member
Registered: 2019-09-24
Posts: 119  

Re: A devuan wiki page on virt-manager

qemu-kvm is no part of Daedalus.

Last edited by chomwitt (2024-03-15 15:56:19)


Devuan(Chimaera)(Daedalus)  DS+WM: XorgX11server+StumpVM

Offline

#4 2024-03-15 16:42:29

stopAI
Member
Registered: 2023-04-04
Posts: 131  

Re: A devuan wiki page on virt-manager

I'm sorry. An error occurred. I wanted to write

qemu-system-misc

Offline

#5 2024-03-16 06:21:06

chomwitt
Member
Registered: 2019-09-24
Posts: 119  

Re: A devuan wiki page on virt-manager

stopAI thanks for the suggestion. Searching recursively in virt-manager dependencies  ... ->

$ apt-cache depends --recurse --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances virt-manager | grep "^\w" | sort -u | grep 'virtinst\|libvirt-clients\|libvirt-daemon\|qemu-system-misc\|bridge'
libatk-bridge2.0-0
libatk-bridge2.0-0:i386
libvirt-clients
libvirt-daemon
libvirt-daemon-config-network
libvirt-daemon-config-nwfilter
libvirt-daemon-driver-lxc
libvirt-daemon-driver-qemu
libvirt-daemon-driver-vbox
libvirt-daemon-driver-xen
libvirt-daemon-system
libvirt-daemon-system-sysv
qemu-system-misc
qemu-system-misc:i386
virtinst

...-> i see that  bridge-utlis  is the only that is not pulled.

Last edited by chomwitt (2024-03-16 12:57:16)


Devuan(Chimaera)(Daedalus)  DS+WM: XorgX11server+StumpVM

Offline

#6 2024-03-16 22:39:17

pcalvert
Member
Registered: 2017-05-15
Posts: 195  

Re: A devuan wiki page on virt-manager

I have never used virt-manager. I tried using about a year ago, but quickly became annoyed with it and gave up. Since it is unnecessary and I can use QEMU without it, that is my current preference. I only mention that because some people seem to think that using virt-manager is a requirement.


Freespoke is a new search engine that respects user privacy and does not engage in censorship.

Offline

#7 2024-03-17 05:30:36

chomwitt
Member
Registered: 2019-09-24
Posts: 119  

Re: A devuan wiki page on virt-manager

I started using virt-manager and it kind felt ok . But it has that irritating config setup.
I wouldnt have problem trying command line. A small push with a link to a good tutorial
would help. I dont mean fancy one in a website that welcomes you with a thousand cookies
harvester companies. A simple one laying out simple concepts would be ok.


Devuan(Chimaera)(Daedalus)  DS+WM: XorgX11server+StumpVM

Offline

#8 2024-03-19 19:43:55

Matlib
Member
Registered: 2022-08-25
Posts: 4  
Website

Re: A devuan wiki page on virt-manager

I also use command line and spicy to connect to the console.

To set up a network bridge (all commands assume that the user executing qemu belongs to group kvm and VMs' IP numbers start with 192.168.128.2):

  • set up qemu-bridge-helper (has to be done once after upgrade):

    chgrp kvm /usr/lib/qemu/qemu-bridge-helper
    chmod 554 /usr/lib/qemu/qemu-bridge-helper
    setcap CAP_NET_ADMIN,CAP_NET_RAW,CAP_NET_BIND_SERVICE=ep /usr/lib/qemu/qemu-bridge-helper
  • enable bridge at boot:

    echo 1 > /proc/sys/net/ipv4/ip_forward
    ip link add name brvm type bridge
    ip addr add 192.168.128.1/24 dev brvm
    ip link set up brvm
    iptables -t nat -A POSTROUTING -s 192.168.128.0/24 -o eth+ -j MASQUERADE
    iptables -t nat -A POSTROUTING -s 192.168.128.0/24 -o wlan+ -j MASQUERADE
  • pass this parameter when launching qemu:
    -netdev tap,id=eth,br=brvm,helper=/usr/lib/qemu/qemu-bridge-helper

It is also possible to attach dhcpd and/or radvd to brvm for automatic address space management. By changing those ip commands above you may bridge brvm with workstation's ethernet interface and allow attaching VMs directly to the LAN.

Offline

Board footer