Re: [Qemu-devel] Re: [PATCH] Add support for a configuration file | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On 14/05/2008, Anthony Liguori <anthony@xxxxxxxxxxxxx> wrote:
> Anthony Liguori wrote:
>
> > I think this is pretty useful as-is. I think it also gives us a
> reasonable
> > way to move forward that will keep everyone pretty happy.
> >
> > Here's a short example:
> >
> > qemu-system-x86_64 -hda ~/images/linux.img -snapshot -vnc :2
> >
> > Would become `foo.qemu':
> >
> > # Main disk image
> > hda=/home/anthony/images/linux.img
> >
> > # Redirect disk writes to a temporary image
> > snapshot
> >
> > # Make the graphical display available on port 5902
> > vnc=:2
> >
> > With:
> >
> > qemu-system-x86_64 -config foo.qemu
> >
>
> One thought I had, is that it would be very nice to break up the -drive
> file=foo.img,if=scsi syntax within the config file. In general, I'm
> thinking something like:
>
> [drive]
> file=foo.img
> if=scsi
>
> or:
>
> drive {
> file=foo.img
> if=scsi
> }
I like this one and it would be nice to be able to replace the equal
sign with whitespace.
What I'd love, though, but expect others will consider bloat, is that
files are passed through cpp before interpreting. This way the syntax
becomes not (much) less powerful than the current command line
invocation where you get variable expansion for free. I would hate to
type in some things in as many times as there are instances of a given
hardware. Consider some disk arrays or the once discussed -pins
switch for initial state of pins or jumpers (some machines have
hundreds of them).
--
Please do not print this email unless absolutely necessary. Spread
environmental awareness.
-------------------------------------------------------------------------
_______________________________________________
kvm-devel mailing list
kvm-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/kvm-devel
[Site Home] [Netdev] [Ethernet Bridging] [Linux Virtualization] [LVS Devel] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [100% Free Internet Dating] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]