qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/4] QemuOpts: config file support.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 0/4] QemuOpts: config file support.
Date: Fri, 16 Oct 2009 12:16:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

What I really want to do, which I don't think is possibly in right now, is:

[net "default"]
type=tap
script=/etc/qemu-ifup-bridge

In /etc/qemurc to globally change from slirp default to tap default. Of
course, why stop there, we should install an /etc/qemurc by default with:

[net "default"]
type=user
host=10.0.1.2
net=10.0.1.0/24
dhcpstart=10.0.1.10
dns=10.0.1.2

And completely get rid of any baked in defaults.

Yes. Kill all these automagic devices from qemu, move them into config files. So long-term we'll have something like:

/usr/share/qemu/boards/pc.dtc
        -> your virtual mainboard, i.e. all piix3/4 and core stuff
           like pic, apic, ...

/usr/share/qemu/defaults/pc.conf
        -> useful default configuration for pc, i.e. cirrus vga,
           e1000 nic, serial port, parallel port, cdrom drive, ...

/etc/qemu/host.conf
        -> host-wide config, i.e. slirp networking, maybe chardevs
           for serial0+parallel0, ...

$HOME/.qemu.conf (maybe)
        -> user-wide config

qemu would (by default) read all these files in the specified order, additionally a virtual-machine config file specified on the command line. Asking qemu to NOT read defaults/pc.conf would zap all default devices from your configuration.

Maybe it is useful to have some kind of profiles, i.e.
/etc/qemu/default.conf, /etc/qemu/nographic.conf, ...

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]