LinuxQuestions.org
Visit Jeremy's Blog.
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 07-08-2014, 08:33 AM   #16
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,103

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178

Code:
$ qemu-system-i386 -fda vmox.img -cpu pentium
FYI, works with or without "--enable-kvm" here
Attached Thumbnails
Click image for larger version

Name:	screen03.png
Views:	56
Size:	11.8 KB
ID:	15868  

Last edited by ponce; 07-08-2014 at 08:35 AM.
 
Old 07-08-2014, 09:01 AM   #17
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
For me it doesn't.
I only get the first line (BIOS notification) in the first screen.
(Not shown in the picture.)
After that nothing, but the guest is not aborted either. The VM seems to be running still.

Last edited by turboscrew; 07-08-2014 at 09:04 AM.
 
Old 07-08-2014, 05:25 PM   #18
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
My "raw" qemu run:

https://www.dropbox.com/s/a9t3q49y57mn67y/qemu.png

And the aqemu whining:

Disabled kvm:
https://www.dropbox.com/s/tm3vdxnmyi2w160/aqemu_kvm.png

and the pop-up:
https://www.dropbox.com/s/77ykc0xsng...qemu_whine.png
Ignoring the error leaves an empty qemu-window.

Last edited by turboscrew; 07-08-2014 at 05:28 PM.
 
Old 07-08-2014, 06:03 PM   #19
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Turboscrew, I have the same problem, or a related one.

The VM shows nothing, or has a frozen graphic; however if one runs it with -nographic, one can connect to the VM via VNC or ssh (assuming it has been set up).

I don't think it's kvm related, as my processor does all that just fine.

It seems to be a graphics issue, because if I passthrough one of my video cards, it works perfectly. There's something odd about the latest slackware 64/ qemu 2.0 SBo build, but I haven't figured it out yet.
 
Old 07-09-2014, 12:16 AM   #20
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by mostlyharmless View Post
Turboscrew, I have the same problem, or a related one.

The VM shows nothing, or has a frozen graphic; however if one runs it with -nographic, one can connect to the VM via VNC or ssh (assuming it has been set up).

I don't think it's kvm related, as my processor does all that just fine.

It seems to be a graphics issue, because if I passthrough one of my video cards, it works perfectly. There's something odd about the latest slackware 64/ qemu 2.0 SBo build, but I haven't figured it out yet.
Phooh, I'm not alone...
 
Old 07-09-2014, 09:09 AM   #21
pataphysician
Member
 
Registered: Oct 2012
Posts: 77

Rep: Reputation: Disabled
Maybe you guys could try adding
-vga std
to your qemu command. See if it helps
 
Old 07-09-2014, 10:18 AM   #22
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
Actually the gtk interface, gave me so much trouble,
that I disabled it with the configure "--disable-gtk"

so try using sdl, it may work!

Code:
qemu-system-i386 -display sdl ...something
Enjoy
 
Old 07-09-2014, 11:01 AM   #23
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,103

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
the gtk interface didn't work in the past (frozen screen, happened just before 14.1) because of cairo but this now has been fixed (in -current and in /patches for 14.1) so it should work fine (the sdl one is deprecated and will be removed in the future).
 
1 members found this post helpful.
Old 07-09-2014, 12:30 PM   #24
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I've tried -vga std, and just about every other option. I can tell you this: if I use virt-manager, as opposed to the command line qemu, then I get "cannot connect to console". I also get a message about USB redir, which is odd because I compiled it with usbredir, but that is probably unrelated. I'll look in /patches to see if something didn't get applied, but not sure how that'd have happened.

Last edited by mostlyharmless; 07-09-2014 at 12:33 PM.
 
Old 07-09-2014, 12:36 PM   #25
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,103

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Quote:
Originally Posted by mostlyharmless View Post
if I use virt-manager, as opposed to the command line qemu, then I get "cannot connect to console".
I think you probably need to replace the nc shipped with Slackware with netcat-openbsd, as indicated in libvirt's README.
 
Old 07-09-2014, 05:08 PM   #26
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by pataphysician View Post
Maybe you guys could try adding
-vga std
to your qemu command. See if it helps
Nope.
Although I didn't expect it would - it did print: the bios-message.
 
Old 07-09-2014, 06:01 PM   #27
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Oops - I was wrong. It is about output:
I edited the Makefile: copied the ELF to vmox.sym before stripping takes place.

Term 1:
Code:
bash-4.2$ qemu-system-i386 -fda vmox.img -cpu pentium -s -S
Term 2:
Code:
bash-4.2$ gdb -q vmox.sym
Reading symbols from /home/jaa/oxkernel/ox/vmox.sym...(no debugging symbols found)...done.
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
0x0000fff0 in ?? ()
(gdb) break main 
Breakpoint 1 at 0x115998
(gdb) c
Continuing.

Breakpoint 1, 0x00115998 in main ()
(gdb) cont
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x001171a9 in ox_main ()
(gdb)
from "nm vmox.sym":
00115998 T main
00116bc3 T ox_main

The running advances, but only the seabios text is shown.
The prink-outputs don't come through.

Last edited by turboscrew; 07-09-2014 at 06:09 PM.
 
Old 07-12-2014, 08:18 PM   #28
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Aqemu checks for loaded kvm modules by default. Aqemu hasn't been updated in ages. Don't use it. Newer qemu, since the kvm merge, has introduced a lot of command line changes. The qemu changelogs list the breakages/changees from previous versions.

Note that "qemu-kvm" is a symlink to "qemu-system-x86_64" in the SBo install. Also, if you use qemu-system-*, I think you need the correct kvm module loaded even if its not used.

Depending on how the iumage was created (hardware, PAE, CPU, memory, etc), you may have to include those in the command line if qemu can't autodetect. Besides -cpu you may need to specify -machine. Look at "man qemu" for all the goodies as well as information on the qemu console.

Edit: Oops, didn't read the second page of posts. Since ponce was able to create an image that ran, (1) the OP image is incorrect, (2) the OP qemu install is incorrect.

Last edited by kingbeowulf; 07-12-2014 at 08:24 PM. Reason: addenda
 
Old 07-15-2014, 09:09 AM   #29
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by kingbeowulf View Post
Aqemu checks for loaded kvm modules by default. Aqemu hasn't been updated in ages. Don't use it. Newer qemu, since the kvm merge, has introduced a lot of command line changes. The qemu changelogs list the breakages/changees from previous versions.

Note that "qemu-kvm" is a symlink to "qemu-system-x86_64" in the SBo install. Also, if you use qemu-system-*, I think you need the correct kvm module loaded even if its not used.

Depending on how the iumage was created (hardware, PAE, CPU, memory, etc), you may have to include those in the command line if qemu can't autodetect. Besides -cpu you may need to specify -machine. Look at "man qemu" for all the goodies as well as information on the qemu console.

Edit: Oops, didn't read the second page of posts. Since ponce was able to create an image that ran, (1) the OP image is incorrect, (2) the OP qemu install is incorrect.
I very much suspect the latter. See my debugging results: Debugging works, but the printk-text doesn't end up onto the display.
 
Old 07-15-2014, 09:13 AM   #30
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,103

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
if you want to test the image I built, it's here.
 
  


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
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
Slackware qemu kvm julienfmills Linux - Virtualization and Cloud 1 11-07-2011 07:54 PM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
Qemu On Slackware bijit1709 Slackware 6 10-17-2007 03:39 PM

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

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