Skip to content

Virtualbox BMC - Hack solution based on Openstack VirtualBMC (https://docs.openstack.org/virtualbmc/latest)

Notifications You must be signed in to change notification settings

4krajesh/vboxbmc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VBoxBMC

Overview

A virtualbox BMC for controlling virtual machines using IPMI commands.

Installation

Note: Only works with python2.7 for now.

git clone https://github.com/rajeshkudaka/vboxbmc.git
cd vboxbmc
pip install .

Supported IPMI commands

# Power the virtual machine on, off, graceful off, NMI and reset
ipmitool -I lanplus -U admin -P password -H 127.0.0.1 power on|off|soft|reset

# 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

Project resources

Hacks

Use "export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES" to escape the below issue. This is caused due to Multiprocessing, issue with exiting the process gracefully and reinitializing.

objc[6941]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[6941]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

About

Virtualbox BMC - Hack solution based on Openstack VirtualBMC (https://docs.openstack.org/virtualbmc/latest)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%