A virtual BMC for controlling virtual machines using IPMI commands.
Go to file
2016-02-11 15:55:51 +00:00
.gitignore Initial Commit with code 2016-02-11 15:55:51 +00:00
LICENSE Initial Commit with code 2016-02-11 15:55:51 +00:00
README.rst Initial Commit with code 2016-02-11 15:55:51 +00:00
virtualbmc.py Initial Commit with code 2016-02-11 15:55:51 +00:00

Virtual BMC

A virtual BMC for controlling virtual machines with IPMI commands

Usage

  1. Create a virtual machine

  2. Run the virtual BMC:

    python ./virtualbmc.py --domain-name <virtual machine name>
  3. Control it via IPMI:

    # Power the virtual machine on or off
    ipmitool -I lanplus -U admin -P password -H 127.0.0.1 power on|off
    
    # Check the power status
    ipmitool -I lanplus -U admin -P password -H 127.0.0.1 power status
    
    # Set the boot device to network, hd or cdrom
    ipmitool -I lanplus -U admin -P password -H 127.0.0.1 chassis bootdev pxe|disk|cdrom
    
    # Get the current boot device
    ipmitool -I lanplus -U admin -P password -H 127.0.0.1 chassis bootparam get 5