On your proxmox server edit /etc/interfaces and add a vmbr1 interface like so
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 167.114.101.88
netmask 255.255.255.0
#!/bin/bash -e | |
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved. | |
### Secure plesk clean installation with hostname certificate by Let's Encrypt | |
export PYTHONWARNINGS="ignore:Non-standard path" | |
LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"} | |
HOSTNAME=$(hostname) | |
# Use staging server for testing | |
# --server https://acme-staging.api.letsencrypt.org/directory |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAA.... you@example.com | |
coreos: | |
units: | |
- name: docker-tcp.socket | |
command: start | |
enable: yes | |
content: | |
#!/bin/bash | |
mkdir -p /opt/bin | |
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose | |
chmod +x /opt/bin/docker-compose |
#!/bin/sh | |
# XenServer autostart script | |
# Use at your own risks | |
# Do not use with VMs using HA. | |
# Instructions: | |
# 1. Put this script in /root | |
# 2. Give execution permission: "chmod +x /root/xs_autostart.sh" | |
# 3. Add "@reboot /root/xs_autostart.sh" in root's crontab | |
# 4. Add the "autostart" to VM needing it | |
# 5. Add "autostart" in the descriptions of vApps needing it |
#!/bin/bash | |
sudo touch "/Library/Preferences/VMware Fusion/promiscAuthorized" |
On your proxmox server edit /etc/interfaces and add a vmbr1 interface like so
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 167.114.101.88
netmask 255.255.255.0
#!/bin/bash | |
set -ve | |
lxc-create -n vpn -t ubuntu | |
# ln -s /var/lib/lxc/vpn/config /etc/lxc/auto/vpn.conf | |
perl -i -ple 's/#lxc.aa_profile = unconfined/lxc.aa_profile = unconfined/' /etc/lxc/auto/vpn.conf | |
perl -i -ple 's/^exit 0/# exit 0/' /etc/rc.local | |
cat >>/etc/rc.local <<hello | |
mkdir -p /var/lib/lxc/vpn/rootfs/dev/net/ |
#!/usr/bin/perl -w | |
# example hook script for vzdump (--script option) | |
use strict; | |
print "HOOK: " . join (' ', @ARGV) . "\n"; | |
my $phase = shift; |
Go into your git checkout folder of ipxe.
Save the below file as nic-menu.ipxe
.
Build iPXE like this:
cd src && make EMBED=../nic-menu.ipxe && cd ..
Requirements: current iPXE as of 2013-08-01 (for proper behavior of autoboot with a network device specified, netX feature, PCI vendor/device ID display and inc command)