LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-31-2011, 10:40 AM   #1
baboow
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Rep: Reputation: 0
trying to configure virtio drivers for Slackware 13.7


I posted this issue over in virtualization category but realized that this is really a Slackware issue.

I've installed Slackware64 as a guest on a Debian KVM host. I had to use ide device for config since I couldn't get Slackware to recognize that I had /dev/vda partitions.

I've searched but have not found any how to or doc that tells me how to enable virtio-eth or virtio-blk in Slackware. I would really like to make this work for performance reasons.

Anyone out there who has done this and can tell me how to configure Slackware for virtio support?

I've 'modprobe virtio' but it still doesn't recognize it so there must be more to do :-)


thanks
 
Old 08-31-2011, 12:13 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
The Slackware kernels (both huge and generic types) have all the virtio drivers built as modules.
That means, you have to create an initrd which loads these modules. Once you have done so, your drive will magically appear as /dev/vda

Run the following command inside the virtualized Slackware - it should show you exactly what parameters mkinitrd needs for virtio support:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r
Of course, transitioning from sda to vda will pose some problems for you in /etc/lilo.conf and /etc/fstab ...
The file "/etc/lilo.conf" can be updated after you have rebooted with active virtio drivers (don't forget to run "lilo" afterwards), and what you should do right away is change the device entry for your root partition in "/etc/fstab" from /dev/sdX to UUID="xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" (the UUID value for your root partition - all those x-es - is what you find in the output of the command "blkid").

Eric
 
1 members found this post helpful.
Old 08-31-2011, 08:17 PM   #3
baboow
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
You're the man Eric! I knew you would come through. Thanks so much for the help.

thanks
 
  


Reply



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
Configuring Slackware 13.7 as guest on KVM with virtio drivers baboow Linux - Virtualization and Cloud 3 08-30-2011 10:43 AM
LXer: Set up RH VirtIO SCSI&Network drivers on Windows 7,XP KVMs LXer Syndicated Linux News 1 01-09-2011 10:11 AM
how to install slackware on virtio device cosmonate Slackware - Installation 4 05-21-2010 12:27 PM
Installing Slackware using virtio TL_CLD Slackware 6 03-22-2010 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration