Sponsored Content
Full Discussion: QEMU performance?
Special Forums UNIX and Linux Applications Virtualization and Cloud Computing QEMU performance? Post 302930185 by sea on Wednesday 31st of December 2014 05:12:34 AM
Old 12-31-2014
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
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Anyone ever used qemu and networked it ?

hi i got a virtual linux machine running on qemu my problem is connecting it to the internet im a bit confused weather i have to make a virtual network card in qemu and than tun tap it? can anyone thats done it before help me out? (1 Reply)
Discussion started by: russian460
1 Replies

2. Filesystems, Disks and Memory

QEMU not booting my image

hello all, I have been trying to boot an image (.IMG) using qemu, for quite some time now and i can't seem to get it to work. I've been able to boot from the Windows XP CD, the Debian iso image, etc, so I know qemu is configured properly and is working. But when it come to booting an image that I... (34 Replies)
Discussion started by: neur0n
34 Replies

3. Programming

Qemu + gdb

Hi, I got: host machine: RedHat (RHEL6) virtual machine: RedHat (RHEL6) I run (on host machine): qemu-system-x86_64 ...... -S -s after that i run (on host machine): gdb target remote localhost:1234 set architecture i386:x86-64 and then i can use (on host machine) 'ctrl + c' to... (2 Replies)
Discussion started by: Chrisdot
2 Replies

4. AIX

IBM AIX and QEMU Emulator?

Hi friends, I am a UNIX lover. I have tried several unix flavors including linux, solaris(x86) and FreeBSD, all these are the unices which can be installed on x86 hardware. Now to use the IBM AIX, I searched and googled alot, finally I came across QEME, which emulates the PowerPC platorm to turn... (9 Replies)
Discussion started by: gabam
9 Replies

5. Programming

Running c code in ARM QEMU

I created and Compiled a C program to run in QEMU for ARM. When I run the program using the command #qemu-arm -L /home/arm-2010.09/arm-none-linux-gnueabi/libc ./test it gives me the following error: If 'qemu-arm' is not a typo you can use command-not-found to lookup the package that contains... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

6. Red Hat

help about qemu-kvm boot with initrd

I used the redhat RHEL6 boot with initrd but it failed, can sb help me # /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 1024 -net nic,model=virtio -net tap,script=/etc/qemu-ifup -initrd /boot/initramfs-2.6.32-279.el6.x86_64.img -kernel /boot/vmlinuz-2.6.32-279.el6.x86_64 -append "root=/dev/ram... (4 Replies)
Discussion started by: yanglei_fage
4 Replies

7. IP Networking

Create a Bridge for Qemu using only loopback

hello networking folks, i have 3 virtual machines that need to talk to each other How can i create a bridge to loopback ? -net tap,vlan=0,ifname=tap1 where tap1 is connected to lo:1 , tap2 is connected to lo:2 etc thx (0 Replies)
Discussion started by: TwiceDone
0 Replies

8. BSD

How to install Ultrix 4.2 on Qemu?

Hi Problem changed. I've got a message showing on the screen which says Guest has not initialized the display (yet) Any how I can fix this? Thanks Jack (4 Replies)
Discussion started by: lucky7456969
4 Replies
qemuctl(1)																qemuctl(1)

NAME
qemuctl - Graphical control for qemu SYNTAX
qemuctl [-suspend-dir <dir>] [-suspend-file <filename>] [-qemu <qemu>] [-nowakeup] qemu-options DESCRIPTION
qemuctl is a gui that controls a qemu process with the built-in monitor of qemu. So you can change devices, suspend machines, save screen- shots, ... If you suspend a machine it will do the following macro: stop screendump "suspend-dir/suspend-file.ppm" savevm "suspend-dir/suspend-file.vm" commit quit You can afterwards resume the machine with: qemuctl -suspend-dir suspend-dir -suspend-file suspend-file your_qemu_options the suspend-files will then be deleted or qemuctl -loadvm suspend-dir/suspend-file.vm your_qemu_options Be aware that you can't use the "-monitor" option with qemuctl, because it needs the control over the monitor. The option "-serial stdio" can't be used, too. OPTIONS
-suspend-file <filename> This option is normaly used by qemuctl to support suspend and wakeup. qemuctl can then find the vm-state-file in its folders and wakeup the virtual machine. If the file is there the qemuctl waes up the virtual machine and deletes the file afterwards. On suspend the vm-state-file is then stored as the <filename> with the .vm ending and the screenshot is stored as the <filename> with the .ppm ending. Default filename is "suspend". -suspend-dir <dir> This is the dir where the suspend files would be stored or expected. Default is current dir. -nowakeup Don't wake up even if the vm-file is there. Suspend still works. Default is to wake up using the vm-file if it is there. -qemu <qemu> The qemu variation to use. It can be qemu or kvm. Default is qemu. qemu-options Use qemu-options for the launch of qemu. See qemu(1) for further details. FILES
none ENVIRONMENT VARIABLES
none EXAMPLES
To use the suspend file 'Debian 3.1' and store/search it in the '/qemu' dir: qemuctl -suspend-file "Debian 3.1" -suspend-dir "/qemu" -boot c -hda hda.raw Alternativly you can run it with default suspend filenames: qemuctl -boot c -hda hda.raw AUTHORS
Peter Rustler SEE ALSO
qemu(1) qemu-launcher(1) Peter Rustler 0.0.1 qemuctl(1)
All times are GMT -4. The time now is 02:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy