LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 08-24-2011, 12:41 PM   #1
michaelinux
Member
 
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 153

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
Guru
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 7,580
Blog Entries: 2

Rep: Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671
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
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
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 12.2 (2.6.27.59), 13.1 (2.6.33.15)
Posts: 2,576

Rep: Reputation: 275Reputation: 275Reputation: 275
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
Distribution: Slackware64-current
Posts: 55

Rep: Reputation: 9
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.
 
1 members found this post helpful.
Old 08-25-2011, 10:23 AM   #6
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 165

Rep: Reputation: 53
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.
 
1 members found this post helpful.
Old 08-25-2011, 11:30 AM   #7
roberto967
Member
 
Registered: Apr 2011
Distribution: Slackware64-current
Posts: 55

Rep: Reputation: 9
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, Portugal
Distribution: Slackware
Posts: 165

Rep: Reputation: 53
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the best free virtual machine to run windows on slackware? Barx Slackware 24 03-17-2010 12:17 PM
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


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

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