LinuxQuestions.org
Review your favorite Linux distribution.
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 07-18-2017, 02:22 AM   #1
ziduck
LQ Newbie
 
Registered: Jul 2017
Posts: 4

Rep: Reputation: Disabled
qemu virtio_ioport_write error


Hi,

The host system is slackware64 14.2 and guest vm is also slackware64 14.2

I use the following script to start the VM

/usr/bin/qemu-system-x86_64
-name vm01
-machine q35,accel=kvm,kernel_irqchip=on
-cpu qemu64
-smp cores=2
-m 1G
-rtc base=utc
-monitor vc
-vga std
-usbdevice tablet
-enable-kvm
-qmp unix:/vm/control/vm01,server,nowait
-pidfile /vm/control/vm01.pid
-display vnc=127.0.0.1:1 -netdev tap,id=hn0,helper=/usr/libexec/qemu-bridge-helper --br=br0,vhost=on
-device virtio-net-pci,netdev=hn0,id=nic0,mac=11:11:00:11:00:11
-drive file=vm.qcow2,index=0,media=disk,cache=writeback,if=virtio

Everything running fine under qemu-2.6.2

but when upgraded to qemu-2.7.1 or qemu-2.8.1.1 or qemu-2.9.0, every time when the vm start, an message is appear:

virtio_ioport_write: unexpected address 0x17 value 0xf0

It seems that the message is related to the disk mount action of the vm.

Although the vm is also running well under qemu-2.7.1, qemu-2.8.1.1 and qemu-2.9.0, this error message make me feel worrying.

Any hints?
Thanks.
 
Old 07-19-2017, 11:42 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,517

Rep: Reputation: Disabled
hi ziduck, welcome to LQ!

I just tried your script here with a slightly different configuration (no bridge) and I don't have the message you report (and the vm runs just fine)
Code:
/usr/bin/qemu-system-x86_64 \
-name vm01 \
-machine q35,accel=kvm,kernel_irqchip=on \
-cpu qemu64 \
-smp cores=2 \
-m 1G \
-rtc base=utc \
-monitor vc \
-vga std \
-usbdevice tablet \
-enable-kvm \
-qmp unix:/vm/control/vm01,server,nowait \
-pidfile /vm/control/vm01.pid \
-display vnc=127.0.0.1:1 \
-device virtio-net-pci,mac=11:11:00:11:00:11 \
-drive file=vm.qcow2,index=0,media=disk,cache=writeback,if=virtio
so, if noone else more into the qemu syntax than me steps in, I think your best options should be:
- check if something has changed in the qemu syntax after version 2.6.x;
- ask on irc or in the qemu-discuss mailing list.
 
Old 07-20-2017, 10:22 PM   #3
ziduck
LQ Newbie
 
Registered: Jul 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi ponce,

I tried reinstall the guest from Slackware64-14.2 DVD with qemu-2.9.0.

The result:

With -drive file=vm.qcow2,index=0,media=disk,cache=writeback,if=virtio
message appeared: qemu-system-x86_64: virtio_ioport_write: unexpected address 0x17 value 0xf0

With (without the if=virtio) -drive file=vm.qcow2,index=0,media=disk,cache=writeback
no error or warning message

I also tried install the guest from devuan_jessie_1.0.0_amd64_DVD.iso.
With or without the if=virtio, no error message in both cases.

I think it may related to the disk virtio module in slackware14.2, not the syntax of qemu.

Thanks
 
Old 07-21-2017, 01:00 AM   #4
ziduck
LQ Newbie
 
Registered: Jul 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
One more thing:

I also tried the slackware64-14.1.iso.
With or without the if=virtio, no error message in both cases.

May be related to the the kernel (4.x vs 3.x) in the vm guest.
 
Old 07-21-2017, 01:38 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,517

Rep: Reputation: Disabled
so it's not tied to the qemu version?

again, I think you can have a better help on this matter on the dedicated qemu channel, I doubt anybody had seen (or cared about) a similar error here.
 
Old 07-21-2017, 01:45 AM   #6
ziduck
LQ Newbie
 
Registered: Jul 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
qemu-2.6.2, no problem at all.
2.7 to 2.9 will produce the error when mounting virtio disk interface on 4.4.x Kernel (come with slackware 14.2).
will post this question on qemu list, thanks
 
  


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
qemu: run gust images face error > Exec format error Sefid par Linux - Virtualization and Cloud 3 07-30-2013 02:40 PM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
qemu: hardware error: qemu: could not load PowerPC bios 'openbios-ppc' Skaperen Linux - Virtualization and Cloud 8 06-09-2011 07:15 AM
[SOLVED] qemu error vinodk_gautam Linux - Mobile 1 04-21-2011 04:50 AM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 03:56 AM

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

All times are GMT -5. The time now is 05:04 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