Running OSv with External Networking on Arch Linux

112 views
Skip to first unread message

Diego de Araújo Martinez Camarinha

unread,
Sep 29, 2015, 8:11:56 PM9/29/15
to osv...@googlegroups.com
Hi all,

I've been trying to run OSv with external networking on Arch Linux. But executing the command:
sudo ./scripts/run.py -n -v
Produces this error:
set stp status failed: No such device
bridge virbr0 does not exist!
scripts/qemu-ifup.sh: line 5: ifconfig: command not found
qemu-system-x86_64: -netdev tap,id=hn0,script=scripts/qemu-ifup.sh,vhost=on: network script scripts/qemu-ifup.sh failed with status 32512


Arch Linux deprecated ifconfig and recommend to use ip instead.

Ifconfig was used on qemu-ifup.sh to enable a network interface, right?
I replaced the command:

ifconfig $1 up

with:

ip link set $1 up

Now, when I try to run OSv with external networking, this is the output:

set stp status failed: No such device
bridge virbr0 does not exist!
OSv v0.23-11-gdfdf08f

And nothing more happens. Any ideas?

Regarding ifconfig and ip, is it a bug? Should ifconfig be replaced?

Thanks!

Best regards,

--
Diego.

Nadav Har'El

unread,
Sep 30, 2015, 5:23:16 AM9/30/15
to Diego de Araújo Martinez Camarinha, Osv Dev
In Wed, Sep 30, 2015 at 3:11 AM, Diego de Araújo Martinez Camarinha <diego...@gmail.com> wrote:
Hi all,

I've been trying to run OSv with external networking on Arch Linux. But executing the command:
sudo ./scripts/run.py -n -v
Produces this error:
set stp status failed: No such device
bridge virbr0 does not exist!
scripts/qemu-ifup.sh: line 5: ifconfig: command not found
qemu-system-x86_64: -netdev tap,id=hn0,script=scripts/qemu-ifup.sh,vhost=on: network script scripts/qemu-ifup.sh failed with status 32512


Arch Linux deprecated ifconfig and recommend to use ip instead.

Ifconfig was used on qemu-ifup.sh to enable a network interface, right?
I replaced the command:

ifconfig $1 up

with:

ip link set $1 up


If you could send a patch to qemu-ifup.sh to try running "ip" if "ifconfig" doesn't exist (or the other way around), we can commit that.

By the way, if Arch Linux merely "deprecated" ifconfig, but it's still available as a separate package, you could install it and avoid this problem, right? In our README, we have a listing for "Arch Linux" telling you which packages you need to install before using OSv - if more packages are missing there, a patch to the README would be welcome. Better yet, please update scripts/setup.py to support Arch Linux, and the README to refer to it.
 

Now, when I try to run OSv with external networking, this is the output:

set stp status failed: No such device
bridge virbr0 does not exist!
OSv v0.23-11-gdfdf08f

And nothing more happens. Any ideas?

I think this assumes that "virbr0" was set up by libvirt, and that also libvirt needs to be added to our list of prerequisites on arch Linux (although this prerequisite is sort of optional - you only need it if you want to run "run.py -n".

By the way, virbr0 is the default bridge interface run.py uses, but you can override it with the "-b" option, if you wish.
 

Diego de Araújo Martinez Camarinha

unread,
Oct 13, 2015, 9:34:35 PM10/13/15
to Nadav Har'El, Osv Dev
2015-09-30 6:23 GMT-03:00 Nadav Har'El <n...@scylladb.com>:
In Wed, Sep 30, 2015 at 3:11 AM, Diego de Araújo Martinez Camarinha <diego...@gmail.com> wrote:


If you could send a patch to qemu-ifup.sh to try running "ip" if "ifconfig" doesn't exist (or the other way around), we can commit that.
Okay, I'll see to that.

By the way, if Arch Linux merely "deprecated" ifconfig, but it's still available as a separate package, you could install it and avoid this problem, right? In our README, we have a listing for "Arch Linux" telling you which packages you need to install before using OSv - if more packages are missing there, a patch to the README would be welcome. Better yet, please update scripts/setup.py to support Arch Linux, and the README to refer to it.
 
I could not find ifconfig anywhere for Arch Linux. As for updating the script, sure! I'll do it as soon as I have more time available. (:

Now, when I try to run OSv with external networking, this is the output:

set stp status failed: No such device
bridge virbr0 does not exist!
OSv v0.23-11-gdfdf08f

And nothing more happens. Any ideas?

I think this assumes that "virbr0" was set up by libvirt, and that also libvirt needs to be added to our list of prerequisites on arch Linux (although this prerequisite is sort of optional - you only need it if you want to run "run.py -n".

By the way, virbr0 is the default bridge interface run.py uses, but you can override it with the "-b" option, if you wish.
 
I installed libvirt and I still get the same error. Could it be that another package is missing for Arch Linux?

Thanks for the help!


--
Diego.
Reply all
Reply to author
Forward
0 new messages