Running Kitten as a Guest

46 views
Skip to first unread message

Scott Levy

unread,
Mar 16, 2012, 2:59:49 PM3/16/12
to v3vee-de...@googlegroups.com
Working off of the compact linux host configuration tarball from the
V3VEE website, I'm trying to run Kitten as a Palacios guest. I've
created a Kitten guest using default.xml (with the appropriate
modification to point to the Kitten ISO). I can launch it, but when I
try to attach to its console using v3_cons I get:

"Error opening stream Console"

After looking through the default configuration, I noticed that there's
no CURSES_CONSOLE (which, afaik v3_cons depends on). I added one (and
an underlying CGA device) based on the manual, but with this addition
attempting to create a VM yields:

"Error (-1) creating VM"

Has anyone else seen this? Any suggestions on how to fix it?

Thanks,

=s=

Patrick G. Bridges

unread,
Mar 16, 2012, 7:30:16 PM3/16/12
to v3vee-de...@googlegroups.com
Make sure that the CURSES_CONSOLE is linked to the CGA frontend. In
the configuration, you need to make sure the CURSES_CONSOLE knows that
CGA is its frontend. That part of the configuration should look like
this:

<device class="CGA_VIDEO" id="cga" passthrough="disable"></device>
<device class="CURSES_CONSOLE" id="curses">
<frontend tag="cga"> </frontend>
</device>

-Patrick

> --
> You received this message because you are subscribed to the Google Groups
> "V3VEE Development" group.
> To post to this group, send email to v3vee-de...@googlegroups.com.
> To unsubscribe from this group, send email to
> v3vee-developm...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/v3vee-development?hl=en.
>

Scott Levy

unread,
Mar 17, 2012, 2:03:26 PM3/17/12
to v3vee-de...@googlegroups.com
I do have the CURSES_CONSOLE linked to the CGA frontend as you note.

Looking at the kernel messages, I see:
......
palacios/src/devices/cga.c(1257):

Video Hook failed.

palacios/src/palacios/vmm_dev_mgr.c(266): Could not initialize Device
CGA_VIDEO
.......

The underlying problem seems to be that a call to v3_hook_write_mem is
failing. Does anyone have any insight into what might be causing this?

=s=

Kevin Pedretti

unread,
Mar 17, 2012, 9:26:47 PM3/17/12
to v3vee-de...@googlegroups.com
I haven't been able to get the CGA console to work either, and don't
know why. This is what I'm running on the Linux host:

v3_cons_sc /dev/v3-vm0 2> /dev/null

which results in a bunch of question marks being displayed. Something
isn't being translated correctly... Kitten might not be doing correct
CGA stuff, or be doing stuff that the Palacios CGA capture scheme
doesn't support.

Rather than debug, just use the Kitten serial console along with the
v3_stream tool on the host. I attached the palacios config and the
kitten_guest_config.xml that I am using. Then, do the following:

1. v3_create kitten_guest.img
2. Attach to the virtual serial port in another window: v3_stream
/dev/v3-vm0 stream1
3. v3_launch /dev/v3-vm0

Kitten console output should appear in the v3_stream window.

Kevin

kitten_guest_config.xml
palacios_config

Jack Lange

unread,
Mar 17, 2012, 11:05:13 PM3/17/12
to v3vee-de...@googlegroups.com
We've been seeing the same behavior here at Pitt, and have worked
around it by using the serial console.

Which Palacios commit ID are you using Kevin?

--Jack

Kevin Pedretti

unread,
Mar 17, 2012, 11:24:59 PM3/17/12
to v3vee-de...@googlegroups.com
I'm using the Release-1.3 branch. I haven't updated in awhile. This
was the last commit...

Author: Jack Lange <jack...@cs.pitt.edu> 2011-11-18 17:37:12
Committer: Jack Lange <jack...@cs.pitt.edu> 2011-11-18 17:37:12
Parent: cfd5e43722796b4951faf721c64f3a74ab81ff2b (Clear guest memory
to 0 at init time.)
Child: 0000000000000000000000000000000000000000 (Local uncommitted
changes, not checked in to index)
Branches: Release-1.3, remotes/origin/Release-1.3, remotes/origin/devel
Follows:
Precedes:

updated kernel version numbers for file interface

Reply all
Reply to author
Forward
0 new messages