LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware on a Virtual Machine? (http://www.linuxquestions.org/questions/slackware-14/slackware-on-a-virtual-machine-899219/)

michaelinux 08-24-2011 12:41 PM

Slackware on a Virtual Machine?
 
I want to use slackware as a web server but i want to have it on a virtual machine, i know how to install it and everything but i need to be able to copy my virtual machine on my usb drive which is limited to 3.7GB (embarrassing i know...), what packages could i leave behind to reduce the size of the installtion and still be able to run it as a web server?

TobiSGD 08-24-2011 12:52 PM

Install anything that does not belong to the GUI, so no KDE, KDEI, XAP, X. It should also be safe to leave out the packages that have no use on a server, for example command line music-players. Just make sure that you have all needed dependencies.

sycamorex 08-24-2011 12:53 PM

I guess the whole X system would considerably reduce the required space (and you don't really need X for running a web server)

Woodsman 08-24-2011 02:22 PM

If you are using VirtualBox, you can both compact the size and clone the USB virtual machine.

To compact:

1. Open the virtual machine
2. dd if=/dev/zero of=/bigfile (wipes free space with zeroes)
3. rm -f /bigfile
4. Close the virtual machine
5. vboxmanage modifyvdi nameof.vdi compact

Compacting will reduce the size of the virtual machine. I compact my Current virtual machine often. I save considerable space each time.

FWIW: To compact a Windows virtual machine, download a utility called sdelete. Use that command to zero wipe all free space. Then compact the same way using the vboxmanage command.

To clone:

vboxmanage clonehd usbimage hdimage

roberto967 08-25-2011 01:22 AM

Quote:

Originally Posted by michaelinux (Post 4452312)
I want to use slackware as a web server but i want to have it on a virtual machine, i know how to install it and everything but i need to be able to copy my virtual machine on my usb drive which is limited to 3.7GB (embarrassing i know...), what packages could i leave behind to reduce the size of the installtion and still be able to run it as a web server?

This set of packages is for Linux-Vserver: http://notes.sagredo.eu/sites/notes....erver/PKG_LIST. It produces a guest of about 450MB and fits all the prerequisites for httpd, mysql, postgres, qmail and related.
Since Linux-Vserver is an OS level virtualization, if you have qemu or virtualbox etc. just add all hardware and kernel related packages (more info here: http://notes.sagredo.eu/node/7).

Slax-Dude 08-25-2011 10:23 AM

I run my site on a minimal-slackware VM using KVM.
It totals 359MB after installed, and that includes 80MB worth of www and mysql content.

roberto967 08-25-2011 11:30 AM

Slax-dude, I saw your article about minimal slack's tagfiles. Do you have plans to update it to v. 13-37?

Slax-Dude 08-26-2011 10:17 AM

As soon as I get LXC working with libvirt I'll look into it :)
There should not be a very different package list from 13.1

NightSky 05-15-2013 08:48 PM

Please Sticky - Slackware On Virtual Machine
 
Please, please sticky this thread - my post. lol
This is one of the most concise Guide & Intro Easy to Understand + Howto + Resources I have come across on this forum. It would be a terrible waste not to Sticky this thread. A multitude of gratitude to the contributors - Your Websites exemplify Quality over Quantity. Thank you for teaching me what you know.

kite 05-15-2013 10:10 PM

Quote:

Originally Posted by roberto967 (Post 4452796)
This set of packages is for Linux-Vserver: http://notes.sagredo.eu/sites/notes....erver/PKG_LIST. It produces a guest of about 450MB and fits all the prerequisites for httpd, mysql, postgres, qmail and related.
Since Linux-Vserver is an OS level virtualization, if you have qemu or virtualbox etc. just add all hardware and kernel related packages (more info here: http://notes.sagredo.eu/node/7).

The slackpkg template approach is so nice. I learned something today. Thanks.


All times are GMT -5. The time now is 08:35 PM.