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, 08:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Virtualization
Qemu virtual machine on Puppy
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Fri 29 Oct 2010, 03:49    Post_subject:  Qemu virtual machine on Puppy
Sub_title: Slow but works
 

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.



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 Cool

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send_private_message Visit_website 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Sat 04 Dec 2010, 11:28    Post_subject:
Sub_title: kqemu?
 

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/distributions/tinycorelinux/3.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 Sad

Maybe try again? Have you give it a shot!


Regards,
moB

Quote:

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
Back to top
View user's profile Send_private_message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 09 Feb 2011, 08:27    Post_subject:  

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
Back to top
View user's profile Send_private_message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Wed 16 Feb 2011, 22:56    Post_subject:  

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 Smile

Code:

# 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
moBscrs.png
 Description   Screenshot: VirtualBox running in Puppy Frugal loading msWin, Puppy, and TC VM.
 Filesize   144.57 KB
 Viewed   3777 Time(s)

moBscrs.png

Back to top
View user's profile Send_private_message 
moB

Joined: 19 Oct 2009
Posts: 116
Location: Coastal

PostPosted: Thu 17 Feb 2011, 00:56    Post_subject: ps
Sub_title: a bit more
 

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 Wink


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. Smile

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
Back to top
View user's profile Send_private_message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Thu 17 Feb 2011, 03:58    Post_subject:  

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
Back to top
View user's profile Send_private_message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Thu 17 Feb 2011, 10:19    Post_subject:  

Thanks shinobar - love the script Smile (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, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send_private_message 
oui

Joined: 20 May 2005
Posts: 2097
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Tue 18 Oct 2011, 05:53    Post_subject:  

please see this message concerning puppy wary

http://www.murga-linux.com/puppy/viewtopic.php?p=574130#574130
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Tue 18 Oct 2011, 11:34    Post_subject:  

Guys before we get the ARM hardware . . . Smile
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/viewtopic.php?p=548973#548973

then I typed this in the console - seemed to work - no idea what to do next . . . ? Confused
Code:
qemu-arm -cpu any


I also tried following the instructions from shinobar
which also seemed to work - but they only set up
x86 emulation? Shocked

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Virtualization
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.0884s ][ Queries: 13 (0.0071s) ][ GZIP on ]