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.
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.
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.
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
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.
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.
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 .
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.
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...
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".
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.