Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using Expect to get to vmware.

2 views
Skip to first unread message

Scot Duane Junkin

unread,
Jun 5, 2002, 4:16:46 PM6/5/02
to
Hello all, I have a particular problem I would like to tackle, and that is
using the expect module to access a running vmware session on the local
machine. I have no idea how to do this, but both the real machine and the
virtual machine are running linux. I do not know if this is even
possible, but if it is could someone point me to some documentation?
Thanks.
Scot


--------------------------------------
Scot Duane Junkin W:508.831.5125
sju...@wpi.edu C:508.736.4121

Christian Lemburg

unread,
Jun 6, 2002, 4:34:24 AM6/6/02
to
Scot Duane Junkin <sju...@wpi.edu> writes:

> Hello all, I have a particular problem I would like to tackle, and that is
> using the expect module to access a running vmware session on the local
> machine. I have no idea how to do this, but both the real machine and the
> virtual machine are running linux. I do not know if this is even
> possible, but if it is could someone point me to some documentation?

Why not run an ssh server on the vmware machine, and connect to that
using an ssh client from the host machine? Then you could use the
expect module (or even the original expect tool) to automate the
interaction taking place over the ssh session.

You will have to configure the vmware machine to have a network
interface - see the section "How Do I: Enable virtual network access
from a virtual machine?" in the vmware help
(/usr/local/lib/vmware/help/index.htm on my machine).

--
Christian Lemburg, <lem...@aixonix.de>, http://www.clemburg.com/


One nice thing about egotists: they don't talk about other people.

Scot Duane Junkin

unread,
Jun 6, 2002, 10:46:54 AM6/6/02
to
> > Hello all, I have a particular problem I would like to tackle, and that is
> > using the expect module to access a running vmware session on the local
> > machine. I have no idea how to do this, but both the real machine and the
> > virtual machine are running linux. I do not know if this is even
> > possible, but if it is could someone point me to some documentation?
>
> Why not run an ssh server on the vmware machine, and connect to that
> using an ssh client from the host machine? Then you could use the
> expect module (or even the original expect tool) to automate the
> interaction taking place over the ssh session.
>
I need access to the machine at the GRUB stage, so I can select certain
things before the kernel is loaded. I was hoping that there was a console
device or something of that nature I could tie into, but I could find no
information on such a device. I remember seeing something on wrapping
guis with tk and being able to expect through that, has anyone done this
with vmware?
Thanks
Scot

Ned Konz

unread,
Jun 9, 2002, 2:48:23 PM6/9/02
to
Scot Duane Junkin wrote:

I believe you can connect VMware serial ports to named pipes; with a console
on a serial port you should be able to do this.

Scot

unread,
Jun 22, 2002, 11:16:39 AM6/22/02
to
> I believe you can connect VMware serial ports to named pipes; with a console
> on a serial port you should be able to do this.

A console like one connected to the actual ttyS0?
How would I connect to named pipes?
Are there directions on how to do this anywhere

0 new messages