Page 1 of 1

Host reboot and automatic VM restart with teleport support

Posted: 2. Dec 2009, 10:47
by mk1970
Let's assume I have the following hardware:
  • one iSCSI targets where the VM images are located
  • two text-console-only hosts with VirtualBox 3.1.x
How can I to handle this use case:
  • Reboot both host1 and host2
  • Let's assume host1 is faster to reboot
  • host1 starts vm1 automatically (how?)
  • host2 detects (how?) that vm1 is already running so it waits for a teleport request
  • Manually trigger teleport vm1 to host2
  • Reboot host1 (e.g. after system upgrade)
  • host1 detects that vm1 is already running so it waits for a teleport request
Please share your real-life examples with scripts and ready-to-run commands...