<?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:blogger='http://schemas.google.com/blogger/2008' 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-6763685</id><updated>2025-08-31T02:40:15.467-04:00</updated><category term="Linux"/><category term="Virtualization"/><category term="KVM"/><category term="LATEX"/><category term="Programming"/><category term="Vi"/><title type='text'>Virtual World</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6763685.post-2657143374724020677</id><published>2019-10-20T21:48:00.002-04:00</published><updated>2019-10-20T21:58:36.094-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Vi"/><title type='text'>Terminal or Vi hangs after pressing ctrl + s</title><summary type="text">People who used to editors with shortcut CTRL + s to save files may have developed a habit to hit CTRL + s reflexively.&amp;nbsp;



I do the same. So, when I was using Vi, I may also accidentally pressed CTRL + s, which paused my terminal. Don&#39;t worry. Everything is fine. Simply press CTRL + q and the terminal will resume.



Picture: Pumpkins in Minnesota Arboretum. Oct. 2017











</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/2657143374724020677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2019/10/terminal-or-vi-hangs-after-pressing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/2657143374724020677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/2657143374724020677'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2019/10/terminal-or-vi-hangs-after-pressing.html' title='Terminal or Vi hangs after pressing ctrl + s'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMz9cXZPDn-NeWhGz_IqBK5zN3ebbKa-PTC9TgwjrtWTzytJL3pmyCIzeK9iMeRE7UvgiJ-hZniPP1YR43lIaqRNObo6-PBs8BdFISgqgk2I9kiXd6FoUvhazCkjlyEnrAAl6WNg/s72-c/IMG_1066.HEIC" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-266959635253224405</id><published>2019-10-12T01:07:00.000-04:00</published><updated>2019-10-12T01:07:09.720-04:00</updated><title type='text'>x11 forwarding for Microsoft Windows and GitBash </title><summary type="text">1. Install Xming. Then, start the Xming X server.

2. Open GitBash.

3. Export display environment&amp;nbsp;on the bash command.         
                export DISPLAY=localhost:0
4. ssh to the target machine with x11 forwarding enabled    
               ssh -XY username@remote.host
5. Try your x11 forwarding by running an application with GUI, such as gedit.

Enjoy your X window.

Picture: Sunset </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/266959635253224405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2019/10/x11-forwarding-for-microsoft-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/266959635253224405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/266959635253224405'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2019/10/x11-forwarding-for-microsoft-windows.html' title='x11 forwarding for Microsoft Windows and GitBash '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiefVwE-vW7luU-CWN8H4Ip_SBiK9aTKV2GXvj2jJxx63OiP9DwvyjBKhKZcBmICkbazJB-HhUJFnEPHEBmxzX0De2lFECVW1oUBA-GTakqf3efdVE-Qu0Peb1tBxr8Aj-KwERQJw/s72-c/IMG_0530.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-1143465829879410762</id><published>2013-10-04T23:58:00.000-04:00</published><updated>2013-10-13T01:21:15.834-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="LATEX"/><title type='text'>LATEX ERROR: paragraph ended before \@citex was complete</title><summary type="text">
While I was compiling my paper with ACM sigplan template, I get a lot of error messages like this:

paragraph ended before \@citex was complete
I could only know there is something wrong in citations/references. But, I had no clue of how to fix it.

I firstly read the Author’s Guide to the ACM SIGPLAN Class (sigplanconf.cls). It states that SIGPLAN class wants the bibliography to be included in </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/1143465829879410762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/10/latex-error-paragraph-ended-before.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/1143465829879410762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/1143465829879410762'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/10/latex-error-paragraph-ended-before.html' title='LATEX ERROR: paragraph ended before \@citex was complete'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvvAHtlKu-0HkVuxNE5L2Be4i3Tep8aXhgTsm59cKcb5IyWzYlYGJV9LGkM7i9CaV4lz0PTGYV4CGV_ZRYqBfelpERrP-nWrVbtV7F0WsW469ssYMtt2J1TF7OT2LBp9GfW6E08A/s72-c/DSC02277.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-7158886271816427926</id><published>2013-10-03T18:04:00.001-04:00</published><updated>2013-10-13T01:21:25.135-04:00</updated><title type='text'>CloudSuite - Cassandra server - out of memory error</title><summary type="text">While I was trying to run YCSB with Cassandra on VM, which has 1 VCPU and 512 MB memory.
When I was using run_load.command&amp;nbsp;(from CloudSuite package) to populate the store, the Cassandra server keeps crashing and reporting

java.lang.OutOfMemoryError: Java heap space&amp;nbsp;
After trying different parameter combinations, I finally successfully populated the data store.
Let me describe how I </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/7158886271816427926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/10/cloudsuite-cassandra-server-out-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/7158886271816427926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/7158886271816427926'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/10/cloudsuite-cassandra-server-out-of.html' title='CloudSuite - Cassandra server - out of memory error'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTeS5snKalcliS6Hoo_nAKfkjxxLmaqYod9X07ktVc77ONvVUocxFr4oVpXb3dlwRy-TYuAhwTONvJfSc39Z6osHEHvFoT8NFFTQHLlDMW6L7t7XQmKtcpESAnBkwTrfkpLqotXA/s72-c/DSC02238.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-8629108899109859931</id><published>2013-10-02T17:56:00.000-04:00</published><updated>2013-10-13T01:21:38.313-04:00</updated><title type='text'>CloudSuite - Cloud9 compiling issues</title><summary type="text">

Environment: Linux 3.5 &amp;nbsp;Ubuntu 12.10

LLVM 2.9 &amp;nbsp;building error

Building Cloud9 in CloudSuite from EPFL&amp;nbsp;requires LLVM.

While compiling LLVM, I had this error

Intercept.cpp:69:67: error: lseek64 was not declared in this scope
&amp;nbsp;This can be solved by adding &amp;nbsp;#include&amp;nbsp;&amp;lt;&amp;nbsp;unistd.h &amp;gt;&amp;nbsp;into Intercept.cpp.

Referece:
http://bugs.debian.org/cgi-bin/</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/8629108899109859931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/10/llvm-29-compiling-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8629108899109859931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8629108899109859931'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/10/llvm-29-compiling-error.html' title='CloudSuite - Cloud9 compiling issues'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7IBcTi37wvV701qIWGYVN5MPx1zMH4VB0XkKWB3FWzM8LEVIJ41Ip1OYi4jnvwZ7904GbfWEtJtq2-3mDnUvGOfGNzCY7-PULyGdL9MgeeSq5SJ1awTJS69fIt-sDw6OrhyphenhyphenJrvw/s72-c/DSC02331.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-4731502049699325374</id><published>2013-09-25T16:55:00.000-04:00</published><updated>2013-10-13T01:21:54.870-04:00</updated><title type='text'>Error while loading shared libraries &quot;libiomp5.so&quot;</title><summary type="text">
OS: Ubuntu 13.04 (Linux kernel 3.8)&amp;nbsp;

Compiler: Intel Composer XE 2013 SP1&amp;nbsp;


I finally build the ARP benchmark from NU-MineBench.

When I try to run it, however, it shows

Error while loading shared libraries &quot;libiomp5.so&quot;
This is because an environment variable called LD_LIBRARY_PATH is not correctly configured.
This can be solved by typing

source /opt/intel/bin/compilervars.sh </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/4731502049699325374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/09/error-while-loading-shared-libraries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/4731502049699325374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/4731502049699325374'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/09/error-while-loading-shared-libraries.html' title='Error while loading shared libraries &quot;libiomp5.so&quot;'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhllDsrmd8fmim-O2Pxjz6zsBiEshHn5dkewGewDQNrmSaMInP9BeVLWOPVCZhyphenhyphenxWpDvYCRyNP7DvyLjf5o2ipu7Ny13jw8oPxOdO6A3J1VFuajBE8JqaYQFLEkt1QuCoIYcIFc7Q/s72-c/DSC01927.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-6101776854635632751</id><published>2013-08-23T10:01:00.002-04:00</published><updated>2013-10-13T01:22:14.391-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Compiling problem: XXX.c:##:##: fatal error: XXX/XXX/XXX.h: No such file or directory</title><summary type="text">

When you download a source package and try to build the program from the source code, chances are that the README file can not list all prerequisite for you. As a result, for example, you will see something like this:


glut_input.c:22:35: fatal error: X11/extensions/XInput.h: No such file or directory

On a Ubuntu/Debian system, you can use apt-file to solve this problem. For example, you can </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/6101776854635632751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/08/compiling-problem-xxxc-fatal-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/6101776854635632751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/6101776854635632751'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/08/compiling-problem-xxxc-fatal-error.html' title='Compiling problem: XXX.c:##:##: fatal error: XXX/XXX/XXX.h: No such file or directory'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwX72ZYBDp7-J4BkNs26Z-96XxrlbCXwFXnmKLiEa7jKkb4d-b5Wn1x4GCkdc1X-6UK3F4AwMY5SitSEA5JTnmbq2td5FkOH6uZZtnEIoqGVA1l3qqcsnuTdtoQrsPcu_WY1AcFQ/s72-c/DSC00497.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-137094490769966864</id><published>2013-08-19T21:33:00.003-04:00</published><updated>2013-10-13T01:22:34.065-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>KVM: How to find a guest VM&#39;s process ID (PID)</title><summary type="text">There are two ways to find VCPUs&#39; PID.

Suppose the testing VM is named GUEST_X and it has 4 VCPUs.

Method A:&amp;nbsp;
If you are using libvirt to manage VMs.
You can type:


sudo grep pid /var/run/libvirt/qemu/GUEST_X.xml&amp;nbsp;

Then, you will see VCPUs&#39; PID like this:

&amp;lt;domstatus state=&#39;running&#39; reason=&#39;booted&#39; pid=&#39;6556&#39;&amp;nbsp;&amp;gt;&amp;lt;vcpu pid=&#39;6558&#39;/&amp;nbsp;&amp;gt;&amp;lt;vcpu pid=&#39;6559&#39;/&amp;nbsp;&amp;gt;&amp;lt</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/137094490769966864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/08/kvm-how-to-find-guest-vms-process-id-pid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/137094490769966864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/137094490769966864'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/08/kvm-how-to-find-guest-vms-process-id-pid.html' title='KVM: How to find a guest VM&#39;s process ID (PID)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkzLLWwgc5Jt98lEO8ciWTekEPF8xIsPd_jOV8TKXjEJwDcYsZESXKBWcQ-TCi5XRDVi0RzfPFN2Q1OGLtXq7ONInJM_lnfrYYc4PG_M0vf_a1Q9VNd1Ou1Ewv24CBPAn4MQWvbg/s72-c/DSC00206.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-5977010119731209933</id><published>2013-03-24T13:13:00.002-04:00</published><updated>2013-08-19T22:03:32.568-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>Error: Boot loader didn’t return any data</title><summary type="text">I have a Ubuntu 12.04 guest VM. Host machine is running Ubuntu 12.04 with Xen 4.1.

After installing a new kernel in guest VM and reboot. I got

Error: Boot loader didn’t return any data
After googling this, I found this pygrub seems have problems in parsing certain grub2 format.
I could not find any patches to fix this. Instead, I found some people workaround this problem by using grub, not </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/5977010119731209933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/03/error-boot-loader-didnt-return-any-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/5977010119731209933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/5977010119731209933'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/03/error-boot-loader-didnt-return-any-data.html' title='Error: Boot loader didn’t return any data'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-8895880246656357969</id><published>2013-03-11T13:21:00.002-04:00</published><updated>2013-10-13T01:23:31.133-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>Ubuntu12.04 libvirt virbr0 network bridge setup</title><summary type="text">Offical Ubuntu website&amp;nbsp;provides a very good and thorough&amp;nbsp;guide for installing Xen in Ubuntu.

But, I personally prefer libvirt for managing network bridges, not changing network configuration as stated in the official website. So, I install libvirt:

sudo apt-get install libvirt0
Then type

virsh net-list --all
It shows nothing!!? That is because on Ubuntu. You need to add user to </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/8895880246656357969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/03/ubuntu1204-libvirt-virbr0-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8895880246656357969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8895880246656357969'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/03/ubuntu1204-libvirt-virbr0-network.html' title='Ubuntu12.04 libvirt virbr0 network bridge setup'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsfHT6t-9BphGN9F8xje6WgXJMyifplsRTJVKRgi2HwLN1b-JCBMaI_m4CVjhErGLixDeRFroypVVoTavPdLivx2vTbALdVeOyJIuQ9GYkETryQEJstZMFJA2X1BJI-U7aoEY3mw/s72-c/20101230200058.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-5787451023520808168</id><published>2013-03-11T12:47:00.003-04:00</published><updated>2013-10-13T01:23:47.675-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>Use virt-install to create a Xen guest VM </title><summary type="text">Host environment: Ubuntu12.04+Xen4

I personally prefer virt-manager. But, virt-manager is not always available. So, This post demonstrates how to install a ubuntu 12.04 LTS using virt-install without graphical user interface.

sudo virt-install --name testVM --ram 512 --vcpus=1 --disk ~/testVM.img,size=8 --location http://archive.ubuntu.net/ubuntu/dists/precise/main/installer-amd64/

If you want</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/5787451023520808168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/03/use-virt-install-to-create-xen-guest-vm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/5787451023520808168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/5787451023520808168'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/03/use-virt-install-to-create-xen-guest-vm.html' title='Use virt-install to create a Xen guest VM '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLmjV6GcGOyEARfEtGB6o7CHinU14r3czyAeNzdrTuYfaQGqFa80SK78nst_Z_2KF0-N94_NjhkpW26EMtwpDWJmnQ89KLhgDTjxsTyEv9zfffV_9QnKiflKm55JbFDAPIPIxq6g/s72-c/20101008211258.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-3210265780253077779</id><published>2013-03-09T14:43:00.001-05:00</published><updated>2013-10-13T01:24:06.444-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>How to customize and build Ubuntu server 12.04 LTS kernel</title><summary type="text">1. Prepare building environment


sudo apt-get build-dep linux-image-$(uname -r)&amp;nbsp;
2. Install required packages

sudo apt-get install libncurses5-dev kernel-package fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge libelf-dev asciidoc binutils-dev

3. &amp;nbsp;Create a source directory and get kernel source

mkdir ~/ubuntu-kernel-srccd ~/ubuntu-kernel-srcapt-get source </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/3210265780253077779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/03/how-to-customize-and-build-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/3210265780253077779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/3210265780253077779'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/03/how-to-customize-and-build-ubuntu.html' title='How to customize and build Ubuntu server 12.04 LTS kernel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuWSxPJ0K9lDQOm2kxXZfpqd7iE7r_xM-mJMZQm1v4_YHEvw38RGjlt1W3dzYHQ2cR1kytCFyg-SaBxb22Jw-gw5vFRrRiv4TPOouZ0u6UBE24iPNwX2afj3WvkN0wg4noQS4GTA/s72-c/DSC02526.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-8636773981566232778</id><published>2013-03-02T14:03:00.000-05:00</published><updated>2013-08-19T22:03:32.575-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>How to create/remove a software RAID on Ubuntu</title><summary type="text">
Creat a software RAID
First, get mdadm

apt-get install mdadm
Then, assume that we are using sdd and sdf to create a RAID0 called md0

mdadm --create --verbose /dev/md0 --level=stripe --raid-devices=2 /dev/sdd /dev/sdf

Here is a good article for more detail options.

Then, you can partition, format, and mount /dev/md0 as you do to other disks.


Remove a software RAID
Step 1. Unmount the RAID.
</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/8636773981566232778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/03/how-to-createremove-software-raid-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8636773981566232778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8636773981566232778'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/03/how-to-createremove-software-raid-on.html' title='How to create/remove a software RAID on Ubuntu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgAcUCl6sX5qx3z9DtOFoSlqZa-0ffXteE9rTFfn74hHMZX_U_wVtHnL8nBnm1BX9-HXVeYJj5BH3CDV7XRI0j6B4wH_u-AexIKW-NONNwCLKdrrXUY5rZFQ0hXEaO0A6FlmIEJg/s72-c/IMG_0191.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-5760983018972943445</id><published>2013-02-23T23:14:00.001-05:00</published><updated>2013-08-19T22:03:32.565-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>virt-manager / virt-install: unable to connect to &#39;localhost:8000&#39;: Connection refused</title><summary type="text">This should be a bug on Ubuntu 12.10 + Xen 4 + virt-manager. This problem also exists on Ubuntu12.04 LTS + Xen 4 + virt-install

Solution/Workaround:

In &quot;/etc/xen/xend-config.sxp&quot;,


uncomment the following lines:
(xend-unix-server no)
(xend-unix-path /var/lib/xend/xend-socket)

Then, change
(xend-unix-server no)
to
(xend-unix-server yes)

Reboot.

Reference:
https://bugs.launchpad.net/ubuntu/+</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/5760983018972943445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/02/virt-manager-unable-to-connect-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/5760983018972943445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/5760983018972943445'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/02/virt-manager-unable-to-connect-to.html' title='virt-manager / virt-install: unable to connect to &#39;localhost:8000&#39;: Connection refused'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-122509761593276170</id><published>2013-02-23T20:35:00.002-05:00</published><updated>2013-10-13T01:24:48.015-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>get xen-syms from building source on ubuntu</title><summary type="text">Step 1.&amp;nbsp;
apt-get source xen-hypervisor-4.1-amd64

Step 2.&amp;nbsp;
cd xen-4.1.3

Step 3.&amp;nbsp;
make world
If you did not install any required packages. You may have a painful experience as I had.

Before looking into problems, here is the summary of required packages from experiencing problems below:

apt-get install libx11-dev uuid-dev bin86 bcc gcc-multilib&amp;nbsp;ipxe&amp;nbsp;iasl&amp;nbsp;libaio-dev</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/122509761593276170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/02/get-xen-syms-from-building-source-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/122509761593276170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/122509761593276170'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/02/get-xen-syms-from-building-source-on.html' title='get xen-syms from building source on ubuntu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhnomPGWHh7jxfF05dyGttXZvhXLqRtrodGnWamETZu9tBUn9XWSi-KJQH62cTdYCtWqBZcD7QQGRZKQHHKPxhyphenhyphen41t29BJfwMp7Z_mUDagCz-PJZt8BBqIrjooI1SzDTwc0hAlKQ/s72-c/20100918173801.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-8251811531348291203</id><published>2013-02-22T23:54:00.000-05:00</published><updated>2013-08-19T22:03:32.573-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>My experience on installing xenoprof</title><summary type="text">Both xenoprof and oprofile website provides clear installation guideline.

So, this post shares the problems I had in the installation and the solutions.



Oprofile version: 0.9.5 (remember to patch xenoprof before you go on)

Ubuntu 12.10 with Xen 4




First,&amp;nbsp;

&quot;./configure --with-kernel-support&quot; because kernels &amp;gt; 2.6 include oprofile

During configuration, I got two problems.

1.&amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/8251811531348291203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/02/install-xenoprof.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8251811531348291203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/8251811531348291203'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/02/install-xenoprof.html' title='My experience on installing xenoprof'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7lzHdvIk-Li1AcFTy5xS8kI96xHa3mS7mKFEBPnaEsUMdibhYTtYM3ui4O1AWsi_wfzY0DE22dhyvSzMhebQljHR16N2iSdoeqPGRND4V5_J-jO8-xunpr-xCa8T6sUmK1-e2qg/s72-c/IMG_0178.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6763685.post-681293714802909702</id><published>2013-02-21T23:33:00.002-05:00</published><updated>2013-08-19T22:03:32.570-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization"/><title type='text'>How to move a VM between hosts? (Not migrate)</title><summary type="text">Many posts talk about migration.
But, how do we move a VM from one host to another?
This sounds like an easy task but it is not easy to find an how-to on Internet.
So, let&#39;s start an easy how-to.


We use Xen 4.0 in this example.
Assume the VM name is Tutorial and it has a virtual disk image file called Tutorial.img

1. Copy/Move virtual disk files.
If both machines are connected on network and </summary><link rel='replies' type='application/atom+xml' href='http://chilung.blogspot.com/feeds/681293714802909702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chilung.blogspot.com/2013/02/how-to-move-vm-between-hosts-not-migrate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/681293714802909702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6763685/posts/default/681293714802909702'/><link rel='alternate' type='text/html' href='http://chilung.blogspot.com/2013/02/how-to-move-vm-between-hosts-not-migrate.html' title='How to move a VM between hosts? (Not migrate)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO6hRW4jQt-4l9tK60lH0-UFEEiXjbYDQq_HrtTFP6rbME9R91tzj93c1_GR9dyXLwjXcOYJYlwLUPxIQIv1M2FGB6GHxhfkHSqYgzp39Z2IJEk19q4IqsFv7TLvd8pghJwui4_g/s72-c/IMG_0126.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>