Starting with KVM - Question on setting up network bridge

I am trying to install KVM on my workstation. This is my first attempt and have used Yast tool to install KVM but I had a warning that Network Manager is in use so I must install network bridge manually.

What should I do, change from Network Manager to Wicked and try again or what?

Please could somebody help me here as all the posts I have found assume Network Manager is not running!

I tried to switch to Wicked but have not had much success. A manual addition of a bridge left me with no internet connection. I want to start over but now I am stuck with KVM on my machine and I want to remove it. I installed using Yast KVM installer and KVM tools but I cannot find any means of removing this.
I have read the Virtualization Guide | openSUSE Leap 15.3 but have not found how to uninstall.
Pleas could somebody help me clean up so I can start again.

Hi
Just go into YaST Network and delete the bridge… Get yourself a USB to ethernet adaptor or PCIe Network card to use as a bridge device, I use both here for my virtual machines, two USB 3.0 1Gb ethernet and a PCIx1 dual port card…


inxi -Nxxz

Network:   Device-1: Intel Ethernet I218-LM vendor: Hewlett-Packard driver: e1000e v: kernel port: 6020 bus-ID: 00:19.0
           chip-ID: 8086:15a0
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel port: 3000 bus-ID: 07:00.0
           chip-ID: 10ec:8168
           Device-3: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel port: 2000 bus-ID: 08:00.0
           chip-ID: 10ec:8168
           Device-4: ASIX AX88179 Gigabit Ethernet type: USB driver: ax88179_178a bus-ID: 2-3:2 chip-ID: 0b95:1790
           Device-5: ASIX AX88179 Gigabit Ethernet type: USB driver: ax88179_178a bus-ID: 2-4:3 chip-ID: 0b95:1790

Hi Malcolm,
Seems like a plan. Not sure why network was such a problem and I had real problems to the extent that I had to revert to NM.
In the process I have probably messed up KVM installation as I am getting many messages from bios during boot. What do I delete to restore a virgin system so I can try VM installation again once I have a second NIC?
Finally which is best VM for me to use, Xen or KVM?
Many thanks,
Budge.

With NetworkManager( and Network Setup Method = “Network manager”) :
https://www.cyberciti.biz/faq/how-to-add-network-bridge-with-nmcli-networkmanager-on-linux/

Hi
As indicated, you can use NetworkManager, I use wicked and KVM (libvirt) as well as vagrant.

Hi skoltogvam,
Brilliant. Many thanks. I now have the network set up thanks to you.

I now have to repair my KVM installation and create a VM. More reading but love the cli help. Much better than yast!!!

Budge.

Hi
So what are you wanting to do with the virtual machines, run desktop installs, server instances?

Further to my last post I have broken my KVM installation with the result that I cannot re-install using Yast2 because the KVM options are already greyed out but modprobe kvm-intel gives me an error thus:-

alastair@HP-Z640-1:~> sudo modprobe kvm-intel 
[sudo] password for root:  
modprobe: ERROR: could not insert 'kvm_intel': Operation not supported


Is there an easy way to sort this out please?
Budge

Hi
What does the following show?


lsmod | grep kvm

This is what I have:-

alastair@HP-Z640-1:~> lsmod | grep kvm 
**kvm**                   786432  0 
irqbypass              20480  1 **kvm** 
alastair@HP-Z640-1:~> 


What I want to do is set up a VM to run Home-Assistant (www.home-assistant.io) rather than buy a dedicated RPi4. I am hoping I can leave it running until I have decided if it meets our needs. There are supposed to be VM images available for KVM, Virtual Box and VMWare Workstation. I picked KVM as it is supposed to be OK with Leap 15.3.

Hi
Just setup docker and use that?

I also see Show system:homeautomation:home-assistant - openSUSE Build Service

Hi
All up and running in libvirt without an issue…

https://forums.opensuse.org/attachment.php?attachmentid=1045&stc=1

Screenshot from 2022-04-18 12-02-56.png

Hi Malcolm,
Since I have never used either your suggestion is instructive and have started reading about the differences between VM and Docker. You kindly sent me a link but I have no idea what I am looking at. I had been following an article in Linux Format which suggests VM.
Whatever, I have embarked down the VM road and would like to get this working first. There are other possible needs for VM and my hardware has capacity, it is just my knowledge that is wanting.

What is the story behind the above KVM problem and how may I fix it please? Once sorted I can try both Docker and VM and decide.

Your last message tells me you have problems with KVM so please could you take me through what steps to take.

Regards,
Budge.

Hi
No issues libvirt (KVM), the image shows it runs fine…

For libvirt, is it running?


systemctl status libvirtd

As root user I just copied the qcow2 tarball and extracted in /var/lib/libvirt/images and extracted with xz -d haos_ova-7.6.qcow2.xz

Then fired up virt-manager and created a new machine set to Q35 and UEFI boot

https://forums.opensuse.org/attachment.php?attachmentid=1048&stc=1

The other link was to someone who has built as rpms…

Well this is what I have. Is it OK?

alastair@HP-Z640-1:~> sudo systemctl status libvirtd 
[sudo] password for root:  
**●** libvirtd.service - Virtualization daemon 
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled) 
     Active: **active (running)** since Mon 2022-04-18 14:38:46 BST; 3h 53min ago 
TriggeredBy: **●** libvirtd-ro.socket 
             **●** libvirtd-admin.socket 
             **●** libvirtd.socket 
       Docs: man:libvirtd(8) 
             https://libvirt.org 
   Main PID: 1725 (libvirtd) 
      Tasks: 19 (limit: 32768) 
     CGroup: /system.slice/libvirtd.service 
             └─1725 /usr/sbin/libvirtd 

Apr 18 14:38:45 HP-Z640-1 systemd[1]: Starting Virtualization daemon... 
Apr 18 14:38:45 HP-Z640-1 libvirtd[1725]: libvirt version: 7.1.0 
Apr 18 14:38:45 HP-Z640-1 libvirtd[1725]: hostname: HP-Z640-1 
Apr 18 14:38:45 HP-Z640-1 libvirtd[1725]: **Failed to initialize libnetcontrol.  Management of interface devices is disabled** 
Apr 18 14:38:46 HP-Z640-1 systemd[1]: Started Virtualization daemon. 
alastair@HP-Z640-1:~> 



Hi
Not sure of the error… See https://forums.opensuse.org/showthread.php/534579-libvirtd-failed-to-initialize-libnetcontrol

I see;


 systemctl status libvirtd
● libvirtd.service - Virtualization daemon
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: disabled)
     Active: active (running) since Mon 2022-04-18 12:39:31 CDT; 18s ago
TriggeredBy: ● libvirtd.socket
             ● libvirtd-admin.socket
             ● libvirtd-ro.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
   Main PID: 22962 (libvirtd)
      Tasks: 19 (limit: 32768)
        CPU: 1.456s
     CGroup: /system.slice/libvirtd.service
             └─22962 /usr/sbin/libvirtd --timeout 120


Apr 18 12:39:31 grover systemd[1]: Starting Virtualization daemon...
Apr 18 12:39:31 grover systemd[1]: Started Virtualization daemon.

Hi Malcolm,
Well I have Virtual Machine Manager running. You then say:-

Then fired up virt-manager and created a new machine set to Q35 and UEFI boot

What is all the stuff about Q35 and UEFI boot?

All I have is an empty box with QEMU/KVM on first line.

Having seen your note I wonder whether a fresh OS installation is needed.

Hi
Nope, you need to click on the top left icon to start the wizard… make sure you check the box to customize the configuration before starting.

Oops. Your reply didn’t reach me in time and I am sorry but started a new installation. I expect some problems as I didn’t re-format. It will be running all night so will have a look at it in the morning. If needed I can start again. I had forgotten it was quite a pain with the nvme pci card and btrfs but not as bad as the IBM servers.

On reflection I should have just gone back to an earlier snapshot from before I started with the KVM network.

Meanwhile I have my laptop with TW installed and I have the USB/lan dongle so I could try with this, or perhaps start a new learning curve with Docker but for now time for bed!