Showing posts with label process exited. Show all posts
Showing posts with label process exited. Show all posts

Tuesday, January 12, 2016

install virtual marchine (KVM)

Install virtual marchine

1. sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
2.sudo adduser name libvirtd
sudo adduser hades libvirtd
3. Logout and Login for use
4. check list
virsh -c qemu:///system list
5.Edit link location virtual store

root@mail:/var/lib/libvirt# cd /var/lib/libvirt/
root@mail:/var/lib/libvirt# mv images images_mv
root@mail:/var/lib/libvirt# ln -s /home/hades/Virtual images
root@mail:/var/lib/libvirt# ls -lF
total 20
drwx--x--x 2 root         root 4096 Nov 13 00:49 boot/
drwxr-xr-x 2 root         root 4096 Jan 12 17:09 dnsmasq/
lrwxrwxrwx 1 root         root   19 Jan 12 17:31 images -> /home/hades/Virtual/
drwx--x--x 2 root         root 4096 Nov 13 00:49 images_mv/
drwxr-x--- 7 libvirt-qemu kvm  4096 Jan 12 17:09 qemu/

drwx------ 2 root         root 4096 Nov 13 00:49 sanlock/

กรณีเจอปัญหา ไม่สามารถสร้างหรือเรียกไฟล์ Images ได้มี Error: Unable to complete install: 'internal error: process exited ให้แก้ไขดังนี้
#vim /etc/libvirt/qemu.conf
enable 2 ที่คือ
user = "root"
group = "root"
------------------------------ save and reboot เครื่อง

Ref: kvm-error-internal-error-process-exited-while-connecting-to-mon