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 - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-10-2011, 06:38 AM   #1
mafshep
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
how do i install windows xp inside linux


i want to install windows xp inside linux what should i do i am stuck please help me. mafshep
 
Old 06-10-2011, 06:41 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LinuxQuestions,

You cannot install Windows XP inside Linux! I think you got that idea running Ubuntu from within Windows using Wubi.exe. Well that doesn't work the other way around. If you want to have Windows kind of inside Linux, you'll need to look into virtualization. The easiest one is to install VirtualBox in your Linux and then install Windows in a virtual machine.

Kind regards,

Eric
 
0 members found this post helpful.
Old 06-10-2011, 06:42 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Use VirtualBox.
 
0 members found this post helpful.
Old 06-10-2011, 09:14 AM   #4
DrDwayne
Member
 
Registered: May 2010
Location: Wichita
Distribution: Ubuntu Debian
Posts: 155

Rep: Reputation: 4
Either VMware Player (which is free) or Virtual Box (which is also free).

Download these one of these players and install

run it.

It will ask you "where" your ISO image is, or "where" your CD/DVD boot disk is. (Both will scan your dvd/cd rom drive first.

click yes, that is where my operating system is. .

Both will automatically load up the system and create a Virtual drive for them. It will take about 1 hour total for some systems to install completely.
 
0 members found this post helpful.
Old 06-10-2011, 09:26 AM   #5
rinku309
LQ Newbie
 
Registered: Jun 2011
Location: India
Distribution: Redhat 5,Redhat 6
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by mafshep View Post
i want to install windows xp inside linux what should i do i am stuck please help me. mafshep
Hello first take back up grub run this
1.root@rinku]#dd if=/dev/null of=backup.bin bs=512 count=1
2.After make any empty partition in linux and boot from windows cd and install windows without any problem
3.After installation windows make his own mbr and linux will not run
4.boot from linux cd in rescue mode and restore backup.mbr with this command root@rinku]#dd if=/path of file of=/dev/null bs=512 count=1
5.make entry in grub file for windows that all
 
0 members found this post helpful.
Old 06-10-2011, 09:36 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by rinku309 View Post
Hello first take back up grub run this
1.root@rinku]#dd if=/dev/null of=backup.bin bs=512 count=1
2.After make any empty partition in linux and boot from windows cd and install windows without any problem
3.After installation windows make his own mbr and linux will not run
4.boot from linux cd in rescue mode and restore backup.mbr with this command root@rinku]#dd if=/path of file of=/dev/null bs=512 count=1
5.make entry in grub file for windows that all
The OP asked how to install it WITHIN Linux, not dual boot.

And your instructions are incorrect...if the OP followed them, they'd be left with a non-booting system. Even if Linux was booted, Windows would NOT boot, since the Windows MBR MUST be first on the disk, i.e., Windows has to be installed first, THEN Linux.
 
0 members found this post helpful.
Old 06-10-2011, 11:27 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
To TB0ne

Actually his steps WILL work, but you are quite correct in that he answered the question that was NOT asked.
 
1 members found this post helpful.
Old 06-10-2011, 03:29 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by wpeckham View Post
Actually his steps WILL work, but you are quite correct in that he answered the question that was NOT asked.
Really?? Thankfully I've been MS free for many years, but I've NEVER seen an installation work where Windows wasn't the first player in the game. Good catch.
 
Old 06-10-2011, 11:48 PM   #9
rinku309
LQ Newbie
 
Registered: Jun 2011
Location: India
Distribution: Redhat 5,Redhat 6
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
The OP asked how to install it WITHIN Linux, not dual boot.

And your instructions are incorrect...if the OP followed them, they'd be left with a non-booting system. Even if Linux was booted, Windows would NOT boot, since the Windows MBR MUST be first on the disk, i.e., Windows has to be installed first, THEN Linux.
Firstly i say sorry to mafshep,hello maf you can instll xen kernel and virt manager after you can install windows in virt-manager.
TBOne we can install windows after linux installation but we should have free space minimum 10Gb and you say windows make his own mbr this is right but in above i show how to take backup of mbr before windows installation .This is practical work not fake .
 
Old 06-11-2011, 12:29 AM   #10
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Rep: Reputation: 25
Quote:
Originally Posted by TB0ne View Post
The OP asked how to install it WITHIN Linux, not dual boot.

And your instructions are incorrect...if the OP followed them, they'd be left with a non-booting system. Even if Linux was booted, Windows would NOT boot, since the Windows MBR MUST be first on the disk, i.e., Windows has to be installed first, THEN Linux.
In Linux CD you can create a partition that you can install windows.
I have tried it many times.
 
0 members found this post helpful.
Old 06-11-2011, 10:15 AM   #11
zakotsi
LQ Newbie
 
Registered: Jun 2011
Distribution: debian lenny, arch
Posts: 15

Rep: Reputation: Disabled
A good solution would be to install virtualbox as most people said. It is light enough, and supposing you don't have a very very old machine you will not have any problems (I have virtualbox with winXp in my 8 year old machine although I almost never use it).

After creating virtual disks proceed with windows install as usual.

Tip: using an antivirus program may cripple performance for low end machines. An alternative is making a "backup" virtual disk (a simple copy with other name) after you have fully set up winXP and in case of a virus "disaster" you just delete the old virtual disk and point virtualbox to the new...
 
Old 06-11-2011, 10:32 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tailinlinux View Post
In Linux CD you can create a partition that you can install windows.
I have tried it many times.
Really?? You can create a partition on a Linux CD to run Windows on?? I'm sure we'd all love to hear about how you did that. Do share.

Also, if you're going to try to answer the OP's question, how about actually telling them some useful information about it, rather than just saying "yes, you can do it".
 
Old 06-11-2011, 10:37 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by rinku309 View Post
Firstly i say sorry to mafshep,hello maf you can instll xen kernel and virt manager after you can install windows in virt-manager.
TBOne we can install windows after linux installation but we should have free space minimum 10Gb and you say windows make his own mbr this is right but in above i show how to take backup of mbr before windows installation .This is practical work not fake .
I didn't say it was fake...but I have NEVER heard of that working at all in the past. Also, it seems like a good bit more work to accomplish a dual-boot, rather than a Windows install first, then installing Linux (where it will prompt you, and make your machine dual-boot through the Linux installer).

Also, things like VirtualBox can be installed at any time, and answer the OP's question...how to install Windows INSIDE of Linux. Dual-booting doesn't.
 
Old 06-11-2011, 06:54 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you know .I am beginning to think that all these one line posts are bots


there are many many more that there used to be
 
Old 06-12-2011, 08:22 AM   #15
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Windows under linux

TB0NE: generally, you can always count on being wrong (soon, if not at the time) if you claim something CANNOT BE DONE in this crowd. There is almost always someone who HAS made it work, if WILL (if only because you said they cannot) and is smart enough to find a way. In this case, the problem is an old one and was solved back when LILO was common and GRUB was new: we just do not run into it as often these days. I must agree with you about one thing: installing windows first, then linux (which is smart enough to notice and allow for Windows) and its (smarter) boot loader is DEFINATELY the EASIER way!

We have gone far afield. None of this dual-boot discussion pertains.
The consensus is that the bes solution is to install virtualization and install your windows as a guest of Linux in a virtual machine. We may not agree on what virtualization is best for this job, but the free VMWARE, XEN, KVM, and VIRTUALBOX solutions have been mentioned.

Virtualbox is my tool of choice for client machines (not always servers) as I find it easier for what I do. (YMMV) If you are more familiar with a different solution, I can understand that preference.

mafshep: if you agree with and decide to evaluate the virtual solution,
Please pick one, give it a try, and let us know what happens.
 
  


Reply



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
linux inside windows sivakumar.160590 Linux - Newbie 10 02-12-2011 09:04 AM
Windows inside Linux box amdawi Linux - Desktop 4 04-07-2007 03:36 PM
Install Debian from inside windows craigevil Debian 10 02-02-2007 02:04 AM
Emulate Windows inside Linux? Mikesoft Linux - Newbie 10 11-30-2006 01:21 PM
Booting Windows inside Linux onlyone-jc Red Hat 10 01-17-2006 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 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