Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add terminal-only appvms
I hope this change is not too controversial.
Sometimes I want to run a VM without a window running in the foreground.
For example, a router/firewall VM, temporary VM for compiling some untrusted
code or installing a random package from the internet. Full GUI is usually
unnecessary, since it's much nicer to be able to use host's terminal directly.
In this change I add
--cli
switch that disables GUI window.Initially I also added serial device to domain (this allowed automatic connect
with
virsh -c qemu:///system console appvm_name
), but I dropped it beforemaking a PR - adding a SSH server to appvm definition works better for me.
I also change networking model from qemu to virtmanager's device (virbr0).
The reason for this is that it's much easier for me to configure firewall/
iptables with virt manager network, than with qemu device. Also AppVMs
don't have IPs with qemu device, I think. If this change is not OK I'm
happy to keep this change only in my fork (or maybe as a switch
--networking-model
?)Thoughts?