Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wojciechowskimar/f67f1dfd4fead8f6a8f155c392d28477 to your computer and use it in GitHub Desktop.
Save wojciechowskimar/f67f1dfd4fead8f6a8f155c392d28477 to your computer and use it in GitHub Desktop.
How to Auto Start a Guest VM in Oracle VM/XEN

How to Auto Start a Guest VM in Oracle VM XEN.md

1. Log into 'Oracle VM Manager' CLI

ssh -l admin <Oracle VM Manager IP> -p 1000

2. Find the guest VM 'Config File Mounted Path'

show vm name=<Guest VM Name>

3. Connect to the 'Oracle VM Server' host (hypervisior)

ssh -l root <Oracle VM Server IP ADDRESS>

5. Create a symbolick link to the 'vm.cfg' file of guest VM

ln -s /OVS/Repositories/<Server Pool ID>/VirtualMachines/<Guest VM ID>/vm.cfg /etc/xen/auto/<Guest VM ID>

example:

ln -s /OVS/Repositories/0004fb00000300001006c4a0429098ee/VirtualMachines/0004fb000006000018e6b16ce431f03d/vm.cfg /etc/xen/auto/0004fb000006000018e6b16ce431f03d

6. Restart 'Oracle VM Server' host

reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment