Re: Replicating XO experience in a VM

2011-05-17 Thread Peter Robinson
Hi Sridhar,

On Sun, May 15, 2011 at 3:41 PM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 I've been investigating ways to replicate an XO's experience in a
 virtual machine (VirtualBox), so that it can be run on other computers
 without requiring an XO. Our OS is a variant of OLPC OS 10.1.3, so I'm
 trying to replicate that.

 We determined that booting the XO image directly does not work. Sugar
 on a Stick might be a good start. Drawbacks are that we would have to
 use v1 (Strawberry), and the Sugar 0.84 present in Strawberry is not
 the same as the one in the OLPC OS (a lot of changes have been made).

 My experimentation has been to install the OLPC packages (carefully
 avoiding the kernel) on top of a standard Fedora 11 install. I can get
 it to load to the Sugar name screen. If you enter a name and select
 your colours, you are prompted for them again. It does not proceed to
 the Home View.

 My method and findings are documented here:
 http://dev.laptop.org.au/projects/xo-au/wiki/Virtual_machine

 I feel that I am tantalisingly close, and I'd appreciate some
 assistance with this. I feel that a working VM solution can be of
 great benefit to the community.

 If it helps, I can put my VM image up for download and inspection.

I suggest you look at the olpc-os-builder. Its pacakged in Fedora. Its
also the series of scripts used to build the releases.

The major difference between a XO image and any other image is the
files produced at the end. I don't believe it would be hard to either
A) extract the OS ext3 file system of an XO 1.5 and add it to a VM
image or b) add a plugin to the scripts that produce something that
can be imported into a VM.

Peter
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-17 Thread Sridhar Dhanapalan
On 17 May 2011 19:19, Peter Robinson pbrobin...@gmail.com wrote:
 I suggest you look at the olpc-os-builder. Its pacakged in Fedora. Its
 also the series of scripts used to build the releases.

 The major difference between a XO image and any other image is the
 files produced at the end. I don't believe it would be hard to either
 A) extract the OS ext3 file system of an XO 1.5 and add it to a VM
 image or b) add a plugin to the scripts that produce something that
 can be imported into a VM.

Interesting idea. We are using the OS Builder to produce our builds,
but I didn't think of extending it to generate a VM-capable build.

Thanks,
Sridhar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-17 Thread Daniel Drake
On 17 May 2011 13:11, Sridhar Dhanapalan srid...@laptop.org.au wrote:
 Interesting idea. We are using the OS Builder to produce our builds,
 but I didn't think of extending it to generate a VM-capable build.

I'm a bit skeptical if this will work well, without driving you up the
wall first, but by all means try it..!

You will have to tweak numerous things, such as not building with a
versioned filesystem, installing a normal bootloader, using fedora's
kernel instead of OLPC's, not using OLPC's initramfs, replacing or
hacking olpc-session, ...

Personally I would go for your first approach, of putting recent
sugar-0.84 on top of regular Fedora 11. To diagnose the crash you are
seeing you could check the sugar and gdm logs, or start sugar with
sugar-emulator (which probably makes errors more obvious), or by
starting an X session with only xterm and then running /usr/bin/sugar
(again to be able to see errors easily).

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-17 Thread Martin Langhoff
On Sun, May 15, 2011 at 10:41 AM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 I've been investigating ways to replicate an XO's experience in a
 virtual machine (VirtualBox), so that it can be run on other computers
 without requiring an XO. Our OS is a variant of OLPC OS 10.1.3, so I'm
 trying to replicate that.

About one year ago, I prepared a SoaS image matching roughly the user
experience of OLPC's 10.1.1 . I did that by taking the build scripts
for the closest SoaS I could find, and tweaking them.

I don't have the URLs right now, but I posted a few times to the soas
mailing list asking for help, and later with the end results. The
archive of the soas ml should have the info you're after. I probably
crossposted to sugar-devel too.

Of course, you'll want to update it to 10.1.3 and newer activities. If
it works, let us know :-)

About your current effort...

 My experimentation has been to install the OLPC packages (carefully
 avoiding the kernel) on top of a standard Fedora 11 install. I can get
 it to load to the Sugar name screen. If you enter a name and select
 your colours, you are prompted for them again. It does not proceed to
 the Home View.

You are right, it seems you're very close. You seem to have olpc-utils
installed, so Sugar starts.

When it takes your name, it's trying to write it -- there's a good
chance that it's failing to write it, can you get logs from that?
It'll tell you what's broken. My comments (after reading the wikipage
you link)

 - You are creating the olpc user and grp, but not matching uid/gid
(500:500). Some scripts in olpc-utils may be hardcoded...
 - use chkconfig to start the olpc-configure service - this
preconfigures /home/olpc . It will probably also mess up your keyboard
map :-/
 - you may need to kill/remove/uninstall pulseaudio

hth,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-17 Thread Martin Langhoff
On Tue, May 17, 2011 at 11:06 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 I don't have the URLs right now, but I posted a few times to the soas
 mailing list asking for help, and later with the end results.

Various threads in Feb 2010 cover the conversation w sdz on this
topic. Here's perhaps the best individual email - you'll want to read
earlier and later posts
http://lists.sugarlabs.org/archive/soas/2010-February/000838.html

sdz's scripts http://git.sugarlabs.org/soas/mainline/trees/strawberry

my scripts http://dev.laptop.org/git/users/martin/soas/

cheers -


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-17 Thread Sascha Silbe
Excerpts from James Cameron's message of Tue May 17 06:02:40 +0200 2011:
 If I were doing this, I would take an OLPC OS or your derivative, add a
 conventional Fedora kernel to /boot, then add and configure grub.
 
 If you have done that, tell us the result?

Been there, done that and failed. [1]

Since a regular F14 VM works quite fine with the same kernel (the stock
Fedora one), I'm at a loss. Help fixing the segfault issue would be
welcome; the offer to post the WIP patches stands.

Sascha

[1] http://lists.laptop.org/pipermail/devel/2011-March/031506.html
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-16 Thread Sean DALY
Hi Sridhar,

Tom Gilliard has done some fabulous work with VMs, see:

http://wiki.sugarlabs.org/go/Emulator_image_files

Sean


On Sun, May 15, 2011 at 4:41 PM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 I've been investigating ways to replicate an XO's experience in a
 virtual machine (VirtualBox), so that it can be run on other computers
 without requiring an XO. Our OS is a variant of OLPC OS 10.1.3, so I'm
 trying to replicate that.

 We determined that booting the XO image directly does not work. Sugar
 on a Stick might be a good start. Drawbacks are that we would have to
 use v1 (Strawberry), and the Sugar 0.84 present in Strawberry is not
 the same as the one in the OLPC OS (a lot of changes have been made).

 My experimentation has been to install the OLPC packages (carefully
 avoiding the kernel) on top of a standard Fedora 11 install. I can get
 it to load to the Sugar name screen. If you enter a name and select
 your colours, you are prompted for them again. It does not proceed to
 the Home View.

 My method and findings are documented here:
 http://dev.laptop.org.au/projects/xo-au/wiki/Virtual_machine

 I feel that I am tantalisingly close, and I'd appreciate some
 assistance with this. I feel that a working VM solution can be of
 great benefit to the community.

 If it helps, I can put my VM image up for download and inspection.

 Thanks,
 Sridhar


 Sridhar Dhanapalan
 Technical Manager
 One Laptop per Child Australia
 M: +61 425 239 701
 E: srid...@laptop.org.au
 A: G.P.O. Box 731
      Sydney, NSW 2001
 W: www.laptop.org.au
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-16 Thread Sridhar Dhanapalan
On 16 May 2011 20:30, Sean DALY sdaly...@gmail.com wrote:
 Hi Sridhar,

 Tom Gilliard has done some fabulous work with VMs, see:

 http://wiki.sugarlabs.org/go/Emulator_image_files

 Sean

Thanks Sean. However, like I said, I'm trying to replicate an XO (OLPC
OS) experience, not a Sugar on a Stick experience. The Sugar used in
OLPC OS is a patched 0.84. It most closely resembles SoaS v1, but also
has some key functionality taken from later versions of Sugar.

Cheers,
Sridhar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-16 Thread Sean DALY
Sridhar - only a few of those images are SoaS. The others are VMs in
other distros, or in Fedora non-SoaS. Tom could perhaps advise you in
building a VM that will closely resemble your XO build.

Sean


On Mon, May 16, 2011 at 4:03 PM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 On 16 May 2011 20:30, Sean DALY sdaly...@gmail.com wrote:
 Hi Sridhar,

 Tom Gilliard has done some fabulous work with VMs, see:

 http://wiki.sugarlabs.org/go/Emulator_image_files

 Sean

 Thanks Sean. However, like I said, I'm trying to replicate an XO (OLPC
 OS) experience, not a Sugar on a Stick experience. The Sugar used in
 OLPC OS is a patched 0.84. It most closely resembles SoaS v1, but also
 has some key functionality taken from later versions of Sugar.

 Cheers,
 Sridhar

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-16 Thread Sridhar Dhanapalan
Yes, I see what you mean now. My apologies, it looks like I jumped the
gun! Thanks for your advice.

Sridhar


On 17 May 2011 00:08, Sean DALY sdaly...@gmail.com wrote:
 Sridhar - only a few of those images are SoaS. The others are VMs in
 other distros, or in Fedora non-SoaS. Tom could perhaps advise you in
 building a VM that will closely resemble your XO build.

 Sean


 On Mon, May 16, 2011 at 4:03 PM, Sridhar Dhanapalan
 srid...@laptop.org.au wrote:
 On 16 May 2011 20:30, Sean DALY sdaly...@gmail.com wrote:
 Hi Sridhar,

 Tom Gilliard has done some fabulous work with VMs, see:

 http://wiki.sugarlabs.org/go/Emulator_image_files

 Sean

 Thanks Sean. However, like I said, I'm trying to replicate an XO (OLPC
 OS) experience, not a Sugar on a Stick experience. The Sugar used in
 OLPC OS is a patched 0.84. It most closely resembles SoaS v1, but also
 has some key functionality taken from later versions of Sugar.

 Cheers,
 Sridhar


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Replicating XO experience in a VM

2011-05-16 Thread James Cameron
If I were doing this, I would take an OLPC OS or your derivative, add a
conventional Fedora kernel to /boot, then add and configure grub.

If you have done that, tell us the result?

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Replicating XO experience in a VM

2011-05-15 Thread Sridhar Dhanapalan
I've been investigating ways to replicate an XO's experience in a
virtual machine (VirtualBox), so that it can be run on other computers
without requiring an XO. Our OS is a variant of OLPC OS 10.1.3, so I'm
trying to replicate that.

We determined that booting the XO image directly does not work. Sugar
on a Stick might be a good start. Drawbacks are that we would have to
use v1 (Strawberry), and the Sugar 0.84 present in Strawberry is not
the same as the one in the OLPC OS (a lot of changes have been made).

My experimentation has been to install the OLPC packages (carefully
avoiding the kernel) on top of a standard Fedora 11 install. I can get
it to load to the Sugar name screen. If you enter a name and select
your colours, you are prompted for them again. It does not proceed to
the Home View.

My method and findings are documented here:
http://dev.laptop.org.au/projects/xo-au/wiki/Virtual_machine

I feel that I am tantalisingly close, and I'd appreciate some
assistance with this. I feel that a working VM solution can be of
great benefit to the community.

If it helps, I can put my VM image up for download and inspection.

Thanks,
Sridhar


Sridhar Dhanapalan
Technical Manager
One Laptop per Child Australia
M: +61 425 239 701
E: srid...@laptop.org.au
A: G.P.O. Box 731
     Sydney, NSW 2001
W: www.laptop.org.au
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel