linux
Dell PowerEdge R200 and ESX or ESXi
by iam8up on Jun.07, 2010, under vmware
What a mess.
The HCL says it works with ESX 3.5u5, 4.0 and 4.0u1. No mention of ESXi.
This blog suggests it works with ESXi 3.5u1. I can verify that it does NOT work with ESXi 3.5u5.
My personal tests (a simple install and connection with VIC):
Fail – ESXi 3.5u5
Win – ESXi 4.0u1, ESX 3.5 (trial)
I installed the only compatible RAID card (from Dell, ~$200 SAS 6 ir) and ESXi 4.0u1 is still working.
UPDATE: Just checked the website and they’re saying ESXi 3.5u5 works. I believe I have BIOS 1.3.1 and found this NOT to be true. I can’t take down my system to check anymore.
Linux – move to new hard drive
by iam8up on Jun.03, 2010, under linux
GREAT article on this…
Note if you copy/paste some of the commands the “-” comes out as “.” from that site to Putty.
Basically you add the new disk, usually for VMware you’ll run
echo "- - -" > /sys/class/scsi_host/host0/scan
partition it the same (replicate the mount points and of course allot equal or greater space then current data use) and then mount them and run
cd /mnt/sdb1 && dump -0uan -f – /boot | restore -r -f -
cd /mnt/sdb3 && dump -0uan -f – /| restore -r -f -
or something similar. I usually partition /boot, swap and then /.
This worked on my CentOS 5 in VMware.
And for the longhand…
fdisk /dev/sdb
mkfs -t ext3 /dev/sdb1
mkfs -t ext3 /dev/sdb3
mkswap /dev/sdb2
tune2fs -L "/boot" /dev/sdb1
tune2fs -L "/" /dev/sdb3
mkdir /mnt/sdb1 && mount /dev/sdb1 /mnt/sdb1
cd /mnt/sdb1 && dump -0uan -f – /boot | restore -r -f -
mkdir /mnt/sdb3 && mount /dev/sdb3 /mnt/sdb3
cd /mnt/sdb3 && dump -0uan -f – / | restore -r -f -
grub-install
grub>root (hd1, 0)
grub>setup (hd1)
grub>quit
MikroTik RB750 initial script
by iam8up on May.07, 2010, under mikrotik
#| ether1 is renamed ether1-gateway, rest of interfaces are switched
#| IP address 192.168.88.1/24 is on switch
#| DHCP client is on ether1-gateway
#| DHCP server is on switch, with address pool 192.168.88.10-192.168.88.254
#| masquerade on ether1-gateway
:global action
# these commands are executed after installation or configuration reset
:if ($action = “apply”) do={
/interface set ether1 name=ether1-gateway
/interface set ether2 name=ether2-local-master
/interface set ether3 name=ether3-local-slave
/interface set ether4 name=ether4-local-slave
/interface set ether5 name=ether5-local-slave
/interface ethernet set ether3-local-slave master-port=ether2-local-master
/interface ethernet set ether4-local-slave master-port=ether2-local-master
/interface ethernet set ether5-local-slave master-port=ether2-local-master
/ip address add address=192.168.88.1/24 interface=ether2-local-master comment=”default configuration”
:if ([:len [/system package find name="dhcp" !disabled]] != 0) do={
/ip dhcp-client add interface=ether1-gateway disabled=no comment=”default configuration”;
/ip pool add name=default-dhcp ranges=192.168.88.10-192.168.88.254;
/ip dhcp-server add name=default address-pool=default-dhcp interface=ether2-local-master disabled=no;
/ip dhcp-server network add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=192.168.88.1 comment=”default configuration”;
}
/ip firewall {
filter add chain=input action=accept protocol=icmp comment=”default configuration”
filter add chain=input action=accept connection-state=established in-interface=ether1-gateway comment=”default configuration”
filter add chain=input action=accept connection-state=related in-interface=ether1-gateway comment=”default configuration”
filter add chain=input action=drop in-interface=ether1-gateway comment=”default configuration”
nat add chain=srcnat out-interface=ether1-gateway action=masquerade comment=”default configuration”
}
/ip dns {
set allow-remote-requests=yes
static add name=router address=192.168.88.1
}
/tool mac-server remove [find]
/tool mac-server add interface=ether2-local-master disabled=no
/tool mac-server add interface=ether3-local-slave disabled=no
/tool mac-server add interface=ether4-local-slave disabled=no
/tool mac-server add interface=ether5-local-slave disabled=no
/tool mac-server mac-winbox disable [find]
/tool mac-server mac-winbox add interface=ether2-local-master disabled=no
/tool mac-server mac-winbox add interface=ether3-local-slave disabled=no
/tool mac-server mac-winbox add interface=ether4-local-slave disabled=no
/tool mac-server mac-winbox add interface=ether5-local-slave disabled=no
/ip neighbor discovery set [find name=ether1-gateway] discover=no
}
# these commands are executed if user requests to remove default configuration
:if ($action = “revert”) do={
/ip firewall {
:local o [nat find comment="default configuration"]
:if ([:len $o] != 0) do={ nat remove $o }
:local o [filter find comment="default configuration"]
:if ([:len $o] != 0) do={ filter remove $o }
}
:if ([:len [/system package find name="dhcp" !disabled]] != 0) do={
:local o [/ip dhcp-server network find comment="default configuration"]
:if ([:len $o] != 0) do={ /ip dhcp-server network remove $o }
:local o [/ip dhcp-server find name="default" address-pool="default-dhcp" interface=ether2-local-master !disabled]
:if ([:len $o] != 0) do={ /ip dhcp-server remove $o }
/ip pool {
:local o [find name=default-dhcp ranges=192.168.88.10-192.168.88.254]
:if ([:len $o] != 0) do={ remove $o }
}
:local o [/ip dhcp-client find comment="default configuration"]
:if ([:len $o] != 0) do={ /ip dhcp-client remove $o }
}
/ip dns {
set allow-remote-requests=no
:local o [static find name=router address=192.168.88.1]
:if ([:len $o] != 0) do={ static remove $o }
}
/ip address {
:local o [find comment="default configuration"]
:if ([:len $o] != 0) do={ remove $o }
}
/tool mac-server remove [find]
/tool mac-server add interface=all disabled=no
/tool mac-server mac-winbox remove [find interface!=all]
/tool mac-server mac-winbox set [find] disabled=no
/ip neighbor discovery set [find name=ether1-gateway] discover=yes
/interface ethernet set ether3-local-slave master-port=none
/interface ethernet set ether4-local-slave master-port=none
/interface ethernet set ether5-local-slave master-port=none
/interface set ether1-gateway name=ether1
/interface set ether2-local-master name=ether2
/interface set ether3-local-slave name=ether3
/interface set ether4-local-slave name=ether4
/interface set ether5-local-slave name=ether5
}
Redirect delinquint users using MikroTik
by iam8up on May.04, 2010, under mikrotik
UPDATE: Christopher Tyler of Total Wireless Communications pointed out DNS can’t be done. Whoopsy daisy!
You will find three rules that have WEBSERVERIP. This must be the IP (not the DNS name) of the webserver. This means the default vhost or the only directory of your Apache server must be the redirect page.
The firewall filter rules are to allow traffic from the customer’s /32 and the web server on 80/tcp and 443/tcp and vice versa. Then it blocks everything else.
/ip firewall filter
add action=accept chain=forward comment="allow nonpayment http to bmu" \
disabled=no dst-address=WEBSERVERIP port=80 protocol=tcp \
src-address-list=nonpayment
add action=accept chain=forward comment="allow nonpayment https to bmu" \
disabled=no dst-address=WEBSERVERIP port=443 protocol=tcp \
src-address-list=nonpayment
#thankschris
add action=accept chain=forward comment="allow dns" disabled=no protocol=udp\
port=53
add action=accept chain=forward comment="allow dns" disabled=no protocol=tcp\
port=53
#end thankschris
add action=drop chain=forward comment="drop nonpayment tcp traffic" disabled=\
no protocol=tcp src-address-list=nonpayment
add action=drop chain=forward comment="drop nonpayment udp traffic" disabled=\
no protocol=udp src-address-list=nonpayment
This does the redirecting work. This takes the address list of nonpayment and points them to the web server.
/ip firewall nat
add action=dst-nat chain=dstnat comment="redirect nonpayment http" disabled=\
no port=80 protocol=tcp src-address-list=nonpayment to-addresses=\
WEBSERVERIP to-ports=80
Then just add the late people to address list “nonpayment”.
Reset ImageStream configuration, factory default or password reset
by iam8up on Apr.26, 2010, under linux
Connect your laptop via the console port and use the “failsafe” option when booting, that gives you a menu you can use to erase the existing password.
Thanks Tom Sharples!
ImageStream iperf binary
by iam8up on Apr.20, 2010, under linux
Thanks to Paul Benner for this!
$wget http://ims1.imagestream.com/~pbenner/iperf
$chmod 755 iperf
I put mine in /bin
This works on my Envoy 4.4.0-47 and Rebel 4.2.12-33.
Linux static route commands
by iam8up on Apr.13, 2010, under linux
route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 wlan0
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 wlan0
Much better resource…
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_Linux_Networking
Pretty good resource to bookmark.
Add SCSI disk to VMware guest
by iam8up on Apr.04, 2010, under linux
After adding a SCSI disk to a VMware guest you can issue the following command to rescan the SCSI bus:
echo “- – -” > /sys/class/scsi_host/host#/scan
This should work with everything, but I’m too poor to afford real SCSI controllers. Need mine to be imaginary =)
SRC: http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html
VMware tools on Linux without X
by iam8up on Apr.01, 2010, under linux
Tell your VMware application (Server, ESX, ESXi, Workstation, etc) to install VMware Tools. It will insert a CD in the drive. You will probably need to mount it by hand
mount /dev/cdroom /media
Then get it going
cp /media/VMwareTools*.tar.gz /tmp
cd /tmp
tar -xzf VmwareTools*
cd vmware-tools-distrib
./vmware-install.pl
From what I understand the RPM has never worked. This worked on CentOS 5.2 just fine.
VMware ESXi 3.5 update 5 Poweredge 1750
by iam8up on Mar.09, 2010, under geeky, linux
Works perfectly fine for me. Stick in the CD, install it and away you go!
I was able to enable SSH access by
*vi /etc/inetd.conf
*uncomment the line with ssh
*kill -s HUP `pgrep -n inetd`
SRC: http://communities.vmware.com/message/967166#967166