{"id":84,"date":"2008-06-25T21:51:46","date_gmt":"2008-06-26T02:51:46","guid":{"rendered":"https:\/\/lowtek.ca\/roo\/?p=84"},"modified":"2008-06-25T21:51:46","modified_gmt":"2008-06-26T02:51:46","slug":"puppy-linux-400-with-vmware-player","status":"publish","type":"post","link":"https:\/\/lowtek.ca\/roo\/2008\/puppy-linux-400-with-vmware-player\/","title":{"rendered":"Puppy Linux 4.00 with VMWare Player"},"content":{"rendered":"<p>Even if you&#8217;ve been living under a rock for the last few years you&#8217;ve probably heard about virtualization, but you may not have taken the plunge quite yet.\u00a0 LiveCD images are a great way to toy around with new operating systems, but using virtualization can make it an even nicer experience.\u00a0 The <a href=\"http:\/\/www.vmware.com\/products\/player\/\">VMWare Player<\/a> is free, and allows you to run pre-configured virtual images (appliances).<\/p>\n<p>After my recent experience installing <a href=\"http:\/\/www.ubuntu.com\/\">Puppy Linux<\/a> on an old laptop, I wanted to experiment a bit more using my desktop but didn&#8217;t want to give up my normal <a href=\"http:\/\/www.ubuntu.com\/\">Ubuntu<\/a> desktop experience.\u00a0 Being able to run two operating systems at the same time is useful.<\/p>\n<p>Google will help you discover how to do this, however my goal is to provide specific Puppy 4.00 instructions, and possibly inspire someone to try out virtualization if they haven&#8217;t done so yet.<\/p>\n<p><!--more--><\/p>\n<p>There were two search results that I found useful.\u00a0 The <a href=\"http:\/\/linuxmini.blogspot.com\/2007\/10\/how-to-install-puppy-linux-on-vmware.html\">first talks about <\/a><span style=\"font-family: verdana;\"><a href=\"http:\/\/linuxmini.blogspot.com\/2007\/10\/how-to-install-puppy-linux-on-vmware.html\">Puppy Linux 2.17.1<\/a> and there are a few things that are different in the 4.00 version.\u00a0 The <a href=\"http:\/\/www.vmwarez.com\/2006\/02\/livecd-player-virtual-machine.html\">second is more VMWare related<\/a>, discussing how to get a LiveCD image running under VMWare.\u00a0 The <a href=\"http:\/\/www.vmware.com\/vmtn\/appliances\/directory\/284\">same information<\/a> is duplicated on the VMWare site itself.<\/span><\/p>\n<p>The very first step is to download the Puppy Linux <a href=\"http:\/\/www.puppylinux.org\/downloads\/official-releases\/puppy-linux-40-dingo\">puppy-4.00-k2.6.21.7-seamonkey.iso<\/a> file.\u00a0 The file is only 87.1MB so it shouldn&#8217;t take too long.\u00a0 If you want to just burn a CD and then boot the LiveCD go head, you&#8217;re done stop reading now.\u00a0 If you are interested in playing with VMWare then you can skip burning the CD, but you will need to download <a href=\"http:\/\/www.vmware.com\/products\/player\/\">VMWare Player<\/a>.\u00a0 There are versions available for Windows and Linux (intel).\u00a0 The last bit you need to download is the <a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/vmwarezcom-generic-livecd-virtual-machine.zip\">LiveCD VMWare virtual appliance<\/a> which I&#8217;ve hosted locally as it is only 4k.<\/p>\n<p>Now unzip the virtual appliance (4k zip) somewhere.\u00a0 Then inside of the directory, rename the .nvram, .vmdk and .vmx files to have the same prefix name &#8211; I used &#8220;puppy4&#8221; but its really up to you.\u00a0 If you want, you can rename the directory these files are stored in as well.<\/p>\n<p>We need to modify the .vmx file as it points at the other files, there are three lines we need to change (this should seem pretty obvious):<\/p>\n<p>ide0:0.fileName = &#8220;puppy4.vmdk&#8221;<br \/>\ndisplayName = &#8220;PuppyLinux 4.00&#8221;<br \/>\nnvram = &#8220;puppy4.nvram&#8221;<\/p>\n<p>Now copy the puppy-4.00-k2.6.21.7-seamonkey.iso file to overwrite the empty livecd.iso file.<\/p>\n<p>At this point we&#8217;re ready to run VMWare Player and point it at the .vmx file to start up our first virtual image.\u00a0 Puppy 4.00 won&#8217;t work out of the box under VMWare (or at least it didn&#8217;t for me) so we need to watch carefully and interrupt the Puppy Linux boot process.\u00a0 We need to supply some extra kernel parameters on the boot (puppy acpi=off):<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-86\" title=\"screenshot1\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot1.png\" alt=\"\" width=\"500\" height=\"372\" \/><\/a><\/p>\n<p>Puppy should now boot and prompt for a keyboard choice (whatever you want), then it will ask about how to do graphics &#8211; you need to select Xvesa as the display type, not Xorg which is the default.\u00a0 Assuming all has gone well you&#8217;re now running effectively the LiveCD but inside of VMWare Player.<\/p>\n<p>If we want to avoid having do do the setup each time, we can go further and install Puppy Linux onto the virtual drive that is packaged in that 4k appliance zip.\u00a0 The first step to doing this is to partition the 2Gig virtual drive in preparation for installation.\u00a0 Do this using GParted which is part of the Puppy LiveCD:<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-87\" title=\"screenshot2\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot2.png\" alt=\"\" width=\"500\" height=\"408\" \/><\/a><\/p>\n<p>I decided to use a fraction of the 2Gig drive as Puppy doesn&#8217;t require a lot of storage. I used a 300MB ext2 partition, and a 128MB swap space &#8211; this mimics what I have on the laptop.\u00a0 The swap is not required as Puppy uses very little RAM and the appliance image being used should default to 256MB of RAM.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-88\" title=\"screenshot3\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot3.png\" alt=\"\" width=\"500\" height=\"408\" \/><\/a><\/p>\n<p>Now that the virtual drive has been partitioned, we can run the Puppy Universal Installer.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-89\" title=\"screenshot4\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot4.png\" alt=\"\" width=\"500\" height=\"408\" \/><\/a><\/p>\n<p>This will present you with a lot of install target options.\u00a0 I&#8217;ve used both the &#8220;USB Flash drive&#8221; and &#8220;Internal (IDE or SATA) hard drive&#8221; successfully.\u00a0 In the context of this virtual appliance, we want to select the &#8220;Internal (IDE or SATA) hard drive&#8221; as that is how the virtual disk appears to Puppy.\u00a0 The next thing we should see is a dialog indicating that the installer has found our newly paritioned drive.\u00a0 We want to click on the icon next to the &#8220;Install Puppy to hda1:&#8221; at the top.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-90\" title=\"screenshot5\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot5.png\" alt=\"\" width=\"500\" height=\"408\" \/><\/a><\/p>\n<p>When prompted for Frugal or FULL, we want to choose FULL.\u00a0 By doing this we force puppy to lay down a more traditional Linux filesystem and make it possible to use Grub for booting.<\/p>\n<p>The installer will do its thing, then ask if we want to install Grub (we do).\u00a0 Generally for this part accept the defaults, with one exception: when asked where to install, select the MBR.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-91\" title=\"screenshot6\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot6.png\" alt=\"\" width=\"500\" height=\"408\" \/><\/a><\/p>\n<p>Now we&#8217;re done with the puppy installer, but we want to modify the grub config manually to add the acpi=off flag to the kernel parameters. While we&#8217;re doing this it may also be a good idea to uncomment the timeout line to allow this system to automatically start instead of waiting for us to hit enter in Grub.<\/p>\n<p>We need to use the Puppy mount icon to mount the drive, this is the icon that looks like a USB thumb drive (third icon from the upper left corner).<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-91\" title=\"screenshot6\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot7.png\" alt=\"\" width=\"500\" height=\"408\" \/><\/a><\/p>\n<p>Once we&#8217;ve mounted hda1, simply navigate to the \/mnt\/hda1\/boot\/grub\/menu.lst and click on it once &#8211; this will open an editor on the file.\u00a0 Add the acpi=off to the line with the kernel parameters and save.\u00a0 Unmount had1 using the mount tool.\u00a0 Now we tell Puppy we want to power off &#8211; when prompted, don&#8217;t save.<\/p>\n<p>VMWare Player should terminate on power off.\u00a0 We then need to edit the .vmx file to remove the livecd.iso such that we can boot from the newly installed virtual drive.\u00a0 This requires a one line change:<\/p>\n<p>ide1:0.present = &#8220;FALSE&#8221;<\/p>\n<p>Now run VMWare Player again, and select the Puppy Virtual Machine, it should appear in the list of Recent Virtual Machines.\u00a0 Again we will be prompted for keyboard and graphics config, but this time we&#8217;re working against a persistent file system so our choices will be remembered for future runs.<\/p>\n<p>You&#8217;ll probably have to run the network wizard inside of Puppy to get connected to the internet (assuming you have VMWare Player configured to allow this as well).\u00a0 Again, this will be persisted to the next run as we&#8217;re working against a live system.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-93\" title=\"screenshot8\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2008\/06\/screenshot8.png\" alt=\"\" width=\"500\" height=\"400\" \/><\/a><\/p>\n<p>Using the Puppy Package Manager (desktop icon labelled install) you can add Firefox and plenty of other add ons.\u00a0 So, that&#8217;s it &#8211; you&#8217;re done.\u00a0 You can use the same base VMWare image to try out any LiveCD without leaving the comfort of your host OS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even if you&#8217;ve been living under a rock for the last few years you&#8217;ve probably heard about virtualization, but you may not have taken the plunge quite yet.\u00a0 LiveCD images are a great way to toy around with new operating systems, but using virtualization can make it an even nicer experience.\u00a0 The VMWare Player is &hellip; <a href=\"https:\/\/lowtek.ca\/roo\/2008\/puppy-linux-400-with-vmware-player\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Puppy Linux 4.00 with VMWare Player&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-computing","category-how-to"],"_links":{"self":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":0,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"wp:attachment":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}