[one-users] vm in vmware can't start
Pham Kim Long
longpk at fpt.net
Tue Jan 11 00:24:36 PST 2011
Hi Tino,
I work with Minh, and we found out that tty_expect.c in the vmware driver is the issue. The user and password are sent from tty_expect to virsh in quick succession. Therefore virsh can't process the password and waits for it forever. I fixed it by adding a sleep in between.
Here's the fix:
*** /tmp/vmware-1.0/src/tty_expect/tty_expect.c 2010-10-27 21:12:59.000000000 +0700
--- tty_expect.c 2011-01-11 14:00:56.615343235 +0700
***************
*** 159,166 ****
--- 159,168 ----
}
expect_char(pty,&expect,1);
+ sleep(1);
write_answer(pty,username);
expect_char(pty,&expect,1);
+ sleep(1);
write_answer(pty,password);
expect_char(pty,0,0);
Hope it'll be patched in the next release.
Long
-----Original Message-----
From: users-bounces at lists.opennebula.org [mailto:users-bounces at lists.opennebula.org] On Behalf Of Tino Vazquez
Sent: Wednesday, December 22, 2010 10:40 PM
To: Vũ Tống Minh
Cc: users at lists.opennebula.org
Subject: Re: [one-users] vm in vmware can't start
Hi Vu,
Are you still experiencing this? If so, what is the outcome of:
sh -c /srv/cloud/one/lib/remotes/vmm/vmware/deploy 10.160.0.23
/srv/cloud/one/var/50/deployment.0
?
Regards,
-Tino
--
Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
On Tue, Dec 7, 2010 at 4:47 AM, Vu Tong Minh <vtminh at fpt.net> wrote:
> sh -c /srv/cloud/one/lib/remotes/vmm/vmware/deploy 10.160.0.23
> /srv/cloud/one/var/50/deployment.0
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
More information about the Users
mailing list