If you have a Linux machine with KVM on it, you can manage those VMs remotely from a Mac using virt-manager.
SSH to the Linux machine and add your SSH user to the libvirt group
sudo usermod -a -G libvirt $(whoami)
| # IMPORTANT! | |
| # This gist has been transformed into a github repo | |
| # You can find the most recent version there: | |
| # https://github.com/Neo23x0/auditd | |
| # ___ ___ __ __ | |
| # / | __ ______/ (_) /_____/ / | |
| # / /| |/ / / / __ / / __/ __ / | |
| # / ___ / /_/ / /_/ / / /_/ /_/ / | |
| # /_/ |_\__,_/\__,_/_/\__/\__,_/ |
| #!/usr/bin/env bash | |
| set -e | |
| set -u | |
| ## Variables | |
| set_vars(){ | |
| APT_MIRROR_HOST="mirror" | |
| LXDKVM_SSTREAM_HOST="mirror" | |
| JUJU_SSTREAM_HOST="mirror" |
| import re | |
| import boto3 | |
| import csv | |
| from botocore.exceptions import ClientError | |
| ec2 = boto3.client('ec2') | |
| def get_snapshots(): | |
| return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |
| function decode-authorization-failure-message { | |
| if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
| cat <<'EOT' | |
| Usage: decode-authorization-failure-message <message> | |
| Use this when Amazon gives you an "Encoded authorization failure message" and | |
| you need to turn it into something readable. | |
| EOT | |
| return 1 | |
| fi |
| function decode-authorization-failure-message { | |
| if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
| cat <<'EOT' | |
| Usage: decode-authorization-failure-message <message> | |
| Use this when Amazon gives you an "Encoded authorization failure message" and | |
| you need to turn it into something readable. | |
| EOT | |
| return 1 | |
| fi |
| from - http://davidssysadminnotes.blogspot.com/2016/01/installing-apache-kafka-and-zookeeper.html | |
| [smack1]# vi /etc/systemd/system/kafka-zookeeper.service | |
| [Unit] | |
| Description=Apache Zookeeper server (Kafka) | |
| Documentation=http://zookeeper.apache.org | |
| Requires=network.target remote-fs.target | |
| After=network.target remote-fs.target | |
| [Service] | |
| Type=simple |
| from - http://davidssysadminnotes.blogspot.com/2016/01/installing-apache-kafka-and-zookeeper.html | |
| [smack1]# vi /etc/systemd/system/kafka-zookeeper.service | |
| [Unit] | |
| Description=Apache Zookeeper server (Kafka) | |
| Documentation=http://zookeeper.apache.org | |
| Requires=network.target remote-fs.target | |
| After=network.target remote-fs.target | |
| [Service] | |
| Type=simple |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |