SmartOS global zone firewall

#!/usr/bin/sh ## fix bash this should be somewhere else but later touch /root/.vimrc ## setup accounting acctadm -e extended -f /var/log/netacct.log net ## setup gw0 if [ `dladm show-vnic | grep gw0 | wc -l` -ne 1 ]; then /usr/sbin/dladm create-vnic -m 2:8:20:bc:d5:5f -l switch0 gw0 /usr/sbin/ipadm create-addr -T static -a 172.16.0.1/24 gw0/v4 fi ##… Continue reading SmartOS global zone firewall

SmartOS Firewall

SmartOS Global Zone This is the /usbkey/config file and is the main networking config it is well commented so should not need explanation here # This file was auto-generated then edited by the King and must be source-able ##### SmartOS netorking is this correct logic? will this work ??? ##### # admin_nic internal ip for… Continue reading SmartOS Firewall

NetXMS

Not sure why this group of programs is so hard to install but it is even had better luck installing from source code than using prebuilt Debian packages.  Yep you read that right installed from source code very old school stuff argh my history only kept the last 33 commands therfore this page will probably… Continue reading NetXMS

SmartOS

Introduction Put something smart about SmartOS here probably mention the ephemeral nature of the OS These need to be done every time i reboot until if i figure out smf and/or Chef vim Makes vim behave a bit more sensibly touch ~/ .vimrc emaiL Add a email alias for me@somewhere.net so i can get email from… Continue reading SmartOS

debug

test 2014-01-15 04:57:53: WARNING: Upgrading… 2014-01-15 04:57:53: ERROR: Error preparing Query [SELECT tvalue FROM misc WHERE tkey=’db_version’]: no such table: misc 2014-01-15 04:59:11: WARNING: Info not found at ‘c:’ – reindexing 2014-01-15 05:12:04: ERROR: Error for Volume ‘c:’: Journal entry deleted 2014-01-15 05:12:04: ERROR: Access error during indexing. Change journal too small? 2014-01-15 05:12:34: ERROR:… Continue reading debug

Proxmox PCI/PCIe passthrough

This is how i got PCI/PCIe passthough working in the below example i got a server grade PCIe BluecherryDVR capture card going with Proxmox 2.3. Also my original troubleshooting posts regarding this incredibly useful feature of KVM can be found here this details what you must do to find device settings and types. If i… Continue reading Proxmox PCI/PCIe passthrough

Migrate raid 1 to 5

Reshape takes forever and unless the drives are full might not be worth your time madadm root# mdadm –stop /dev/md0 mdadm: stopped /dev/md0 root# mdadm –create /dev/md0 –level=5 –raid-devices=2 /dev/sda1 /dev/sdb1 mdadm: /dev/sda1 appears to contain an ext2fs file system size=1048512K mtime=Fri Dec 18 13:23:04 2009 mdadm: /dev/sda1 appears to be part of a raid… Continue reading Migrate raid 1 to 5

Gmail relay

Using gmail as a relay apt-get install libsasl2-2 ca-certificates libsasl2-modules Add this to /etc/postfix/main.cf # use gmail as a relay relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/ssl/certs/Equifax_Secure_CA.pem Add something like this to /etc/postfix/sasl_passwd [smtp.gmail.com]:587 user-name@gmail.com:users-password postmap /etc/postfix/sasl_passwd chown 600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db Relay To get… Continue reading Gmail relay

Copy PVE to a new drive

Introduction This is two methods to move a complete harddrive to a new bigger harddrive live on a running system with no downtime cool eh? This guide could be applied to moving things to a smaller drive, but will require some additonal trickery mostly lvm stuff, i will add it here when i and if… Continue reading Copy PVE to a new drive

Proxmox from debian 6.0.6 non-free with software raid

WORK IN PROGRESS Introduction some stuff here Install Debian Get the non-free CD or as i like to do use my usb stick http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/ Do an install using RAID 1 going to try with one drive in degraded mode I think its best to use entire drive with LVM then edit later create raid md0 for… Continue reading Proxmox from debian 6.0.6 non-free with software raid