Note: THIS is on running puppy INSIDE virtualbox on windows or Linux.
NOT about getting virtualbox running INSIDE puppy.

(quick summary of what i normally do)
#1 - Install virtualbox.

#2 - Get a puppy linux iso file.
#3 - Fire up virtualbox and follow the wizard.
Settings to normally use.
Defaults for most things, however you may want to enable a sound card, and on linux you may want to use 'nat' for the network card settings.
On a linux box (ubuntu 9.04) i am using
Base Memory : 128mb or more if you can spare it. I have 4gb ram. so i give puppy 512mb
Video Memory 8mb. (or more if you can spare it)
Cpu Settings : Depends on your machine
3d Acceleration: Enabled.
** No idea if this helps ** but i enabled it anyway
Audio : Pulse Audio/ICH AC97 and it works fine.
Network Adaptor: PCnet-PCII (NAT)
SHARED FOLDER FEATURE (This often gets overlooked)
You can share a folder on your 'host' machine easially with the virtualbox guest machine . I normally share one called 'vboxshare' This folder will be mountable once you get the virtualbox guest addations installed. (which we will do a little later in this doc)
so i share '/home/willis/vboxshare' On windows I share C:/vboxshare
Hard Drive. - Whatever size you want. If you want to test/play with the actual installing of puppy linux a few 100mb will do. I always set it to be about 1gb in size.
Thats it for the 'setup' be sure to mount the puppy iso file in the virtual cdrom drive and boot that puppy up!.
it 'should' boot up to the puppy questions in about 20 sec. Answer them how you like.
usb mouse, whatever language/layout you use.
SELECT XVESA FOR THE X DRIVER
Otherwise you get a black screen and have to reboot the virtualbox machine.
If all goes right. you should see a puppy desktop, and hear the woof woof! Now you can toy with Puppy.
Now that you have it going, Do you wish to do a hard drive install? Great You can toy with the installer all you want and not break anything.
Note: i do not do a 'click by click/dialog by dialog tutorial here' its best that you look/read/think and apply the hints i am giving.
If i figure out how i may make a video of a quick install like i am doing here.
Frugal Install under virtualbox. (why not a full? I have no idea, i always do frugals)
#1 - Partition the hard drive how you want. This is your 'virtual hard drive' so you really cant mess things up too badly.
Menu -> system -> gparted partition manager.
dialog box pops up mentioning the sda internal drive 'ATA VBOX HARDDISK'
The default hard drive should be '/dev/sda'
Now you can toy with gparted and set up some partitions. Since this is a virtual hard drive you dont have to worry about messing things up, and you can learn the ins and outs of gparted.
Dont forget to use the 'apply' button to actually do your changes to the hard disk.
So for now - make a primary partition at the start of the hard drive of ext2, and a smaller swap partition at the end.
I used 800mb for / and 256mb for the swap. Your numbers will vary depending on the size of your virtual drive. Be sure to tell gparted to format the partitions, and apply the changes. There you go - hard drives all formated. Now time to do the actual install.
Menu -> setup -> Puppy universial Installer
You wish to use the 'Internal (IDE or SATA hard drive)'
install puppy to 'sda'
I always do a 'frugal' install. Im not even sure why one needs to do a full install.
Also i normally install to the 'puppy420' directory - to keep things neat.
Wait patiently as the files install.

Now comes up the 'tricky' part. READ the rather large dialog box that comes up after its done copying. Note that it says it put a file
/tmp/NEWGRUBTEXT that has the proper GRUB menu entry in it for your system. This will save you some typing later.
You get "OK all Done" - well the sytem is installed. but NOT THE BOOT LOADER. We will set up GRUB now.
You can always just use the CD to boot the system. Using grub (detailed below will make it a little faster and easier, but is not that big a deal when using virtualbox)
#1 - backup that /tmp/NEWGRUBTEXT to the hard drive.
( this is not needed, but its saved me a lot of typing trying to restore grub in the past, and if you decide to not install grub now and use the cd to boot, it will be handy if you ever decide to install grub later. If nothing else its worth remebering that the installer DOES make this file for you to look at for an example on other installs)
Use the mount Icon on the desktop. to mount the hard drive. 'sda1'
You should see it in the file manager, with 2 directories, 'lost+found' and 'puppy420'
Now copy that /tmp/NEWGRUBTEXT to sda1, so you have it in case you need to refer to it. (I like redundant backups) Either use the file manager. or use the console icon and at the terminal window use the command.
Code: Select all
cp /tmp/NEWGRUBTEXT /mnt/sda1
If anything else is accessing the hard drive You may need to use the 'kill' feature to force the drive to get unmounted.
If the grub installer still rants about it being mounted you may need to open a console and use the 'umount /dev/sda1' command
I am tempted to just not even include this 'Backup the NEWGRUBTEXT' paragraph. but Often its just SOO handy to have that file on the hard drive for system recovery.
If all else fails, you can always follow the installer guide i have given and just dont backup the NEWGRUBTEXT to the hard drive. dont mount it, dont worry about it. Providing you dont reboot after doing the install NEWGRUBTEXT will be in /tmp
The grub installer is a little 'picky' about installing to a hard drive if its already mounted. I dont know if this is by design, or a bug that just gets overlooked. I have no idea why i have to unmount the thing to just have it get remounted by the installer. It would be nice if i could just tell the installer to use /mnt/sda1 instead of /dev/sda1
(rant over)
2) We are now ready to actually install grub.
Now to do the actual installing of GRUB.
menu -> system -> Grub Bootloader Config.
Just to get the thing going. i use the following options..
Simple, Standard,
Where Do you want the GRUB files. You want them on /dev/sda1
Now, you have the option of 'Select Grub Destination'
Root, Floppy, or MBR.
The Dialog box seems to imply that MBR needs extra work and is dangerout.. Im not sure why it says this. since it dosent seem to be accurate. I dont seem to have to set the boot flag later like the dialog implies
So I Select MBR.

Now you are ALMOST DONE...
The GRUB installer just mounted sda1, instlled the files, then unmounted it.. NOW you get to remount it! (logical eh?)
Using the mount tool, remount your hard drive. You wish to edit the boot/grub/menu.lst file
Click on that file to open it up in geany, and also in geany use the open button to open either /tmp/NEWGRUBTEXT if its still there. or /mnt/sda1/NEWGRUBTEXT , it contains 4 lines, select, and copy the text. Now back to the menu.lst tab in geany.
IF all else fails - i give an example of the NEWGRUBTEXT in the next message.
After the line
#End GRUB global section You copy/paste the 4 lines from the NEWGRUBTEXT file.
ie:
Code: Select all
#End GRUB Global Section
title Puppy Linux 420 frugal
rootnoverify (hd0,0)
kernel /puppy420/vmlinuz pmedia=atahd psubdir=puppy420 nosmp
initrd /puppy420/initrd.gz
The grub entries below what we just pasted are not critical, and could be deleted if you wanted to.
Save the file. and use the menu-> Shutdown (shutdown) option.
I would not bother doing a 'save to file' at this time
when it shuts down, you wish to 'eject' the puppy cd from the virtual machine. Using the virtualbox menus, or configs or else it will boot that. and not our new installed system.
Now if every thing worked right. You start up the puppy vbox machine and it should boot up.
And you have a nice grub menu with 'Puppy 420 frugal' entry at the top.
The system will boot. and ask you the same few questions.. rember to select XVESA for the driver. (we will fix that later)
You should now be at the normal puppy desktop.
What i suggest now at this time, assuming it all worked. is reboot and make a save file, befor you start tweaking/customizing things on your new desktop. You might want to backup your virtual machine image Unless you want to go through this again. (once you figure it out, it will take you all of 10 min to do a puppy install in virtualbox, Honestly!)
So In summery, You got a basic puppy setup running inside virtualbox.
The next thing to help it run better is to install the virtual box guest add ons.
(you rebooted and made a save file right?) Now to the next step.
So configure your guest add ons.
http://www.murga-linux.com/puppy/viewto ... 9&start=15 is the thread on this topic. In short..
configure your network. (makes it hard to download files otherwise)
On that thread post. the first item has links to the vbox guest pets you need.
(the following url may change if new versions come out, it may be best to recheck that thread)
http://www.murga-linux.com/puppy/viewto ... &id=14275
Now you have the file virtualbox_guest_additions-2.1.4.pet
(version #'s may change) Click on that thing and install it, once its done.
menu -> shutdown -> reboot.
If all goes well.. You will get a dialog from virtual box about 'mouse pointer integeration' - Great! you no longer need to keep using the LEFT Control key to ungrab the mouse! and the gfx and other features are enabled.
Step 2 - will be tweaking virtualbox a little bit more for puppy.
(to be continued)