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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2005, 06:10 AM   #1
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Rep: Reputation: 30
Running virtual winxp on Linux


Is there any open source virtual machine software that will allow me to run windows xp on linux. Will Xen do this and if so how?

Thx in advance

Steve
 
Old 08-25-2005, 08:35 AM   #2
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Rep: Reputation: 30
VMWare should work.
 
Old 08-25-2005, 09:49 AM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
"open source virtual machine"
"VMWare should work."

vmware isn't open source, is it? is it even free as in freeloader?
 
Old 08-25-2005, 10:54 AM   #4
dub.wav
Member
 
Registered: Aug 2003
Location: Norway
Distribution: FC4
Posts: 83

Rep: Reputation: 20
Qemu is quite good, I'm not sure about the XP support though. 2K works fine.
http://fabrice.bellard.free.fr/qemu/
 
Old 08-25-2005, 01:45 PM   #5
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
dub.wav--
i am interested in this qemu since i read about it in Linux Journal (I believe). But, like the way I find most CLI programs, it is way too complex to be useful to the average user!

Do you use it for Win2k? If so, how? Does it install win2k or do i need that installed first (on a seperate drive/partition)? What is this "image" that the Documentation discusses?

Code:
3.2 Quick Start

Download and uncompress the linux image (`linux.img') and type:
qemu linux.img
Linux should boot and give you a prompt.
where am I downloading this image from!? (I'm pretty sure they don't mean an .iso image)
Code:
3.3 Invocation
usage: qemu [options] [disk_image]
disk_image is a raw hard disk image for IDE hard disk 0.

General options:
`-fda file'
`-fdb file'
    Use file as floppy disk 0/1 image (See section 3.6 Disk Images). You can use the host floppy by using `/dev/fd0' as filename. 
`-hda file'
`-hdb file'
`-hdc file'
`-hdd file'
    Use file as hard disk 0, 1, 2 or 3 image (See section 3.6 Disk Images).
so that means that I would type:
Code:
qemu -hda 6 linux.img
to boot a linux distro that resides on my hda6 partition, yes?

Code:
3.6.1 Quick start for disk image creation

You can create a disk image with the command:

qemu-img create myimage.img mysize
ooh, it appears that i first must MAKE this image (3.6.1), NOT download it as the Documentation suggests, which means that it probably doesn't install win2k for/with me...

OK, so I install win2k (and make sure my grub is happy) and then
I go into win2k and install all of the progs that I want to use,
and then making this image grabs that and I can run it?
Can I still install a program through qemu, into the image?
Will doing so make it available in a normal win2k boot-up?
Can I just find *.img files somewhere on the net, and really download them like this documentation suggests, or must I actually make them (and continue to have the software installed)

hmm, how nice would it be to have a program/script that would make this program easy to use (just like linux, relying on another program to run the first )...
Code:
click here to install Win2k in your Linux box...
$sudo password:
$which partition? HDA6
$making win2k.img image, this may take a moment
##################
$Would you like a desktop icon for win2k? [Y/n]
$Win2k successfully qemu'ed!
wow that would be nice. Any ideas? I think I need to learn some about this program, and some scripting...
 
Old 08-25-2005, 02:43 PM   #6
dub.wav
Member
 
Registered: Aug 2003
Location: Norway
Distribution: FC4
Posts: 83

Rep: Reputation: 20
It really isn't very difficult.

A quick how-to follows.

First, you have to create a hard disk image.
You have the choice between a few different image types, of which the two most notable are 'raw' and 'qcow'.
I usually use qcow, it is convenient because the image grows as data is added. On the other hand, you can't mount a qcow image from linux.

Create a image like so: qemu-img create -f qcow hd.img 5G
Then, tell qemu to use the HD image and to boot from the win2k installation CD: qemu hd.img -cdrom /dev/cdrom -boot d

When you have installed win2k, remove '-boot d' to boot from the HD.

A couple of more things:

Networking works out of the box. Win2k can get to the internet with DHCP. Just one drawback - you can't ping from qemu.
If you need to share files between the guest and the host, qemu has a -smb option, but I prefer just to use ssh.
The guest sees the host as 10.0.2.2. Just set up a ssh server and use WinSCP or something like that.
 
Old 08-25-2005, 02:57 PM   #7
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
cool, I'll have to try that!! tonight!!

how does one go about "setting up an SSH server" on a linux box (or any box)? once I've ssh'ed in, can the files transfer both ways? its not graphical, so I do that via the cmd.com
Code:
 C:\> ssh 10.0.2.2
and then what?? password is my linux login password? can I startx? whats the point of all this, I cannot just drag-and-drop files from Konqueror to Explorer?

thanks maan, I need to learn this stuff!

i know, i know, RTFM, but
 
Old 08-25-2005, 04:53 PM   #8
dub.wav
Member
 
Registered: Aug 2003
Location: Norway
Distribution: FC4
Posts: 83

Rep: Reputation: 20
Setting up a ssh server is usually done as easily as /etc/init.d/sshd start, if it isn't already running.
Note that if your system is open to the internet and you don't have a firewall, you should make sure you don't have any weak passwords.

To upload/download files from the guest, I recommend WinSCP. You can find it here: http://winscp.net/eng/index.php
It is a free client for the SCP and SFTP file transfer protocols over SSH.
 
Old 10-14-2005, 04:19 PM   #9
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
I have DSL on a USB key and I'd like to transfer files to/from the Windows host computer. Any ideas on how to do that? Does Windows need a special way to get SSH to work and accept files, etc? Or can I mount the window's C:\ drive some how, maybe within the bootup line?

My boot line currently looks like this:
qemu.exe -L . -m 192 -hda dsl.img -boot c -enable-audio -localtime

anything that i can add to this line (which i run from a batch file in XP) that will make the host machine's hard drive mountable?
 
  


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
mouse jumps around in linux running on virtual pc 2004 maleman876 Linux - Hardware 1 01-23-2007 08:21 AM
Installing Linux; system now running WinXP Gaedtyr Linux - Newbie 3 11-16-2004 03:40 AM
Possible to have synced webservers running on WinXP and Linux? MikeZila Linux - Networking 1 10-14-2004 08:22 PM
How do I install Fedora on my comp running WinXP Pro, WinXP Home and Win2000 Server pureheartedsoul Linux - Newbie 3 03-30-2004 02:45 PM
Running Linux using Virtual PC on Mac rrudolph Linux - Software 0 10-22-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:12 PM.

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