Results 1 to 4 of 4

Thread: Why VirtualBox can bridge NIC without root and libvirt qemu:///session can not?

  1. #1
    Join Date
    Jun 2012
    Beans
    2

    Why VirtualBox can bridge NIC without root and libvirt qemu:///session can not?

    Hi everybody, do you know how can I bridge a guest network interface with the host one with libvirt in qemu:///session without root privilege?
    I'm working in depth on this problem, and I can't figure out a way to use something different from NAT (interface type="user") for my qemu VMs in session mode (with not-root user).
    I know that VirtualBox can bridge Guest interfaces with the host one without root privilege! I wonder if this can be possible for libvirt qemu:///session too.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Why VirtualBox can bridge NIC without root and libvirt qemu:///session can not?

    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Jun 2012
    Beans
    2

    Re: Why VirtualBox can bridge NIC without root and libvirt qemu:///session can not?

    Thanks for reply. This is a slice of that article that you posted, about the bridging:

    Prerequisites:

    You need kvm up and running
    If you don't want to run as root, the user you want to use needs to have rw access to /dev/kvm
    You need the following commands installed on your system, and if you don't want to run as root, the user you want to use needs to be able to sudo the following command:
    /sbin/ip
    /usr/sbin/brctl
    /usr/sbin/tunctl


    These are really invasive prerequisites, I don't want to enable sudo for networking commands for each user.

    VirtualBox can create bridged networks without these requirements. Maybe with qemu-kvm, as you posted, this is the only one solution for this problem, but it's really strange that with VirtualBox I can do it and with kvm-qemu I can not.

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Why VirtualBox can bridge NIC without root and libvirt qemu:///session can not?

    You need to enable those commands for the user you want kvm running as, not each user.

    You might be interested in this:
    http://ubuntuforums.org/showthread.php?t=1901158
    Last edited by CharlesA; June 19th, 2012 at 04:01 PM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •