2012年3月7日星期三

Work of a few days

Then what I have to do is to install the Virtual Machine Manager in the computer:
1. Type in the command: sudo apt-get install virtinst virt-viewer virt-manager
The virt-manager  ready to go, after that to set "xend" to be working properly is very important.
2. Type in the command: sudo gedit /etc/xen/xend-config.sxp to be able to edit the file.
3. Find the line #(xend-unix-server no) and change it to #(xend-unix-server yes), and save it
This line enables the xend-unix-server to work
4. Type in the command: sudo gedit ~/.bashrc  and add a new line
export VIRSH_DEFAULT_CONNECT_URI=”xen:///”
This line sets the root directory for xen vms.
5. Try to make the first VM on this machine.

Then, when I tried on setting up the first VM, an error came out:
******/usr/lib/xen/bin/qemu-dm:****
I used up a few hours to look into the log file of the Xen in var/log/xen/xend.log and
/var/log/xen/qemu-dm-demo.log, the problem was that the xen directory is not recognized by the virt-manager.
The expected directory should be /usr/lib/xen-4.1 instead of /usr/lib/xen. So the solution that I came with is
open the terminal and type in the command:
mkdir /usr/lib/xen -p
cp /usr/lib/xen-4.1/* -r /usr/lib/xen/
This is for making a new directory for xen-4.1 and copy all the files to the new directory from /usr/lib/xen

This error disappeared, however new error came out:
****** libvirtError: POST operation failed: xend_post:
As the same thing I did before, looking into /var/log/xen/xend.log and  /var/log/xen/qemu-dm-demo.log, I found that:
/usr/share/qemu/keymaps/en-us could not be found, the keymaps ***
God! It was the same issue that it was supposed to be called qemu-linaro rather than qemu.
So this step was easy, just the same thing....
Just type in: cp -r /usr/share/qemu-linaro/ /usr/share/qemu
Finally, this error disappeared.

没有评论:

发表评论