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 Sat 25 Oct 2014, 04:01
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
How much room does QEMU-Puppy need?
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Sat 06 Aug 2005, 09:13    Post_subject:  How much room does QEMU-Puppy need?  

This is slightly off topic but still concerns Puppy.

I decided to try QEMU-Puppy so downloaded the files, raced out and bought a 256M USB pen stick, went to put the files on it and ran out of room after installing allinoneqemu.exe and most of pup001.

I didn't see anywhere what minimum size was required and had I known I would have got a bigger stick.

Does anyone know what the minimum size is.

The pup001 file got to 193M or so before I ran out of space.
Back to top
View user's profile Send_private_message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Sat 06 Aug 2005, 12:22    Post_subject:  

I went back and had another go and this time I left the pup100 file till last, that worked but it consumed all the space left on the USB pen drive.
Now I can't get it to boot.

Time to give up, the neighbour just ran over one of my dogs and killed him.
Back to top
View user's profile Send_private_message 
Erik Veenstra


Joined: 27 Jul 2005
Posts: 107
Location: NL

PostPosted: Sat 06 Aug 2005, 12:41    Post_subject:  

> I decided to try QEMU-Puppy so downloaded the files, raced
> out and bought a 256M USB pen stick, went to put the files on
> it and ran out of room after installing allinoneqemu.exe and
> most of pup001.
>
> I didn't see anywhere what minimum size was required and had
> I known I would have got a bigger stick.

256M will do. That's what I use myself. I added some info about
file size on the site [1].

> Does anyone know what the minimum size is.

Without the user data: 74,079,209 bytes.

With the user data: 208,296,937 bytes.

That's 62,791,391 bytes for Puppy Linux 1.0.4 itself,
11,287,818 bytes for the QEMU-Puppy specific stuff and
134,217,728 bytes for the user data...

You should end up having the files as listed below.

> The pup001 file got to 193M or so before I ran out of space.

I know the problem. I think. I hope. I'll try: You extracted
pup100.gz (130K) to pup100 (128M), put it on the stick and
copied your old pup001 (???M) to your stick as well. That won't
fit. For some reason, I don't know why, the pupxxx file is
called pup100 on USB devices, instead of pup001. It might be
enough to rename your pup001 to pup100, but I never did it
myself. Just experiment.

You could experiment with the block sizes of your VFAT. But
that's usually just important when trying to put a lot of small
files on a file system, which isn't the case.

There must be some reason to call it pup100 on USB devices...

gegroet,
Erik V. - http://www.erikveen.dds.nl/

[1] http://www.erikveen.dds.nl/qemupuppy/index.html

----------------------------------------------------------------

$ ls -l
-rwxr-xr-x 1 erik erik 655532 2005-08-06 17:05 allinoneqemu.exe
-rwxr-xr-x 1 erik erik 6369789 2005-08-06 17:03 image.gz
-r-xr-xr-x 1 erik erik 8236 2005-08-06 17:07 ldlinux.sys
-rwxr-xr-x 1 erik erik 134217728 2005-08-06 17:21 pup100
-rwxr-xr-x 1 erik erik 132414 2005-08-06 17:04 pup100.gz # Could be skipped!
-rwxr-xr-x 1 erik erik 10485760 2005-08-06 17:03 puphda
-rwxr-xr-x 1 erik erik 146397 2005-08-06 17:05 puppy.exe
-rwxr-xr-x 1 erik erik 129 2005-08-06 17:05 puppy.sh
-rwxr-xr-x 1 erik erik 95 2005-08-06 17:03 syslinux.cfg
-rwxr-xr-x 1 erik erik 55365632 2005-08-06 17:04 usr_cram.fs
-rwxr-xr-x 1 erik erik 1047639 2005-08-06 17:03 vmlinuz

$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 250312 203568 46744 82% /media/usbdisk

----------------------------------------------------------------
Back to top
View user's profile Send_private_message Visit_website 
Erik Veenstra


Joined: 27 Jul 2005
Posts: 107
Location: NL

PostPosted: Sat 06 Aug 2005, 12:46    Post_subject:  

> I went back and had another go and this time I left the
> pup100 file till last, that worked but it consumed all the
> space left on the USB pen drive.

Strange... What happens when you reformat (VFAT) it first?
What's the file system right now, in the first place?

> Now I can't get it to boot.

Did you do the "syslinux /dev/sda1" or "syslinux D:" thing?

> Time to give up, the neighbour just ran over one of my dogs
> and killed him.

I'm sorry...

gegroet,
Erik V. - http://www.erikveen.dds.nl/
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 06 Aug 2005, 20:10    Post_subject:  

Hi guys,
I have to speed-read the forum today...
scanning through this thread, why are you copying a pupxxx file to usb stick?
That's only required for an ntfs partition.
On any other partition, Puppy will create the pupxxx file at bootup, giving it the name specified in the isolinux.cfg or syslinux.cfg file.
...or, have I missed the point of what you're discussing?
Back to top
View user's profile Send_private_message Visit_website 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Sun 07 Aug 2005, 07:05    Post_subject:  

Firstly Erik I must apologise for a mistype. I meant pup100 not pup001, sorry for the confusion I'm so used to typing pup001.

The pen drive came preformatted as vfat but I'm not sure if it is fat16 or fat32.

I'll try the commands you have supplied below.

Barry, I'm just following Erik's instructions from his web page so I can't comment at this point.
Back to top
View user's profile Send_private_message 
Erik Veenstra


Joined: 27 Jul 2005
Posts: 107
Location: NL

PostPosted: Sun 07 Aug 2005, 09:50    Post_subject:  

> I have to speed-read the forum today... scanning through this
> thread, why are you copying a pupxxx file to usb stick?
>
> That's only required for an ntfs partition.
>
> On any other partition, Puppy will create the pupxxx file at
> bootup, giving it the name specified in the isolinux.cfg or
> syslinux.cfg file.
>
> ...or, have I missed the point of what you're discussing?

There's just one reason for pre-allocating pup100: If you start
QEMU-Puppy in a QEMU-mode, you do need a pup100 file. QEMU
won't start if it's not already there.

gegroet,
Erik V. - http://www.erikveen.dds.nl/
Back to top
View user's profile Send_private_message Visit_website 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Sun 07 Aug 2005, 10:29    Post_subject:  

Well Erik I downloaded all the files again and put them on the pen drive.

The pen drive is mounted as /mnt/sda1.

This time the pup100 file only took up 128M but when I ran syslinux /dev/sda1 it gave the message:

syslinux: possibly unsafe /tmp permissions

and running puppy.sh gives:

qemu: No such file or directory

Does this mean that I have to install qemu in Puppy.
Back to top
View user's profile Send_private_message 
Erik Veenstra


Joined: 27 Jul 2005
Posts: 107
Location: NL

PostPosted: Sun 07 Aug 2005, 11:22    Post_subject:  

> Well Erik I downloaded all the files again and put them on
> the pen drive.
>
> The pen drive is mounted as /mnt/sda1.
>
> This time the pup100 file only took up 128M but when I ran
> syslinux /dev/sda1 it gave the message:
>
> syslinux: possibly unsafe /tmp permissions

You can probably ignore this message. It looks like a warning
to me. But I'm not a SysLinux expert...

> and running puppy.sh gives:
>
> qemu: No such file or directory
>
> Does this mean that I have to install qemu in Puppy.`

You have to install Qemu on your host, not in Puppy. (Unless
Puppy is your host...) I've build Qemu myself, including
kqemu.so, which is an accelerator. You won't get native speed,
but it's still very fast. Which distribution do you use?

I'll spend some time on trying to build a AllInOneQEMU for
Linux...

gegroet,
Erik V. - http://www.erikveen.dds.nl/
Back to top
View user's profile Send_private_message Visit_website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11121
Location: Arizona USA

PostPosted: Sun 07 Aug 2005, 15:08    Post_subject:  

Wait a minute. You mean qemu has to be already installed on each machine you're going to run qemu-Puppy on? It can't somehow take over the host computer by loading from the USB pen drive? What's the use of that? Laughing

I went to the qemu website to see what this was all about, and didn't see anything in plain english which explained what qemu is for.
Back to top
View user's profile Send_private_message 
Erik Veenstra


Joined: 27 Jul 2005
Posts: 107
Location: NL

PostPosted: Sun 07 Aug 2005, 15:45    Post_subject:  

> Wait a minute. You mean qemu has to be already installed on
> each machine you're going to run qemu-Puppy on? It can't
> somehow take over the host computer by loading from the USB
> pen drive? What's the use of that?

Smile

> I went to the qemu website to see what this was all about,
> and didn't see anything in plain english which explained what
> qemu is for.

Copied from the site (including the typo): "QEMU emulates a
full system (for example a PC), including a processor and
various peripherials. It can be used to launch different
Operating Systems without rebooting the PC or to debug system
code."

In other words: QEMU is a virtual machine. A virtual machine is
a program that acts like computer hardware. In such a virtual
machine, you can install a OS (Linux, Windows, BSD, whatever).
This OS "sees" a processor, which is the real processor (I'm
lying...), "sees" a hard drive, which is a big file on the host
machine, "sees" a network card, which is emulated by QEMU, and
so on.

I've several of these QEMU-machines: QEMU-Win98, QEMU-Win2000,
QEMU-Puppy, QEMU-VectorLinux. They can all be started
simultaneously. Each machine is just one big file on the host
machine. Easy to backup, easy to carry around. And easy to
share among several developers: Install and tweak the OS just
once and then copy it to all developers: Same kernel, same
libraries, same software. An idea for the Vector Linux
installation Barry uses to build Puppy's kernel and binaries?

VMWare is another virtual machine. It's better than QEMU, but a
bit expensive. QEMU is open source.

gegroet,
Erik V. - http://www.erikveen.dds.nl/
Back to top
View user's profile Send_private_message Visit_website 
BlackAdder


Joined: 22 May 2005
Posts: 382

PostPosted: Sun 07 Aug 2005, 17:43    Post_subject:  

Erik's QEMU works really well for me, but needs a pretty fast processor and quite a bit of memory. That relates to QEMU generally and not Erik's excellent and well-documented implementation for Puppy.
Must admit that I cheated a bit and put QEMU onto an external USB hard drive, so avoided any problems with the size of a USB stick.
Very nice to see Puppy running happily alongside Windows XP.
Back to top
View user's profile Send_private_message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Sun 07 Aug 2005, 19:53    Post_subject:  

I'm sorry to have wasted everyone's time but like Flash I thought that Erik's implementation of QEMU on a USB flash drive was a file that contained the emulator and would just attach to whatever filesystem you were using and allow you to run Puppy without needing anything else on the host machine.

Maybe this will happen in the future, thanks for your replies and advice Erik.
Back to top
View user's profile Send_private_message 
BlackAdder


Joined: 22 May 2005
Posts: 382

PostPosted: Sun 07 Aug 2005, 20:54    Post_subject:  

Maybe people have been talking at cross-purposes. QEMU-Puppy is indeed another way to get Puppy on a stick. The difference is that it can run alongside the other operating system and does not need a re-boot. QEMU engineers an environment that allows Puppy to pseudo-boot, for want of a better term.
Attached is a screen shot of Puppy running alongside Windows XP, actually it is more like strolling in Puppy terms, but it does work and gives you an environment in which Puppy can play without upsetting the big dogs on the block.
Maybe if we are nice to Erik, he might look at incorporating the QEMU accelerator (? licence conditions, though).

Next stop XEN? Wink
qemu-puppy.PNG
 Description   Puppy running with Windows XP
 Filesize   83.98 KB
 Viewed   1748 Time(s)

qemu-puppy.PNG

Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11121
Location: Arizona USA

PostPosted: Sun 07 Aug 2005, 21:13    Post_subject:  

Perhaps this is an opportunity for me to ask someone who knows the answer: what practical use does an emulator have?

Depending on how accurately and completely the emulator emulates the target processor (not the host processor), I can see how it could be used to step through a program, halting at any time to examine the contents of registers, etc., in the emulated processor, something not possible when running the program on a real processor.

Other than that, I can't see any reason for an emulator such as QEMU or VM.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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