2024-05-05 18:28:43 +02:00
|
|
|
= control-vm.sh
|
|
|
|
:toc:
|
|
|
|
|
2021-09-30 11:49:37 +02:00
|
|
|
This repository contains a simple bash script to start and stop virtual
|
|
|
|
machines run by QEMU and KVM and to connect to them via SSH or VNC or SPICE.
|
|
|
|
|
|
|
|
The newest version can be probably found on
|
|
|
|
https://git.holgersson.xyz/nfr/control-vm.
|
|
|
|
|
|
|
|
Note: While the author already runs this software in "production" on his
|
|
|
|
private setup he would still conside some parts as beta quality. As usual it's
|
|
|
|
strongly recommended to create backups first and read through the bash script
|
|
|
|
to understand roughly what it does.
|
|
|
|
|
2024-05-05 18:28:43 +02:00
|
|
|
== Installation
|
2021-09-30 11:49:37 +02:00
|
|
|
Please install the following tools which are used by the script:
|
|
|
|
|
|
|
|
- bash
|
|
|
|
- >=qemu-6.0.0
|
|
|
|
- socat
|
2021-09-30 19:25:03 +02:00
|
|
|
- remote-viewer as part of virt-viewer (https://virt-manager.org)
|
2021-09-30 11:49:37 +02:00
|
|
|
|
2024-05-05 18:28:43 +02:00
|
|
|
== Usage
|
|
|
|
[source, shell]
|
|
|
|
----
|
2021-09-30 11:49:37 +02:00
|
|
|
./control-vm.sh <name of your virtual machine> start | shutdown | stop | connect | save | restore | pause | resume"
|
2024-05-05 18:28:43 +02:00
|
|
|
----
|
2021-09-30 11:49:37 +02:00
|
|
|
|
|
|
|
Note that you do not see any 'setup' command there a one-shot boot from ISO is
|
|
|
|
not implemented.
|
|
|
|
|
2024-05-05 18:28:43 +02:00
|
|
|
== Contact
|
2021-09-30 11:49:37 +02:00
|
|
|
If you have questions, suggestions or want to brag about your other qemu
|
|
|
|
managing tools feel free to write an email or conact me via IRC:
|
|
|
|
mail: nils@holgersson.xyz
|
|
|
|
IRC: holgersson on libera.chat and oftc, mostly in Gentoo related channels
|
|
|
|
|
2024-05-05 18:28:43 +02:00
|
|
|
== Copyright
|
2021-09-30 11:49:37 +02:00
|
|
|
The bash script and it's documentation (this README) are licensed as MIT,
|
2024-05-05 18:28:43 +02:00
|
|
|
copyright by Nils Freydank.
|
2021-09-30 11:49:37 +02:00
|
|
|
|
|
|
|
The used software has each is own license, but is all FLOSS software.
|
2024-05-05 18:28:43 +02:00
|
|
|
|
|
|
|
// vim:syntax=asciidoc:fileencoding=utf-8:ts=4:expandtab:linebreak:wrap
|