Qemu virtual machine on Puppy

Virtual machines, emulation, etc.
Post Reply
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Qemu virtual machine on Puppy

#1 Post by shinobar »

A virtual machine system on Puppy. (Running Puppy on Puppy)
It may be too slow for actual use.
I usually using it for taking snapshots of the bootup screen.

Requirement:
Puppy-4.3.1(kernel 2.6.30.5) is best but may work on any Puppy ignoring the speed.
512MB or larger RAM. If less, swapping essential.
1GB or larger Disk space, depends on what size you make the virtual hard disk.
First CPU. The fast is the better.

Downloads: Both from here.
  1. qemu-0.11.0-rc1-1-sfs
    (For the older kernel less than 2.6.19(?), use qemu-0.91-2-sfs3.sfs instead)
  2. qemupc-blank-2.2.tar.gz
Setup:Assuming you are running Puppy in frugal install.
  1. Place the sfs in /mnt/home.
  2. Read the sfs using the bootmanager and reboot.
  3. Extract the tar.gz file. The directory 'qemupc' will be created.
  4. Copy the whole directory 'qemupc' to somewhere say /mnt/sda2, having large space on HDD.
  5. Click the 'qemupootup.sh' under the 'qemupc', say /mnt/sda2/qemupc/qemupootup.sh.
    (Optional)You can make its link in /root/my-application/bin.
Image

You can see a boot menu if you select 'Boot from: Floppy' and press OK.
But does not go further because the virtual HDD is blank.

Running Puppy Live CD on the virtual machine:
Using iso image file:
  1. Place some iso image file of Puppy, for example pup-431.iso, somewhere on your real HDD.
  2. Make its link in the qemupc/virtualpc, say /mnt/sda2/qemupc/virtualpc/pup-431.iso.
  3. Ensure there is no CD in the real CD drive of the real PC.
  4. Click the 'qemupootup.sh'.
  5. Select the iso image for the virtual CD, and select 'Boot from CD'
  6. press OK.
  7. For the graphic of the virtual Puppy, select 'Xvesa'.
    'Xorg' fails when the virtual OS is Puppy-4.x.
    For Puppy-5.x as the virtual OS, 'Xorg' may work.
Using burned CD:
  1. Insert Puppy Live CD in the real CD drive of the real PC.
  2. Do not mount the CD with the real OS, Puppy.
  3. Click the 'qemupootup.sh'.
  4. Select '/dev/cdrom' for the virtual CD, and select 'Boot from CD'.
  5. press OK.
  6. For the graphic of the virtual Puppy, select 'Xvesa'.
    'Xorg' fails when the virtual OS is Puppy-4.x.
    For Puppy-5.x as the virtual OS, 'Xorg' may work.
You can also use Windows Xp install CD/DVD if you have, with the same step above.

Installing Puppy in virtual HDD:
The initial virtual HDD, sda.img is blank.
You need to format it using GParted with the virtual Puppy Live CD.
Then frugal or full install with normal step.

Known issue:
'Xorg' fails when the guest OS is Puppy-4.x. Use 'Xvesa'.
For Puppy-5.x as the guest OS, 'Xorg' may work.
Windows 7 cannot installed as the guest OS. Vista not tried.
Windows Xp can. For the Windows 2000, use older version qemu-0.91-2-sfs4.sfs.
The help file is only in Japanese 8)
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

moB
Posts: 116
Joined: Mon 19 Oct 2009, 11:25
Location: Coastal

#2 Post by moB »

Have you tried to use kqemu, mate?

It will likely work for all qemu-0.11 and less. Support was dropped for the accelerator after that, I recall.

Yeah, I ran qemu with TinyCore (3.3) just to remember the good old days when JohnMurga and roberts worked together...

http://distro.ibiblio.org/pub/linux/dis ... x/release/

Ran it on an old ex-msWin98 box just for good measure.
Man was that sloooow! Deleted the whole thing after a chuckle.

Nice to be able to try again, if you can get kqemu working. I failed :-(

Maybe try again? Have you give it a shot!


Regards,
moB
Aside from those more obvious considerations touching Moby Dick, which
could not but occasionally awaken in any man's soul some alarm, there
was another thought, or rather vague, nameless horror concerning him..."
--Melville, Moby-Dick

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#3 Post by nooby »

Wow 2010 Dec this is just some months ago I thought it was 2008 or something.

Is Qemu that slow still and not fast like Vbox?

Anyway I want to learn TCL the Roberts brainchild running it virtually on Lupu or Fluppy or some other Puppy.

So is Vbox faster and more easy to use trying out small isos like TCL?

I know that I can save TCL on ext2 harddisk but if I am in a virtual environ and then do BackUp and Restore in TCL will it remember changes from day to day when the machine is shut down?

Can I transfer something I saved from Guest to Host? Or are they stuck forever into the virtual disk

I guess a cheat would be to send an email to gmail and then download it to host from there?
I use Google Search on Puppy Forum
not an ideal solution though

moB
Posts: 116
Joined: Mon 19 Oct 2009, 11:25
Location: Coastal

#4 Post by moB »

nooby wrote:Wow 2010 Dec this is just some months ago I thought it was 2008 or something.

Is Qemu that slow still and not fast like Vbox?

Anyway I want to learn TCL the Roberts brainchild running it virtually on Lupu or Fluppy or some other Puppy.

So is Vbox faster and more easy to use trying out small isos like TCL?

I know that I can save TCL on ext2 harddisk but if I am in a virtual environ and then do BackUp and Restore in TCL will it remember changes from day to day when the machine is shut down?

Can I transfer something I saved from Guest to Host? Or are they stuck forever into the virtual disk

I guess a cheat would be to send an email to gmail and then download it to host from there?
I like to install TC on a single (V)HD [(Virtual)HardDrive], not two, as often suggested.
Here's an example from this (old) box I'm on now.
All OSs have a 1GB (V)swap-drive.

The Puppy and TC installations could share a (V)HD, because TC needs only /boot/grub/, /home/tc, and /tce directories.
Puppies agree on the /boot/grub and go into their own psubdirs.

Gotta love that gfx grub boot menu :)

Code: Select all

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Mon Nov  1 04:36:12 2010
# mod moB   LastMod: 23 Nov 2010 
#
# Start GRUB global section
  timeout 13
  default 1
# color light-gray/blue black/light-gray
# color green/blue red/light-grey
  gfxmenu /boot/grub/deep_stage1
# splashimage=(hd1,0)/grub/splash.xpm.gz 
# End GRUB global section

# Other bootable partition config begins
  title msWin 3.1 
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
# Other bootable partition config ends

# Linux bootable partition config begins
  title TinyCore
  root (hd0,1)
  kernel /boot/bzImage tce=sda2 home=sda2 host=moBBox quiet
  initrd /boot/tinycore.gz
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Puppy 4.31
  root (hd1,0)
  kernel /pup431/vmlinuz root=/sdb1 ro vga=normal psubdir=pup431
  initrd /pup431/initrd.gz
# Linux bootable partition config ends

# Linux bootable partition config begins
  title K9
  root (hd1,0)
  kernel /k-9/vmlinuz root=/sdb1 ro vga=normal psubdir=k-9
  initrd /k-9/initrd.gz
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Puppy (Filesystem Check)
  root (hd1,0)
  kernel /pup431/vmlinuz root=/dev/sdb1 ro vga=normal psubdir=pup431 pfix=fsck
  initrd /pup431/initrd.gz
# Linux bootable partition config ends

# Linux bootable partition config begins
  title TinyCore Base
  root (hd0,1)
  kernel /boot/bzImage tce=sda2 home=sda2 base norestore quiet
  initrd /boot/tinycore.gz
# Linux bootable partition config ends


title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title -     For help press 'c', then type: 'help'
root (hd0)
title -     For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)


Have fun!

moB
Attachments
moBscrs.png
Screenshot: VirtualBox running in Puppy Frugal loading msWin, Puppy, and TC VM.
(144.57 KiB) Downloaded 5859 times

moB
Posts: 116
Joined: Mon 19 Oct 2009, 11:25
Location: Coastal

ps

#5 Post by moB »

ps.

You and your data are not trapped in the VM.

Access can be made three ways [edit] besides the email/sshfs over internet, as mentioned by nooby [/edit].
  • 1. Raw disk. Safe and effective in some situations, but not ususally your first choice.

    2. RDP. Remote dektop protocol is suppoerted in VBox, so the VMs can be accessed from anywhere, really.
    This requires more setup. One usually needs something simpler, but this is waaay cool!

    3. VBoxGuestAdditions. Your best bet. Here we compile our own, but they are also available as pets, sfs, and tgz for Puppy & TC.
    To compile in TC load base norestore, load: xorg, compile, & kernel-header extensions. Setup xorg, compile and package to make additions persistent.
    To make in Puppy is explained in this forum.
Search Puppy forum: [link]http://www.murga-linux.com/puppy/viewtopic.php?t=29754[/link]

To get info on compiling VBox Guest additions you should look to the [link]http://tinycorelinux.com/forum/[/link].
There you will find experts like Kingdomcome. Better than an old white whale ;)


The guest additions work, except the copy clipboard. Text is not copied to/from guest/host using linux host and guest.
When these same VMs are run from msXP the function does work.

I put the actual vdi files in the VBox HardDrives folder on the XP drive (ntfs).
In the frugal puppy OS symlinks point to these, saving space in the personal save-file. :)

If msWin ever needs to run GNU/linux is not far away.

moB

"In the first place, you are struck by the general contrast between these heads.
Both are massive enough in all conscience; there is a certain mathematical
symmetry in the Sperm Whale's which the Right Whale's sadly lacks."

--Melville, Moby Dick

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#6 Post by nooby »

moB I write a PM to you so we don't derail the thread with my stuff.
I use Google Search on Puppy Forum
not an ideal solution though

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#7 Post by jamesbond »

Thanks shinobar - love the script :) (I can't use the SFS because I'm on 64-bit).

The later version of qemu seems to be a lot slower, pity I no longer have a copy sources for qemu 0.9.x - the earliest I have is 0.10.x.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

oui

#8 Post by oui »

please see this message concerning puppy wary

http://www.murga-linux.com/puppy/viewto ... 130#574130

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#9 Post by Lobster »

Guys before we get the ARM hardware . . . :)
http://puppylinux.org/wikka/PARM
. . . is it possible to use the Qemu SFS in ARM mode?

I loaded the qemu sfs in Dpup Exprimo 5.X.8
http://www.murga-linux.com/puppy/viewto ... 973#548973

then I typed this in the console - seemed to work - no idea what to do next . . . ? :?

Code: Select all

qemu-arm -cpu any
I also tried following the instructions from shinobar
which also seemed to work - but they only set up
x86 emulation? :shock:
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply