LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-31-2018, 12:59 PM   #1
EldonCool
Member
 
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258

Rep: Reputation: 3
Installing QEMU on slack?


I am trying to install qemu on my slack 14.2
system.

Questions on hold for a few minutes while I
try to install:

Last edited by EldonCool; 05-31-2018 at 01:32 PM.
 
Old 05-31-2018, 01:23 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Installing QEMU on slack?

use slackbuilds.org to install it.
 
Old 05-31-2018, 02:50 PM   #3
EldonCool
Member
 
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258

Original Poster
Rep: Reputation: 3
Here is how I did:

Found qemu-2.9.0.tar.bz2 on alien Bob's place.
Downloaded it.

unzip it:
bzip2 -d qemu-2.9.0.tar.bz2

untar it:
tar -xvf qemu-2.9.0.tar

changed to directory qemu-2.9.0 which
was created by the above.

found configure and ran it after
logged in as root, with su command then:.

# ./configure

# make

# make install

seems to have worked, after running things
forever.

so I enter command --> qemu
and nothing happens.

I try to find where it is installed with:
find / -iname qemu* -print and it finds it
various places like this:

/usr/local/share/qemu
/usr/local/share/doc/qemu


Here is what is in the first directory above:
----------------------------------------------
QEMU,cgthree.bin efi-virtio.rom petalogix-s3adsp1800.dtb skiboot.lid
QEMU,tcx.bin efi-vmxnet3.rom ppc_rom.bin slof.bin
acpi-dsdt.aml keymaps pxe-e1000.rom spapr-rtas.bin
bamboo.dtb kvmvapic.bin pxe-eepro100.rom trace-events-all
bios-256k.bin linuxboot.bin pxe-ne2k_pci.rom u-boot.e500
bios.bin linuxboot_dma.bin pxe-pcnet.rom vgabios-cirrus.bin
efi-e1000.rom multiboot.bin pxe-rtl8139.rom vgabios-qxl.bin
efi-e1000e.rom openbios-ppc pxe-virtio.rom vgabios-stdvga.bin
efi-eepro100.rom openbios-sparc32 qemu-icon.bmp vgabios-virtio.bin
efi-ne2k_pci.rom openbios-sparc64 qemu_logo_no_text.svg vgabios-vmware.bin
efi-pcnet.rom palcode-clipper s390-ccw.img vgabios.bin
efi-rtl8139.rom petalogix-ml605.dtb sgabios.bin
------------------------------------------------


Okay found in the doc/qemu to run it I have to enter --> qemu-system-i386 linux img

that runs some things and tells me,
emu-system-i386: Could not open 'linux.img': No such file or directory

So any help on how to use this thing? I want
to run dos eventually. Guess I have to load
some version of it, but how do I invoke that
as a command in qemu?

Well, found a site with instructions, will see if
I can figure them out pretty soon, but tired of this
now. Seems like everything I do on linux is like
trying to herd cats. Here is the site I found with
instructions:
https://opensource.com/article/17/10...ications-linux

Last edited by EldonCool; 05-31-2018 at 03:18 PM.
 
Old 05-31-2018, 03:24 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It might be beneficial to look at SlackBuilds.org (commonly called SBo) as they already have a SlackBuild for qemu. Pay careful attention to the optional dependencies and the various options that are available to ensure it is built to your liking.

But, assuming you're fine with how yours was built, you could then just look into how to use it. Unfortunately, from my (limited) understanding, qemu is not the simplest VM to use. You might want to search for some tutorials on how to use it with what you're wanting to do or you could look at ArchWiki page for qemu and see if that gives you what you need to get it going.
 
Old 05-31-2018, 04:12 PM   #5
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by mralk3 View Post
use slackbuilds.org to install it.
No reason to do a manual installation when a slackbuild already exists.....
 
Old 05-31-2018, 05:06 PM   #6
EldonCool
Member
 
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258

Original Poster
Rep: Reputation: 3
Well I got it installed, but it has turned into
a puzzle inside a conundrum. Instructions are
terrible, even after I figure them out they
don't work.

I tried to use this site to figure out how to
run it:
https://opensource.com/article/17/10...ications-linux

It seemed to get by the first instruction --> qemu-system-i386

On the 2nd one the whole system locked up and
I had to power off to get control of the computer.
That command was this --> -m 16

I can see the writing on the wall, this is just
going to be one false start after another one.

Have any of you installed dosbox on linux?
 
Old 05-31-2018, 05:41 PM   #7
EldonCool
Member
 
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258

Original Poster
Rep: Reputation: 3
Removed all the qemu that was installed,
giving up on qemu, marking this thread as solved.
 
Old 05-31-2018, 07:58 PM   #8
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
I have installed Dosbox on my Slackware64 laptop. I use it to run an old msdos program that I like and I use it every time I power up my computer. Maybe it is not so difficult because I am not particularly smart and am not schooled or trained in computers. Also I am 66 years old and this old dog don't learn easily any new tricks.
Now you have me curious about qemu

Last edited by Gordie; 05-31-2018 at 08:23 PM. Reason: change spelling of qemu
 
2 members found this post helpful.
Old 06-02-2018, 05:47 PM   #9
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
Gordie
Arch has a nice and fairly simple qemu HOW-TO: https://wiki.archlinux.org/index.php/QEMU
more help here: https://en.wikibooks.org/wiki/QEMU/Images
The qemu wiki has all the gory details: https://wiki.qemu.org/Documentation

What the OP didn't seem to understand, is that qemu is NOT an operating system, but a virtualization system to allow you run another OS on your existing OS. In the "old days" we needed to do this via dual/multi-booting various OS installed on hard drives. Thus, you need to tell qemu to create a disk image, then load that image but boot off another image (or CD/DVD) to install the new OS into the created image.

This is why we can't have nice things: too many people are too lazy to RTFM. In the documentation the OP referenced, it specifically stated:
1. qemu-img create dos.img 200M
2. qemu-system-i386 -m 16 -k en-us -rtc base=localtime -soundhw sb16,adlib -device cirrus-vga -display gtk -hda dos.img -cdrom FD12CD.iso -boot order=d

(1) creates the hard drive image
(2) starts the image and boots "drive d:" (the "cdrom") iso image to start the freedos installation to "drive c:" the hard drive image.
Then you simply can "qemu-system-i386 dos.img" to run the newly installed freedos.

Dosbox is a good, easy, alternative but is geared to running old DOS games. Freedos is more feature complete.

And yes, if you are running Slackware, install via Slackbuilds.org.
 
4 members found this post helpful.
Old 06-03-2018, 01:15 AM   #10
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
qemu is beside Qt the second package I remember that is unfunny to build.
luckily it exists also on Slackonly
https://slackonly.com/pub/packages/1...4/system/qemu/
 
Old 06-03-2018, 08:03 PM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
I have never experienced problems building qemu using the SlackBuild from slackbuilds.org. (I note that the binaries at Slackonly are for qemu-2.10.2 whereas the SlackBuild is for qemu-2.11.1).
If you want the graphical virt-manager, then there is a long list of dependencies. Personally I have never built that, as I am happy using qemu with command line options and do not administer multiple virtual machines.
 
Old 06-04-2018, 01:49 PM   #12
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
a4z and allend

email me the issues/error messages building qemu via the Slackbuilds.org script (i.e. a bug report), or post on the mailing list. I just submitted the 2.12.0 update. I works here (command line of course), but I do want to know if anyone is having isues.
 
1 members found this post helpful.
Old 06-05-2018, 09:16 AM   #13
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
I have just built qemu-2.12.0 using the SlackBuild script on a 64-bit -current install. No issues or error messages found, apart from a new deprecated option 'no-frame'. I have run my usual VM (a Windows XP system that has proprietary software I use) and it behaves as expected. Thanks for your work on this! I have leeched many times in the past.
 
Old 06-05-2018, 09:52 AM   #14
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by kingbeowulf View Post
a4z and allend

email me the issues/error messages building qemu via the Slackbuilds.org script (i.e. a bug report), or post on the mailing list. I just submitted the 2.12.0 update. I works here (command line of course), but I do want to know if anyone is having isues.
Thanks for your work!
no bugs found here
for me it is just that it takes some time to build and therefore I prefer the already compiled version from SlackOnly.
 
  


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
[SOLVED] installing Slack bootable OS through a different distro (slack as that is what I have running right now) BW-userx Slackware 2 02-02-2018 01:18 PM
[SOLVED] qemu network on slack Haythem Slackware 5 09-01-2012 11:57 AM
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
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
QEMU - Installing XP Jayla Linux - Software 1 05-25-2008 02:09 PM

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

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