3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 03:49:29 +01:00

pbot-vm: update documentation about how to start PBot VM after reboot

This commit is contained in:
Pragmatic Software 2024-04-10 13:09:58 -07:00
parent e25bde159f
commit 9ef521309a
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
3 changed files with 16 additions and 0 deletions

View File

@ -83,6 +83,14 @@ In your instance of PBot, the `sh` and `cc`, etc, commands should now produce ou
<pragma-> sh echo Hello world! <pragma-> sh echo Hello world!
<PBot> Hello world! <PBot> Hello world!
### Starting PBot VM again
To start the PBot VM again, e.g. after a reboot:
cd applets/pbot-vm/host/bin
virsh -c qemu:///system net-start vagrant-libvirt
virsh -c qemu:///system snapshot-revert $PBOTVM_DOMAIN 1 # for each $PBOTVM_DOMAIN you need to start
./vm-server
### Shutdown Vagrant Box ### Shutdown Vagrant Box
vagrant halt vagrant halt

View File

@ -353,6 +353,7 @@
* [Initial virtual machine set-up complete](VirtualMachine.md#initial-virtual-machine-set-up-complete) * [Initial virtual machine set-up complete](VirtualMachine.md#initial-virtual-machine-set-up-complete)
* [Start PBot VM Host](VirtualMachine.md#start-pbot-vm-host) * [Start PBot VM Host](VirtualMachine.md#start-pbot-vm-host)
* [Test PBot](VirtualMachine.md#test-pbot) * [Test PBot](VirtualMachine.md#test-pbot)
* [Starting PBot VM again](VirtualMachine.md#starting-pbot-vm-again)
* [Adding additional VMs](VirtualMachine.md#adding-additional-vms) * [Adding additional VMs](VirtualMachine.md#adding-additional-vms)
* [QEMU command from libvirt](VirtualMachine.md#qemu-command-from-libvirt) * [QEMU command from libvirt](VirtualMachine.md#qemu-command-from-libvirt)
<!-- md-toc-end --> <!-- md-toc-end -->

View File

@ -510,6 +510,13 @@ In your instance of PBot, the `sh echo hello` command should output `hello`.
<pragma-> sh echo hello <pragma-> sh echo hello
<PBot> hello <PBot> hello
## Starting PBot VM again
To start the PBot VM again, e.g. after a reboot:
cd applets/pbot-vm/host/bin
virsh snapshot-revert $PBOTVM_DOMAIN 1 # for each $PBOTVM_DOMAIN you need to start
./vm-server
## Adding additional VMs ## Adding additional VMs
You may add as many virtual machines as you like. The virtual machines can exist on different physical machines. You may add as many virtual machines as you like. The virtual machines can exist on different physical machines.
Edit the [`vm-exec.json`](../applets/pbot-vm/host/config/vm-exec.json) configuration file with the details (IP addresses Edit the [`vm-exec.json`](../applets/pbot-vm/host/config/vm-exec.json) configuration file with the details (IP addresses