LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-17-2017, 10:54 AM   #1
felipeabrao
Member
 
Registered: May 2017
Posts: 43

Rep: Reputation: Disabled
Virtual Box in Linux for Windows


Hello, everyone!

I am very new to the theme "virtual machine", and have basic questions. As I have read in sites in Internet, Virtual Box would be appropriate for my PC, that has both Linux and Windows installed.

My question is very simple: after I download and install Virtual Box through Linux, must I install a Windows-ISO file? I have Windows already installed in my PC, and would like to use its features like "Word" without needing to reboot the machine. Would you have any tips for me after installing Virtual Box?

Thanks in advance!
 
Old 07-17-2017, 11:34 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
VirtualBox is in a nutshell is creating a physical server within an operating system. VirtualBox is installed on the host operating system and then from VB you would install the virtual operating system which is known as the guest.

The host operating system can be Windows or linux and you can install either as a guest virtual machine (VM). It might be easier to start with installing VirtualBox on Windows and creating a linux VM.
 
1 members found this post helpful.
Old 07-17-2017, 03:50 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
"creating a physical server" To expand on that, virtual software copy of a physical machine. Some software creates a clone of some original computer.

Here is the problem with running Windows as a client in linux vm. Windows has this HAL deal. It doesn't like to be run in different machines (unless you have a special copy).

Most folks own windows from an computer company supplied copy. It is not a full copy from MS. The computer company supplied copy is usually tied to the bios of the computer. Since a VM replicates most of the hardware from software you won't be able to authenticate the copy by the host hardware.

Every year VM's and hardware find ways to integrate the host hardware more closely with the VM. They are not fully host centric yet.

Last edited by jefro; 07-17-2017 at 03:53 PM.
 
1 members found this post helpful.
Old 07-18-2017, 06:24 AM   #4
felipeabrao
Member
 
Registered: May 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
Thank you very much for your information. Actually I do work in a company with a computer in which Windows was already installed. I myself installed Linux in it later, without uninstalling Windows. I use Linux most of the time, but sometimes I have to use Windows, and for this reason I plan to install a virtual machine in Linux. Don't you think it is advisable? Thank you again.
 
Old 07-18-2017, 07:03 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,910

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
you can do that, but probably that windows (inside linux) will not be fast. You need to reinstall windows for that (you cannot use the existing os).
 
1 members found this post helpful.
Old 07-18-2017, 02:40 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Most modern middle to higher end systems are quite capable of running a number of VM's at the same time usually. There may be some video issues with windows. The most modern systems have good integration with a VM client to host. Only if you have the most modern system will you be able to run higher quality games. Any business use should be OK.

If you can run Windows will depend on how you own it. Do you know what HAL is and what windows needs to authenticate?

Last edited by jefro; 07-18-2017 at 02:42 PM.
 
1 members found this post helpful.
Old 07-18-2017, 08:25 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,339
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Quote:
you can do that, but probably that windows (inside linux) will not be fast.
That would depend on how much RAM the host machine has and what portion of it can be devoted to the virtual machine.

The computer I'm sitting at has 16 GB RAM. I allocated 4 GB to my Windows 7 VM, and it runs quite nicely.

In my experience, VirtualBox's default allocations of RAM and virtual HDD space are usually far too small.

Last edited by frankbell; 07-18-2017 at 08:27 PM.
 
1 members found this post helpful.
Old 07-26-2017, 09:24 PM   #8
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
Thought I had seen somewhere that existing Windows OS could be converted to ISO, but have never tried it (Google it). I installed Win7pro64 guest on Linux host with the W7 install DVD. Linux host is 32GB ram with 8 allotted to the W7 guest, an 8 core cpu with 4 for the guest, have never had any issue with speed.
 
1 members found this post helpful.
Old 07-26-2017, 10:22 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
The OP wants to run a physical partition of Windows within linux. The problem is that you are changing the HAL. A virtual machine is based off of a generic computer and what will happen is the OS will now be trying to boot to a new system. Windows (unless special windows on key or PE) will not like being changed.

Now that I mention PE, you could make a windows PE iso and run it under linux VM. Include the programs you wish to use.

To run windows programs from within Linux you'd need wine and not sure I'd even play with running programs off of the physical partition. You can however copy most or all of it from registry to programs and dll's. The way you got the software may dictate the agreement.
 
2 members found this post helpful.
Old 07-26-2017, 10:54 PM   #10
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
Is it possible to assign a bare metal partition in to a VirtualBox guest when providing disk space to the guest? I have no experience with VMware or QEMU/KVM. Perhaps Linux Xen might be another alternative?
 
1 members found this post helpful.
Old 07-27-2017, 03:33 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by felipeabrao View Post
Thank you very much for your information. Actually I do work in a company with a computer in which Windows was already installed. I myself installed Linux in it later, without uninstalling Windows. I use Linux most of the time, but sometimes I have to use Windows, and for this reason I plan to install a virtual machine in Linux. Don't you think it is advisable? Thank you again.
Yes, it's a great idea. I have Windows XP, 7, 8.1 and 10 VMs running in VirtualBox under Linux Mint 18.2 (although obviously not at the same time). However you'll need a Windows ISO and product key to install the VM.

How much RAM do you have to spare? All my VMs get by on 2GiB RAM each, sliced off from a 6GiB system, but the more the better.
 
Old 09-05-2017, 07:00 AM   #12
felipeabrao
Member
 
Registered: May 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
Hello, and sorry for the very late answer, but I was in vacation! Thank you for all your comments. Well, actually I decided to install PlayOnLinux, once I need only the Microsoft Office package, and not to really run all Windows. Anyway, I have had difficult with a specific problem with it, and I guess it is better to make a new thread to discuss this question. I will do it now. Thank all again.
 
Old 11-14-2017, 08:38 AM   #13
felipeabrao
Member
 
Registered: May 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
Hi again!

Sorry, I would like to make another question. My computer has 2 operational systems, Windows and Linux, but no virtual machine installed. The question is: would it be possible to, using Linux, "access" Windows (that is already installed in the computer) with a virtual machine, and be able to use its softwares? Or must I install Windows anyway with Virtual Box or other method?

Thank you.
 
Old 11-14-2017, 09:17 AM   #14
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Virtualbox is the only one I'm familiar with and that functionality is generally not supported but there are hacks which some have tried with varying degrees of success. See for example the following and note the various issues involved:

https://www.virtualbox.org/wiki/Migrate_Windows

I think you are better off doing a fresh windows installation in Virtualbox. If it's just a few applications that you need to run, you can give Codeweavers CrossOver a try:

https://www.codeweavers.com/

It's a lot easier to use than PlayOnLinux which you have already tried but it does cost. However, you can download a trial version and see how your windows applications run and then decide if it's worth the money.
 
Old 11-14-2017, 07:52 PM   #15
DVOM
Member
 
Registered: Nov 2010
Posts: 223

Rep: Reputation: 48
Have you tried Libreoffice?
 
  


Reply

Tags
virtual box, windows



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Networking Oracle Linux on Virtual box on Windows seven oraenthu@live.com Linux - Virtualization and Cloud 3 01-08-2015 07:36 AM
Virtual Box/Windows XP/Linux/External Drives. JamesGT Linux - Virtualization and Cloud 1 02-19-2011 04:51 PM
Linux host with windows guest virtual box Hioushi Linux - Virtualization and Cloud 8 02-17-2011 05:35 PM
windows + Virtual BOX --> Linux server pradeep.goodTUX Linux - Virtualization and Cloud 2 12-09-2009 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:40 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
Open Source Consulting | Domain Registration