Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 07:39
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to update QEMU-puppy 2.17 to 4.0?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [54 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Wed 16 Dec 2009, 16:35    Post subject:  

This is my experimentation. All the files are inside the attachment.
EDIT: added also the kqemu Windows's driver
Code:

This file contains a "proof of concept" about making a portable Puppy 4 distro, that is:
- an USB key bootable Puppy installation, which also is
- capable of running inside another Linux or Windows operating system, thanks to QEMU

This work (distributed with a GPL license) is in no way original and of course I don't claim any right :). It is based on:
- Erik Veenstra's "QEMU-Puppy"
  - see http://www.erikveen.dds.nl/qemupuppy/index.html
  - in detail, I'm including his:
    - "allinoneqemu.exe" binary
    - "allinoneqemu_linux" binary
    - Linux script implementation
- mderemick's "QEMU_Launcher"
  - see http://www.murga-linux.com/puppy/viewtopic.php?t=29107&start=15
  - I implemented his idea of using UNetbootin for installing Puppy and then use QEMU with it

Follow these steps:
1. peek an USB key (I used an 8 Gb key)
2. with UNetbootin  install Puppy in the USB key:
 2.1 download an ISO (I installed Puppy 4.3.1 - see http://distro.ibiblio.org/pub/linux/distributions/puppylinux/puppy-4.3.1/pup-431.iso)
 2.2 download and run UNetbootin (from http://unetbootin.sourceforge.net)
 2.3 on UNetbootin, click on "Disk Image", choose the ISO just downloaded, choose the USB drive and click OK
3. in the same key copy (in the root directory):
 - allinoneqemu.exe
 - allinoneqemu_linux
 - winqemu.bat
   - this try also to start the kqemu service for best performances. If you want install it on Windows, right-click on kqemu.inf, then click "Install"
 - linqemu.sh
   - if in the PATH there is already a preinstalled qemu command, it uses that, appending the "-kernel-kqemu" option
 - kqemu.inf and kqemu.sys
   - (Windows's driver for kqemu)
 
That is it, you have a portable Puppy.

My further steps were:
4. the first run was in Windows (winqemu.bat), when I saved the Puppy personal file (this step created also the swap file)
5. restart, booting directly from the key
6. restart and launching linqemu.sh from another Linux

Just as a test, I used also a QEMU tunnel port: 8000 guest's port can be accessed from the 5555 host's port. Then I started DidiWiki (which do run in port 8000) in the guest, and accessed it from the host, for example:
wget http://localhost:5555

As you can see, both the scripts are just a hint, they can be improved in many ways (configurability, logging). And I'm not a QEMU hacker, as you can see. Feel free to enhance them in any way - and, to really feel free, share them :)
portable-puppy.zip
Description  This file contains a "proof of concept" about making a portable Puppy 4 distro, that is:
- an USB key bootable Puppy installation, which also is
- capable of running inside another Linux or Windows operating system, thanks to QEMU
zip

 Download 
Filename  portable-puppy.zip 
Filesize  1.72 MB 
Downloaded  549 Time(s) 

Last edited by robermann79 on Sat 19 Dec 2009, 15:27; edited 7 times in total
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1288
Location: UK

PostPosted: Thu 17 Dec 2009, 08:28    Post subject:  

EDIT - These comments are no longer relevant as robermann79 has updated his instructions above.

robermann79

Sorry to be picky but this is beginning to look really good. I (and newbies) like step by step instructions.

The Readme talks of QEMU and Erik's files (a link to these would be nice) . However it does not say where/how to implement mderemick's stuff - unless this is some of the stuff in step 3.

How is the subsequent dwnload file here (used/implemented)?

Here's a suggestion. Start with a blank flash drive and follow your instructions word for word. If you find along the way you have to do something not in the instructions then add it to the instructions. Be really careful to ensure you don't assume the reader knows something. For example in step 3 you say copy in some files. Where - in the root directory?

Last edited by ICPUG on Fri 18 Dec 2009, 09:03; edited 1 time in total
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Thu 17 Dec 2009, 09:13    Post subject:  

ICPUG wrote:

Here's a suggestion. Start with a blank flash drive and follow your instructions word for word. If you find along the way you have to do something not in the instructions then add it to the instructions. Be really careful to ensure you don't assume the reader knows something.


Mmm this was my goal and I followed my own steps with a blank key. Maybe it was not clear that all what you need is inside the attachment (it was a tar.gz, now is a ZIP). Unzip and copy them in the key Smile
EDIT: I've just updated the README
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Thu 17 Dec 2009, 11:18    Post subject:  

Yeah...I used Erik's setup with puppy 2 during a stint in college...was really handy.

I believe he is a member here

mike
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Fri 18 Dec 2009, 07:30    Post subject:  

I just tried the above scripts with also a DSL linux (http://ftp.belnet.be/packages/damnsmalllinux/current/dsl-4.4.10.iso) - really handy Smile
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1288
Location: UK

PostPosted: Fri 18 Dec 2009, 08:59    Post subject:  

Thanks robermann79. I think I might try updating my Portable Puppy 2.17.1 now!

You say the attachment was previously tar.gz, now .zip. Actually, it was labelled .gz and when I tried to look at it I got some strange messages (with Winzip). I extracted the tar file (not labelled as tar though) but then Winzip gave up.

Excellent work.
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Fri 18 Dec 2009, 09:17    Post subject:  

Let me know if you have any other problem. Thanks for the feedback.
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Sat 19 Dec 2009, 18:05    Post subject:  

I've updated the ZIP adding Windows's KQEMU driver and changing the scripts.

In my old Linux machine (700 Mhz + 512 MB RAM) it seems that the -kernel-kqemu qemu's option does not enhance the performances - really they are worst!

[In order to test the -kernel-kqemu option, you have to install qemu and kqemu packages on your host machine, then run "modprobe kqemu". Finally run "linqemu.sh". It should use /usr/bin/qemu with -kernel-kqemu]
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Sat 19 Dec 2009, 18:13    Post subject:  

I never succeeding in getting kqemu to work.
You need /dev/shm running and the right module for your kernel.....I dangled upside down whilst doing the chalston and still did not get anywhere...

mike
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Sat 19 Dec 2009, 18:30    Post subject:  

mikeb wrote:
I never succeeding in getting kqemu to work.
You need /dev/shm running and the right module for your kernel.....I dangled upside down whilst doing the chalston and still did not get anywhere...

mike


In the host I'm running Opensuse 11.2 (with twm for saving memory - it just use 45 MB), it has both qemu (v0.11.0) and kqemu precompiled for the right kernel. Of the options:
1. qemu
2. qemu + kqemu (that is kqemu.ko)
3. qemu + kqemu with -kernel-kqemu

On my machine the third is useless (too slow), the first two seem to have a very similar perfomance (and no apparent error log).

I've tried also Virtual Box and VMWare Player. The best performant is this last one (on VMWare you can boot from the same USB stick where you installed the portable Puppy)

Last edited by robermann79 on Tue 22 Dec 2009, 18:49; edited 1 time in total
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Tue 22 Dec 2009, 16:26    Post subject:  

Update: I tried the VMKnoppix 5.3.1 CD Live (see http://www.rcis.aist.go.jp/project/knoppix/vmknoppix/index-en.html), which, among other, contains qemu (v0.9.1) and kqemu. I was able to successfully test all the options, timing the elapsed time between the boot and shutdown of the "portable Puppy":
1. qemu: 2m30sec
2. qemu + kqemu: 1m53sec
3. qemu + kqemu with -kernel-kqemu: 1m33sec

(Very interesting is the script qemu-knoppix.sh, inside the CD). Do you have any comparison data / impression on performance?

Last edited by robermann79 on Wed 23 Dec 2009, 06:13; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Tue 22 Dec 2009, 16:52    Post subject:  

Ok ..I never got notified or your post so sorry if it seems I was ignoring you.
In the meantime catdude help my hand after trying out on his setup for me and voila...it ran...was one tiny piece of the puzzle...I will post his how to soon...Smile

As for performance....

user mode..... kqemu gives a decent boost generally.
tested and install under it and was near native in speed...without used to take forever....have not tested kernel mode for install yet...

kernel mode.....for puppy was drastically improved gui performance..was like cold porridge before. win 2000 faster too.
98 will not boot..that's a known limitation but performance is snappier under user mode anyway.
NT4 ...got it happy in the end but was slower than user mode.

So overall a worth while improvement.

by the way in kernel mode the guest sees the real processor (and upsets acpi slightly) which is probably why some guests get upset...

mike
Back to top
View user's profile Send private message 
robermann79

Joined: 17 Sep 2008
Posts: 22

PostPosted: Fri 01 Jan 2010, 05:48    Post subject:  

mikeb wrote:

I will post his how to soon...Smile


Have you already posted it? By the way... Happy new Year! Very Happy
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 7220

PostPosted: Fri 01 Jan 2010, 06:19    Post subject:  

I have indeed
http://www.murga-linux.com/puppy/viewtopic.php?t=50575

happy new year too Smile

mike
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10730
Location: Ontario Canada,Sydney Australia

PostPosted: Fri 01 Jan 2010, 09:12    Post subject:  

Why not take 2.17 edit the sfs and replace with Barry's latest
-Rox, Seamonkey, Desktop icons, Geany, jwm,gtk-themes,rounded jwm, backgrounds, and call it a day, it would be like 10MB almost smaller, take less resources and look just as good Smile
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 3 of 4 [54 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0715s ][ Queries: 12 (0.0045s) ][ GZIP on ]