LinuxQuestions.org
Register a domain and help support LQ
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, 07: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, 07: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 07:42 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

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

Rep: Reputation: 3
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, 10: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, 10:36 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
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, 12:27 PM   #7
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,648

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
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, 04:29 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
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-11-2011, 12:48 AM   #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, 01: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, 11: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, 11:32 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
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, 11:37 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
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, 07:54 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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, 09:22 AM   #15
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,648

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


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux inside windows sivakumar.160590 Linux - Newbie 10 02-12-2011 10:04 AM
Windows inside Linux box amdawi Linux - Desktop 4 04-07-2007 04:36 PM
Install Debian from inside windows craigevil Debian 10 02-02-2007 03:04 AM
Emulate Windows inside Linux? Mikesoft Linux - Newbie 10 11-30-2006 02:21 PM
Booting Windows inside Linux onlyone-jc Red Hat 10 01-17-2006 11:09 AM


All times are GMT -5. The time now is 12:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration