Hi Prasanna,

Good day to you, and thank you for your e-mail.


On Mon, Jul 22, 2013 at 2:44 PM, Prasanna Santhanam <t...@apache.org> wrote:

> On Mon, Jul 22, 2013 at 02:35:58PM +0800, Indra Pramana wrote:
> > Dear all,
> >
> > Good day to you.
> >
> > I am using CloudStack 4.1.0 and I just realised that I am not able to
> > migrate a VM to another host. CloudStack GUI gives a "Failed to migrate
> vm"
> > error message, and management-server.log file shows this:
> >
> > http://pastebin.com/Ah9XDRha
> >
> > Based on the error message, the issue seems to be related to libvirt:
> >
> > http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor
> >
> > ===
> > 2013-07-22 14:06:16,744 ERROR [cloud.vm.VirtualMachineManagerImpl]
> > (Job-Executor-35:job-553) Unable to migrate due to End of file while
> > reading data: Input/output error
> > ===
> >
> > Seems the error is related to the KVM host not able to connect to the
> other
> > host. But I tested manually and I can connect to the other hypervisor:
> >
> > root@hv-kvm-01:~# virsh --connect qemu+ssh://r...@10.237.x.xx/system
> list
> >  Id    Name                           State
> > ----------------------------------------------------
> >
> > I have copied the SSH keys between hosts so that one host can SSH into
> > another host without password. I also have added the root user into the
> > libvirtd group.
> >
> > usermod -G libvirtd -a root
>
> What's the output of
> $ id cloud
>

This is the output on hv-kvm-02:

root@hv-kvm-02:~# id cloud
uid=111(cloud) gid=117(cloud) groups=117(cloud)

I have added the cloud user into the libvirtd group:

usermod -G libvirtd -a cloud

On hv-kvm-01, the 'cloud' user doesn't exist:

root@hv-kvm-01:~# id cloud
id: cloud: No such user

Could this be the reason? What can I do, shall I adduser cloud manually? It
seems that the user wasn't added in the first place when I installed the
cloudstack-agent package on this host.

Looking forward to your reply, thank you.

Cheers.




> The commands that cloudstack executes on the KVM host are in the
> cloud:cloud user:group.
>
> >
> > However the problem still persists. Not too sure whether I am following
> the
> > right lead. Anyone might have encounter this problem and know how to
> > resolve the problem?
> >
> > Looking forward to your reply, thank you.
> >
> > Cheers.
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Reply via email to