Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run Windows XP in Fedora
#1

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:-

 



Code:
su -c "yum groupinstall 'Virtualization'"




 

followed by the following optional components:-

 



Code:
yum install gnome-applet-vm




 



Code:
yum install virt-top




 

2. Start the virtualisation service

 

as root do as follows

 



Code:
service libvirtd start




 

then verify it's running

 



Code:
virsh -c qemu:///system list




 

you should see something like this

 

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

Id Name State

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

3. Install QEMU

 

as root do



Code:
yum install qemu




 

answer y when prompted

Reply
#2

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 ?

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432175369.png" data-fileid="1149">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432175369.png[/img]</a>

 

When prompted enter your root password

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432200691.png" data-fileid="1150">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432200691.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432215033.png" data-fileid="1151">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432215033.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432249129.png" data-fileid="1152">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432249129.png[/img]</a>

 

click on Connect

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432267931.png" data-fileid="1153">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432267931.png[/img]</a>

 

right click on your machine and choose new

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432285838.png" data-fileid="1154">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432285838.png[/img]</a>

 

when the wizard appears, click on Forward

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432293101.png" data-fileid="1155">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432293101.png[/img]</a>

 

give the Virtual Machine a name like VirtualXP and click Forward

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432311991.png" data-fileid="1156">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432311991.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436022932.png" data-fileid="1164">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436022932.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432340306.png" data-fileid="1158">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432340306.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432351198.png" data-fileid="1159">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432351198.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432364727.png" data-fileid="1160">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432364727.png[/img]</a>

 

select your network choices

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432380715.png" data-fileid="1161">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432380715.png[/img]</a>

 

enter your memory and CPU choices

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432393792.png" data-fileid="1162">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432393792.png[/img]</a>

 

review the Summary

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124432403303.png" data-fileid="1163">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124432403303.png[/img]</a>



Attached Files
.png   Screenshot-3.png (Size: 379.92 KB / Downloads: 0)
.png   Screenshot-Query.png (Size: 28.51 KB / Downloads: 0)
.png   Screenshot-Virtual Machine Manager.png (Size: 33.24 KB / Downloads: 0)
.png   Screenshot-Add Connection.png (Size: 25.3 KB / Downloads: 0)
.png   Screenshot-Virtual Machine Manager-1.png (Size: 34.85 KB / Downloads: 0)
.png   Screenshot-Virtual Machine Manager-2.png (Size: 37.5 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system.png (Size: 68.65 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-1.png (Size: 36.37 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-3.png (Size: 63.54 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-4.png (Size: 49.24 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-5.png (Size: 83.37 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-6.png (Size: 63.79 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-7.png (Size: 83.65 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-8.png (Size: 76.1 KB / Downloads: 0)
.png   Screenshot-Create a new virtual system-10.png (Size: 69.75 KB / Downloads: 0)
Reply
#3

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436133675.png" data-fileid="1167">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436133675.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436145804.png" data-fileid="1168">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436145804.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436192568.png" data-fileid="1169">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436192568.png[/img]</a>

 

 

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.

 

 

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436207073.png" data-fileid="1170">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436207073.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436453673.png" data-fileid="1171">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436453673.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436467836.png" data-fileid="1172">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436467836.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436558058.png" data-fileid="1173">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436558058.png[/img]</a>

 

Next you have to enter your regional settings and Organisational info

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436645652.png" data-fileid="1174">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436645652.png[/img]</a>

 

enter your XP product key

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-12443665446.png" data-fileid="1175">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-12443665446.png[/img]</a>

 

enter the computername and administrator password

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436681178.png" data-fileid="1176">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436681178.png[/img]</a>

 

choose your timezone

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436691548.png" data-fileid="1177">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436691548.png[/img]</a>

 

finally we get to choose the network settings

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436783073.png" data-fileid="1178">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436783073.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124436792883.png" data-fileid="1179">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124436792883.png[/img]</a>

 

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

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124437326085.png" data-fileid="1182">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124437326085.png[/img]</a>

 

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 !

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-12443739823.png" data-fileid="1183">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-12443739823.png[/img]</a>

 

Cool or what ?

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-1-124437435744.png" data-fileid="1184">[img]<fileStore.core_Attachment>/monthly_06_2009/post-1-124437435744.png[/img]</a>

 

 

 

If you liked this then please Digg It



Attached Files
.png   Screenshot-Press Ctrl+Alt to release pointer. VirtualXP Virtual Machine.png (Size: 47.22 KB / Downloads: 0)
.png   Screenshot-Virtual Machine Manager-3.png (Size: 40.92 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-2.png (Size: 47.09 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-3.png (Size: 79.54 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-4.png (Size: 51.28 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-5.png (Size: 209.03 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-6.png (Size: 212.19 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-7.png (Size: 120.95 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-8.png (Size: 124.4 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-10.png (Size: 140.26 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-11.png (Size: 127.61 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-12.png (Size: 135.78 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-13.png (Size: 137.37 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-15.png (Size: 169.6 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-16.png (Size: 452.45 KB / Downloads: 0)
.png   Screenshot-VirtualXP Virtual Machine-17.png (Size: 177.77 KB / Downloads: 0)
Reply
#4
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?
Reply
#5

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

 

are you trying this in Fedora 10 or 11 ?

Reply
#6
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.
Reply
#7

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.

Reply
#8

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 ?

Reply
#9
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.
Reply
#10

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.

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_06_2009/post-587-124582667605.png" data-fileid="1187">[img]<fileStore.core_Attachment>/monthly_06_2009/post-587-124582667605.png[/img]</a>



Attached Files
.png   Screenshot-Virtual7.png (Size: 42.58 KB / Downloads: 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)