LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-13-2017, 09:39 AM   #1
stella-artois
LQ Newbie
 
Registered: May 2017
Posts: 4

Rep: Reputation: Disabled
Qemu permissions problem


Hi all, I'm trying to installed Freebsd on qemu, Ive Installed it from Slackbuild.org using sbopkg. But when I run it I get a permissions error.....

bash-4.3$ qemu-i386 Downloads/FreeBSD-11.0-RELEASE-i386-disc1.iso
Error while loading Downloads/FreeBSD-11.0-RELEASE-i386-disc1.iso: Permission denied

I'm using Slackware 14.2, I get the same error if I try it with user or root.

Thanks...
 
Old 05-13-2017, 10:00 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,981

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
I don't think that's how you load the ISO

Also, it would be better to use virt-manager to handle your VMs
 
1 members found this post helpful.
Old 05-13-2017, 10:18 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,579

Rep: Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980
Without specifying a virtual hard drive, you will not be able to install FreeBSD. If you want to boot the ISO in qemu, try this command:
Code:
qemu-system-i386 -cdrom Downloads/FreeBSD-11.0-RELEASE-i386-disc1.iso -boot order=d
 
1 members found this post helpful.
Old 05-13-2017, 11:07 AM   #4
stella-artois
LQ Newbie
 
Registered: May 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks AlienBob, got it going now. Found some more helpful documentation to as well.
 
Old 05-13-2017, 12:19 PM   #5
stella-artois
LQ Newbie
 
Registered: May 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hmmm...well It started installing but it just seemed to freeze and the error from the terminal was as so.

(qemu-system-i386:12649): Gtk-WARNING **: Unable to locate theme engine in module_path: "hcengine",

Anyone know what the problem is?

Thanks...
 
Old 05-13-2017, 02:17 PM   #6
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 900
Blog Entries: 9

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
What is you qemu command line? The default "-display" is "-display gtk" maybe you have the wrong GTK installed and/or did not compile gemu with gtk support. Did you select an emulated gpu with "-vga"?
Code:
Display options:
-display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off]
            [,window_close=on|off][,gl=on|off]|curses|none|
-display gtk[,grab_on_hover=on|off][,gl=on|off]|
-display vnc=<display>[,<optargs>]
-display curses
-display none                select display type
The default display is equivalent to
	"-display gtk"
-nographic      disable graphical output and redirect serial I/Os to console
-curses         shorthand for -display curses
-no-frame       open SDL window without a frame and window decorations
-alt-grab       use Ctrl-Alt-Shift to grab mouse (instead of Ctrl-Alt)
-ctrl-grab      use Right-Ctrl to grab mouse (instead of Ctrl-Alt)
-no-quit        disable SDL window close capability
-sdl            shorthand for -display sdl
-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]
       [,x509-key-file=<file>][,x509-key-password=<file>]
       [,x509-cert-file=<file>][,x509-cacert-file=<file>]
       [,x509-dh-key-file=<file>][,addr=addr][,ipv4|ipv6|unix]
       [,tls-ciphers=<list>]
       [,tls-channel=[main|display|cursor|inputs|record|playback]]
       [,plaintext-channel=[main|display|cursor|inputs|record|playback]]
       [,sasl][,password=<secret>][,disable-ticketing]
       [,image-compression=[auto_glz|auto_lz|quic|glz|lz|off]]
       [,jpeg-wan-compression=[auto|never|always]]
       [,zlib-glz-wan-compression=[auto|never|always]]
       [,streaming-video=[off|all|filter]][,disable-copy-paste]
       [,disable-agent-file-xfer][,agent-mouse=[on|off]]
       [,playback-compression=[on|off]][,seamless-migration=[on|off]]
       [,gl=[on|off]]
   enable spice
   at least one of {port, tls-port} is mandatory
-portrait       rotate graphical output 90 deg left (only PXA LCD)
-rotate <deg>   rotate graphical output some deg left (only PXA LCD)
-vga [std|cirrus|vmware|qxl|xenfb|tcx|cg3|virtio|none]
                select video card type
-full-screen    start in full screen
-vnc <display>  shorthand for -display vnc=<display>

Last edited by kingbeowulf; 05-13-2017 at 02:18 PM. Reason: corrections
 
Old 05-14-2017, 08:21 AM   #7
stella-artois
LQ Newbie
 
Registered: May 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
kingbeowulf, my command is
For FreeBSD it was...
qemu-system-i386 -cdrom FreeBSD-11.0-RELEASE-i386-disc1.iso -boot order=d -hda test.vmdk

And I also tried Slackware with no success.

qemu-system-i386 -cdrom slackware-14.2-install-d1.iso -boot order=d -hda test.vmdk

I've tried installing Slackware 14.2 but get kernel panic, not sure what kernel to choose for Slackware 14.2 on qemu
 
Old 05-19-2017, 06:35 PM   #8
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 900
Blog Entries: 9

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
You may need to convert vdmk to a native qemu such as qcow2...not sure. I've had trouble running newer Vmware vmdk images in qemu and virtualbox. If you are trying to install into a existing vmdk... See also:
https://en.wikibooks.org/wiki/QEMU/Images

Here are my comand lines to run qemu and create a Slackware64 VM. I run it as a normal user (not root, su or sudo), as compiled from the Slackbiuilds.org packaging script:
Code:
qemu-img create -f qcow2 slackware64_142_base.img 40G
qemu-system-x86_64 -enable-kvm -machine accel=kvm -m 8G -cpu host -smp 4 -hda slackware64_142_base.img \
        -cdrom /archive/slackware/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso \
	-boot order=cd -name "Slackware64-current" -soundhw ac97 -vga std -sdl
If your host is Slackware32, then "qemu-system-x86" etc. You will need to create the "hard drive" first with qemu-img, of course. I've done this for Slackware[32,64], Freedos, WinXP,7,10, etc. qemu's copy-on-write format has a few nifty features, and the main one I use is, well, copy-on-write, so I can quickly get back to a clean image without reinstalling. To wit:
Code:
qemu-img create -f qcow2 -b $BASE $WIP
I can now fiddle with $WIP without worring that I may break the vm installation.
 
  


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 tun/tap problem running from qemu on slackware 14.2 64bit timsoft Slackware 5 09-25-2016 07:46 PM
Permissions for bridged network with Qemu Gerard Lally Linux - Virtualization and Cloud 1 08-07-2015 07:43 PM
qemu/kvm: permissions for pci-passthrough insectiod Linux - Virtualization and Cloud 1 08-20-2014 02:33 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 usb permissions hemp4fuel Slackware 5 08-02-2009 05:42 PM

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

All times are GMT -5. The time now is 01:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration