Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294460 - =app-emulation/qemu-kvm-0.11.0 cannot find /etc/qemu-ifup
Summary: =app-emulation/qemu-kvm-0.11.0 cannot find /etc/qemu-ifup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 17:46 UTC by Matthew Schultz
Modified: 2010-11-03 14:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2009-11-24 17:46:54 UTC
qemu-kvm assumes /etc/qemu/qemu-ifup is installed in /etc/qemu-ifup by default.  The path needs to be fixed so qemu looks in /etc/qemu/qemu-ifup.  This appears to be a regression from the old kvm-88 ebuild which found it by default in the right spot.

Reproducible: Always

Steps to Reproduce:
Comment 1 Matthew Schultz 2009-11-24 17:47:40 UTC
Command I'm using:

qemu -vga std -m 512 -hda /dev/sda -usb -net nic -net tap,ifname=tap0 -daemonize
Comment 2 Matthew Schultz 2009-11-24 19:28:05 UTC
In addition, the log mentions /etc/kvm like the old kvm-88 build as opposed to /etc/qemu in the src_install.  Perhaps it would have been better to test this before deleting kvm-88 and adding this new version?
Comment 3 Matthew Schultz 2009-11-24 20:05:04 UTC
So apparently you're either going to have to patch 

net.h:159:#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"

or you're going to have to modify the ebuild so that it puts the up and down files in /etc/ instead of /etc/qemu
Comment 4 masc 2009-12-11 13:57:23 UTC
Same here, I created a symlink /etc/qemu-ifup -> /etc/qemu/qemu-ifup to circumvent the issue.

But even then, qemu-ifup doesn't work on my system anylonger. Paths and awk statement seem to be incorrect. Changing it as follows fixes it for me.

#!/bin/sh

#n3. removed (wrong) paths from commands and fixed awk expression to extract default routing interface
switch=$(/sbin/ip route list | awk '/^default / { print $5 }')
ifconfig $1 0.0.0.0 up
brctl addif ${switch} $1
Comment 5 kavol 2010-02-27 06:07:55 UTC
not just qemu-kvm, the same for app-emulation/qemu-0.11.1
Comment 6 Thomas Sachau gentoo-dev 2010-03-31 17:46:15 UTC
Since i was told that Ramereth maintains 0.11.x versions of qemu-kvm, reassigning those bugs to him.
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-11-03 14:42:19 UTC
qemu-kvm-11.0 was dropped from the tree so I'm closing this bug.