LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-08-2010, 04:46 AM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Qemu kvm : No eth0 inside a Slackware-13.0 guest, although listed in lspci and lsmod


Hi !

Just installed a 13.0 32 bit inside a 13.0 64 bit.
I use qemu-kvm-0.12.2
In the guest, lspci shows me the 8139 card, and the module 8139too seems well-loaded.
But typing ifconfig -a gives me nothing.

Any idea why?
 
Old 02-08-2010, 07:23 AM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
That's an unusual situation you have going on. Would you provide a bit more information? What is your qemu-kvm startup command and the output from the vm's lspci and lsmod?
 
Old 02-08-2010, 07:37 AM   #3
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,457

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
maybe you got to use a different -net option when launching qemu.
in my enviroment I launch it with option "-net user": this is the full string I use for launching a vm
Code:
qemu -nographic -net nic,model=e1000 -smp 2 -net user -hda /spazio/qemu_images/slackcurrent.raw -m 1024 -redir tcp:5052:10.0.2.108:22 -boot c
in this example I gave the vm 2 cpus and, to use it with console login in nographic mode, I redirected connection to port 5052 to the internal ssh port of the vm to which I gave address 10.0.2.108 (default -net user gives you a gateway on 10.0.0.2, a dns server on 10.0.2.3 and a working dhcp server for that virtual lan), then I connect to the vm with
Code:
ssh -p 5052 user@localhost
(it should work also with the ip address of your host)

Last edited by ponce; 02-08-2010 at 07:40 AM.
 
Old 02-08-2010, 08:22 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
qemu-system-x86_64 -hda slack.img -m 1024 -vga std -usb -usbdevice tablet -localtime -cdrom /dev/sr0

lspci shows the realtek 8139 card, and lsmod shows that the module 8139too is loaded.
I see also that 8139 is a 8139C+
I will try another module.
 
Old 02-08-2010, 08:57 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Ok i figured it out !
I had to rmmod 8139too and loaded 8139cp instead, and now it works !!!

Thank you all !
 
Old 02-08-2010, 09:05 AM   #6
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
Quote:
Originally Posted by Linux.tar.gz View Post
Ok i figured it out !
I had to rmmod 8139too and loaded 8139cp instead, and now it works !!!

Thank you all !
Glad you figured it out!

I'm still wondering what's different in your setup that required you to manually unload/load modules? Are you running stable or current in the VM?
 
Old 02-08-2010, 11:12 AM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
I'm using 13.0 32 bit stable as guest.
Indeed, it's strange that the wrong module is loaded by default.
I installed all except X related stuff (KDE, fltk, x, xap ...) and kernel sources. I didn't installed TeX too.
 
Old 02-08-2010, 11:35 AM   #8
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
I've not seen that condition either. I'm running bridged ethernet on the hosts with tap interfaces on the guests in both production and dev environments.

My production hosts are running slackware64-13.0 generic kernels with the stock 2.6.29.6 kvm modules and qemu-kvm-0.12.1.2. The guests are all slackware32-13.0 generic kernels.

My dev host is running slackware64-13.0 generic kernel with kvm-kmod-2.6.32.7 and qemu-kvm-0.12.2. It runs stable and current guests both 32 and 64 bit.
 
Old 02-08-2010, 04:53 PM   #9
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Quote:
Originally Posted by Linux.tar.gz View Post
Ok i figured it out !
I had to rmmod 8139too and loaded 8139cp instead, and now it works !!!

Thank you all !
It's blacklisted in /etc/modprobe.d/blacklist
Code:
# Alternate 8139 driver.  Some 8139 cards need this specific driver,
# though...
blacklist 8139cp
 
Old 02-08-2010, 06:36 PM   #10
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 192

Rep: Reputation: 45
I had the exact same problem as the original poster, with the same fix, in a Slackware 13 32bit guest on Slackware64 13.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
Solaris 10 guest endless reboot under KVM/Qemu green_dood Linux - Software 6 12-13-2009 01:20 AM
Loading kvm-intel module for qemu-kvm 0.11.0 alkos333 Slackware 6 11-13-2009 10:01 PM
emulate slackware install over serial console using kvm/qemu [GOD]Anck Slackware 5 04-05-2009 03:31 AM
lsmod, lspci, lsdev and compiling kernel justwantin Slackware 7 01-06-2004 03:05 PM


All times are GMT -5. The time now is 11:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration