<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8959634488348801288</id><updated>2011-11-27T20:30:49.121-05:00</updated><title type='text'>Road to P.H.D</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8631151219585292808</id><published>2009-08-02T23:02:00.008-04:00</published><updated>2009-08-18T01:48:08.217-04:00</updated><title type='text'>Samba Server on Centos HOWTO</title><content type='html'>TDB database&lt;br /&gt;root: &gt; smbd -b  | grep PRIVATE_DIR&lt;br /&gt;&lt;strong&gt;/etc/samba&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;root: &gt;smbd -b |  grep LOCKDIR&lt;br /&gt;&lt;strong&gt;/var/cache/samba&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;use tdbbackup utility to backup those tdb files&lt;br /&gt;&lt;br /&gt;mkdir a directory and change its ownship&lt;br /&gt;chown account.group    /path/to/directory&lt;br /&gt;&lt;br /&gt;Samba Configruation File&lt;br /&gt;root: &gt;smbd -b  | grep smb.conf&lt;br /&gt;&lt;strong&gt;/etc/samba/smb.conf&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Dry run Samba Configurations&lt;br /&gt;root: &gt;testparm /etc/samba/smb.conf&lt;br /&gt;root: &gt;smbclient  -L xxx.xxx.xxx.xxx(SambaServerIP) -U%&lt;br /&gt;&lt;br /&gt;Samba valid user setup&lt;br /&gt;root: &gt;smbpasswd -a csguest&lt;br /&gt;New SMB password:&lt;br /&gt;Retype new SMB password:&lt;br /&gt;startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. File successfully created.&lt;br /&gt;Added user csguest.&lt;br /&gt;&lt;br /&gt;chown user.group  /path/to/sambashare&lt;br /&gt;&lt;br /&gt;Run/start/stop/restart Samba Server&lt;br /&gt;root: &gt;service smb reload&lt;br /&gt;root: &gt;service smb start&lt;br /&gt;root: &gt;service smb stop&lt;br /&gt;root: &gt;service smb condrestart&lt;br /&gt;&lt;br /&gt;Mount Samba Share in Linux&lt;br /&gt;root: &gt;apt-get install smbfs&lt;br /&gt;root: &gt;smbmount   //SambaServerIP/SambaShare   /mnt/Dir    -o username=account, password=pwd&lt;br /&gt;&lt;br /&gt;Access Samba Share in WindowsXP&lt;br /&gt;Control Panel -&gt; User Accounts -&gt; yourUserAccount&lt;br /&gt;Click Manage my network passwords&lt;br /&gt;Add button to enter Server, User name and Password&lt;br /&gt;Server: xxx.xxx.xxx.xxx(SambaServerIP)&lt;br /&gt;Username: xxx.xxx.xxx.xxx\AccountName&lt;br /&gt;Password:******&lt;br /&gt;&lt;br /&gt;My Computer -&gt; Tools -&gt; Map Network Drive&lt;br /&gt;Folder: //SambaServerIP/SambaShare&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8631151219585292808?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8631151219585292808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8631151219585292808' title='43 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8631151219585292808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8631151219585292808'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2009/08/samba-server-on-centos-howto.html' title='Samba Server on Centos HOWTO'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>43</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-4999079051529674288</id><published>2009-05-01T20:49:00.003-04:00</published><updated>2009-05-01T22:08:53.793-04:00</updated><title type='text'>Centos: nilfs compiling from src</title><content type='html'>Download source:&lt;br /&gt;2.6.18 centos kernel source code (&lt;span class="textblack"&gt;&lt;/span&gt;&lt;a href="ftp://ftp.muug.mb.ca/mirror/centos/5.3/centosplus/i386/RPMS/kernel-devel-2.6.18-128.el5.centos.plus.i686.rpm"&gt;kernel-devel-2.6.18-128.el5.centos.plus.i686.rpm&lt;/a&gt;)&lt;br /&gt;http://rpm.pbone.net/index.php3/stat/4/idpl/12390365/com/kernel-devel-2.6.18-128.el5.centos.plus.i686.rpm.html&lt;br /&gt;kernel module source code&lt;br /&gt;http://www.nilfs.org/download/nilfs-2.0.12.tar.bz2&lt;br /&gt;patch for Centos&lt;br /&gt;http://www.nilfs.org/pub/centos/5/SRPMS/nilfs-kmod-2.0.12-r.src.rpm&lt;a href="http://www.nilfs.org/pub/centos/5/SRPMS/nilfs-kmod-2.0.12-2.src.rpm"&gt;&lt;/a&gt;&lt;br /&gt;userland utilities source code&lt;br /&gt;http://www.nilfs.org/download/nilfs-utils-2.0.12.tar.bz2&lt;br /&gt;&lt;br /&gt;Required packages:&lt;br /&gt;gcc&lt;br /&gt;yum install gcc&lt;br /&gt;e2fsprogs-devel&lt;br /&gt;yum install e2fsprogs-devel&lt;br /&gt;&lt;br /&gt;default installed: make   binutils&lt;br /&gt;&lt;br /&gt;Installation Instructions:&lt;br /&gt;I. use Centos rpm installer to unpackage the kernel source code&lt;br /&gt;The source code will be in the directory :&lt;br /&gt;/usr/src/kernels/2.6.18-128.1.6.el5-i686&lt;br /&gt;&lt;br /&gt;2. untar the nilfs kernel module source code and userland utilities source code&lt;br /&gt;kernel module is in the directory:  nilfs-2.0.12&lt;br /&gt;utilities is in the directory:  nilfs-utils-2.0.12&lt;br /&gt;&lt;br /&gt;3. uncompress the nilfs-kmod-2.0.12-r.src.rpm package and copy the patch file nilfs-rhel5-kern-feature.patch to the kernel module src directory  nilfs-2.0.12&lt;br /&gt;_______________________________________________________&lt;br /&gt;&lt;br /&gt;--- a/fs/kern_feature.h    2008-02-12 08:38:22.000000000 -0000&lt;br /&gt;+++ b/fs/kern_feature.h    2009-04-09 12:27:24.000000000 -0000&lt;br /&gt;@@ -30,6 +30,25 @@&lt;br /&gt; /*&lt;br /&gt;  * Please define as 0/1 here if you want to override&lt;br /&gt;  */&lt;br /&gt;+/* for Red Hat Enterprise Linux / CentOS 5.x */&lt;br /&gt;+#if defined(RHEL_MAJOR) &amp;amp;&amp;amp; (RHEL_MAJOR == 5)&lt;br /&gt;+# define    NEED_MOUNT_SEMAPHORE    1&lt;br /&gt;+# define    NEED_INODE_GENERIC_IP    0&lt;br /&gt;+# define    NEED_INODE_BLKSIZE    0&lt;br /&gt;+# define    HAVE_PAGE_MKWRITE    1&lt;br /&gt;+# if (RHEL_MINOR &lt; 1)&lt;br /&gt;+#  define    PageChecked    PageFsMisc&lt;br /&gt;+#  define    SetPageChecked    SetPageFsMisc&lt;br /&gt;+#  define    ClearPageChecked    ClearPageFsMisc&lt;br /&gt;+# endif&lt;br /&gt;+# if (RHEL_MINOR &gt; 0)&lt;br /&gt;+#  define    NEED_INC_NLINK        0&lt;br /&gt;+#  if (RHEL_MINOR &gt; 2)&lt;br /&gt;+#   define    NEED_DROP_NLINK        0&lt;br /&gt;+#   define    HAVE_LE32_64_ADD_CPU    1&lt;br /&gt;+#  endif&lt;br /&gt;+# endif&lt;br /&gt;+#endif&lt;br /&gt;&lt;br /&gt; /*&lt;br /&gt;  * defaults dependent to kernel versions&lt;br /&gt;_______________________________________________________&lt;br /&gt;&lt;br /&gt;4. apply the patch to the kernel module source code&lt;br /&gt;   root: ~&gt; patch -p1  &lt; nilfs-rehel-kern-feature.patch &lt;br /&gt;&lt;br /&gt;5. compile the kernel module source code     root: ~&gt; make&lt;br /&gt;   root: ~&gt; make install&lt;br /&gt;&lt;br /&gt;6. compile the utils source code&lt;br /&gt;   root: ~&gt; make&lt;br /&gt;   root: ~&gt; make install&lt;br /&gt;&lt;br /&gt;Userful resource:&lt;br /&gt;http://www.nilfs.org/download/READMEv2&lt;br /&gt;http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/&lt;br /&gt;http://rpm.pbone.net/index.php3/stat/4/idpl/12390365/com/kernel-devel-2.6.18-128.el5.centos.plus.i686.rpm.html&lt;br /&gt;http://www.nilfs.org/en/faq.html&lt;br /&gt;http://www.nilfs.org/en/pkg_centos.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-4999079051529674288?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/4999079051529674288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=4999079051529674288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4999079051529674288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4999079051529674288'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2009/05/centos-nilfs-compiling-from-src.html' title='Centos: nilfs compiling from src'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-7248675934982601166</id><published>2009-04-21T20:53:00.009-04:00</published><updated>2009-04-22T00:56:08.158-04:00</updated><title type='text'>NilFS: tutorial</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Cxuo_VyMGBo/Se6i73_itqI/AAAAAAAADu8/H8fWIwPYV44/s1600-h/recover+the+file.jpg"&gt;&lt;/a&gt;&lt;div&gt;Nilfs is a LFS that NTT(Nippon Telegraph and Telephone Corp.) Group distributed to the Linux world. &lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It has been merged into Linux mainline 2.6.30 rc-1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below is the tutorial of how to set up a LFS partition in a VMware VM.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Attach multiple virtual disks to the VM in VMware&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Editing virutal machine settings -&gt;  add -&gt; add a hard disk&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Cxuo_VyMGBo/Se6AjfsKS9I/AAAAAAAADuM/2RgHcctsg6c/s1600-h/add+harddisk.jpg"&gt;&lt;img src="http://4.bp.blogspot.com/_Cxuo_VyMGBo/Se6AjfsKS9I/AAAAAAAADuM/2RgHcctsg6c/s320/add+harddisk.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5327336756516375506" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 320px; height: 277px; " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; 2. Install a CentOS5.1 distro in the VM and run the more than 260 updates &lt;/div&gt;&lt;div&gt;(It is said CentOS5.1/5.2 are both OK. But CentOS5.0 needs to be patched.)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;root : centos&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); "&gt;&lt;img src="http://3.bp.blogspot.com/_Cxuo_VyMGBo/Se6HD0GXGUI/AAAAAAAADuU/f9b5YhHqKEI/s320/centos+kernel.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5327343908820556098" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 262px; height: 87px; " /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Download the NilFS kmod and utils rpms from nilfs.org site.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;i386 utilities package: &lt;a href="http://www.nilfs.org/pub/centos/5/RPMS/i686/"&gt;http://www.nilfs.org/pub/centos/5/RPMS/i386/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;i386 kernel module package: &lt;a href="http://www.nilfs.org/pub/centos/5/RPMS/i686/"&gt;http://www.nilfs.org/pub/centos/5/RPMS/i686/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Look for the nilfs utilities : &lt;span class="Apple-style-span"  style=" -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family:'times new roman';"&gt;&lt;a href="http://www.nilfs.org/pub/centos/5/RPMS/i386/nilfs-utils-2.0.12-1.i386.rpm"&gt;nilfs-utils-&lt;span class="Apple-style-span" style="color: rgb(0, 153, 0);"&gt;2.0.12&lt;/span&gt;-1.i386.rpm&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;Look for the exact kernel version 2.8.18_128 : &lt;span class="Apple-style-span"  style=" -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family:'times new roman';"&gt;&lt;a href="http://www.nilfs.org/pub/centos/5/RPMS/i686/kmod-nilfs-2.0.12-2.2.6.18_128.1.6.el5.i686.rpm"&gt;kmod-nilfs-&lt;span class="Apple-style-span" style="color: rgb(0, 153, 0);"&gt;2.0.12&lt;/span&gt;-&lt;span class="Apple-style-span" style="color: rgb(0, 153, 0);"&gt;2.2.6.18_128&lt;/span&gt;.1.6.el5.i686.rpm&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;font-family:'times new roman';"&gt;the utilities and the kernel module version should match the same nilfs version and also the centos kernel version.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;font-family:'times new roman';"&gt;(It also includes PAE and Xen rpm packages in the same directory)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Install the NilFS rpm package&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;root: ~&gt;rpm -Uvh  kmod-nilfs-2.0.12-2.6.18_128.1.6.el5.i686.rpm&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. Format the virtual disk as nilFS and mount to the system.&lt;/div&gt;&lt;div&gt;(The extra disk is /dev/hda)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Format the disk by mkfs command&lt;/div&gt;&lt;div&gt;root: ~&gt;mkfs -t nilfs2  /dev/hda&lt;/div&gt;&lt;div&gt;mount the LFS disk by mount command&lt;/div&gt;&lt;div&gt;root: ~&gt;mount -t nilfs2   /dev/hda      /root/nilfs&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); "&gt;&lt;img src="http://2.bp.blogspot.com/_Cxuo_VyMGBo/Se6Ri5K-fOI/AAAAAAAADuk/ttzsWMEdCz8/s400/nilfs+create.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5327355437874314466" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 127px; " /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6. Use the nilFS to recover the data&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Before you make some changes, you can set a checkpoint by mkcp&lt;/div&gt;&lt;div&gt;root: ~&gt;mkcp&lt;/div&gt;&lt;div&gt;root: ~&gt;lscp   (lscp will show what checkpoints you have)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); "&gt;&lt;img src="http://1.bp.blogspot.com/_Cxuo_VyMGBo/Se6h4LKILRI/AAAAAAAADu0/13JihqgmRSM/s400/make+checkpoint.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5327373395665890578" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 260px; " /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;After you make the changes, you sjhould  make the previous checkpoint to be a snapshot and then mount that previous snapshot to a new spot&lt;/div&gt;&lt;div&gt;root: ~&gt;chcp  ss  5&lt;/div&gt;&lt;div&gt;root: ~&gt;mount -t  nilfs2 -r -0 cp=5   /dev/hda   /root/nilfs-cp&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;nilfs.org website instructions are at the link  &lt;a href="http://www.nilfs.org/en/about_nilfs.html"&gt;http://www.nilfs.org/en/about_nilfs.html &lt;/a&gt;(how to use nilfs --incomplete)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); "&gt;&lt;img src="http://2.bp.blogspot.com/_Cxuo_VyMGBo/Se6i73_itqI/AAAAAAAADu8/H8fWIwPYV44/s400/recover+the+file.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5327374558752323234" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 223px; " /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7. Umount nilFS disk&lt;/div&gt;&lt;div&gt;root: ~&gt;umount     /root/nilfs-cp&lt;/div&gt;&lt;div&gt;root: ~&gt;umount    /root/nilfs&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Next --&gt; Setup NilFS in a Xen Guest&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-7248675934982601166?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/7248675934982601166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=7248675934982601166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7248675934982601166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7248675934982601166'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2009/04/nilfs-tutorial.html' title='NilFS: tutorial'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Cxuo_VyMGBo/Se6AjfsKS9I/AAAAAAAADuM/2RgHcctsg6c/s72-c/add+harddisk.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3372154374269928096</id><published>2009-01-19T13:42:00.004-05:00</published><updated>2009-01-19T13:51:14.552-05:00</updated><title type='text'>gcc linking error</title><content type='html'>Sympton:&lt;br /&gt;/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in \&lt;br /&gt;/tmp/ccox5xu2.o &lt;br /&gt;/lib/libc.so.6: could not read symbols: Bad value&lt;br /&gt;&lt;br /&gt;Diagnosis:&lt;br /&gt;Link error&lt;br /&gt;&lt;br /&gt;Analysis:&lt;br /&gt;/usr/include/unistd.h includes features.h which is using errno.h&lt;br /&gt;&lt;br /&gt;So errno.h should be included.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;(Final)&lt;br /&gt;#include &lt;error.h&gt; before #include &lt;unistd.h&gt;&lt;br /&gt;&lt;br /&gt;(Temporary)&lt;br /&gt;gcc -include /usr/include/errno.h   code.c&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;/unistd.h&gt;&lt;/error.h&gt;&lt;ol&gt;&lt;li&gt;&lt;error.h&gt;&lt;unistd.h&gt;http://www.robotercoding.com/blog/?p=36&lt;/unistd.h&gt;&lt;/error.h&gt;&lt;/li&gt;&lt;li&gt;&lt;error.h&gt;&lt;unistd.h&gt;http://blog.chinaunix.net/u1/36607/showart_313647.html&lt;/unistd.h&gt;&lt;/error.h&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3372154374269928096?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3372154374269928096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3372154374269928096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3372154374269928096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3372154374269928096'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2009/01/gcc-linking-error.html' title='gcc linking error'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-6170660016778000859</id><published>2009-01-19T10:21:00.005-05:00</published><updated>2009-01-19T14:43:15.633-05:00</updated><title type='text'>Lab build</title><content type='html'>Ubuntu Hardy 8.04 LTS&lt;br /&gt;&lt;br /&gt;Sun java&lt;br /&gt;&lt;b&gt;sudo apt-get install sun-java6-jdk&lt;/b&gt; - For the JDK (Developer)&lt;br /&gt;&lt;b&gt;sudo apt-get install sun-java6-jre&lt;/b&gt; - For the JRE (User)&lt;br /&gt;&lt;b&gt;sudo update-alternatives --config java&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Acrobat Reader 8&lt;br /&gt;&lt;b&gt;sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list&lt;/b&gt;&lt;br /&gt;&lt;b&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install medibuntu-keyring &amp;amp;&amp;amp; sudo apt-get update&lt;/b&gt;&lt;br /&gt;&lt;b&gt;sudo apt-get install acroread&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;emacs&lt;b&gt;&lt;br /&gt;sudo apt-get install emacsx&lt;br /&gt;smart-compile tag&lt;br /&gt;/usr/share/emacs/site-lisp/smart-compile.el&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-6170660016778000859?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/6170660016778000859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=6170660016778000859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/6170660016778000859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/6170660016778000859'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2009/01/lab-build.html' title='Lab build'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5408001854503121156</id><published>2008-05-25T23:34:00.010-04:00</published><updated>2008-05-28T14:42:13.376-04:00</updated><title type='text'>Solaris xVM ---PV Linux domU</title><content type='html'>Solaris system is reinstalled and vanilla. Xen is working. But still something needs to do from the beginning.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;VNC configuration&lt;/li&gt;&lt;li&gt;virt-manager&lt;/li&gt;&lt;/ul&gt;To configure VNC to let it support xen display by the following command:&lt;br /&gt;# svccfg -s xvm/xend setprop config/vncpaswd = astring:\"passwd\"&lt;br /&gt;# svccfg -s xvm/xend setprop config/vnc-listen=astring:\"0.0.0.0\"&lt;br /&gt;# svcadm refresh xvm/xend; svcadm restart xvm/xend&lt;br /&gt;&lt;br /&gt;To install virt-manager, download the package and use the following command:&lt;br /&gt;&lt;tt&gt;#pkgadd -d. SUNWvirt-manager&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;The one thing I left undone yet is paravirtual Linux domU. Generally, we have three methods to create a PV  Linux domU: virt-install, virt-manager, and xm create.&lt;br /&gt;virt-manager is GUI installlation and supports Fedora well. It is network install.&lt;br /&gt;virt-install is command-line style but works substantially in diverse ways: netinstall, isoinstall, cdrom, etc.&lt;br /&gt;xm create is command-line style too but mainly work in iso or cdrom install, which required configuration file prehand.&lt;br /&gt;&lt;br /&gt;First, virt-manager. Due to our specific box, only centos works and DNS in guest still doesn't work properly. So I use the path address: http://128.153.145.19/pub/centos/5/os/i386/&lt;br /&gt;The screenshot for installation can be seen as below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Cxuo_VyMGBo/SDo8lLmlezI/AAAAAAAACqE/O0mmEGDAFsI/s1600-h/cenosP+install.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_Cxuo_VyMGBo/SDo8lLmlezI/AAAAAAAACqE/O0mmEGDAFsI/s320/cenosP+install.png" alt="" id="BLOGGER_PHOTO_ID_5204538928847485746" border="0" /&gt;&lt;/a&gt;I am just waiting for its completion and when it restarts, it looks like this:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Cxuo_VyMGBo/SDpQHrmle0I/AAAAAAAACqM/5KiVdQ777IQ/s1600-h/centosP+run.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Cxuo_VyMGBo/SDpQHrmle0I/AAAAAAAACqM/5KiVdQ777IQ/s320/centosP+run.png" alt="" id="BLOGGER_PHOTO_ID_5204560412273900354" border="0" /&gt;&lt;/a&gt;While it is installing, it can not probe the video card. Either the driver is not ported or the virt-manager is not complete yet.&lt;br /&gt;Note: so far I have no idea of where virt-manager has stored the configuration file for the guest. As I know, in virt-manager log it did log the xml format guest configuration.&lt;br /&gt;&lt;br /&gt;To boot the installed CentOS domU guest, you need the following configuration file&lt;br /&gt;&lt;tt&gt;name="centosP"&lt;br /&gt;#kernel="/var/lib/xen/virtinst-vmlinuz.UAktlH"&lt;br /&gt;#ramdisk="/var/lib/xen/virtinst-initrd.img.XxNCk0"&lt;br /&gt;disk=['file:/export/home/newbie/centosP.img,xvda,w']&lt;br /&gt;memory=1024&lt;br /&gt;vif=['']&lt;br /&gt;root="/dev/xvda"&lt;br /&gt;&lt;/tt&gt;&lt;br /&gt;Note: &lt;tt&gt;virtinst-vmlinuz.UAktlH &lt;/tt&gt;and &lt;tt&gt;virtinst-initrd.img.XxNCk0&lt;/tt&gt; are created by virt-manager and when  booting the guest, those two lines should be removed. Grub in the image will take over and boot up the guest. BTW, &lt;tt&gt;xvda&lt;/tt&gt; is required in disk option rather than &lt;tt&gt;0,w]&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Graphics doesn't work for Paravirtualization in Solaris yet. Also even using virt-manager, CentOS cannot detect properly the video card type, so only text mode network installation works, using a generic video driver. ParaVirtualization is still black-and-white world. Some drivers are missing and need to be ported but they are in progress and almost there.&lt;br /&gt;&lt;br /&gt;When we tried virt-install and xm create. It cannot install from iso because cdrom is not paravirtual ported. In another word, we didn't have cdrom paravirtual drivers there. We can have the CentOS boot up, but it will keep asking you the CD-ROM device driver. When booting a Linux-made , XENBUS said block device driver, nic device driver, and the console missing. The details can be seen as below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Cxuo_VyMGBo/SDy0grmle2I/AAAAAAAACqc/X_EmbNFZ9HI/s1600-h/PV+ubuntu.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_Cxuo_VyMGBo/SDy0grmle2I/AAAAAAAACqc/X_EmbNFZ9HI/s320/PV+ubuntu.png" alt="" id="BLOGGER_PHOTO_ID_5205233742886828898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;It is said that one way to circle around CDROM is to use NFS. But I am not familiy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5408001854503121156?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5408001854503121156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5408001854503121156' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5408001854503121156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5408001854503121156'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/05/solaris-xvm-pv-linux-domu.html' title='Solaris xVM ---PV Linux domU'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_Cxuo_VyMGBo/SDo8lLmlezI/AAAAAAAACqE/O0mmEGDAFsI/s72-c/cenosP+install.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-972933109389427545</id><published>2008-05-25T20:52:00.003-04:00</published><updated>2008-05-25T23:33:25.296-04:00</updated><title type='text'>Solaris DNS</title><content type='html'>After saving the files from the last broken solaris, I need to reinstall the Solaris again. But this time, I didn't get that luck so that everything was smoothy. The network is broken. I have dual network cards in that box. One plugin for external, and the other integrated for internal. It only gets an IP 10.0.0.x and cannot work on the external one. I bet the  plugg-in network card is broken. So I hook the external cable to the integrated network card. It can get an external IP now, but the DNS server address 2.35 is wrong. It can browse google by 61.233.169.104. But it can not go any further with DNS broken.&lt;br /&gt;&lt;br /&gt;Without network, Solaris is a lonely isolated island. Even the sky is grey.&lt;br /&gt;&lt;br /&gt;The solaris is default using the facility NWAM to auto configure the network. I have tried to switch to GNOME network configuration tool, it doesn't work that well. So I have to research in NWAM and make it work right.&lt;br /&gt;&lt;br /&gt;For more details you can check the pages:&lt;br /&gt;http://opensolaris.org/os/project/nwam/&lt;br /&gt;and&lt;br /&gt;http://docs.sun.com/app/docs/doc/806-1386/6jam5ahnd?a=view&lt;br /&gt;&lt;br /&gt;Generally speaking, most of the websites introduce the way to configure DNS in solaris is to modify the related configuration file: /etc/resolv.conf and /etc/nsswitch.conf.&lt;br /&gt;/etc/resolv.conf is to specify the DNS server, search domain, etc.&lt;br /&gt;sample:&lt;br /&gt;&lt;tt&gt;search clarkson.edu&lt;br /&gt;nameserver 128.153.128.2&lt;br /&gt;nameserver 128.153.4.2&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;/etc/nsswitch.conf is to specify the resolution order. To resolve an address, it has many ways: files,  dns, mdns, etc.&lt;br /&gt;key part of a sample&lt;br /&gt;&lt;tt&gt;hosts:       files &lt;span style="font-style: italic;"&gt;dns mdns&lt;/span&gt;&lt;br /&gt;ipnodes:     files &lt;span style="font-style: italic;"&gt;dns mdns&lt;/span&gt;&lt;/tt&gt;&lt;br /&gt;Originally, hosts option only has files, we need to add &lt;span style="font-style: italic;"&gt;dns&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;mdns&lt;/span&gt; after it to provide more resolution methods.&lt;br /&gt;&lt;br /&gt;How does DNS work in Solaris?&lt;br /&gt;When there is an web address to be resolved,  the DNS client in solaris &lt;span style="font-weight: bold;"&gt;FIRST&lt;/span&gt; consults the /etc/nsswitch.conf file to see which to look into first. In this example, the presumed order is local file first, DNS server second.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;THEN&lt;/span&gt;, if the DNS client consults the local file and does not find an entry, the client consults the /etc/resolv.conf file to look through the name resolution search list and the address of the local DNS server.&lt;br /&gt;&lt;br /&gt;It seems that as long as we make these two configure files right, then it is done. However, Solaris doesn't work as Linux does. Linux working style is to modify the configuration, and then restart the service, then  all will be good.  Solaris style works differently. Everything is in framework. No manually modifying configuration files but there are always tools or facilities to provide consistent modification.&lt;br /&gt;&lt;br /&gt;Once the facility &lt;tt&gt;nwam&lt;/tt&gt; can obtain IP from DHCP server, then the DNS should also work properly now. But there is another problem for Clarkson Network. The DHCP server in Clarkson gives me the 2.35 which is not the DNS server at all(I also tried ubuntu, the same result). The key problem is that Clarkson has multiple  DNS servers. If  it  can broadcast and collect all the DNS server responses, then 2.35 is not a problem any more.&lt;br /&gt;&lt;br /&gt;Solaris has the facility mdnsd (multicast DNS daemon)but it doesn't automatically run after booting. It is to broadcast to discover the DNS servers.&lt;br /&gt;&lt;br /&gt;To make it work, first /etc/nsswitch.conf should be modified to add &lt;span style="font-style: italic;"&gt;mdns &lt;/span&gt;after &lt;span style="font-style: italic;"&gt;hosts&lt;/span&gt; option.&lt;br /&gt;Then, to start the service by the following command:&lt;br /&gt;&lt;pre&gt;# svcadm enable svc:/network/mdns:default&lt;/pre&gt;As the DNS daemon will cache the file. So once the configuration is done, Solaris needs to &lt;span style="font-weight: bold;"&gt;REBOOT&lt;/span&gt;.&lt;br /&gt;-----------------------------------------ADDON-----------------------------------------------------------------------------------&lt;br /&gt;The network interfaces in Solaris is  stored in the  file  /etc/nwam/llp  (LLP)&lt;br /&gt;&lt;tt&gt;#  cat /etc/nwam/llp&lt;br /&gt;bge0    dhcp&lt;br /&gt;rge0    dhcp&lt;/tt&gt;&lt;br /&gt;The host name and domain is stored in the file /etc/hosts&lt;br /&gt;&lt;tt&gt;# cat /etc/hosts&lt;br /&gt;127.0.0.1 localhost localhost.localdomain solaris&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-972933109389427545?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/972933109389427545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=972933109389427545' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/972933109389427545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/972933109389427545'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/05/solaris-dns.html' title='Solaris DNS'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8946318630030211947</id><published>2008-05-25T10:53:00.004-04:00</published><updated>2008-05-25T15:19:45.703-04:00</updated><title type='text'>solaris broken</title><content type='html'>Solaris is broken again. Maybe it is because I can't wait till the system successfully shut down. So some system files are lost and I was asked to &lt;tt&gt;/lib/svc/bin/restore_repository&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;But I can have the root console. The FS is read-only. I need to use the command below to change it to be read/write:&lt;br /&gt;&lt;tt&gt;/lib/svc/method/fs-root&lt;/tt&gt;&lt;br /&gt;&lt;tt&gt;/lib/svc/method/fs-usr&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;For more details, you can check the page:&lt;br /&gt;&lt;tt&gt;http://www.sun.com/msg/SMF-8000-MY&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Now the situation is that I can execute some commands and I have some import files in my home directory, and I don't have network at all. How can I get those files out? The day without network is horribly dark~!&lt;br /&gt;&lt;br /&gt;The system recommended to use fsck. I tried, but it doesn't help. It did can find some inconsistency but the Solaris seems to lose some system file.&lt;br /&gt;&lt;br /&gt;I try to attach a USB drive to the box and hope it can recognize it. I use the command iostat as below to figure out if the disk can be recognized.&lt;br /&gt;&lt;tt&gt;#iostat -En&lt;/tt&gt;&lt;br /&gt;It shows that the disk is there but it cannot recognize it as it appears as sda1 but not as &lt;tt&gt;c1d0...&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Fortunately, that box has an The next that is worth trying is to burn those files into a CD. Then I checked the page&lt;br /&gt;&lt;tt&gt;http://sysunconfig.net/unixtips/cdr.html&lt;/tt&gt;&lt;br /&gt;and&lt;br /&gt;&lt;tt&gt;http://blogs.sun.com/reed/entry/how_to_burn_cd_dvd&lt;/tt&gt;&lt;br /&gt;sounds good.&lt;br /&gt;&lt;br /&gt;I first package those files in the directory &lt;tt&gt;Desktop&lt;/tt&gt; into ISO file, using the command as below:&lt;br /&gt;&lt;pre&gt;# mkisofs -l -L -r -o /desk.iso  /export/home/newbie/Desktop&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Then I will burn it into the CD by the following configuration and the command:&lt;br /&gt;1) first check the CD-RW device number&lt;br /&gt;&lt;pre&gt;#  cdrecord -scanbus&lt;br /&gt;&lt;/pre&gt;1,0,0 is the device number&lt;br /&gt;&lt;br /&gt;2)configure the CD-RW&lt;br /&gt;create a file as /etc/default/cdrecord, inside are&lt;br /&gt;&lt;pre&gt;   CDR_FIFOSIZE=8m&lt;br /&gt; CDR_SPEED=8&lt;br /&gt; CDR_DEVICE=USCSI:1,0,0&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3)burn the iso image into CD&lt;br /&gt;&lt;pre&gt;# cdrecord -v /desk.iso&lt;/pre&gt;But it has burn error. Failed again.&lt;br /&gt;&lt;br /&gt;Last strike is Live CD. First, I tried Ubuntu Live CD but it cannot recognize the FS. It requires UFS package. Then I have to try Solaris Live CD. Solaris Live CD has 2008.05 Live and installation CD, Benelix, and Schillix. I used 2008.05 release. It doesn't show the disk directly.&lt;br /&gt;Still use the command iostat, you can see the disk is c5d0. Then use the mount command to mount it&lt;br /&gt;&lt;pre&gt;# mount -F ufs /desk.iso /mnt&lt;/pre&gt;  Then go to the directory /mnt, you can file there are three solaris directory there. Go to each one, there is one that is newbie's home directory. So move the ISO file into the home directory, and then copy the ISO from the home directory onto the LiveCD desktop. Then burn it into CD. It works finally.&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------ADDON---------------------------------------------------------------------------------------&lt;br /&gt;Then reinstall the Solaris, it turned out that the network is broken. It kept get a wrong address as DNS server. The same to Ubuntu.&lt;br /&gt;In Solaris, it has two styles to configure the network.&lt;br /&gt;One is NWAM facility(automata network Management), the other is GNOME network configuration. You can use &lt;tt&gt;svc&lt;/tt&gt; to alternate those two services.&lt;br /&gt;For more details, &lt;tt&gt;man nwam&lt;/tt&gt; or &lt;tt&gt;http://opensolaris.org/os/project/nwam/&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;To see the services that are running, use&lt;br /&gt;&lt;tt&gt;#svcs&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;To enable the default GNOME network configuration &lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;     % svcadm enable svc:/network/physical:default&lt;/pre&gt; To disable the Solaris Network auto-magic&lt;br /&gt;&lt;pre&gt;     % svcadm enable svc:/network/physical:nwam&lt;br /&gt;&lt;/pre&gt; To start the Solaris DNS server serivce&lt;br /&gt;  &lt;pre&gt;     % /lib/svc/method/dns-server start|stop&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8946318630030211947?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8946318630030211947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8946318630030211947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8946318630030211947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8946318630030211947'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/05/solaris-broken.html' title='solaris broken'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-6995552801080108652</id><published>2008-05-23T22:26:00.006-04:00</published><updated>2008-05-24T18:28:47.717-04:00</updated><title type='text'>Solaris Virtualbox</title><content type='html'>Virtualbox is another full virtualization product, now bought by SUN and can work in solaris. But it cannot work in Solaris xVM. It will report "VirtualBox Kernel Driver not Loaded" error.&lt;br /&gt;&lt;br /&gt;I am using OpenSolaris Express B87 and  virtualbox1.6.&lt;br /&gt;&lt;br /&gt;Virtualbox can be downloaded from the website http://virtualbox.org/wiki/Downloads&lt;br /&gt;&lt;br /&gt;Virtualbox is available for all the platforms. For Solaris, it has 32-bit and 64-bit-AMD which corresponds to x-86 or AMD64. You can check by the command&lt;br /&gt;bash-3.2# isainfo&lt;br /&gt;amd64 i386&lt;br /&gt;&lt;br /&gt;Then install the package by the pkgadd command&lt;br /&gt;bash-3.2# pkgadd -d VirtualBox-1.6.0-SunOS-amd64-r30421.pkg&lt;br /&gt;Package filename is VirtualBox-1.6.0-SunOS-amd64-r30421.pkg, which will install the package &lt;sunwvbox&gt;&lt;br /&gt;&lt;br /&gt;For installation details, you can refer to READMe.txt, which contains all the instructions.&lt;br /&gt;&lt;br /&gt;Run the Virtualbox by the command:&lt;br /&gt;bash-3.2# VirtualBox&lt;br /&gt;Note: VirtualBox V and B are capitalized.&lt;br /&gt;&lt;br /&gt;Below is Virtualbox's application interface.&lt;br /&gt;&lt;/sunwvbox&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Cxuo_VyMGBo/SDeCnbmlewI/AAAAAAAACps/ji7EsprdiSY/s1600-h/virtualbox.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Cxuo_VyMGBo/SDeCnbmlewI/AAAAAAAACps/ji7EsprdiSY/s320/virtualbox.png" alt="" id="BLOGGER_PHOTO_ID_5203771508386003714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;sunwvbox&gt;From now on, we will create a Solaris image in Virtualbox. Its image file is vmdk or vdi(virtual disk image). The image is created in the default directory /root/.VirtualBox/VDI. So if the image name is solarisV, it will be solarisV.vid&lt;br /&gt;&lt;br /&gt;Once the solaris installation is done, the screenshot can be seen as below:&lt;br /&gt;&lt;/sunwvbox&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Cxuo_VyMGBo/SDhkcLmlexI/AAAAAAAACp0/4rxsQuFi-Ok/s1600-h/virtualbox2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Cxuo_VyMGBo/SDhkcLmlexI/AAAAAAAACp0/4rxsQuFi-Ok/s320/virtualbox2.png" alt="" id="BLOGGER_PHOTO_ID_5204019804740352786" border="0" /&gt;&lt;/a&gt;I saw a file looked like configuration file in the directory ~/.VirtualBox/Machines/solarisV/solarisV.xml.&lt;br /&gt;&lt;br /&gt;Next, I tried windows on VirtualBox. It's just the same to follow the normal Windows XP installation steps.&lt;br /&gt;The screenshot can be see as below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Cxuo_VyMGBo/SDiWV7mleyI/AAAAAAAACp8/LzrJCCeRV-A/s1600-h/virtualbox+win.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_Cxuo_VyMGBo/SDiWV7mleyI/AAAAAAAACp8/LzrJCCeRV-A/s320/virtualbox+win.png" alt="" id="BLOGGER_PHOTO_ID_5204074672947559202" border="0" /&gt;&lt;/a&gt;Generally speaking, VirtualBox won't have any problem in installing any guest. It is full virtualization, and it is easy and simple to use and install. No tricky techniques there.&lt;br /&gt;&lt;sunwvbox&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/sunwvbox&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-6995552801080108652?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/6995552801080108652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=6995552801080108652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/6995552801080108652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/6995552801080108652'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/05/solaris-virtualbox.html' title='Solaris Virtualbox'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_Cxuo_VyMGBo/SDeCnbmlewI/AAAAAAAACps/ji7EsprdiSY/s72-c/virtualbox.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3740118971347388824</id><published>2008-05-21T12:56:00.009-04:00</published><updated>2008-05-23T22:10:07.933-04:00</updated><title type='text'>Solaris xVM  (con't)  --HVM guest</title><content type='html'>Still following the instructions on the page http://opensolaris.org/os/community/xen/docs/virtinstall/&lt;br /&gt;&lt;br /&gt;Before going on to create the solaris HVM guest, we need first configure VNC. Facility&lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt; svc&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt; will&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;be  used.&lt;br /&gt;&lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt; svc&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt;cfg  is used to configure the service&lt;br /&gt;&lt;pre&gt;# &lt;tt&gt;&lt;b&gt;svccfg -s xvm/xend setprop config/vncpasswd = astring: \"passwd\"&lt;/b&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;pre&gt;&lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt;-s xvm/xend&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt;&lt;/pre&gt; -s specifies the service&lt;br /&gt;&lt;pre&gt;&lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt;setprop config/vncpasswd = astring: \"passwd\"&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt;&lt;/pre&gt; setprop specifies the command&lt;br /&gt;Note: You can see that password is quoted by ""&lt;br /&gt;&lt;br /&gt;Similiarly,&lt;br /&gt;&lt;pre&gt;# &lt;tt&gt;&lt;b&gt;svccfg -s xvm/xend setprop config/vnc-listen = astring: \"0.0.0.0\"&lt;/b&gt;&lt;/tt&gt;&lt;br /&gt;&lt;/pre&gt;This command is to specify the vnc-listen&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another one is  &lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt; svcadm&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt;, which is used to start or stop service. It can "enable", "disable", "refresh",  and "restart" the service. &lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt;refresh&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt; is to reload the configuration file.&lt;br /&gt;Here the service is xend, which is in &lt;tt&gt;&lt;b&gt;&lt;tt&gt;&lt;b&gt;xvm/xend&lt;/b&gt;&lt;/tt&gt;&lt;/b&gt;&lt;/tt&gt; &lt;pre&gt;# &lt;tt&gt;&lt;b&gt;svcadm refresh xvm/xend; svcadm restart xvm/xend&lt;/b&gt;&lt;/tt&gt;&lt;/pre&gt;It restarts the xen daemon xend.&lt;br /&gt;&lt;br /&gt;OK~~~~~! Now, let's create the HVM solaris guest.&lt;br /&gt;&lt;pre&gt;machine:root&gt;#virt-install -n solarisH --hvm -r 1024 --vnc -f /solarisH.img -s 8 -c /export/home/newbie/sol-nv-b87.iso&lt;/pre&gt;Still almost the same options as creating the paravirt solaris guest,  &lt;span style="font-family:monospace;"&gt; &lt;/span&gt;&lt;tt&gt;-n solarisH&lt;/tt&gt; specifies domain name, &lt;tt&gt;-r 1024&lt;/tt&gt; specifies ram size,  &lt;tt&gt;-f /solarisH.img&lt;/tt&gt; specifies guest image filename, &lt;tt&gt;-s 8&lt;/tt&gt; specifies the guest image size of 8G, &lt;tt&gt;-c /export/home/newbie/sol-nv-b87.iso&lt;/tt&gt; indicates installing from ISO file.&lt;br /&gt;&lt;br /&gt;The only differences are &lt;tt&gt;--hvm&lt;/tt&gt; which specifies the guest works in HVM mode and &lt;tt&gt;--vnc&lt;/tt&gt; which specifies the guest will have a VNC connection.&lt;br /&gt;&lt;br /&gt;When you run the virt-install command, it will first prompt up a window asking VNC password which will be passwd as we have set up before. The rest installation process will look exactly like installing solaris on a real machine. The snapshot can be seen as below.&lt;br /&gt;Note: The virt-install still has the problem with libvirt as below&lt;br /&gt;&lt;tt&gt;libvir: Xen Daemon error : GET operation failed:&lt;br /&gt;&lt;br /&gt;&lt;/tt&gt;WARNING:  &lt;tt&gt;virt-install &lt;/tt&gt;doesn't create the configuration file for the guest image. It only creates an image with an OS system in it. The user himself needs to create the configuration file on their own. One simple configuration file can be as below:&lt;br /&gt;A good reference is here: http://opensolaris.org/os/community/xen/docs/HVMdomains.htm&lt;br /&gt;Once the installation is done, You can see the solaris HVM guest looks like below.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Cxuo_VyMGBo/SDdcybmletI/AAAAAAAACpU/rQnn8RxV9Kg/s1600-h/solaris+HVM.png"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_Cxuo_VyMGBo/SDdcybmletI/AAAAAAAACpU/rQnn8RxV9Kg/s320/solaris+HVM.png" alt="" id="BLOGGER_PHOTO_ID_5203729915922709202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;However, &lt;tt&gt;virt-install&lt;/tt&gt; doesn't provide the configuration file for the created image. So we need to make on our own. One way to ask the system to create its configuration for us is to use the command &lt;tt&gt;virsh&lt;/tt&gt; while the guest is running. The instructions can be seen on the page &lt;tt&gt;http://docs.sun.com/app/docs/doc/819-2450/6n4o5me9r?a=view&lt;/tt&gt;&lt;br /&gt;It will produce xml-format configuration file&lt;br /&gt;#virsh dumpxml  solarisH &gt; solarisH.xml&lt;br /&gt;Then we also need to use the facility virsh to boot the guest by xml configuration file&lt;br /&gt;#virsh create solarisH.xml&lt;br /&gt;Next is to connect to the VNC. We need to use the tool virt-manage.&lt;br /&gt;#virt-manage&lt;br /&gt;Then select the guest domain and press the button open who then will ask for the vnc password. Then a VNC window is popped up and the interface looks like below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Cxuo_VyMGBo/SDd4wbmlevI/AAAAAAAACpk/0PyAOMj86No/s1600-h/solarisHVM+6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Cxuo_VyMGBo/SDd4wbmlevI/AAAAAAAACpk/0PyAOMj86No/s320/solarisHVM+6.png" alt="" id="BLOGGER_PHOTO_ID_5203760667888548594" border="0" /&gt;&lt;/a&gt;Another way is to manually create a configuration file as below whose name is solarisH.py and file type is python script.&lt;br /&gt;##########################################################&lt;br /&gt;#  -*- mode: python; -*-&lt;br /&gt;#============================================================================&lt;br /&gt;# Python configuration setup for 'xm create'.&lt;br /&gt;# This script sets the parameters used when a domain is created using 'xm create'.&lt;br /&gt;# You use a separate script for each domain you want to create, or&lt;br /&gt;# you can set the parameters for the domain on the xm command line.&lt;br /&gt;#============================================================================&lt;br /&gt;&lt;br /&gt;import os, re&lt;br /&gt;arch = os.uname()[4]&lt;br /&gt;if re.search('64', arch):&lt;br /&gt;  arch_libdir = 'lib64'&lt;br /&gt;else:&lt;br /&gt;  arch_libdir = 'lib'&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# Kernel image file.&lt;br /&gt;kernel = "/usr/lib/xen/boot/hvmloader"&lt;br /&gt;&lt;br /&gt;# The domain build function. HVM domain uses 'hvm'.&lt;br /&gt;builder='hvm'&lt;br /&gt;&lt;br /&gt;# Initial memory allocation (in megabytes) for the new domain.&lt;br /&gt;#&lt;br /&gt;# WARNING: Creating a domain with insufficient memory may cause out of&lt;br /&gt;#          memory errors. The domain needs enough memory to boot kernel&lt;br /&gt;#          and modules. Allocating less than 32MBs is not recommended.&lt;br /&gt;memory = 1024&lt;br /&gt;&lt;br /&gt;# Shadow pagetable memory for the domain, in MB.&lt;br /&gt;# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.&lt;br /&gt;shadow_memory = 8&lt;br /&gt;&lt;br /&gt;# A name for your domain. All domains must have different names.&lt;br /&gt;name = "solarisH"&lt;br /&gt;&lt;br /&gt;# 128-bit UUID for the domain.  The default behavior is to generate a new UUID&lt;br /&gt;# on each call to 'xm create'.&lt;br /&gt;#uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;# the number of cpus guest platform has, default=1&lt;br /&gt;vcpus=1&lt;br /&gt;&lt;br /&gt;# enable/disable HVM guest PAE, default=0 (disabled)&lt;br /&gt;#pae=0&lt;br /&gt;&lt;br /&gt;# enable/disable HVM guest ACPI, default=0 (disabled)&lt;br /&gt;#acpi=1&lt;br /&gt;&lt;br /&gt;# enable/disable HVM guest APIC, default=0 (disabled)&lt;br /&gt;#apic=1&lt;br /&gt;&lt;br /&gt;# List of which CPUS this domain is allowed to use, default Xen picks&lt;br /&gt;#cpus = ""         # leave to Xen to pick&lt;br /&gt;#cpus = "0"        # all vcpus run on CPU0&lt;br /&gt;#cpus = "0-3,5,^1" # run on cpus 0,2,3,5&lt;br /&gt;&lt;br /&gt;# Optionally define mac and/or bridge for the network interfaces.&lt;br /&gt;# Random MACs are assigned if not given.&lt;br /&gt;&lt;br /&gt;vif = [ 'type=ioemu' ]&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# Define the disk devices you want the domain to have access to, and&lt;br /&gt;# what you want them accessible as.&lt;br /&gt;# Each disk entry is of the form phy:UNAME,DEV,MODE&lt;br /&gt;# where UNAME is the device, DEV is the device name the domain will see,&lt;br /&gt;# and MODE is r for read-only, w for read-write.&lt;br /&gt;&lt;br /&gt;#disk = [ 'file:/export/home/mydisk.raw,hdc,w', 'file:/export/home/install.iso,hda:cdrom,r' ]&lt;br /&gt;disk = [ 'file:/solarisH.img,hda,w']&lt;br /&gt;#disk = [ 'phy:/dev/dsk/c1d0p0,hdc,w', 'file:/export/home/install.iso,hda:cdrom,r' ]&lt;br /&gt;&lt;br /&gt;#disk = [ 'phy:/dev/zvol/dsk/mypool/mydisk,hdc,w', 'file:/export/home/install.iso,hda:cdrom,r' ]&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# Configure the behaviour when a domain exits.  There are three 'reasons'&lt;br /&gt;# for a domain to stop: poweroff, reboot, and crash.  For each of these you&lt;br /&gt;# may specify:&lt;br /&gt;#&lt;br /&gt;#   "destroy",        meaning that the domain is cleaned up as normal;&lt;br /&gt;#   "restart",        meaning that a new domain is started in place of the old&lt;br /&gt;#                     one;&lt;br /&gt;#   "preserve",       meaning that no clean-up is done until the domain is&lt;br /&gt;#                     manually destroyed (using xm destroy, for example); or&lt;br /&gt;#   "rename-restart", meaning that the old domain is not cleaned up, but is&lt;br /&gt;#                     renamed and a new domain started in its place.&lt;br /&gt;#&lt;br /&gt;# The default is&lt;br /&gt;#&lt;br /&gt;#   on_poweroff = 'destroy'&lt;br /&gt;#   on_reboot   = 'restart'&lt;br /&gt;#   on_crash    = 'restart'&lt;br /&gt;#&lt;br /&gt;# For backwards compatibility we also support the deprecated option restart&lt;br /&gt;#&lt;br /&gt;# restart = 'onreboot' means on_poweroff = 'destroy'&lt;br /&gt;#                            on_reboot   = 'restart'&lt;br /&gt;#                            on_crash    = 'destroy'&lt;br /&gt;#&lt;br /&gt;# restart = 'always'   means on_poweroff = 'restart'&lt;br /&gt;#                            on_reboot   = 'restart'&lt;br /&gt;#                            on_crash    = 'restart'&lt;br /&gt;#&lt;br /&gt;# restart = 'never'    means on_poweroff = 'destroy'&lt;br /&gt;#                            on_reboot   = 'destroy'&lt;br /&gt;#                            on_crash    = 'destroy'&lt;br /&gt;&lt;br /&gt;on_poweroff = 'destroy'&lt;br /&gt;on_reboot   = 'restart'&lt;br /&gt;on_crash    = 'preserve'&lt;br /&gt;&lt;br /&gt;#============================================================================&lt;br /&gt;&lt;br /&gt;# New stuff&lt;br /&gt;device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;# boot on floppy (a), hard disk (c) or CD-ROM (d)&lt;br /&gt;# default: hard disk, cd-rom, floppy&lt;br /&gt;boot="cda"&lt;br /&gt;#boot='d'&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;#  write to temporary files instead of disk image files&lt;br /&gt;#snapshot=1&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# enable SDL library for graphics, default = 0&lt;br /&gt;sdl=0&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# enable VNC library for graphics, default = 1&lt;br /&gt;vnc=1&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# address that should be listened on for the VNC server if vnc is set.&lt;br /&gt;# default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp&lt;br /&gt;vnclisten="0.0.0.0"&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# set VNC display number, default = domid&lt;br /&gt;#vncdisplay=1&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# try to find an unused port for the VNC server, default = 1&lt;br /&gt;#vncunused=1&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# enable spawning vncviewer for domain's console&lt;br /&gt;# (only valid when vnc=1), default = 0&lt;br /&gt;vncconsole=1&lt;br /&gt;&lt;br /&gt;vncpasswd=''&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# no graphics, use serial port&lt;br /&gt;#nographic=0&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------------&lt;br /&gt;# enable stdvga, default = 0 (use cirrus logic device model)&lt;br /&gt;stdvga=0&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;#   serial port re-direct to pty deivce, /dev/pts/n&lt;br /&gt;#   then xm console or minicom can connect&lt;br /&gt;serial='pty'&lt;br /&gt;#serial='stdio'&lt;br /&gt;#serial='file:/tmp/blah'&lt;br /&gt;#serial='/dev/pts/0'&lt;br /&gt;serial='null'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;#   enable sound card support, [sb16|es1370|all|..,..], default none&lt;br /&gt;#soundhw='sb16'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;#    set the real time clock to local time [default=0 i.e. set to utc]&lt;br /&gt;#localtime=1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;#    start in full screen&lt;br /&gt;#full-screen=1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#-----------------------------------------------------------------------------&lt;br /&gt;#   Enable USB support (specific devices specified at runtime through the&lt;br /&gt;#         monitor window)&lt;br /&gt;usb=1&lt;br /&gt;&lt;br /&gt;#   Enable USB mouse support (only enable one of the following, `mouse' for&lt;br /&gt;#               PS/2 protocol relative mouse, `tablet' for&lt;br /&gt;#               absolute mouse)&lt;br /&gt;usbdevice='mouse'&lt;br /&gt;usbdevice='tablet'&lt;br /&gt;##########################################################&lt;br /&gt;Note: two things in the script needs to be taken care of.&lt;br /&gt;1) &lt;tt&gt;disk = [ 'file:/solarisH.img,hda,w']&lt;/tt&gt;&lt;br /&gt;Here you will see the disk is defined by file location, disk type, and access rights.&lt;br /&gt;rather than in the pv one that you may see disk = [ 'file:/solarisH.img,&lt;span style="font-style: italic;"&gt;0&lt;/span&gt;,w']&lt;br /&gt;2) &lt;tt&gt;serial='null'&lt;/tt&gt;&lt;br /&gt;The console is none, which means when booting the guest, we cannot access by the console but we can use vnc.&lt;br /&gt;Then we can boot the guest by the command&lt;br /&gt;&lt;tt&gt;#xm create solarisH.xml&lt;/tt&gt;&lt;br /&gt;Note: here we didn't have the option -c for xm create. Neither can we use the command xm console to connect to the guest. VNC will be automatically called to display the graph of the guest.&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;Here Sun provides a diversity of domUs ready for use: http://www.opensolaris.org/os/community/xen/How-To-8-15-06/install/AugDomUs/&lt;br /&gt;&lt;br /&gt;Here Sun provides the sample of HOWTO make a HVM domU configuration file and HOWTO make a Solaris domU:&lt;br /&gt;http://opensolaris.org/os/community/xen/docs/HVMdomains.htm&lt;br /&gt;http://opensolaris.org/os/community/xen/docs/install-solaris-domu-iso.htm&lt;br /&gt;http://blogs.sun.com/shalon/entry/a_summary_of_creation_of&lt;br /&gt;--------------------------------------------------------ADDON-----------------------------------------------------------------------&lt;br /&gt;How to choose VM ram and storage?&lt;br /&gt;The machine I am using is&lt;br /&gt;CPU&lt;br /&gt;memory 4G&lt;br /&gt;.....&lt;br /&gt;When I am creating an solaris HVM guest, how much memory should it have and how much storage should  be allocated for it?&lt;br /&gt;Try 2G ram and 8G image&lt;br /&gt;Problem 1: 2G memory is too much for a guest&lt;br /&gt;it makes dom0 run slow.&lt;br /&gt;Problem 2: 8G image is not enough for Solaris&lt;br /&gt;when you installs Solaris express development edition, it automatically installs all the required packages and requires more than 8G, so I have installation failure. I guess it is because of running out of space.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;I choose 1G ram and 12G image for the guest, it works. You can see the working solaris guest as below:&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Cxuo_VyMGBo/SDdou7mleuI/AAAAAAAACpc/PRPku8v1ncI/s1600-h/solaris+HVM+5.png"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_Cxuo_VyMGBo/SDdou7mleuI/AAAAAAAACpc/PRPku8v1ncI/s320/solaris+HVM+5.png" alt="" id="BLOGGER_PHOTO_ID_5203743049932700386" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3740118971347388824?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3740118971347388824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3740118971347388824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3740118971347388824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3740118971347388824'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/05/solaris-xvm-cont-hvm-guest.html' title='Solaris xVM  (con&apos;t)  --HVM guest'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_Cxuo_VyMGBo/SDdcybmletI/AAAAAAAACpU/rQnn8RxV9Kg/s72-c/solaris+HVM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5541122082891062979</id><published>2008-05-20T21:28:00.013-04:00</published><updated>2008-05-23T22:25:00.753-04:00</updated><title type='text'>Solaris xVM  (xen on Solaris)</title><content type='html'>Xen comes along with Solaris Community Express Edition(&lt;em&gt;SCXE&lt;/em&gt;).&lt;br /&gt;&lt;div&gt;I am using Nevada version 87 (&lt;em&gt;SNV b87&lt;/em&gt;).&lt;br /&gt;&lt;br /&gt;In the grub, it has Solaris, Solaris xVm, Solaris Failsafe. If no, you can follow the instructions on the page: http://opensolaris.org/os/community/xen/docs/setupsoldom0/&lt;br /&gt;Facility bootadm will help you to operate on menu.lst&lt;br /&gt;&lt;em&gt;# bootadm list-menu &lt;/em&gt;= cat /boot/grub/menu.lst&lt;br /&gt;&lt;em&gt;# bootadm -m upgrade&lt;/em&gt; = automatically search the boot directory and modify the menu.lst&lt;br /&gt;&lt;br /&gt;It is using this one as below, so it is 64bit xen compatible&lt;br /&gt;&lt;em&gt;#---------- ADDED BY BOOTADM - DO NOT EDIT ----------&lt;br /&gt;title Solaris xVM&lt;br /&gt;kernel$ /boot&lt;strong&gt;/$ISADIR&lt;/strong&gt;/xen.gz&lt;br /&gt;module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/&lt;strong&gt;$ISADIR&lt;/strong&gt;/unix [*]&lt;br /&gt;module$ /platform/i86pc/&lt;strong&gt;$ISADIR&lt;/strong&gt;/boot_archive&lt;br /&gt;#---------------------END BOOTADM--------------------&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Note: in solaris 2008.5 released version, xen doesn't come along with it. But you can install the package using the package management application. However, bootadm doesn't work.&lt;br /&gt;&lt;br /&gt;Once it is booted from Solaris xVM, you can use the command xm list to see dom0 is working as below:&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Cxuo_VyMGBo/SDOCbArcSSI/AAAAAAAACoU/fk3OP9-GrXk/s1600-h/dom0.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5202645395093342498" style="margin: 0px auto 10px; display: block; cursor: pointer; text-align: center;" alt="" src="http://bp1.blogger.com/_Cxuo_VyMGBo/SDOCbArcSSI/AAAAAAAACoU/fk3OP9-GrXk/s320/dom0.png" border="0" /&gt;&lt;/a&gt;Next is to create a Solaris domU. The instruction is on the page:&lt;a href="http://opensolaris.org/os/community/xen/docs/virtinstall/"&gt;http://opensolaris.org/os/community/xen/docs/virtinstall/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First, I am trying to create a Solaris guest in paravirtual mode. I found only the command below works: &lt;/p&gt;&lt;br /&gt;&lt;p&gt;machine:root&gt; virt-install --nographics  -n SolarisUU --par&lt;strong&gt;a&lt;/strong&gt;virt  -f /xvm/SolarisU.img -r 1024 --mac=aa:ff:bb:aa:28:16 -s 8  -l  /export/home/newbie/sol-nv-b87.iso&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;--nographics&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;installation has no graphic mode, purely in console command mode&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;-n SolarisUU &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the guest domain name will be SolarisUU&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;--paravirt  &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the guest will be created in paravirt mode&lt;br /&gt;Note: on the webpage, the option par&lt;strong&gt;a&lt;/strong&gt;virt is missing '&lt;strong&gt;a&lt;/strong&gt;'&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;-f /SolarisU.img&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the guest will be in a file, the filename is SolarisU.img created in the root directory&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;-r 1024 &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the guest domain will use 1024M memory&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;--mac=aa:ff:bb:aa:28:16&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the guest domain's network mac address is aa:ff:bb:aa:28:16&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;-s 8&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the file size is 8G&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;-l  /export/home/newbie/sol-nv-b87.iso &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;the guest domain will install from iso image&lt;br /&gt;&lt;p&gt;The rest is to follow the solaris installation process and it will automatically reboot and run the guest domain. Finally, you will see the guest domain is running as below. The guest ip is 128.153.144.100. So far, I didn't find anywhere to choose the guest domain network mode. The default is bridge mode. I didn't find where the virt-install has put the guest configure file.&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Cxuo_VyMGBo/SDOKSArcSTI/AAAAAAAACoc/ZrdfcyoAynk/s1600-h/domU.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_Cxuo_VyMGBo/SDOKSArcSTI/AAAAAAAACoc/ZrdfcyoAynk/s320/domU.png" alt="" id="BLOGGER_PHOTO_ID_5202654036567542066" border="0" /&gt;&lt;/a&gt;&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Comments:&lt;br /&gt;&lt;/p&gt;1) when creating paravirt guest, it will complain &lt;tt&gt;&lt;b&gt;libvir: Xen Daemon error : GET operation failed:&lt;br /&gt;&lt;/b&gt;&lt;/tt&gt;&lt;p&gt;2)Simple command # &lt;tt&gt;&lt;b&gt;virt-install&lt;/b&gt;&lt;/tt&gt; doesn't work.&lt;/p&gt;&lt;p&gt;3) The command for VNC doesn't work. It claims that authentication failed.&lt;/p&gt;&lt;pre&gt;# &lt;tt&gt;&lt;b&gt;svccfg -s xvm/xend setprop \&lt;br /&gt;config/vncpasswd = astring: \"somepwd\"&lt;/b&gt;&lt;/tt&gt;&lt;br /&gt;# &lt;tt&gt;&lt;b&gt;svcadm refresh xvm/xend; svcadm restart xvm/xend&lt;/b&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;4)&lt;tt&gt;&lt;b&gt;virt-manager&lt;/b&gt;&lt;/tt&gt; can be installed in xVM, but I can not have it to display the guest or create the guest. So I am doubt about it. Here are the instructions to install  &lt;tt&gt;&lt;b&gt;virt-manager &lt;/b&gt;&lt;/tt&gt;in xVM&lt;/p&gt;&lt;p&gt;The page for &lt;tt&gt;&lt;b&gt;virt-manager project &lt;/b&gt;&lt;/tt&gt;is at http://opensolaris.org/os/project/jds/tasks/virt-manager/.&lt;br /&gt;1)Download the binary package for SNV83 or later on the page http://opensolaris.org/os/project/jds/tasks/virt-manager/virt-manager-0.4.0-04-09.tar.gz.&lt;br /&gt;2)Untar it and in the directory &lt;span style="font-family:courier new;"&gt;pkgs-04-09&lt;/span&gt; and use the package installation command &lt;span style="font-family:courier new;"&gt;bash-3.2# pkgadd -d. SUNWvirt-manager&lt;/span&gt; to install.&lt;br /&gt;Note: it has a dot right after -d and no space between them.&lt;br /&gt;3) on the command line, type &lt;span style="font-family:courier new;"&gt;virt-manager&lt;/span&gt;, it will show up as below&lt;/p&gt;&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_Cxuo_VyMGBo/SDOP6wrcSUI/AAAAAAAACok/uEe-wlsItmY/s1600-h/virt-manager1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_Cxuo_VyMGBo/SDOP6wrcSUI/AAAAAAAACok/uEe-wlsItmY/s320/virt-manager1.png" alt="" id="BLOGGER_PHOTO_ID_5202660234205350210" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Cxuo_VyMGBo/SDOQGQrcSVI/AAAAAAAACos/02IzGD3ChXI/s1600-h/virt-manger2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_Cxuo_VyMGBo/SDOQGQrcSVI/AAAAAAAACos/02IzGD3ChXI/s320/virt-manger2.png" alt="" id="BLOGGER_PHOTO_ID_5202660431773845842" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;TODO list:&lt;/p&gt;&lt;p&gt;1. Figure out where the configure file are stored by virt-install&lt;/p&gt;&lt;p&gt;2. Figure out how to run an existed guest&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3. Make VNC works&lt;/p&gt;&lt;p&gt;4. Create HVM guest: solaris and windows&lt;/p&gt;&lt;p&gt;5. Create paravirt Fedora guest&lt;/p&gt;----------------------------------------------------ADDON-----------------------------------------------------------------------------------&lt;br /&gt;virt-install is a tool that works and can create both para and HVM domU images, but after OS installation and image creation, it doesn't provide a configuration file for the guest to run. So the user need to make up one for their own. Here is the one I am using and you can also refer to http://opensolaris.org/os/community/xen/docs/install-solaris-domu-iso.htm&lt;br /&gt;and&lt;br /&gt;http://blogs.sun.com/mrj/entry/installing_opensolaris_on&lt;br /&gt;http://bderzhavets.blogspot.com/2008/03/install-solaris-0108-hvm-domu-64-bit-at.html\&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a python configuration script pv.py&lt;/span&gt;&lt;br /&gt;&lt;tt&gt;&lt;br /&gt;name = "solarisU"&lt;br /&gt;vcpus = 1&lt;br /&gt;memory = "1024"&lt;br /&gt;disk = ['file:/solarisU.img,0,w']&lt;br /&gt;vif = ['']&lt;br /&gt;on_shutdown = "destroy"&lt;br /&gt;on_reboot = "restart"&lt;br /&gt;on_crash = "destroy"&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Note: in the disk option, you need to specify where your guest image is.&lt;br /&gt;&lt;br /&gt;To run the guest once you have the image and the configuration file, you can use the command below to boot and connect to it.&lt;br /&gt;&lt;tt&gt;#xm create -c pv.py&lt;/tt&gt;&lt;br /&gt;If you wants to get out of the domU, you can use the combination keys ctrl+] (same as linux xen) to exit the guest. But if you already have the guest running, but outside of it, you can use the command below to get into it by specifying its domain name or domain ID.&lt;br /&gt;&lt;tt&gt;#xm console solarisU&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5541122082891062979?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5541122082891062979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5541122082891062979' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5541122082891062979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5541122082891062979'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/05/solaris-xvm-xen-on-solaris.html' title='Solaris xVM  (xen on Solaris)'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_Cxuo_VyMGBo/SDOCbArcSSI/AAAAAAAACoU/fk3OP9-GrXk/s72-c/dom0.png' height='72' width='72'/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5966042111800197318</id><published>2008-03-07T02:12:00.007-05:00</published><updated>2008-03-07T23:15:09.850-05:00</updated><title type='text'>Reinstall SPECweb</title><content type='html'>java 1.5 installation&lt;br /&gt;&lt;br /&gt;uninstall java gcj  fcs because specwebclient cannot be complied and run&lt;br /&gt;&lt;br /&gt;sun download page&lt;br /&gt;http://java.sun.com/javase/downloads/index_jdk5.jsp&lt;br /&gt;https://sdlc5c.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=FDCF352AF4C6A49B5CCEBCE7129FAF0E;jsessionid=FDCF352AF4C6A49B5CCEBCE7129FAF0E&lt;br /&gt;instruction&lt;br /&gt;http://java.sun.com/j2se/1.4.2/install-linux.html&lt;br /&gt;&lt;br /&gt;change execuatable&lt;br /&gt;chmod +x jre-1_5_0_15-linux-i586-rpm.bin&lt;br /&gt;./jre-1_5_0_15-linux-i586-rpm.bin&lt;br /&gt;&lt;br /&gt;install sun java&lt;br /&gt;rpm -iv jre-1_5_0_15-linux-i586.rpm&lt;br /&gt;http://liquidat.wordpress.com/2007/05/31/howto-sun-java-on-fedora-7/&lt;br /&gt;&lt;br /&gt;install SUN java&lt;br /&gt;&lt;pre&gt;#sh ./jre-&lt;i&gt;version&lt;/i&gt;-linux-i586-rpm.bin&lt;br /&gt;&lt;br /&gt;#/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre&lt;i&gt;version&lt;/i&gt;/bin/java &lt;span style="font-family:mon;"&gt;&lt;span style="font-style: italic;"&gt;priority&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;demo:   #alternatives --install /usr/bin/java java /usr/java/jre1.5.0_15/bin/java 2&lt;br /&gt;&lt;br /&gt;#/usr/sbin/alternatives --config java&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;mod_fastcgi module installation:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;downloald mod-fastcgi package from&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;http://www.fastcgi.com/dist/&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz"&gt;mod_fastcgi-2.4.6.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;check the instruction INSTALL using the mothod of DSO&lt;br /&gt;then install httpd-devel to have apsx working&lt;br /&gt;&lt;br /&gt;http://jimthompson.org/wp/2005/05/29/building-modfastcgi-for-apache2/&lt;br /&gt;use the command:&lt;br /&gt;&lt;code&gt;&lt;strong&gt;apxs -n mod_fastcgi -i -a -c mod_fastcgi.c fcgi_buf.c fcgi_config.c fcgi_pm.c fcgi_protocol.c fcgi_util.c&lt;br /&gt;&lt;br /&gt;Load module in httpd.conf&lt;br /&gt;&lt;br /&gt;Selinux prevent httpd to bind 81&lt;br /&gt;http://danwalsh.livejournal.com/9275.html&lt;br /&gt;use the following commands:&lt;br /&gt;&lt;/strong&gt;&lt;/code&gt;semanage port -a -t http_port_t -p tcp 81&lt;br /&gt;&lt;br /&gt;SELinux prevented httpd reading and writing access to http files.&lt;br /&gt;use the following commands:&lt;br /&gt;setsebool -P httpd_unified=1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;config SPECweb&lt;br /&gt;Test.config&lt;br /&gt;BESIM_INIT_SCRIPT = "/fcgi-bin/besim_fcgi.fcgi"&lt;br /&gt;rather than /var/www/html/fcgi-bin/besim_fcgi.fcgi&lt;br /&gt;&lt;br /&gt;The error information is&lt;br /&gt;2008-03-07 05:32:55:776 RemoteLoadGen: Adding host 128.153.144.162&lt;br /&gt;2008-03-07 05:32:55:936 Connection: [ERROR] Bad status: 404&lt;br /&gt;2008-03-07 05:32:55:936 Connection: bad status ======= buf_len=494 headerEnd=179 contentLen=315 chunkEnd-1========&lt;br /&gt;2008-03-07 05:32:55:936 Connection: HTTP/1.1 404 Not Found&lt;br /&gt;Date: Fri, 07 Mar 2008 10:32:55 GMT&lt;br /&gt;Server: Apache/2.2.6 (Fedora)&lt;br /&gt;Content-Length: 315&lt;br /&gt;Connection: close&lt;br /&gt;Content-Type: text/html; charset=iso-8859-1&lt;br /&gt;&lt;br /&gt;&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;&lt;br /&gt;&lt;br /&gt;404 Not Found&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Not Found&lt;/h1&gt;&lt;br /&gt;&lt;p&gt;The requested URL /var/www/html/fcgi-bin/besim_fcgi.fcgi was not found on this server.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;address&gt;Apache/2.2.6 (Fedora) Server at 128.153.144.162 Port 80&lt;/address&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2008-03-07 05:32:55:936 HttpRequestSched: [ERROR] Bad response (-1). Request was GET /var/www/html/fcgi-bin/besim_fcgi.fcgi?3&amp;amp;0&amp;amp;1204886909&amp;amp;5 HTTP/1.1&lt;br /&gt;Accept: */*&lt;br /&gt;Host: 128.153.144.162&lt;br /&gt;&lt;br /&gt;IF you GOT 500 INTERNAL ERROR in specweb and in the apache it indicates error:&lt;br /&gt;PHP Warning:  fopen(http://128.153.144.162:81/fcgi-bin/besim_fcgi.fcgi?3&amp;amp;6&amp;amp;2821) &lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No route to host in /var/www/support/inc.common.php on line 44&lt;br /&gt;Then it probably means your specweb machine's 80 is blocked and only 81 works. &lt;br /&gt;&lt;br /&gt;IN SPECWEB, you need both 80 and 81 working on the same machine. SO if firewall and selinux are disabled, that will save you a lot of time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5966042111800197318?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5966042111800197318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5966042111800197318' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5966042111800197318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5966042111800197318'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/03/reinstall-specweb.html' title='Reinstall SPECweb'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-4141816860285289282</id><published>2008-01-25T14:39:00.000-05:00</published><updated>2008-01-25T14:46:17.259-05:00</updated><title type='text'>OS: syscall</title><content type='html'>1. show the linux architecture for system call;&lt;br /&gt;2. show the steps of modification, each meaning;&lt;br /&gt;3. how to return a value from system call, how to ask a system call to do something for us;&lt;br /&gt;4. how to compile a kernel, load a kernel, use a system call;&lt;br /&gt;5. put up the lab far before the lab, so students can start or have some idea of it before hand;&lt;br /&gt;5. before the lab, run it again to make sure it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-4141816860285289282?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/4141816860285289282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=4141816860285289282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4141816860285289282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4141816860285289282'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/01/os-syscall.html' title='OS: syscall'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8802424205223572284</id><published>2008-01-18T14:08:00.000-05:00</published><updated>2008-01-18T14:53:35.592-05:00</updated><title type='text'>OS: Shell Tutorial</title><content type='html'>1 introduce the special points of C language&lt;br /&gt;printf: %d  %f  %s  %c&lt;br /&gt;symbol: \n \t&lt;br /&gt;cstring:  string functions reference/link&lt;br /&gt;single quote and double quote&lt;br /&gt;command line parser: int argc  char *argv[]&lt;br /&gt;&lt;br /&gt;2. The example fits in the shell program&lt;br /&gt;Set up the whole program architecture for the student&lt;br /&gt;Help to understand the parser.c code&lt;br /&gt;&lt;br /&gt;3. Good reference on C Language, System call&lt;br /&gt;C Language tutorial online&lt;br /&gt;Linux system call introduction online&lt;br /&gt;request the kernel to do something for you. send back to user&lt;br /&gt;POSIX standard&lt;br /&gt;&lt;br /&gt;4. Shell parser&lt;br /&gt;makefile&lt;br /&gt;compile the program&lt;br /&gt;gcc -ggdb&lt;br /&gt;&lt;br /&gt;4. Unix concept&lt;br /&gt;what are pipes? How to use them one output piped into a command's input&lt;br /&gt;ps aux grep jobs  grep ps&lt;br /&gt;top &amp;amp;&lt;br /&gt;jobs&lt;br /&gt;kill %2&lt;br /&gt;&lt; into standard input program&lt;br /&gt;&gt; into a file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8802424205223572284?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8802424205223572284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8802424205223572284' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8802424205223572284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8802424205223572284'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2008/01/os-shell-tutorial.html' title='OS: Shell Tutorial'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-7064955761306819757</id><published>2007-11-08T20:16:00.000-05:00</published><updated>2007-11-08T20:34:18.035-05:00</updated><title type='text'>Doubts on Traditional FS</title><content type='html'>metadata is inode and inodetable[ ].&lt;br /&gt;Q1. How to postion an address in a file?&lt;br /&gt;They are linked by direct/indirect pointers. If small writes or inserting some contents, where to put them?&lt;br /&gt;&lt;br /&gt;Q2. There are fragements, how bad will it hurt the fs performance?&lt;br /&gt;There are cleaner algorithm. How often do they need to be done? In which way? daemon or command?&lt;br /&gt;&lt;br /&gt;Q3. Where is root directory inode located?&lt;br /&gt;At block 2 or some default block or specified somewhere?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-7064955761306819757?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/7064955761306819757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=7064955761306819757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7064955761306819757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7064955761306819757'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/11/doubts-on-traditional-fs.html' title='Doubts on Traditional FS'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8054186254582916210</id><published>2007-11-01T23:29:00.001-04:00</published><updated>2007-11-02T05:09:44.762-04:00</updated><title type='text'>LFS thoughts</title><content type='html'>How many files can be supported?&lt;br /&gt;How large a file size can be supported?&lt;br /&gt;&lt;br /&gt;Ext2 file analysis&lt;br /&gt;&lt;a href="http://homepage.smc.edu/morgan_david/cs40/analyze-ext2.htm"&gt;http://homepage.smc.edu/morgan_david/cs40/analyze-ext2.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;FS summary&lt;br /&gt;&lt;a href="http://www.science.unitn.it/~fiorella/guidelinux/tlk/node99.html"&gt;http://www.science.unitn.it/~fiorella/guidelinux/tlk/node99.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8054186254582916210?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8054186254582916210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8054186254582916210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8054186254582916210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8054186254582916210'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/11/lfs-thoughts.html' title='LFS thoughts'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3795750705941294701</id><published>2007-08-07T21:19:00.000-04:00</published><updated>2007-08-07T21:20:35.470-04:00</updated><title type='text'>xen that I was blocked on</title><content type='html'>HVM options&lt;br /&gt;nic deprecated&lt;br /&gt;vif rate options&lt;br /&gt;&lt;br /&gt;checking help_config&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3795750705941294701?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3795750705941294701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3795750705941294701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3795750705941294701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3795750705941294701'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/08/xen-that-i-was-blocked-on.html' title='xen that I was blocked on'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-2018049123139772733</id><published>2007-08-07T15:53:00.000-04:00</published><updated>2007-08-09T13:50:17.668-04:00</updated><title type='text'>Tests running in xen express</title><content type='html'>baseline with 0.3% degradation&lt;br /&gt;fork with misbehaved one 59.93%good 60.29%tolerant. Specweb survives and ctrl+c can bring the system back.&lt;br /&gt;out of memory: killed process 11740(apache2)&lt;br /&gt;Next is memory, the same as fork, the specweb survives and ctrl+c can bring the system back.&lt;br /&gt;malloc.sh line7 killed ./malloc.sh -i&lt;br /&gt;out of memory: killed process 3090(mallocBomb) score 15538 and children.&lt;br /&gt;Then is DISK IO, the guest sending the packets, and then the guest receiving the packets.&lt;br /&gt;&lt;br /&gt;&lt;a onclick="return false;" tabindex="10" href="javascript:void(0)"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;&lt;/a&gt;Preparation for Defense&lt;br /&gt;get Completion sign sheet for commitee, Course Form.&lt;br /&gt;also need to book the room and send the abstract to get an announcement.&lt;br /&gt;But the most important thing is to have the draft done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-2018049123139772733?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/2018049123139772733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=2018049123139772733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2018049123139772733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2018049123139772733'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/08/tests-running-in-xen-express.html' title='Tests running in xen express'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-350291503659449714</id><published>2007-08-07T12:42:00.000-04:00</published><updated>2007-08-07T12:43:31.563-04:00</updated><title type='text'>gcc in debian</title><content type='html'>debian sarge with xfce in Xen express doesn't have gcc yet. To compile the bomb,&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install gcc&lt;/span&gt; to get the &lt;span style="font-style: italic;"&gt;gcc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apt-get install make&lt;/span&gt; to get the &lt;span style="font-style: italic;"&gt;make&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-350291503659449714?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/350291503659449714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=350291503659449714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/350291503659449714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/350291503659449714'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/08/gcc-in-debian.html' title='gcc in debian'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-4756539226319531979</id><published>2007-08-06T21:39:00.000-04:00</published><updated>2007-08-07T01:53:26.193-04:00</updated><title type='text'>xen express problem</title><content type='html'>1 xen express cd&lt;br /&gt;go to /client-install&lt;br /&gt;rpm -ivh  *.rpm&lt;br /&gt;2 xenserver-client&lt;br /&gt;input master-key&lt;br /&gt;host IP and password&lt;br /&gt;&lt;br /&gt;Xen Express only supports RedHat 4.1 and 4.4, RedHat5 needs VT supports, debian sarge, Windows XP sp2, Windows server 2003. No fedora or CentOS.&lt;br /&gt;&lt;br /&gt;It can install from network(repository) or install from physical machine(p2v), but all limited to the few OSes.&lt;br /&gt;&lt;br /&gt;Debian sarge is installed, apache install instruction:&lt;br /&gt;1. apt-get update&lt;br /&gt;to update the package sources&lt;br /&gt;2. apt-get upgrade update&lt;br /&gt;upgrade debian&lt;br /&gt;3. apt-get install apache2&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apache -v&lt;/span&gt; display the version&lt;br /&gt;install webserver apache2.0.54,&lt;br /&gt;The web directory is  /var/www&lt;br /&gt;&lt;span style="font-style: italic;"&gt;apachectl restart &lt;/span&gt; restarting the webserver, or /etc/init.d/apache2 restart&lt;br /&gt;3 apt-get install  libapache2-mod-php4 php4-cli php4-common php4-cgi&lt;br /&gt;The php version is 4.3.10&lt;br /&gt;&lt;br /&gt;Set a static IP in debian&lt;br /&gt;edit /etc/network/interfaces&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auto eth0 lo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#iface eth0 inet dhcp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iface eth0 inet static&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    address      xxx.xxx.xxx.xxx&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    netmask     255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    network     xxx.xxx.xxx.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    broadcast   xxx.xxx.xxx.255&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    gateway     xxx.xxx.xxx.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;update the interface&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/networking restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-4756539226319531979?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/4756539226319531979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=4756539226319531979' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4756539226319531979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4756539226319531979'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/08/xen-express-problem.html' title='xen express problem'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-1305654807919203400</id><published>2007-08-01T02:45:00.000-04:00</published><updated>2007-08-01T07:11:20.215-04:00</updated><title type='text'>cannot afford</title><content type='html'>It sounds like that ESX's network performance is not good at all.&lt;br /&gt;The more weird thing is that when running network sending from one guest, the specweb clients are all broken. And the first time that I can catch a chance to evaluate the transmiting rate which is around 68Mbps.&lt;br /&gt;&lt;br /&gt;first time, all four down because kernel network panic.&lt;br /&gt;Second time, two broken, complaining exceeded max allowed overthink time of 20 sec. Please make sure that neither the server or client are overloaded. If server is overloaded, consider the nunber of SIMULTANEOUS_SESSIONS requested. If clients appear overloaded, add more clients. The rest two: one 6.71%good, 16.78%tolerant, Total errors: 66; the other 0%good, 0%tolerant, Total error: 207.&lt;br /&gt;&lt;br /&gt;I ping google, it has sent 14 packets, 6 received, the packet lost 57% , the response time is 19.0ms.&lt;br /&gt;&lt;br /&gt;In ESX, the support sessions are limited to 20, when with 5 sessions, it still have some degradation here. But when fewer guests running there, the degradation will be relieved in some extent.&lt;br /&gt;&lt;br /&gt;The side effect is that when the network goes wrong, the client will also be broken. So it is hard to do anything to solve the problem.&lt;br /&gt;&lt;br /&gt;The kernel also reports a network panic there. Lost Internet connections&lt;br /&gt;&lt;br /&gt;All these may due to:&lt;br /&gt;1. ESX performance overhead is too high&lt;br /&gt;2. Bladecenter network card or infrastructure isn't well designed&lt;br /&gt;3. Network driver is not well written&lt;br /&gt;4. The other blade network usage has affected the testbed.&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;Summary&lt;br /&gt;guest sending packets    4 broken, none suvives&lt;br /&gt;guest receving packets   the misbehaved broken at the 3rd iteration, the degradation is 60%, the good ones survive with 40% degradations.&lt;br /&gt;The receiving rate is 10Mbps&lt;br /&gt;ping google while guest receiving packets,  7packets , 5 received, 28% packet loss, the response time is 20 ms /40ms&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-1305654807919203400?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/1305654807919203400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=1305654807919203400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/1305654807919203400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/1305654807919203400'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/08/cannot-afford.html' title='cannot afford'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-7017351747831463642</id><published>2007-07-30T16:49:00.000-04:00</published><updated>2007-07-30T17:10:19.211-04:00</updated><title type='text'>Test going</title><content type='html'>The day before yesterday, Baseline with 5 sessions, 96% good each&lt;br /&gt;Yesterday, CPU. Today, Fork.&lt;br /&gt;For the fork one, the first VM is broken&lt;br /&gt;Have Taking snapshot with CPU usage.&lt;br /&gt;&lt;br /&gt;Needs to backup all the data, name the test results.&lt;br /&gt;&lt;br /&gt;VMware folk has replied with our ESX configration:&lt;br /&gt;Memory 512 each is OK, but CPU maybe overcommite. Fortunately, we have two dual core cpus there, but no idea if the license will support two processors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-7017351747831463642?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/7017351747831463642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=7017351747831463642' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7017351747831463642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7017351747831463642'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/test-going.html' title='Test going'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-665772948634140399</id><published>2007-07-28T09:52:00.000-04:00</published><updated>2007-07-28T10:41:40.500-04:00</updated><title type='text'>Virtual Machine</title><content type='html'>Today, coma across a special programming language: Erlang which is designed for OS design. It is open source and developed by Ericssion :). Sometime, I need to study its syntax and its compiler grammar to see how it works :p. More detail please see:&lt;br /&gt;&lt;a href="http://www.erlang.org/white_paper.html"&gt;http://www.erlang.org/white_paper.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Virtual Machines's roles in Computer Science:&lt;br /&gt;versatile platforms of systems and processes.&lt;br /&gt;Hardware: hard, inflexible.&lt;br /&gt;VM wraps a layer of software around this hardware, and suddently computers become flexibile, malleable, and start doing new tricks:&lt;br /&gt;running multiple operating systems, //compatiable different implementation and approaches&lt;br /&gt;executing serveral instruction sets, //compatiable different sets of instructions&lt;br /&gt;allowing running programs to switch machines, // multiple machines serving at the same time&lt;br /&gt;or even rejecting unsafe code, //checking layer, provide more security at a lower layer.&lt;br /&gt;&lt;br /&gt;Virtual machines are changing the way in which computer architects, operating system designers, prgramming language implementers, and security experts think about computers and computing.&lt;br /&gt;&lt;br /&gt;A computer to imitate another computer, imitate multiple comupters&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-665772948634140399?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/665772948634140399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=665772948634140399' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/665772948634140399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/665772948634140399'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/virtual-machine.html' title='Virtual Machine'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3149353380275942917</id><published>2007-07-26T17:15:00.000-04:00</published><updated>2007-07-26T17:23:39.543-04:00</updated><title type='text'>Time taken more than you expect.</title><content type='html'>Like software development, writing is also taking more time than you planed or thought it should be. It always takes double time than you think they would. And there are also maybe new ideas, modifications and patches coming up beyond your expectation.&lt;br /&gt;&lt;br /&gt;So start as early as possible, get it done as early as possible at one strike first. Then leave the rest time to improve it and release brandy new versions.&lt;br /&gt;&lt;br /&gt;Now the Thesis only gets a skeleton there. It needs Flesh and Blood. Todd has reminded me that i should get the draft done today, every minute, every hour working on it. But I am still thinking about the expression.&lt;br /&gt;&lt;br /&gt;Now: each guest is running 20 sessions there, got 20 degradation on the good, and 5% degradation on the tolerance. How to optimize the webserver is a big issue there. The second iteration is still exceeds 1.5% for Request Distribution Errors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3149353380275942917?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3149353380275942917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3149353380275942917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3149353380275942917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3149353380275942917'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/time-taken-more-than-you-expect.html' title='Time taken more than you expect.'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3339333554299299046</id><published>2007-07-25T21:23:00.001-04:00</published><updated>2007-07-25T21:23:59.793-04:00</updated><title type='text'>Performance Isolation</title><content type='html'>Virtualization is trying to use software to implement a machine function.&lt;br /&gt;Performance isolation is trying to evaluate how much close this software machine function as the hardware machine.&lt;br /&gt;&lt;br /&gt;Urgent Call: Thesis draft is TOP priority NOW!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3339333554299299046?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3339333554299299046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3339333554299299046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3339333554299299046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3339333554299299046'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/performance-isolation.html' title='Performance Isolation'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-7001792204677221218</id><published>2007-07-25T03:16:00.000-04:00</published><updated>2007-07-25T03:35:04.403-04:00</updated><title type='text'>Current status</title><content type='html'>Thesis not started yet at all.&lt;br /&gt;&lt;br /&gt;Finish the security books, get the idea that staying open is better than securing it. Because no matter what kind of security means, it will always be conquerable. But being aware and tracable will be a human's game.&lt;br /&gt;&lt;br /&gt;Got stuck in ESX, the possible valid run is 20 sessions for one guest. But the degradation is really low, around 95%. Disabled all the services in FC, but still nothing changed.&lt;br /&gt;&lt;br /&gt;Need working hard now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-7001792204677221218?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/7001792204677221218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=7001792204677221218' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7001792204677221218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7001792204677221218'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/current-status.html' title='Current status'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-2481737537010803595</id><published>2007-07-20T13:46:00.001-04:00</published><updated>2007-07-20T13:57:46.373-04:00</updated><title type='text'>Innovation: Battery and Wireless</title><content type='html'>What's the annoyance for wireless electronic device? Battery!&lt;br /&gt;Wireless keyboard or blutetooth mouse all needs to have battery althought no bothering by the wire any more. But battery may go die quickly. To bring with an extra battery is kinda annoy and inconvenience.&lt;br /&gt;Think about currently it is so popular for mp3 player and bluetooth earphone to use USB for charging and data transfer.&lt;br /&gt;So why can not wireless keyboard or mouse? Since usb keyboard and mouse is also popular. So use USB to charge and also send the key signals to Computer is one-stone-two-birds success. But I prefer bluetooth keyboard/mouse since wireless keyboard may introduce another connector at the box side.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-2481737537010803595?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/2481737537010803595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=2481737537010803595' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2481737537010803595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2481737537010803595'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/innovation-battery-and-wireless.html' title='Innovation: Battery and Wireless'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8441494802587762217</id><published>2007-07-13T23:57:00.000-04:00</published><updated>2007-07-14T00:54:27.093-04:00</updated><title type='text'>Done, Just time</title><content type='html'>The first SPECweb test has been done on one ESX virtual machine. Only QoS does not meet the requirement with 20 sessions but on Solaris Container within TC it is qualified. So it comes with the next problem: how to optimize Apache and the webserver to provide the best performance.&lt;br /&gt;&lt;br /&gt;What have been learned from Research on Performance Isolation Propterties on Virtualization System&lt;br /&gt;This is an initial approach towards the study of performance isolation properties.&lt;br /&gt;We've touched base with many current popular virtualization systems---how to set up and how to configure.&lt;br /&gt;We obtained the popular industry web server benchmark---SPECweb&lt;br /&gt;&lt;br /&gt;More than that:&lt;br /&gt;Proficient in setting up Linux, actually fedora. The Linux installation, the network setup, the webserver setup.&lt;br /&gt;Familiar with Apache operations and configurations, especially apache configuration. The module combined, the access controlled, the syntax pattern.&lt;br /&gt;Manual fast_cgi. How to patch and how to add it as a new module&lt;br /&gt;&lt;br /&gt;A lot to dig in:&lt;br /&gt;Apache access control, multiple web directory&lt;br /&gt;SElinux configuration and control&lt;br /&gt;Fast_cgi working mechanism, how to execute script in web server&lt;br /&gt;Optimize web serivce and minimize Linux Kernel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8441494802587762217?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8441494802587762217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8441494802587762217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8441494802587762217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8441494802587762217'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/done-just-time.html' title='Done, Just time'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5045539321712017778</id><published>2007-07-13T21:31:00.000-04:00</published><updated>2007-07-14T01:31:50.243-04:00</updated><title type='text'>stupid mistakes</title><content type='html'>1. No need change to root ownership&lt;br /&gt;2. No need change ScriptAlias cgi-bin to Alias cgi-bin&lt;br /&gt;3. No need change php.conf&lt;br /&gt;&lt;br /&gt;Just need to change /var/www/html to /var/www in two places of httpd.conf, then put support and Smarty in /var/www, then it is done.&lt;br /&gt;&lt;br /&gt;SPECweb that needs to change:&lt;br /&gt;Test.config&lt;br /&gt;1. Connections&lt;br /&gt;SIMULANEOUS SESSION =100&lt;br /&gt;2. Type&lt;br /&gt;TEST_TYPE=SPECweb_Support&lt;br /&gt;3. Webserver IP&lt;br /&gt;WEB_SERVER = xxx.xxx.xxx.135&lt;br /&gt;4. Smarty Directory&lt;br /&gt;SMARTY_DIR="/var/www/Smarty-2.6.7/libs"&lt;br /&gt;SMARTY_SUPPORT_DIR="/var/www/support/"&lt;br /&gt;&lt;br /&gt;SPECweb_Support.config&lt;br /&gt;1. padding directory&lt;br /&gt;PADDING_DIR="/var/www/support/dynamic_padding/"&lt;br /&gt;Comments: if missing to change it, then&lt;br /&gt;in /etc/httpd/logs/error_logs:&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;File does not exist: /var/www/favicon&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;attemp to invoke directory as script: /var/www/cgi-bin&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;Directory index forbidden by Options directive: /var/www/error&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;on the SPECweb:&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;[Error] State 0: Expected 51700 bytes appened to response but found 0&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;[Error] State 0: RESPONSE INVALID on GET /support/index.php HTTP/1.1&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;if the simultaneous session value is less than the dataset can support&lt;br /&gt;it will display:&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;HTTPRequestSched: [ERROR] Bad response (-1). Request was GET /support/downloads/dir0000000019/download5_0 HTTP/1.1&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;SPECweb_Support: [ERROR] STATE 6; makeHttpRequest() failed.&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;Connection: [ERROR] Bad status: 404&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;Connection: bad status ====buf_len=500 headerEnd=179 contentLen=321 chunkEnd-1===&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;Connection: HTTP/1.1 404 Not Found&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;if /var/www's access priviledges were not changed, the SPECweb error will be&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;Error: Could no twrite to init_vars.php&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;HttpRequestSched: [ERROR] Repair reset code for conforming run of set COND_GET_REQ_PERCENT to 0 for non-conforming run. Run halted.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;SPECweb_Support: [ERROR] Error! setServerDate() failed.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;RemoteLoadGen: [ERROR] Unable to successfully initialize workload variables. Termininating&lt;/em&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5045539321712017778?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5045539321712017778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5045539321712017778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5045539321712017778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5045539321712017778'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/stupid-mistakes.html' title='stupid mistakes'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5064793184899117252</id><published>2007-07-13T17:02:00.000-04:00</published><updated>2007-07-13T17:59:41.513-04:00</updated><title type='text'>Finally got it work, ESX to go</title><content type='html'>Apache2.2.3 + Php5.1.6 + cgi &lt;span style="font-size:180%;"&gt;problem&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Symptom:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;As corrected before, directory listing works. But it doesn't work for cgi-bin.&lt;br /&gt;SPECweb complains:&lt;br /&gt;attemp to invoke directory as script: /var/www/cgi-bin/&lt;br /&gt;On the browser, it complains:&lt;br /&gt;403 Forbidden&lt;br /&gt;You don't have permission to access /cgi-bin/ on this server&lt;br /&gt;But actually it has the full permission 777 and it has the apache:apache ownership&lt;br /&gt;(it sounds like specweb cannot write script in cgi-bin direcotry)&lt;br /&gt;To make php work properly in Apache&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;1. in php.conf&lt;br /&gt;add &lt;br /&gt;AddType application/x-httpd-php  .php&lt;br /&gt;comment out&lt;br /&gt;AddType application/x-httpd-php-source  .phps&lt;br /&gt;&lt;br /&gt;2.To make cgi work properly in Apache&lt;br /&gt;change&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Script&lt;/em&gt;&lt;/strong&gt;Alias /cgi-bin/ "/var/www/cgi-bin"&lt;br /&gt;Directory "/var/www/cgi-bin"&lt;br /&gt;    AllowOverride None&lt;br /&gt;    Options None&lt;br /&gt;    Order allow, deny &lt;br /&gt;    Allow from all&lt;br /&gt;/Directory&lt;br /&gt;to&lt;br /&gt;Alias /cgi-bin/ "/var/www/cgi-bin"&lt;br /&gt;Directory "/var/www/cgi-bin"&lt;br /&gt;    AllowOverride None&lt;br /&gt;    Options &lt;em&gt;&lt;strong&gt;ExecCGI Indexes&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;    Order allow, deny  //no space between&lt;em&gt; allow&lt;/em&gt; and &lt;em&gt;deny&lt;/em&gt;&lt;br /&gt;    AddHandler cgi-script cgi pl   // if  in the cgi-bin/ is perl scripts , if python, then add &lt;em&gt;py &lt;/em&gt;&lt;br /&gt;Directory&lt;br /&gt;&lt;br /&gt;3. SElinux conflicts with apache&lt;br /&gt;Sometimes SElinux also brings trouble without ideas. So disable SElinux and reboot is more safe and saves your trouble&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;Also two helpful commands:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;1)ls -aZ&lt;br /&gt;to display the SElinux security configuration&lt;br /&gt;--- system_u:object_r:httpd_sys_script_exec_t:s0&lt;br /&gt;--- system_u:object_r:httpd_sys_content_t:s0&lt;br /&gt;use chcron to change it&lt;br /&gt;&lt;br /&gt;2) /sbin/service httpd configtest&lt;br /&gt;Syntax OK&lt;br /&gt;to validate the http.conf syntax error&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now testing with 20 sessions in 131.......&lt;br /&gt;---------------------------------&lt;br /&gt;Here is how to make fastcgi working in Apache2.2.3 (When I am  free, I will translate it in English)&lt;br /&gt;&lt;a href="http://hi.baidu.com/coffeefoam/blog/item/1446493be749f3e814cecbb8.html"&gt;http://hi.baidu.com/coffeefoam/blog/item/1446493be749f3e814cecbb8.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5064793184899117252?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5064793184899117252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5064793184899117252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5064793184899117252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5064793184899117252'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/finally-got-it-work-esx-to-go.html' title='Finally got it work, ESX to go'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5677460124903739655</id><published>2007-07-11T09:47:00.001-04:00</published><updated>2007-07-11T21:05:37.719-04:00</updated><title type='text'>On the road, ESX</title><content type='html'>1. Create dataset&lt;br /&gt;&lt;span style="FONT-STYLE: italic"&gt;support_downloads_props.rc&lt;/span&gt; is segmented in two parts: section A and section B (B is for specweb running, recommended not to change)&lt;br /&gt;in A&lt;br /&gt;SIMULTANEOUS_SESSIONS=40&lt;br /&gt;base directory number = basenumber + sessions* discaling = 0 + 40 *.25 = 10&lt;br /&gt;the rest are for configuring the directory not to exceed the system limitation&lt;br /&gt;&lt;br /&gt;support_image_props.rc only has section A:&lt;br /&gt;SIMULTANEOUS_SESSIONS=40&lt;br /&gt;&lt;br /&gt;#./Wafgen support_downloads_props.rc&lt;br /&gt;#./Wafgen support_image_props.rc&lt;br /&gt;DOCROOT is in /var/www, go to /var/www to pick up the dataset and add the scripts in it.&lt;br /&gt;&lt;br /&gt;setup-&gt;network configuration&lt;br /&gt;XXX.XXX.XXX.13X&lt;br /&gt;255.255.255.0&lt;br /&gt;XXX.XXX.XXX.1&lt;br /&gt;&lt;br /&gt;#/etc/init.d/network restart&lt;br /&gt;#service httpd restart&lt;br /&gt;&lt;br /&gt;documentroot "/var/www"&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;------------------------------------------------------&lt;br /&gt;Apache lame&lt;br /&gt;1.  404 Not found&lt;br /&gt;You cannot access / on this server&lt;br /&gt;But display index.php as normal&lt;br /&gt;&lt;br /&gt;forgot to change &lt;directory&gt;  to /var/www&lt;br /&gt;&lt;br /&gt;2. 403 Forbidden&lt;br /&gt;You do not have permission to access / on this server&lt;br /&gt;Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.&lt;br /&gt;In /etc/httpd/logs/error.log, &lt;em&gt;Directory index forbidden by options directive /var/www&lt;/em&gt;&lt;br /&gt;/var/www/Error has been moved out of the directory, so it should display the directory list, but nope.&lt;br /&gt;&lt;br /&gt;In apache2.2.3 besides httpd.conf configuration file for apache, it also has configuration files in conf.d/ .&lt;br /&gt;1) With error/ directory moved out, directory listing doesn't work.&lt;br /&gt;Go to php.conf,&lt;br /&gt;#Add index.php to the list of files that will be served as directory indexes&lt;br /&gt;   DirectoryIndex  index.php&lt;br /&gt;this should be commented out&lt;br /&gt;2) Browser the subdirectory of localhost/subdir , the directory can be displayed but localhost/ still doesn't work&lt;br /&gt;It keeps saying "&lt;em&gt;Directory index forbidden by options directive /var/www&lt;/em&gt;", checked allowoverride, options +Indexes,  problems can never be solved, but move error/ back to /var/www, it works. Page can be displayed.&lt;br /&gt;where does that page come from?&lt;br /&gt;check conf.d/ again, welcome.conf defines the welcome page.&lt;br /&gt;In it, saying "Options -Indexes". Catch it, which has override the /var/www options!&lt;br /&gt;&lt;br /&gt;Comments:&lt;br /&gt;Apache access rules definition is a good one. It has the options defining the access patter, it has allowoverride defining the access priority, it has Allow defining the access clients. Maybe it can be applied to security system if the access follows if owning theh access to one directory, then also heritages the subdirectory.&lt;br /&gt;It had worked fine in apache2.2. But apache2.3 gave me pains. In apache2.3, it has scattered many sub configurations around but no hints or instructions for the change. So each new version of Linux, it is a new system which you have to be familiar with again. Also sticking to the old ways may be a good solution, also when using the new style, knowing its working mechanism  and its style first before get into using it.&lt;br /&gt;&lt;br /&gt;&lt;directory&gt;&lt;/directory&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5677460124903739655?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5677460124903739655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5677460124903739655' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5677460124903739655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5677460124903739655'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/on-road-esx.html' title='On the road, ESX'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-4339333979792627636</id><published>2007-07-11T00:03:00.000-04:00</published><updated>2007-07-11T00:17:59.727-04:00</updated><title type='text'>Ready to Go, ESX</title><content type='html'>Done:&lt;br /&gt;1. uninstall &lt;em&gt;server configuration tool&lt;/em&gt;&lt;br /&gt;2. setup-&gt; disable &lt;em&gt;yum update&lt;/em&gt;  and enable &lt;em&gt;httpd&lt;/em&gt;&lt;br /&gt;    yum update must be disabled, if updating, gimp and gaim patches will break the update.&lt;br /&gt;3. change /etc/httpd/conf/httpd.conf  documentroot=&lt;em&gt;/var/www&lt;/em&gt;&lt;br /&gt;4. create &lt;em&gt;index.php&lt;/em&gt; to display php information in /var/www&lt;br /&gt;    php already installed, also apache 2.2.3&lt;br /&gt;Todo:&lt;br /&gt;1. Change IP to static ip&lt;br /&gt;2. Use wafgen to create support dataset with 40 sessions&lt;br /&gt;     sessions &gt; the session value in Test.config&lt;br /&gt;3. put the dataset in /var/www of each image&lt;br /&gt;4. change the ownership of directory /var/www and its sub dirs&lt;br /&gt;     chown -R apache:apache /var/www&lt;br /&gt;5. chagne the rights of files /var/www and its sub files&lt;br /&gt;    chmod -R 777 /var/www&lt;br /&gt;&lt;br /&gt;Undecided:&lt;br /&gt;1.  swap impact, current no swap&lt;br /&gt;2.  how much memory is approprieate, current 512, used to be 128 and almost stuck in it&lt;br /&gt;3.  maybe compiling issues&lt;br /&gt;&lt;br /&gt;All four images are running with memory 512M. php info displayed in nycrr host.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-4339333979792627636?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/4339333979792627636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=4339333979792627636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4339333979792627636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4339333979792627636'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/ready-to-go-esx.html' title='Ready to Go, ESX'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8724162843501551660</id><published>2007-07-10T21:57:00.000-04:00</published><updated>2007-07-11T01:03:05.490-04:00</updated><title type='text'>Cursed server configuration tool</title><content type='html'>&lt;a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/s1-apache-config-ui.html"&gt;http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/s1-apache-config-ui.html&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Caution&lt;/span&gt;&lt;/strong&gt;&lt;a class="indexterm" id="id2954093"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;Do not edit the /etc/httpd/conf/httpd.conf configuration file by hand if you wish to use this tool. The HTTP Configuration Tool generates this file after you save your changes and exit the program. If you want to add additional modules or configuration options that are not available in HTTP Configuration Tool, you cannot use this tool.&lt;br /&gt;&lt;/span&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;When changing Documentroot or Listen port, all goes wrong. It said&lt;br /&gt;404 Not Found&lt;br /&gt;The reuested URL / was not found on this server&lt;br /&gt;&lt;br /&gt;Then when using the server configuration tool GUI stuff&lt;br /&gt;change the virtual host web root there, it messed up http.conf, inserting a lot of empty lines at the beginning and at the end adding scattered grammars there without comments.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;uninstall server configuration tool.&lt;br /&gt;&lt;br /&gt;Comments:&lt;br /&gt;Linux configuration is based on configuration file---text parsing. Windows configuration is based on register table---table. Now Linux is trying to emulate windows GUI configuration tool but their underlying is still text, not format controllable. And configuration GUI actually is another interpretation of configuration grammar rule. Not necessary at all. Linux strength is at its developing power. It is compiler style.&lt;br /&gt;Either totally convert to XML or an uniform format to all applications or just stay where it originally is.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sample of simple index file&lt;br /&gt;&lt;br /&gt;index.html&lt;br /&gt;html Hello World! /html&lt;br /&gt;&lt;br /&gt;index. php&lt;br /&gt;?php phpinfo(); ?&lt;br /&gt;&lt;br /&gt;Good Reference: &lt;a href="http://www.google.com/codesearch"&gt;http://www.google.com/codesearch&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8724162843501551660?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8724162843501551660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8724162843501551660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8724162843501551660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8724162843501551660'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/cursed-server-configuration-tool.html' title='Cursed server configuration tool'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-1092953778341844087</id><published>2007-07-10T17:28:00.000-04:00</published><updated>2007-07-10T19:20:02.486-04:00</updated><title type='text'>Reasons for LFS</title><content type='html'>Disk volumn is not the criticle point any more. 500G only costs $100.&lt;br /&gt;&lt;br /&gt;The harddriver has developed from ATA to SATA, whose speed is now competitive to the server level data access SCSI.&lt;br /&gt;&lt;br /&gt;Now problems come as how to well manage large data, how to well index the data and fast search the data, how to support large number of directories and large size of files. All circle around file management.&lt;br /&gt;&lt;br /&gt;LFS is targeting at roll back, backup and recovery, involving maintaining multiple copies of edited version. So how to most efficiently save the space and quickly access the right spot is a good topic.&lt;br /&gt;&lt;br /&gt;Also IBM proposed a paper on maintaining multiple versions of updated applications, trying to solve version dependency which is also a good hint to be adopted into LFS on the application's layout. Besides that, CVS may be a good example of maintaining multiple version. Its implementation details are good to know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-1092953778341844087?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/1092953778341844087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=1092953778341844087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/1092953778341844087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/1092953778341844087'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/reasons-for-lfs.html' title='Reasons for LFS'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-4498157639995712038</id><published>2007-07-10T15:26:00.001-04:00</published><updated>2007-07-10T23:06:23.186-04:00</updated><title type='text'>Apache2.2.3 stuck</title><content type='html'>Changing server port number leads to startup Failed. only &lt;span style="font-size:85%;"&gt;&lt;span style="FONT-STYLE: italic"&gt;80&lt;/span&gt;&lt;/span&gt; works&lt;br /&gt;Changing documentroot leads to 404 Not Found&lt;br /&gt;&lt;span style="FONT-STYLE: italic;font-size:85%;" &gt;The requested URL / was not found on this server&lt;br /&gt;&lt;/span&gt;file:///var/www/index.html works&lt;span style="FONT-STYLE: italic;font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;#httpd -t //run configuration syntax test&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="FONT-STYLE: italic"&gt;Syntax OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;#service httpd start  restart  stop&lt;br /&gt;#htmlview index.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-4498157639995712038?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/4498157639995712038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=4498157639995712038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4498157639995712038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/4498157639995712038'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/apache223-stuck.html' title='Apache2.2.3 stuck'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-5606618596275818728</id><published>2007-07-10T13:43:00.000-04:00</published><updated>2007-07-10T15:26:46.884-04:00</updated><title type='text'>Kernel, OS</title><content type='html'>In Data Network equipment market, CISCO is the giant, who is the first one getting into the market and who owns the biggest share in this market. Huawei is catching him up. But the latest prediction in Wallstreet said that CISCO is still unbeatable in OS and router.&lt;br /&gt;So come back to the old topic, OS is the Core value of Information Era.&lt;br /&gt;It is the most complicating project, similiar to compiler.&lt;br /&gt;It is the most basic layer for all applications, no matter desktop, server, or router.&lt;br /&gt;It is the most key element in performance providing.&lt;br /&gt;&lt;br /&gt;OS involves Scheduler, File system, and communication. Scheduler determines computing, FS determines storage, and communicaiton determines exchanging. It almost covers all the aspects of information technologies. It has diversial patterns due to how much computing power you have and how much data you will handle. So it is a really amazing kaleidoscope.&lt;br /&gt;&lt;br /&gt;Think about Google: why is so great? Because it is neat philosophy: simpilicity, friendly, convenience. Google is always designed in the way that tries to get rid of annoyance as much as possible, make your operations shortcut and simple straight.&lt;br /&gt;But on the other hand, that's actually not all. It is excellent more based on its quick response. But how can it make so quick response instead of waiting and waiting in dead cycle? It is great power of computing. Where does their great computing power come from? personal desktops. How do they make personal desktops provide so great power? The OS with efficient algorithm manages the distributed PCs.&lt;br /&gt;&lt;br /&gt;So for google, its core value is still OS and their GFS that are so delicated to be efficient.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-5606618596275818728?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/5606618596275818728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=5606618596275818728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5606618596275818728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/5606618596275818728'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/kernel-os.html' title='Kernel, OS'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3269735002387599311</id><published>2007-07-10T11:09:00.000-04:00</published><updated>2007-07-10T13:43:44.507-04:00</updated><title type='text'>Image Package</title><content type='html'>The specweb turns out to be a valid run with 20 sessions running and 2 10-session specwebs running in the other two container. But there is some degradation of good performance&lt;br /&gt;Good  Tolerant  Fail&lt;br /&gt;99.7%  100%     0%&lt;br /&gt;99.6%  99.9%    0.1%&lt;br /&gt;99.7%  100%     0%&lt;br /&gt;&lt;br /&gt;The second image is done.&lt;br /&gt;Image Package:&lt;br /&gt;no Games and Entertainment&lt;br /&gt;no Graphics&lt;br /&gt;no Office/Productivity&lt;br /&gt;no GNOME Software Development&lt;br /&gt;but Server Configuration Tools&lt;br /&gt;no Dial-up Networking Support&lt;br /&gt;But System Tools&lt;br /&gt;&lt;br /&gt;Firewall:&lt;br /&gt;ssh, http&lt;br /&gt;SElinux: enforcing&lt;br /&gt;&lt;br /&gt;The third and fourth are also done. A test image is on-going as a sample to make SPECweb working in it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3269735002387599311?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3269735002387599311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3269735002387599311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3269735002387599311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3269735002387599311'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/image-package.html' title='Image Package'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-6919220580243075862</id><published>2007-07-09T22:19:00.000-04:00</published><updated>2007-07-10T00:06:13.679-04:00</updated><title type='text'>SPECweb reply</title><content type='html'>The invalid run in our system is due to too low of a request rate instead of overloading the server.&lt;br /&gt;Official proposed solution: increasing the simultaneous sessions until QoS or Vadlidation Error. Then try to solve the QoS or Validation error instead of Request Distribution Error.&lt;br /&gt;&lt;br /&gt;Create the dataset of 20 simultaneous sessions with wafgen, and put it in 119 solaris container.&lt;br /&gt;After 119 has finished 1 iteration with 20 sessions, start another 2 with 10 sessions&lt;br /&gt;It reports&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Sum of weighted percentage difference (1.82%) exceeds 1.5% for Iteration 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;So it is almost there.&lt;br /&gt;----------------------------------------------------&lt;br /&gt;One thing to mention: for the valid submission, it should have support, commerce and bank three results ready. And also raw files should be backup as reference.&lt;br /&gt;&lt;br /&gt;The first ESX image is going with temorary memory 512M without swap. ESX_1 baby is born, but php not ready yet, static ip is not ready yet. DHCP ip is a temperary solution. httpd is OK.&lt;br /&gt;The second one is sharing the same CDROM with the first one. Disconnect the first one from CDROM.&lt;br /&gt;CDROM is ejected, so the second one cannot find operating system to boot up&lt;br /&gt;Now the second is on the way... ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-6919220580243075862?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/6919220580243075862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=6919220580243075862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/6919220580243075862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/6919220580243075862'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/specweb-reply.html' title='SPECweb reply'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-7895528997552036202</id><published>2007-07-09T14:17:00.000-04:00</published><updated>2007-07-09T15:47:10.753-04:00</updated><title type='text'>ESX License issue</title><content type='html'>insufficient license:&lt;br /&gt;Host-Based License: the license files are stored on individual ESSX server hosts&lt;br /&gt;Server-Based License: licenses are stored on a license server, available to multiple hosts.&lt;br /&gt;Host-Based License is enough, per-machine basis, placed on the individual ESX Server hosts&lt;br /&gt;&lt;br /&gt;issues:&lt;br /&gt;Go to Inventory -&gt; localhost.localdomain -&gt;Configuration -&gt; License Features&lt;br /&gt;License resource (Edit on the right)&lt;br /&gt;Edit -&gt; Use Host License File -&gt; Upload local file&lt;br /&gt;change VI_SingleHost.Lic to vmware.lic&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Host License File: Installed&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;ESX Server License (Edit on the right)&lt;br /&gt;Edit -&gt; radio button ESX Server Standard (ESX Server Starter grey)&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;ESX Server Standard  Licensed for 1 CPU&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SAN Usage&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Up to 4-way virtual SMP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;NAS Usage&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;ONLY 1 CPU License, how can it be 2 CPU Licensed? Will it be any impact there?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;Image Creation&lt;br /&gt;Partition:&lt;br /&gt;no swap  (should study the impact on no swap, do you need to?)&lt;br /&gt;IP range:&lt;br /&gt;128.153.145.131~134&lt;br /&gt;MAC:&lt;br /&gt;00 0C 29 AA F1 07&lt;br /&gt;Next step: populate the rest three images, ESX_2, 3, 4 and install apache and php in it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-7895528997552036202?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/7895528997552036202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=7895528997552036202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7895528997552036202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7895528997552036202'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/esx-license-issue.html' title='ESX License issue'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-3872407396396444133</id><published>2007-07-09T11:49:00.000-04:00</published><updated>2007-07-09T12:35:18.470-04:00</updated><title type='text'>Invalid Run</title><content type='html'>Run only one client with 5 sessions in Solaris:&lt;br /&gt;Aggregate QoS Compliance are all 100% good, no QoS Errors, no Validation Errors.&lt;br /&gt;But request distribution errors are high:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Weighted percentage difference (-1.50%) for search in Iteration 1 is too high. Expected: 109 requests, Actual: 122 &lt;/li&gt;&lt;li&gt;Weighted percentage difference (-2.46%) for search in Iteration 2 is too high. Expected: 106 requests, Actual: 127 &lt;/li&gt;&lt;li&gt;Weighted percentage difference (-3.47%) for product in Iteration 2 is too high. Expected: 208 requests, Actual: 238 &lt;/li&gt;&lt;li&gt;Weighted percentage difference (-2.28%) for fileCatalog in Iteration 2 is too high. Expected: 189 requests, Actual: 209 &lt;/li&gt;&lt;li&gt;Sum of weighted percentage difference (-9.18%) exceeds 1.5% for Iteration 2&lt;/li&gt;&lt;li&gt;Weighted percentage difference (-1.39%) for search in Iteration 3 is too high. Expected: 109 requests, Actual: 122 &lt;/li&gt;&lt;/ul&gt;Running specwebclient with option -lo to record the reports and errors. An email has been sent to specweb  attached with the standout.  Waiting for reply.&lt;br /&gt;---------------------------------------------------------------------------------------&lt;br /&gt;VMware License&lt;br /&gt;Failed twice last night. Using lib's gmail got one. It has been forwarded to my gmail. Time to register and create four images, unsure of what new problems may come up. Maybe only support one host. Time to prove.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-3872407396396444133?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/3872407396396444133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=3872407396396444133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3872407396396444133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/3872407396396444133'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/invalid-run.html' title='Invalid Run'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-2240212984634823449</id><published>2007-07-08T19:34:00.000-04:00</published><updated>2007-07-09T22:08:56.188-04:00</updated><title type='text'>Image installation</title><content type='html'>Sunday, from 7PM to 12PM, there are 5 hours to go&lt;br /&gt;Launch VMware ESX&lt;br /&gt;IBM eServer BladeCenter LS20&lt;br /&gt;2CPU X 1.993 GHz&lt;br /&gt;Dual Core AMD Opteron(tm) Processor 270&lt;br /&gt;Memory: 441M used/ 4G total&lt;br /&gt;Storage: 60.14G free/60.75G capacity&lt;br /&gt;Active Adapters: vmnic0 1000full  128.153.144.192~195&lt;br /&gt;SCSI adapter: 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI&lt;br /&gt;&lt;br /&gt;Add License:&lt;br /&gt;Inventory  --&gt; Configuration tab&gt; License Source &lt;span style="font-weight: bold;"&gt;Edit  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;waiting for new license&lt;br /&gt;----------------------------------------------------------------------------------------------------&lt;br /&gt;SPECweb working review:&lt;br /&gt;put Directory "support" and "Smarty" into the directory var/www&lt;br /&gt;change the Documentroot option in /etc/httpd/conf/httpd.conf&lt;br /&gt;previliges:&lt;br /&gt;chmod -R 777 www/&lt;br /&gt;ownership:&lt;br /&gt;chown -R apache:apache www/&lt;br /&gt;&lt;br /&gt;Resutls backup:&lt;br /&gt;111, 114, 115, 116 are four clients to test OpenVZ&lt;br /&gt;116 is the last client where the bombs run in it.&lt;br /&gt;the results should be tarballed so that the date can be kept as original, or it will be updated as the date when copying.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-2240212984634823449?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/2240212984634823449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=2240212984634823449' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2240212984634823449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2240212984634823449'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/image-installation.html' title='Image installation'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-7174924044680079457</id><published>2007-07-07T23:00:00.002-04:00</published><updated>2007-07-07T23:59:05.247-04:00</updated><title type='text'>ESX on blade14</title><content type='html'>It is a temporary solution due to scsi no working yet on TC.&lt;br /&gt;Following VMware folks proposal, tests will run on VMware ESX. As a comparision, also  Xen Express. They are all enterprise  level virtualization system.&lt;br /&gt;Blade 14:&lt;br /&gt;used to be Ubuntu bladexen and erased.&lt;br /&gt;AMD Opton Dual Core 2.0G&lt;br /&gt;Memeory 4096MB&lt;br /&gt;&lt;br /&gt;ESX Server 3.0.1&lt;br /&gt;Version Date:&lt;br /&gt;5/31/07&lt;br /&gt;Harddisk:&lt;br /&gt;SCSI DISK sda IBM-ESXS ST973401LC FN 70002MB&lt;br /&gt;NIC:&lt;br /&gt;X 2:1:0 tg3 NetXtreme BCM5704S Gigabyte&lt;br /&gt;_ 3:1:0&lt;br /&gt; _ 2:1:1&lt;br /&gt; _ 3:1:1&lt;br /&gt;DHCP:&lt;br /&gt;128.153.144.119&lt;br /&gt;Default set up virtual network&lt;br /&gt;&lt;br /&gt;Todo tomorrow:&lt;br /&gt;Create Virtual Image&lt;br /&gt;License&lt;br /&gt;SPECweb running&lt;br /&gt;&lt;br /&gt;SPECweb news:&lt;br /&gt;Tune the simultaneous session value from 1 to 10, but never get valid run&lt;br /&gt;Use the specwebclient option -lo&lt;br /&gt;#java specwebclient -lo&lt;br /&gt;output will write to "specwebclient1099.out", no direct clue yet. An email inquiries on "invalid run" should be sent to the specweb support.&lt;br /&gt;&lt;br /&gt;The inconsistency is that the dataset produced by wafgen is 10 sessions, but the specweb is using 5 sessions.&lt;br /&gt;When having tuned to 10 sessions for specweb to run, there were 40 sessions running on the TC,  there were 1% degradation for good, 1% for tolerance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-7174924044680079457?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/7174924044680079457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=7174924044680079457' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7174924044680079457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/7174924044680079457'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/esx-on-blade14.html' title='ESX on blade14'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-8343823347783432845</id><published>2007-07-06T20:18:00.000-04:00</published><updated>2007-07-06T20:40:10.211-04:00</updated><title type='text'>Thoughts from MAC</title><content type='html'>Put each application in a conexecutive and complete block of space, each update or change is put in the log. When cleaning, it is time to integrate them all. In that way, the file modified or changed, may lay in different place which may introduce overhead, it also keep the application versions.&lt;br /&gt;&lt;br /&gt;Pros:  version control, integration, independent packages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-8343823347783432845?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/8343823347783432845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=8343823347783432845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8343823347783432845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/8343823347783432845'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/thoughts-from-mac.html' title='Thoughts from MAC'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8959634488348801288.post-2803854056937307229</id><published>2007-07-06T18:16:00.000-04:00</published><updated>2007-07-06T20:00:38.449-04:00</updated><title type='text'>LOG Opening</title><content type='html'>This blog is opened due to graduate study in USA. Science is a serious and interesting wanderland.&lt;br /&gt;This blog is mainly logging the ideas coming up and the steps taking for the experiements.&lt;br /&gt;Here it will record the failure and success, the frustration and cheers, the basic and classic. But on the road to the top of Computing and Internet, we need a calm and persistent heart to hear the nature of CS, a delligent and delicated hand to practice every possibility of IT.&lt;br /&gt;To keep the mind of deeping into the research, I would like to quote the words from Noble Prize winner Luise Alvarez&lt;br /&gt;"Why don't you look at this this as research. When you're doing real research, you never know what it'll cost, how much time it'll take, or what you'll find. You just know theres unexplored territory and a chnace to discover what's out there. ... ...You're following a fascinating scent. You're an explorer. Think of 'what' might be behind it. ... ...Well then, forget who's causing the problems, Don't try to be a cop, be a scientist; Research the connections, the techniques, the holes. Apply physical principles. Find new methods to solve problem. Compile statistics, publish your results, and only trust what you can prove. But don't exclude improbable solutions---keep your mind open. .. ... Dead ends are illusory. When did you ever let a 'Do Not Enter' sign keep you away from anything? Go around the brick walls. When you can;t go around, climb over or dig under. Just don't give up. ... ...Nobody will pay for research; hey're only interested in results... ... Don't wait for someone else, do it yourself. Keep your boss happy, but don't let him tie you down. "  &lt;br /&gt;So,&lt;br /&gt;It is the logbook of how I pursue for the degree&lt;br /&gt;It is the diary of what I am doing everyday in academic&lt;br /&gt;It is the report of weekday research work&lt;br /&gt;It is the try of learning something new&lt;br /&gt;It is the note of repeating something old&lt;br /&gt;It is the blueprint of the random thoughts, ideas, and talks&lt;br /&gt;It is the bookmark of the proposals, presentations, paper, and thesis.&lt;br /&gt;&lt;br /&gt;It is a LOGBOOK in Internet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8959634488348801288-2803854056937307229?l=deepenintocs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://deepenintocs.blogspot.com/feeds/2803854056937307229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8959634488348801288&amp;postID=2803854056937307229' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2803854056937307229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8959634488348801288/posts/default/2803854056937307229'/><link rel='alternate' type='text/html' href='http://deepenintocs.blogspot.com/2007/07/log-opening.html' title='LOG Opening'/><author><name>Kingdom of Freedom</name><uri>http://www.blogger.com/profile/16518702274605599783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://lh5.google.com/wenjin.hu/RPMlu0E2ABI/AAAAAAAAAAM/gt5ksrWMT-A/DSC_0594.JPG?imgmax=640'/></author><thr:total>0</thr:total></entry></feed>
