Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just wondering, but why do members here and Linux users use virtual programs like Qemu,etc?
What things can be accomplished?
I'm sure there are many reasons-please list them...
Why do I use virtualization? Because it makes things easy.
I can easily test another distro/OS without having to leave my main distro. I simply run it in a window.
I can create test-environment which would more hardware than I have available. Like setting up 3 VMs for a cluster.
I can try out stuff without being at risk to mess up my system.
This especially comes in handy as I work on my own distro and thus have a lot of compiling to do, which, if done wrong, could easily mess up my system.
For that you need only between 5 and 10 GB space per distribution on your hard disk:
I usually assign 8. For most things I try that's plenty.
Quote:
Originally Posted by Didier Spaier
And you can even have several distributions running at the same time, but don't forget that each needs between 256MB and 1GB of RAM to run.
In order to run several VMs at a time (each with a GB of RAM) I upgraded to 8GB. And probably later this year I'll go from dual-core to quad-core for even more virtualization fun.
Cost. Instead of buying new hardware I can use existing hardware. That hardware may need a RAM/CPU/disk upgrade, but that's still leagues cheaper than new servers.
Of course, that assumes your hardware is underutilized. If it's already over-utilized all you're doing is adding another straw to the camel's back. So capacity planning is critically important.
Alright-those are great answers!
Now I have a couple questions-I'll post a different question after somebody answers these...
OK-with Qemu-Puppy and DSL-embedded both distro's can play off CD or USB, without restarting the computer, via Qemu-right?
Now-they both use .sh scripts to do this-but in different ways it seems...?
So, can I make a multi-distro CD/USB that has Qemu, like DSL-embedded/Puppy-Qemu, and is set up so that it will "play" the 4 or 5 distro's on the CD/USB via Qemu, just by inserting the CD/USB and invoking the script?
I would need to make a script that would give me a choice of which distro for Qemu to call up-yes?
How would I go about doing this?
Well-no one really answered my questions above, but I have another one too.
First-how do I setup VirtualBox as Didier has his above?
Second-is the question I asked in the previous post possible-
Code:
Now I have a couple questions-I'll post
a different question after somebody answers these...
OK-with Qemu-Puppy and DSL-embedded both distro's can play off CD or USB, without restarting the computer,
via Qemu-right?
Now-they both use .sh scripts to do this-but in different ways it seems...?
So, can I make a multi-distro CD/USB that
has Qemu, like DSL-embedded/Puppy-Qemu,
and is set up so that it will "play" the
4 or 5 distro's on the CD/USB via Qemu,
just by inserting the CD/USB and invoking the script?
I would need to make a script that would
give me a choice of which distro for Qemu to call up-yes?
How would I go about doing this?
Third-can a Linux distro-let's say "DSL", be remastered through Qemu, VirtualBox, etc?
Probably not-but could I try remastering through Qemu, etc so if I mess something up no harm done?
Get VirtualBox here. Follow the last link: all distributions => i386 to download it. At time of writing file's name is VirtualBox-2.1.4-42893-Linux_x86.run
Run or sh the installer as root. It will install in /opt.
Make and install the modules (of course you need the kernel source and headers):
Code:
cd /opt/VirtualBox-2.1.4/src
su
make
make install
Ctrl + d
If I remember well the installer creates itself a symlink /usr/bin/VirtualBox pointing to /opt/VirtualBox/VBox.sh. Otherwise, do it yourself.
You can now run VirtualBox. First time you do so, it will create the ~/.VirtualBox directory
Other way: use the SlackBuilds for VirtualBox-OSE @ http://sackbuilds.org to make yourself the packages and install it. You won't get support for USB in the guests machines in that case, because it is not included in the OSE edition but it works as well.
Ran into an issue in Slackware 12.2 installing Pulseaudio-needed by Virtualbox-
read about Vbox install here-
( http://muhrizky.wordpress.com/2008/1...slackware-122/ )
I built/installed all the dependencies on that page with sbopkg-except when installing pulseaudio it says-
Code:
Building pulseaudio
Building Slackware package for pulseaudio...
Must have a pulse group to run this script.
# groupadd pulse
Or something similar.
******************************************
PACKAGE BUILDING/INSTALLATION SUMMARY LOG
Using SlackBuilds.org 12.2 repository
Using the queuefile
pulseaudio:
Error occurred with build. Please check the log.
OK-got pulseaudio installed-downloading Vbox "VirtualBox-2.1.4-42893-Linux_x86.run" now. But can you elaborate on this-
"Make and install the modules (of course you need the kernel source and headers):"
What do you mean by that Didier??
chmod +x VirtualBox-2.1.4-42893-Linux_x86.run # make this file executable
./VirtualBox-2.1.4-42893-Linux_x86.run # run the installer
cd /opt/VirtualBox-2.1.4/src
make # make the kernel modules
make install # install it
modprobe vboxnetflt # load the first module
modprobe vboxdrv # load the second module
Note that the "modprobe" commands are only needed once, at next reboot these modules will be automatically loaded.
Please don't mix instructions. IMHO following this link was not needed. For instance I do not have pulseaudio installed and still VirtualBox works here. But don't worry, this won't hurt anyway, so you can keep it
One thing I forgot to tell you: you need to set-up a vboxusers group and make yourself member of it before you run VirtualBox. Do this as root:
Code:
groupadd vboxusers
gpasswd -a your_user_name vboxusers
Then as a regular user type:
Code:
groups
to check. As hopefully you will see vboxusers in the output, to launch the application type:
Code:
VirtualBox
Last edited by Didier Spaier; 04-01-2009 at 06:22 PM.
Reason: Misspelled command
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.