4 ms·
> minimal QEMU command-line" > -nodefaults Once you add `-nodefaults`, the list of arguments grows because now you must add a bunch of things that were there
by LukeShu 8y ago
> minimal QEMU command-line"
> -nodefaults
Once you add `-nodefaults`, the list of arguments grows because now you must add a bunch of things that were there by default. If by "minimal command-line" you mean "the simplest list of arguments", then your example is wrong. If by "minimal command-line" you mean "command-line that gives the minimal VM", then you're being misleading, because that's not how people will take it.
Most of the devices added by libvirt would be included by qemu automatically if you didn't say `-nodefaults`. libvirt uses `-nodefaults` and specifies its own defaults, so that it doesn't need to keep track of changes in Qemu's defaults between versions of Qemu (since libvirt cares about the nitty-gritty more than most humans do).
PS: You have too many "t"s in the "htttps://" in one of those URLs.
- JoshuaRLi 8y agoThis. Also, most of the example command line has nothing to do with serial consoles.
- kashyapc 8y ago> Once you add `-nodefaults`, the list of arguments grows because now you must add a bunch of things that were there by default [...] Partly true (refer below). > If by "minimal command-line" you mean [...] I appreciate your corrections, but please don't read too much into the word "minimal". I just quickly pasted it from one of the "subjective scripts" named `min-qemu.sh` lying around on my file system. By the time I realized, it was too late to adjust it. > Most of the devices added by libvirt would be included by qemu automatically if you didn't say `-nodefaults` Not quite; I just double-checked with an upstream libvirt dev: when you remove `-nodefaults`, some of the built-in devices get removed, whether those equate to "most" or not depends how many devices you've asked for. > PS: You have too many "t"s in the "htttps://" in one of those URLs. Yeah, realized too late that there was a typo :-(