LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12: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, 12:52 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 12:53 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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, 02:22 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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, 01:22 AM   #5
roberto967
Member
 
Registered: Apr 2011
Location: Cagliari, Italy
Distribution: Slackware64-15.0 multilib
Posts: 117

Rep: Reputation: 36
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 01:25 AM.
 
3 members found this post helpful.
Old 08-25-2011, 10:23 AM   #6
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
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, 11:30 AM   #7
roberto967
Member
 
Registered: Apr 2011
Location: Cagliari, Italy
Distribution: Slackware64-15.0 multilib
Posts: 117

Rep: Reputation: 36
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, 10:17 AM   #8
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
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, 08:48 PM   #9
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
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, 10:10 PM   #10
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

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



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 04:17 AM
Using Slackware in a Virtual Machine -- adjust window size dishbreak Slackware 2 10-06-2009 03:53 PM
Slackware 11.0 RC1 Virtual Machine centauricw Slackware 7 02-01-2007 08:23 AM
Slackware Virtual Machine centauricw Slackware 6 01-01-2007 04:06 PM
Problems running Slackware 11 on Virtual Machine from WMWare Workstation 5 Daniel-UFF Slackware 1 11-09-2006 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:48 AM.

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
Open Source Consulting | Domain Registration