Unix/Linux Go Back    


Virtualization and Cloud Computing Xen, VMWare, hypervisors, Amazon Elastic Computing Cloud, EC2, virtual storage, Amazon S3 and other cloud computing topics.

QEMU performance?

Virtualization and Cloud Computing


Tags
increase, performance, qemu, slow

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-31-2014   -   Original Discussion by sea
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
Computer QEMU performance?

Heyas

So, i like doing custom a LiveImage of my OS.
Using Redhats kickstart/livecd-creator method.

Anyway, so i would like to test the liveimages...
AND also, i WOULD like to install FreeBSD, Solaris, or whatever, onto a Virtual Machine.

I used to use Oracles Virtualbox, but eversince i'm booting with SecureBoot enabled, i'm no longer able to start it, so i had to change to QEMU.

Now, to just 'test' if the fresh generated iso is 'working' or not, QEMU is just fine.
But if i ever want to actualy do in QEMU, like, switching desktop, or changing the folder in pcmanfm inside QEMU, it needs patience out of this world...

I'm running my ISO's like this:

Code:
#!/bin/bash
# isotest
# Description:	Simply boots an iso file with qemu.
# ------------------------------------------------------
#
#	Variables
#
	DEFAULT_ARCH=x86_64
	DEFAULT_ARCH=$(uname -m)
	DEFAULT_RAM=$(( 4 * 1024 ))
	DEFAULT_CORES=4
	DEFAULT_VGA=vmware
	DEFAULT_FORMAT=qcow2
	DEFAULT_SIZE=5G
	DEFAULT_IMAGE_DIR=$HOME/Virtual_Machine_Images
	DEFAULT_IMAGE_FILE=isotest.img
#
#	Display & Action
#
	qemu-system-$DEFAULT_ARCH \
		-smp $DEFAULT_CORES \
		-m $DEFAULT_RAM \
		-cdrom "$1"

And to 'install' or run an intalled image i execute:

Code:
#!/bin/bash
# distrotest
# Description:	Simply boots an OS file with qemu.
# ------------------------------------------------------
#
#	Variables
#
	DEFAULT_ARCH=x86_64
	DEFAULT_ARCH=$(uname -m)
	DEFAULT_RAM=$(( 4 * 1024 ))
	DEFAULT_CORES=4
	DEFAULT_VGA=vmware
	DEFAULT_FORMAT=qcow2
	DEFAULT_SIZE=5G
	DEFAULT_IMAGE_DIR=$HOME/Virtual_Machine_Images
	DEFAULT_IMAGE_FILE=distrotest.img
#
#	Functions
#
	DEFAULT_IMAGE="$DEFAULT_IMAGE_DIR/$DEFAULT_IMAGE_FILE"
	[[ -f "$1" ]] || exit 1
	if [[ ! -f "$DEFAULT_IMAGE" ]]
	then	# We just need an image to boot an iso, this can be quite small.
		qemu-img create -f "$DEFAULT_FORMAT" "$DEFAULT_IMAGE" $DEFAULT_SIZE
	fi
#
#	Display & Action
#
	qemu-system-$DEFAULT_ARCH \
		-smp $DEFAULT_CORES \
		-m $DEFAULT_RAM \
		-cdrom "$1" \
		-hda "$DEFAULT_IMAGE"
# 		-full-screen \

As you see, i'm quite, sharing?, with my hardware for qemu...
4 Cores and 4 GB of ram, but booting an ISO (same for installed) takes up to ~7mins, when with O-VB it was as low as ~1min -- using 768mb ram and 70% of 1 core....

Doing a mouse click and wait for like 20 secs for ANYTHING to happen, is just annoying.

Any ideas or advices please?
Thank you in advance
Sponsored Links
    #2  
Old Unix and Linux 12-31-2014   -   Original Discussion by sea
jlliagre jlliagre is online now Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 18 November 2017, 3:27 AM EST
Location: Outside Paris
Posts: 4,872
Thanks: 18
Thanked 635 Times in 554 Posts
It looks like signing the virtualbox module allows it to be loaded in with secureboot enabled: VBox & VMware in SecureBoot Linux | It's my life
Sponsored Links
    #3  
Old Unix and Linux 01-05-2015   -   Original Discussion by sea
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
I just did so, and ended up no longer beeing able to boot to GUI.
After beeing stuck after the plymouth-screen (Fedora) it stucked between init 3 & init 5, somewhere...

Changing the GRUB command line helped to enter multi-user stage.
But even with deleting the just added MOK (during & after restart), i just once could boot to GUI, thought it was stable and never achieved again until i reinstalled my system just now.

Bad first experience i guess Linux

Also, since i first installed such a signed key, when recreating grub2 config, it spawned some errors like:

Code:
ERROR: sil: invalid metadata checksum in area 3 on /dev/dm-0

But since this still happends, me not sure what it caused initaly...

System: 3.17.7-300.fc21.x86_64
I had used the attached script to sign the keys, which i just worked on, and now going to test for real again...
Now that the system was just installed this evening i dont have much to "loose" anyway.. Linux

<3 custom LiveSpin's Linux

Any ideas what i did wrong?
Thank you in advance and good night - wish me luck.
Attached Files
File Type: txt dmesg.txt (88.3 KB, 0 views)
File Type: txt journal-xe.txt (112.1 KB, 0 views)
File Type: sh sign-VB-tui.sh (3.5 KB, 0 views)
    #4  
Old Unix and Linux 01-05-2015   -   Original Discussion by sea
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,285
Thanks: 256
Thanked 226 Times in 209 Posts
Addendum:
Not sure if its related, but eversince and again i installed this system, i do have a key-issue..

Code:
[    0.590535] EFI: Problem loading in-kernel X.509 certificate (-129)
[    0.590597] EFI: Problem loading in-kernel X.509 certificate (-129)

This was, and still is, before i even created a custom key.
Not sure if its related to not beeing able to boot the iso off the USB, but only the CD/DVD.

EDIT:
Ahh that is just a time (hw-clock) issue..

Last edited by sea; 01-07-2015 at 10:17 AM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help about qemu-kvm boot with initrd yanglei_fage Red Hat 4 08-26-2012 10:07 AM
Qemu + gdb Chrisdot Programming 2 04-06-2011 06:37 PM
QEMU not booting my image neur0n Filesystems, Disks and Memory 34 01-14-2011 04:11 PM
Anyone ever used qemu and networked it ? russian460 UNIX for Dummies Questions & Answers 1 11-07-2008 11:14 PM



All times are GMT -4. The time now is 04:36 AM.