Grant McWilliams
  • Food
    • Blog
    • Websites
    • Seattle Food Events
    • Seattle Farmers Markets
  • Travel
    • Travel Blog
    • Travel Photos
    • Travel Links
    • Trip Journals
      • Europe - 2015
      • New Orleans - 2013
      • Central Mexico - 2010
      • Toulouse/Paris - 2009
      • Paris/Lyon - 2008
      • Peru/Ecuador - 2007
      • British Columbia - 2007
      • Central Mexico - 2006
      • Eastern Europe - 2006
      • Washington D.C. - 2006
      • Where's the rest?
  • Technology
    • Gadgets
      • Blog
      • Websites
      • Android
      • Nokia n900
      • SailfishOS
    • Technology
      • Blog
      • Websites
    • Virtualization
      • Virtualization Blog
      • Websites
      • Xen Howtos
      • Xenserver Howtos
      • KVM Howtos
      • VirtualBox Howtos
      • Virtual OS images
      • Xenapi Admin Tools github
    • Programming
      • Blog
      • Bash
      • Python
      • Websites
      • Downloads
    • Transportation
      • Blog
      • Websites
    • Sustainable Tech
      • Blog
      • Websites
  • Photography
    • Blog
    • Portfolio
  • Random
    • Grantianity
      • Basics
      • Grantisms
      • The River of Life
      • Bus Maintainance
      • Believing in Yourself
    • Creative Writing
    • Login/Logout
    • About

Possible G7 replacement

Details
Category: Photography Blog
July 31, 2008

I really did like my Canon G7 but since I broke it I've been trying to figure out what to do. Canon will fix it for $160 but I've not had the time to send it off. They'll replace it for $275 if I send the old one in but again I don't know how long that takes. I have no problem replacing the camera if there is an alternative. I thought Nikons P series camera may be a contender but all the reviews have shown it to be dog slow. Before buying the G7 I seriously looked over the Panasonic DMC-LX1 but reviews showed it have outrageous overpowering noise cancelation to the point that any photo taken above ISO 200 looked like mud. The Panasonic DMC-LX2 came out with the hope that they'd fixed the noise situation but they only slightly improved it. Again any photo taken at ISO 100/200 looked as good as a Sony or Canon but as soon as that ISO reached 400 it was all over. I'm not sure why Panasonic's sensor is so noisy but it's really bad. Let it be known that on paper the Panasonic cameras have been virtually perfect for my needs in my eyes.

The reason I'm dwelling on the LX series once again is because Panasonic just announced the DMC-LX3. As usual the paper specs are just about ideal for what I want to do. The question is can it take photos without messing them up intentionally.

Here's what I like about it compared to the G7:

  • Large 1/1.63 sensor for the camera size. This is larger than the G7s 1/1.8
  • Shoots in raw - G7 does with chdk hack
  • Built in 24 mm wide angle. Even with the huge wide angle adapter my G7 was 28mm
  • Fast F2.0-2.8 Leica lens - G7 f2.8-4.8
  • Hot shoe for flash
  • 720p video at 24 fps
  • 2.5 fps continuous drive (8 frames max)
  • high burst mode of 6 frames a second, I don't know the limit
  • 3.0" LCD with 480,000 pixels - G7 2.5" with 200,000 pixels
  • Lighter, 9.3 oz - G7 13 oz
  • Smaller, half inch smaller in two dimensions 4.3x2.4x1.1 - G7 4.2x2.8x1.7
  • Extra wide angle conversion lens takes it to 18 mm
  • All manual functions - aperature and shutter priority
  • Has a grip
  •  

Read more …

Convert Xen disk image to LVM Logical Volume

Details
Category: Xen Howtos
July 28, 2008

How to move from a tap:aio file to an LVM Logical Volume.

In Xen we can provide virtualized hard drives several different ways. It's not uncommon to create a large empty file using dd and then specify it as the hard drive like this.

 

Read more …

Install Ubuntu DomU on CentOS Xen Dom0

Details
Category: Xen Howtos
July 27, 2008
Here's how I created a Ubuntu domU in Centos dom0:
dd if=/dev/zero of=/vm/Ubuntu-Hardy-base.img bs=1024k count=4000
dd if=/dev/zero of=/vm/Ubuntu-Hardy-swap.img bs=1024k count=400
/sbin/mkfs.ext3 /vm/Ubuntu-Hardy-base.img
/sbin/mkfs.ext3 /vm/Ubuntu-Hardy-swap.img
/sbin/mkswap /vm/Ubuntu-Hardy-swap.img
chmod 640 /vm/Ubuntu*
mkdir /mnt/xenfs
mount -o loop /vm/Ubuntu-Hardy-base.img /mnt/xenfs
wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/x86_64/debootstrap-1.0.7-2.el5.noarch.rpm
rpm -Uvh debootstrap*
export PATH=$PATH"/usr/sbin":/sbin  (so chroot will not fail)
/usr/sbin/debootstrap --arch i386 --include=linux-image-2.6.24-
16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main,universe,multiverse hardy /mnt/xenfs http://mirror.3fl.net.au/ubuntu/

WAIT..................

chroot /mnt/xen or just make xure all edits go to /mnt/xenfs/ from this point on:

mv /lib/tls /lib/tls.disabled

create /edit /etc/fstab

proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda2       none            swap    sw              0       0


# mkdir -p /boot/grub
# update-grub

edit /boot/grub/menu.lst

title           Ubuntu 8.04, kernel 2.6.24-16-xen
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.24-16-generic root=/dev/xvda1 ro console=xvc0
initrd          /boot/initrd.img-2.6.24-16-xen

title           Ubuntu 8.04, kernel 2.6.24-16-xen (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.24-16-xen root=/dev/xvda1 ro single console=xvc0
initrd          /boot/initrd.img-2.6.24-16-xen

# cd /etc/event.d
# cp tty1 xvc0
# sed -i -e "s/tty1/xvc0/g" xvc0

Add xvc0 to /etc/securetty to allow root to login

# update-rc.d -f hwclockfirst remove
# update-rc.d -f hwclock remove
# rm /etc/udev/rules.d/85-hwclock.rules


Now download the updated linux-image and headers from http://www.il.is.s.u-tokyo.ac.jp/~hiranotaka/
and install them, otherwise no network when you boot the domU

Create our guest config file :
bootloader = '/usr/bin/pygrub'
memory = 512
name = "Ubuntu-Hardy-Base"
disk = ['file:/vm/Ubuntu-Hardy-base.img,hda1,w','file:/vm/Ubuntu-Hardy-swap.img,hda2,w']
vif = [ '' ]

Boot the domU.

Hope this helps

Chris

Create a TrixBox VOIP server on Xen

Details
Category: Xen Howtos
July 23, 2008

wget http://voxel.dl.sourceforge.net/sourceforge/asteriskathome/trixbox-2.6.1-i386.iso

 

First we'll need to make a disk image for our VOIP server.

dd if=/dev/zero of=/srv/xen/voipserver.img bs=1024 count=5000000

 

Install Xen 3.2.1 on CentOS 5 the easy way

Details
Category: Xen Howtos
July 19, 2008

NOTE! I have not tried this rpm kernel! Until I get to it take it as a howto with no possible gaurantee. I will get to testing it extensively the first week of September as I'm on vacation.

 

 

I just did a howto on compiling Xen 3.2.1 for CentOS5 but then I found this kernel and Xen rpms that you can just download and install.

 

For x86_64

  1. wget http://www.halsign.com/files/TurboGate-HTools-1.2-rhel5-x86_64.tar
  2. tar -xvpf TurboGate-HTools-1.2-rhel5-x86_64.tar
  3. cd TurboGate-HTools-1.2-rhel5-x86_64/
  4. rpm -ivh *.rpm
  5. reboot and select new kernel at grub prompt

For i386

  1. wget http://www.halsign.com/files/TurboGate-HTools-1.2-rhel5-i386.tar
  2. tar -xvpf TurboGate-HTools-1.2-rhel5-i386.tar
  3. cd TurboGate-HTools-1.2-rhel5-i386/
  4. rpm -ivh *.rpm
  5. reboot and select new kernel at grub prompt

I haven't as of yet used this new kernel and Xen but it might make it a lot easier than compiling Xen 3.2.1 from scratch.

 

 

Recompile Xen 3.2.1 for CentOS 5

Details
Category: Xen Howtos
July 19, 2008

I thought about updating this to include Xen 3.3 but in all reality the gitco repositories work great for i386 and x86_64 so I don't see a reason to compile xen. However, I'm leaving this up in case someone wants to use it as a loose guide to compile xen 3.3.1.

CentOS 5.2/RHEL 5.2 comes with a very highly modified Xen 3.03 which if I'm correct is in fact Xen 3.1 backported. If you want to use the latest Xen 3.2.1 you need to update the hypervisor. This tutorial is for x86_64 because that's what I'm running on grantmcwilliams.com. If you want the 32 bit version modify the appropriate paths and file names.

  1. rpm -i http://bits.xensource.com/oss-xen/release/3.2.0/centos-5.1/xen-3.2.0-0xs.centos5.src.rpm 2> /dev/null
  2. cd /usr/src/redhat/SOURCES ; wget http://bits.xensource.com/oss-xen/release/3.2.1/xen-3.2.1.tar.gz
  3. vi ../SPECS/xen.spec
  4. - Change "Version: 3.2.0" to "Version 3.2.1"
  5. - Change "Source0: xen-3.2.0.tar.gz" to "Source0: xen-3.2.1.tar.gz"
  6. - Uncomment "# /usr/lib/xen/boot/hvmloader"
  7. yum -y install transfig texi2html tetex-latex gtk2-devel libaio-devel gnutls-devel
  8. cd /usr/src/redhat/SPECS ; rpmbuild -ba ./xen.spec
  9. Grab some coffee...


... after the rpms are built do this

  1. vi /etc/yum.conf and temporarily set "gpgcheck=0" to "gpgcheck=1" since RPMs aren't signed.
  2. cd /usr/src/redhat/RPMS/x86_64 ; yum -y install xen-3.2.1-0xs.x86_64.rpm xen-libs-3.2.1-0xs.x86_64.rpm xen-devel-3.2.1-0xs.x86_64.rpm
  3. vi /etc/yum.conf and set gpgcheck back to "gpgcheck=1".
  4. edit /boot/grub/grub.conf and switch all references of /boot/xen-3.1.. to /boot/xen-3.2..

Now you can reboot and enjoy your new Xen 3.2.1.

 

 

Migration complete!

Details
Category: Site News
July 13, 2008
grantmcwilliams.com has been migrated to a Xen Virtual Machine on the new server rack. I'll still be working on finding what doesn't work properly in the next few days so the ride may be a bit bumpy but hopefully by Monday things will be back to normal. I'll post specs on the new server later with pictures.

Convert raw disk images to vdi format

Details
Category: VirtualBox Howtos
July 13, 2008

If you're moving from a real server installation to a VirtualBox virtualized configuration you may want to take your real physical disk and just turn it into a virtual disk. There are advantages to creating a new disk and rsyncing your OS into it but this tutorial will show you how to make an exact copy of it. Note the exact copy will be the same size as the real physical disk so make sure you have enough drive space. This is most useful for Operating System images with shared storage for data. I wouldn't advise anyone to make a 1TB copy of their new drive and turn it into a VDI file!

To get the image from the disk use the dd command.

  1. dd if=/dev/hda of=./hda.img
  2. VBoxManage convertdd hda.img hda.vdi
grant@workstation:~$ dd if=/dev/hda of=./hda.img
grant@workstation:~$ VBoxManage convertdd hda.img hda.vdi
VirtualBox Command Line Management Interface Version 1.6.0
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

Converting VDI: from DD image file="hda.img" to file="hda.vdi"...
Creating fixed image with size 1024966656 bytes (978MB)...

This will make an exact copy of /dev/hda to the raw image file hda.img. Then VBoxManage will convert the raw disk hda.img to hda.vdi for use with VirtualBox.

Grantmcwilliams.com outage

Details
Category: Site News
July 11, 2008

It seems the recent heat wave has wreaked havoc on my web server so I've been experiencing outages on grantmcwilliams.com. A new server has been built with a billion fans (sounds like the boeing plant) and I'm moving all virtual hosts to it now. I figure I'l have it up in the next couple of days. A virtualized Zimbra server is already up and running and now I'm building the webserver.

Thanks for your patience,

Grant

Xen disk images vs LVM

Details
Category: Virtualization Blog
July 8, 2008

 

In setting up a Xen virtualized web server with about 15 GB of static files I questioned the wisdom of using a disk image as apposed to LVM. I read a bunch of forums about which is better and it seems the disk images are easier to manage because you can just copy to make backups etc.. LVM you just can't move it and pop it up whereever you want but you have more flexibility in resizeing and backing them up within the host OS. However what I didn't find on the forums is performance tests. People theororized about the speed difference but it seems nobodies sat down and done some tests. It's my goal that after summer vacation to put together a performance whitepaper comparing all the virtual machine solutions. For now I'll just put up xen disk images against LVM.

So I created a 10 GB empty disk image using dd and I created a 10 GB LVM Logical volume and assigned both of them to the domU.

 

name = "centtest"
memory = "512"
disk = [ 'tap:aio:/srv/xen/centos5.img,xvda,w', 'tap:aio:/srv/xen/centtest.img,xvdb,w', 'phy:/dev/vgsys/lvtest,xvdc,w' ]
vif = [ 'bridge=xenbr0', ]
bootloader="/usr/bin/pygrub"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

Read more …

  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46

Page 42 of 56

Search