
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
haswitch is a Linux high availability tool to manage VM synchronization in a RAID 10 environment (machine-to-machine). Its primary goal is to switch LXC virtual machines onto LVM + DRBD. Its secondary goal is to manage the network coming with virtual machines then it manages iptables and bridges. haswitch also supports OVH's failover API which allow to switch failover ip during the migration.
sudo npm install -g haswitch
Show configuration
haswitch show
Start all resources
haswitch start
Stop ha0 resource
haswitch start ha0
Start VM vm1ha0 on ha0 resource
haswitch start ha0 vm1ha0
Stop VM vm1ha0 on ha0 without execution
haswitch -e stop ha0 vm1ha0
sudo apt-get install lxc lxc-templates wget bridge-utils
Disable the default bridge “lxcbr0“, got created as part of LXC installation.
sudo nano /etc/default/lxc-net
Set “USE_LXC_BRIDGE” to “false“.
USE_LXC_BRIDGE="false"
I suggest you to follow the guide from Zarafa:
The DRBD resource name must have the same name as a haswitch resource.
Edit your /etc/haswitch.json and add:
ovh: {
"me": "nsXXX.ovh.net",
"endpoint": "ovh-eu",
"appKey": "APP_KEY",
"appSecret": "APP_SECRET",
}
Customer Key will come after running the credential checker.
haswitch ovh auth
A validation URL will be given You will have to follow it in order to activate the application. Once you have done that you will have the customer key:
ovh: {
"me": "nsXXX.ovh.net",
"endpoint": "ovh-eu",
"appKey": "APP_KEY",
"appSecret": "APP_SECRET",
"consumerKey": "Given consumerKey",
}
Now you have to activate OVH failover on the LXC container
{
"ovh": true,
"vm": "vm1ha0",
"public": {
"internal": "192.168.0.6",
"external": "1.2.3.2",
"internal6": "fd67:d076:089a:8da3::",
"external6": "2003:dead:beef:f80c::",
}
}
Once you have configured you can check the OVH's failover status:
haswitch ovh check
To redirect all failover IP in every resources on Me (see ovh.me):
haswitch ovh failover
Or for a specific resource:
haswitch ovh failover ha0
FAQs
DRBD + LVM + LXC Raid10 Switcher
We found that haswitch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.