LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How To set up an virtual box? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-up-an-virtual-box-817029/)

Manish87 06-29-2010 01:28 PM

How To set up an virtual box?
 
Hey,

i am new to linux,its been a month since i have started using it, neways my question is on how i could run virtual box(xp sp2) under my fedora12? i am using a desktop computer with 1 gb memory!!






Kind Regards,
Manish

zirias 06-29-2010 01:42 PM

There are a lot of options. On a desktop system using a modern CPU with virtualization extensions, I'd suggest qemu/kvm for this. Look in the repository of your distribution for packages :)

Manish87 06-29-2010 01:49 PM

Hey,

thanx for the reply ;)

But how caan i install the virual box? any software? i guess we can do it through vmware :)




Kind Regards,
Manish

zirias 06-29-2010 01:58 PM

Uhm, as I said, I would suggest qemu with kvm -- but of course, you can also use vmware, if you prefer that. qemu/kvm has the "advantage" of being open source, though.

If you don't want to call it all at the command line, there are some GUI management tools, look for example here: http://qemu-buch.de/de/index.php/QEM...r_QEMU_und_KVM -- but I can't share any experience cause i'm using qemu directly from the commandline

edit: sorry, just realised the link was leading to a GERMAN page ... here's something in english: http://www.linux-kvm.org/page/Management_Tools

MrCode 06-29-2010 02:22 PM

I think the OP is referring to VirtualBox. It doesn't require VT-x or AMD-V extensions, but it's much, much faster with them (most of the time). You should be able to find it in Fedora's repositories. Just do a yum install virtualbox-ose (or whatever the command is for installing software under Fedora), or use the graphical Add/Remove Software tool, whichever is easier. :)

Hope this helps...

zirias 06-29-2010 02:50 PM

Quote:

Originally Posted by MrCode (Post 4018569)
I think the OP is referring to VirtualBox.

IBTD, cause he also mentioned vmware ;)

But, as I said before, there are lots of options for virtual machines now. VirtualBox is a nice one, too, using it on win7-64 for accessing my encrypted LVM from windows ;)

jefro 06-29-2010 03:29 PM

I tend to like VMwares VMplayer but Oracle's virtualbox is good. See the web sites for the downloads. I use qemu a lot but I am not sure I'd suggest it to a newbie but most linux distro's have a gui to make it pretty simple.


As above a fully supported hardware really makes it work almost as fast as dual boot. It some tests even faster. It is really a safe and easy way to try new OS's.

digsecurity 06-30-2010 12:46 AM

This may help: http://share4a11.blogspot.com/p/virt...ualbox-in.html

Manish87 07-01-2010 09:50 AM

Hi,

Thanks For the Reply guys,Really appricated it!! Bythe way i saw a youtube of ORACLE VM VIRTUAL BOX,it looks really great and would like to install it on my fedora!! anyone out there who has an idea of on how to install it?





Kind Regards,
Manish

rsciw 07-01-2010 10:20 AM

should be doable by executing

sudo yum install virtualbox-ose
in the commandline, or use the appropriate GUI package software to find and install it.

you can also visit virtualbox.org and follow the instructions there how to get the PUEL version of virtualbox instead of the OSE version, but for the beginning the OSE version is more than enough.

Manish87 07-01-2010 11:49 AM

Hi,

Thanks for the reply!! i installed the virtual box 3.2 on my fedora12

Source:
http://resa.linux-hardcore.com/?p=523


Output:

Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 44 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 44 M
VirtualBox-3.2-3.2.6_63112_fedora12-1.i686.rpm | 44 MB 13:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : VirtualBox-3.2-3.2.6_63112_fedora12-1.i686 1/1

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.


Success!

WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

Installed:
VirtualBox-3.2.i686 0:3.2.6_63112_fedora12-1






"WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/."----- will this effect the working of the virtual box??





Kind Regards,
Manish

catkin 07-01-2010 12:40 PM

Quote:

Originally Posted by rsciw (Post 4020638)
but for the beginning the OSE version is more than enough.

Unless you want to attach any USB devices to the VirtualBox VM -- they are supported in the PUEL version but not the OSE version.

zirias 07-01-2010 04:26 PM

Quote:

Originally Posted by Manish87 (Post 4020747)
"WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/."----- will this effect the working of the virtual box??

No. It's a warning. This means the CURRENT version of modutils installed on your box will still read the configfile /etc/modprobe.conf, but some future version will probably stop doing so. If this configfile was created by the virtualbox package, this package won't work any more with some FUTURE version of modutils. But i guess you can expect a newer virtualbox package by then, too.

hanzerik 07-02-2010 12:19 AM

Don't forget to add your normal user to the vboxusers group
Code:

usermod -a -G vboxusers hanzerik

hanzerik 07-02-2010 12:27 AM

A down and dirty script to create a VM with bridged networking using eth0, and a 15Gig virtual drive. I use ISO images whenever creating Virtual machines, so the line for the ISO image being mounted will be different if you use a CDRom.
Code:

VBoxManage createvm --name "WinXP" --register
VBoxManage modifyvm "WinXP" --memory 256 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0
VBoxManage createhd --filename WinXP.vdi --size 15000 --register
VBoxManage storagectl "WinXP" --name "IDE Controller" --add ide
VBoxManage storageattach "WinXP" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium WinXP.vdi
VBoxManage storageattach "WinXP" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /home/hanzerik/WinXP.iso

I use this method for creating them on a headless server because I don't have anything hooked up to it other then a power and lan cable. If you are on a desktop, I would suggest you use the VBox GUI.


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