Jump to content
anyweb

How to run Windows XP in Fedora

Recommended Posts

I wanted to have a Windows virtual machine that I could use on my Fedora 10 laptop, I only have linux on this laptop and i don't want to dual boot,so this required that I install some virtualization packages and to go virtual.

 

I'm documenting how I did this so others can learn and hopefully they will be motivated to try it themselves. Fedora offers two methods for virtualisation, one is for virtualising Linux (xen) and the other one can do non-Linux os's as well as Linux (qemu). For a detailed and technical wiki on this subject please see here.

 

1. Install the virtualization packages.

 

Open a terminal and as root do the following:-

 

su -c "yum groupinstall 'Virtualization'"

 

followed by the following optional components:-

 

yum install gnome-applet-vm

 

yum install virt-top

 

2. Start the virtualisation service

 

as root do as follows

 

service libvirtd start

 

then verify it's running

 

virsh -c qemu:///system list

 

you should see something like this

 

[root@localhost ~]# virsh -c qemu:///system list

Id Name State

----------------------------------

 

3. Install QEMU

 

as root do

yum install qemu

 

answer y when prompted

Share this post


Link to post
Share on other sites

4. Start the Virtual Machine Manager

 

Click on Applications, System Tools, Virtual Machine Manager, if the icon isn't present, did you install it above ?

 

post-1-124432175369.png

 

When prompted enter your root password

 

post-1-124432200691.png

 

when the Virtual Machine Manager starts, click on File, then Add Connection

 

post-1-124432215033.png

 

When the Add Connection window appears, click on the Hypervisor option and change it from Xen to Qemu

 

post-1-124432249129.png

 

click on Connect

 

Select the machine by clicking on it in the Virtual Machine Manager window

 

post-1-124432267931.png

 

right click on your machine and choose new

 

post-1-124432285838.png

 

when the wizard appears, click on Forward

 

post-1-124432293101.png

 

give the Virtual Machine a name like VirtualXP and click Forward

 

post-1-124432311991.png

 

for Choosing a virtualization method click next, if nothing appears under Hypervisor did you install Qemu, and enable Virtualization in the bios and reboot

 

post-1-124436022932.png

 

point to your XP cd or the ISO file on your hard drive, and change the OS type and OS variant values and click on Forward

 

post-1-124432340306.png

 

browse to the XP iso (or cd) and click on Forward

 

post-1-124432351198.png

 

for Assigning Storage space, enter 8000mb as the file size and click forward

 

post-1-124432364727.png

 

select your network choices

 

post-1-124432380715.png

 

enter your memory and CPU choices

 

post-1-124432393792.png

 

review the Summary

 

post-1-124432403303.png

Share this post


Link to post
Share on other sites

5. Setup and Install XP

 

Once you click Finish the XP installation will begin and you'll be presented with Windows XP Setup, While XP is installing you might find your mouse has disappeared, it's been taken by the Virtual session, you can press CTRL ALT to release it

 

post-1-124436133675.png

 

at this point, take a look at your Virtual Machine Manager, and you'll see the cpu utilization of your VM

 

post-1-124436145804.png

 

back in your Virtual Machine, you can click on Overview to see graphs of memory and cpu usage

 

post-1-124436192568.png

 

 

the Hardware tab will show (or allow you to edit) your currently configured hardware settings for the virtual machine, you could even click on Add Hardware to add additional hardware like storage, video card and so on.

 

 

 

post-1-124436207073.png

 

after XP is done copying, it will reboot into the GUI portion of setup

 

post-1-124436453673.png

 

In my case it didn't reboot and just powered off the VM, I had to click Run in the Virtual Machine Manager to start it again, but once I did, it was back in business with XP setup

 

post-1-124436467836.png

 

setup will detect your 'hardware' and install drivers..

 

post-1-124436558058.png

 

Next you have to enter your regional settings and Organisational info

 

post-1-124436645652.png

 

enter your XP product key

 

post-1-12443665446.png

 

enter the computername and administrator password

 

post-1-124436681178.png

 

choose your timezone

 

post-1-124436691548.png

 

finally we get to choose the network settings

 

post-1-124436783073.png

 

as I havn't setup the NIC yet i'll leave it as a member of workgroup

 

post-1-124436792883.png

 

after yet more copying of files, and another reboot Windows is nearly ready.

 

post-1-124437326085.png

 

Next, you'll be asked to protect your PC with With Windows Firewall and a few other settings, and once done with the OOBE you get to use XP, in Linux. :)

 

Congratulations !

 

post-1-12443739823.png

 

Cool or what ?

 

post-1-124437435744.png

 

 

 

If you liked this then please Digg It

Share this post


Link to post
Share on other sites

Nice job Anyweb. I've finished the installation of all the virtualization tools but I'd like to create the virtual disk on another partition. Is this easily done?

Share this post


Link to post
Share on other sites

do you mean another partition in windows or what ? I'm not following you

 

are you trying this in Fedora 10 or 11 ?

Share this post


Link to post
Share on other sites

Fedora 11 x86_64 on my laptop. I'd like to create the virtual disk on, for example, dev/sda2 (Vista / NTFS) instead of the Fedora partition. Not enough space on the Fedora partition.

Share this post


Link to post
Share on other sites

I'm guessing yes to this one - given that all Linux needs to do is see it as disk space to utilise for the virtual machine.

 

The only issue I can forsee is the possible performance impact with Linux having to translate file read/writes to NTFS format, rather than utilise native EXT3/4.

Share this post


Link to post
Share on other sites

ok interesting as I'd also like to achieve the same thing on my sons dual boot vista/fedora 11 box, he's running out of space on the fedora side and i'd like to give more space to qemu/kvm

 

how can we do it ?

Share this post


Link to post
Share on other sites

I do this with VirtualBox, for every OS I've installed under it. It allows me to decide where the virtual disk will reside. Haven't figured it out with Qemu yet.

Share this post


Link to post
Share on other sites

I've been playing with this. I think it's done using the Virtual Machine Manager, Edit / Host Details. This steps through the creation of a new "storgae pool" where I can select from the physical partitions that I want to use. I'm stuck though. Confused between Source and Target paths.

post-587-124582667605.png

Share this post


Link to post
Share on other sites

did you try to add any storage as in the screenshot above ?

Share this post


Link to post
Share on other sites

Ok i see where i should have added more storage. I'm going to do this again.

I have two more questions.

 

I realized my Windows will only start in the virtual machine when i put my

Windows XP cd in the drive because it's running off a file from the cd. How

can i just get it running without putting the cd in?

 

Also i wanna put my videos on WindowsXP. I coppied the videos and

tried dragging them in my Windows from the virtual machine. But that didn't

work.

 

did you try to add any storage as in the screenshot above ?

Share this post


Link to post
Share on other sites

what file is it looking for from the CD ?

Share this post


Link to post
Share on other sites

I am using internet through USB-Wifi device(Netgear), I wanted to know whether I can connect to internet on Windows if I try accessing the device through USB ports. Is there need to configure the USB devices in order to access them on Windows??

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...