Pages

Thursday, March 31, 2011

Citrix XenServer in VirtualBox

If you just like to test out and evaluate XenServer but do not have hardware to install it on, an easy way is to just install it as a VirtualBox VM. Granted there will be no hardware virtualization support so you will not be able to build any real VMs in XenServer, but you will still be able to use XenCenter and get a feel managing a XenServer pool.

To install XenServer as a VBox VM, the VM needs to have adequate resources. I successfully tested installing XenServer 5.5u2 on a VM using Linux 2.6 template with 1GB RAM and 20GB hdd. Anything less than that will screw up the installation.

Edit: Tried to install XenServer 5.6FP1 in a VBox VM but failed miserably, installation will always hang at bootloader even though I tried with different VM memory and hdd configurations. Would like to know if anyone has better luck than me.

Edit: Finally got it installed in VBox successfully. I realized that the problem is with the console device when the installation starts and then got hung. So what I have to do is to enter "menu.c32" at the welcome screen, which shows the install options. Select "install" and press tab to edit the option.

> mboot.c32 /boot/xen.gz dom0_mem=752M com1=115200,8n1 console=com1,vga ---
/boot/vmlinuz xencons=hvc console=hvc0 console=tty0 --- install.img
The above is the original command. What I have to do is to change "console=com1,vga" to "console=tty0".
> mboot.c32 /boot/xen.gz dom0_mem=752M com1=115200,8n1 console=tty0 ---
/boot/vmlinuz xencons=hvc console=hvc0 console=tty0 --- install.img
Source: http://community.citrix.com/display/ocb/2011/01/23/XenServer+in+VirtualBox
Citrix Installation Guide: http://www.citrix.com/site/resources/dynamic/salesdocs/XenServer_Quick_Installation_Guide.pdf

Wednesday, March 16, 2011

Configure IP on Centos

Static IP

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:0e:8f:c7
PEERDNS=YES
NETMASK=255.255.255.0
IPADDR=192.168.235.147
GATEWAY=192.168.235.1

Dynamic IP

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:0c:29:0e:8f:c7


http://www.thewebmasterscafe.net/webhosting/how-to-configure-static-ip-address-on-centos-linux.html

Saturday, March 12, 2011

Drivers & Upgrade Windows on Vaio SZ79gn

http://www.sony-asia.com/support/download/product/vgn-sz79gn/modelfirst
http://www.sonyinsider.com/2009/10/22/windows-7-upgrade-information-for-sony-vaio-computers/
http://www.sevenforums.com/drivers/28528-nvidia-geforce-8400m-gt-gpu-driver-problem-3.html
http://www.driversforfree.com/omn_ofm_omd/sony/vgn-sz/vgn-sz79gn/drivers.aspx

Using TortoiseSVN on Windows

Steps:

  • Create repository. 
    • eg: d:\www\svnrepo
    • right click > tortoisesvn > create repo..
    • this will create repository that contains all the config files and complete historical source projects files
  • Initial import. 
    • eg: d:\tmp\wwwprojects
    • right click > tortoisesvn > import
    • this will import the contents of d:\tmp\wwwprojects to repository
  • Set working folder. 
    • eg: d:\www\project1
    • right click > svn checkout
    • this will download the project source files to the specified folder
  • Committing updated source
    • right click > SVN commit
    • this will import the updated file/s from the project folder/file to the repository
  • Synching with repository
    • right click > SVN update
    • this will download newest file/s on repository to the project folder

ref: http://www.shokhirev.com/nikolai/programs/SVN/svn.html