LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-24-2011, 01:41 PM   #1
michaelinux
Member
 
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Rep: Reputation: 17
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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-24-2011, 01:52 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
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.
 
Old 08-24-2011, 01:53 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
I guess the whole X system would considerably reduce the required space (and you don't really need X for running a web server)
 
Old 08-24-2011, 03:22 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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
 
3 members found this post helpful.
Old 08-25-2011, 02:22 AM   #5
roberto967
Member
 
Registered: Apr 2011
Distribution: Slackware64-current
Posts: 65

Rep: Reputation: 12
Quote:
Originally Posted by michaelinux View Post
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).

Last edited by roberto967; 08-25-2011 at 02:25 AM.
 
3 members found this post helpful.
Old 08-25-2011, 11:23 AM   #6
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 276

Rep: Reputation: 74
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.
 
2 members found this post helpful.
Old 08-25-2011, 12:30 PM   #7
roberto967
Member
 
Registered: Apr 2011
Distribution: Slackware64-current
Posts: 65

Rep: Reputation: 12
Slax-dude, I saw your article about minimal slack's tagfiles. Do you have plans to update it to v. 13-37?
 
Old 08-26-2011, 11:17 AM   #8
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 276

Rep: Reputation: 74
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
 
Old 05-15-2013, 09:48 PM   #9
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Rep: Reputation: 50
Wink 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.
 
Old 05-15-2013, 11:10 PM   #10
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 301

Rep: Reputation: 47
Quote:
Originally Posted by roberto967 View Post
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.
 
  


Reply

Tags
server, slackware, virtualbox, web


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the best free virtual machine to run windows on slackware? Barx Slackware 29 12-11-2012 05:17 AM
Using Slackware in a Virtual Machine -- adjust window size dishbreak Slackware 2 10-06-2009 04:53 PM
Slackware 11.0 RC1 Virtual Machine centauricw Slackware 7 02-01-2007 09:23 AM
Slackware Virtual Machine centauricw Slackware 6 01-01-2007 05:06 PM
Problems running Slackware 11 on Virtual Machine from WMWare Workstation 5 Daniel-UFF Slackware 1 11-09-2006 08:30 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration