qemu-kvm networking, ALSA, etc.

Avi's picture

To set up networking, you need to put 2 new scripts in your
/etc. Check: http://david-latham.blogspot.com/2008/04/qemu-networking.html

To use ALSA instead of the default Pulseaudio (I have removed that),
make a script for starting your virtual machine. E.g.:

#!/bin/sh
export QEMU_AUDIO_DRV=alsa
#export QEMU_AUDIO_DAC_FIXED_FREQ=48000
#export QEMU_AUDIO_ADC_FIXED_FREQ=48000
qemu-kvm \
-name spartacus \
-uuid 30587b87-bbed-b794-27fc-47a03ec828d8 \
-M pc \
-smp 2 \
-m 512 \
-monitor pty \
-sdl \
-vnc 127.0.0.1:1 \
-usb \
-usbdevice tablet \
-usbdevice host:0d9a:0004 \
-soundhw es1370 \
-net nic,macaddr=54:52:00:5f:4a:24,vlan=0 \
-net tap,vlan=0 \
-serial none \
-parallel none \
-hdc /share/kvm/spartacus.img \
-boot c \
-localtime \
-pidfile /var/run/libvirt/qemu/spartacus.pid \
-daemonize \
$@

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.