LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-20-2016, 01:22 AM   #1
the_zone
Member
 
Registered: Nov 2008
Distribution: Slackware
Posts: 83

Rep: Reputation: 7
Slackware 14.2 X86_64 with QEMU/KVM virtio failing to boot


I have installed Slackware 14.2 x86_64 in a QEMU/KVM VM with the following options :

Code:
/usr/bin/qemu-system-x86_64  \
        -smp 4,cores=4,threads=2,sockets=1 \
        -enable-kvm \
        -m 8192 \
        -cdrom "/tmp/slackware64-14.2-install-dvd.iso" \
        -drive file=/images/PVMSlackware142_x86_64.qcow2,if=virtio,media=disk,cache=writeback,format=qcow2 \
        -boot once=d,menu=on \
        -net nic,vlan=0,model=i82551 \
        -net tap,vlan=0,ifname="$IFACE",script=no,downscript=no \
        -vga qxl \
        -name "Slackware64" $*
Booting failed due to the well known /dev/vda device issue in lilo.
So I followed the instructions of :

http://johnrey.es/index.php/2015/10/...to-be-defined/

Which most probably a nice excerpt of earlier discussions on this matter.


However lilo comes back to me with :
Fatal : open /boot/vmlinuz : No such file or directory

What steps am I missing here?
 
Old 10-20-2016, 02:04 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144
if can be useful, here is the /etc/lilo.conf is use on my virtual machines with virtio
Code:
compact
append=" vt.default_utf8=1"
disk = /dev/vda
  bios = 0x80
  max-partitions = 7
boot = /dev/vda

message = /boot/boot_message.txt

prompt
timeout = 50
change-rules
reset
vga = normal
image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/vda1
  label = Linux
  read-only
before launching lilo to install it in the MBR of the virtual disk, I also create a /boot/initrd.gz file with this command
Code:
mkinitrd -c -k 4.4.19 -f ext4 -r /dev/vda1 -m virtio_blk:virtio_pci:virtio_balloon:virtio_net:virtio_mmio:virtio_input:virtio_console:virtio_scsi:virtio-rng:virtio-gpu:ext4 -u -o /boot/initrd.gz
try to apply this to your setup (shouldn't be that different).

in your case I would also check that you have the /boot/vmlinuz link in the filesystem of your virtual disk and that points to something actually there.
the error you got could be also that it simply doesn't find the virtual disk: in this case you can test the disk layout with the same command line but booting again from the cdrom and checking with "fdisk -l".
 
Old 10-20-2016, 09:04 AM   #3
the_zone
Member
 
Registered: Nov 2008
Distribution: Slackware
Posts: 83

Original Poster
Rep: Reputation: 7
Thanks Ponce.

Stupid me.

I had /boot on /dev/vda1

Mounting /dev/vda1 to /mnt/sysimage/boot

solved the issue !
 
Old 10-22-2016, 01:20 PM   #4
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

@ponce Do you really need all of those virtio modules in the initrd?
In my case it's just sufficient to have "virtio-pci:virtio-blk:virtio-scsi:ext4".

--
Best regards,
Andrzej Telszewski
 
Old 10-23-2016, 01:35 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144
Quote:
Originally Posted by atelszewski View Post
@ponce Do you really need all of those virtio modules in the initrd?
In my case it's just sufficient to have "virtio-pci:virtio-blk:virtio-scsi:ext4".
when I thought about what to stuff in the initrd I decided to have all corner cases covered and just put them all.
 
  


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
[SOLVED] Qemu/KVM building x86 on X86_64 hardware? mralk3 Slackware 4 04-28-2016 11:46 AM
[SOLVED] Qemu virtio-9p host filesystem passthrough failure in Slackware-current-13MAY2015 kingbeowulf Slackware 6 06-03-2015 10:31 AM
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 driver on Windows XP KVM at KVM-QEMU Instance on F14 LXer Syndicated Linux News 14 01-09-2011 12:21 PM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM

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

All times are GMT -5. The time now is 06:06 AM.

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