LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-15-2006, 09:09 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 824

Rep: Reputation: 30
Open Source Virtual Machine on Linux and More


Friends,

Does anyone know an open source program like VMWare which can run Microsoft Windows in Linux? Not just wine but the whole Windows OS that can run on Linux..I've used VMWare its great, installing a fresh copy of linux on Windows. I'm just wondering if it is possible to do the other way around (which is free/open source of course).

Another thing, I do have address book stored in mysql table. I want to share it with the users in such a way that if I add a mail account on the mysql table, the addressbook in the mail client's (Evolution, Thunderbird, Outlook) addressbook will also be updated.

Hope you can help me on this. Thanks.
 
Old 02-15-2006, 09:55 AM   #2
schmidta
LQ Newbie
 
Registered: Feb 2006
Location: Karlsruhe
Distribution: Debian Sid
Posts: 13

Rep: Reputation: 0
Sure there is: qemu is the program you are looking for.
 
Old 02-16-2006, 01:55 AM   #3
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
Does the qemu has support for the following?

1.) Plug and play USB
2.) Lan Card and Modem (I would like to use my lan connection to connect to our network).
3.) Pause option (in which I can pause the process so I will be able to get back to the exact state I have before I close qemu)

Thanks.
 
Old 02-16-2006, 02:16 AM   #4
schmidta
LQ Newbie
 
Registered: Feb 2006
Location: Karlsruhe
Distribution: Debian Sid
Posts: 13

Rep: Reputation: 0
1. The manpage says it does, but I haven't tried. (look for -usb and -usbdevice)
2. Lan Card works, I use it to connect to the host-OS
3. qemu supports snapshots

Have a look at their homepage http://fabrice.bellard.free.fr/qemu/ for more
 
Old 02-16-2006, 03:26 AM   #5
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
Ok thanks so much...But my problem is that I'm new to qemu and I can't find a simple how-to page..Is the qemu gui like the vmware?
 
Old 02-16-2006, 05:24 AM   #6
rjf165
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
ummm vmware has linux versions of there player and a newer beta wmware server, both of which are free to download/use. Currently I am running the server on a redhat el4 host with mandriva, suse10 and sun virtual machines.

Edit to add the MS virtual machine: Vista beta

Last edited by rjf165; 02-16-2006 at 05:26 AM.
 
Old 02-16-2006, 05:30 AM   #7
schmidta
LQ Newbie
 
Registered: Feb 2006
Location: Karlsruhe
Distribution: Debian Sid
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by rjf165
ummm vmware has linux versions of there player and a newer beta wmware server, both of which are free to download/use.
Sure there is, but its not OpenSource - its only free as in 'free beer'

About the GUI: I use it from the comandline all the time, I never was in need of a gui yet.
 
Old 02-17-2006, 12:35 AM   #8
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
schmidta, I already installed qemu and tried installing Windows 2000. Its not yet done. Does it really take this long? I started 9am, its already 2:30 pm and its not yet done. Below are my specs:

P3 800 MHz
256 Ram
40 GB
Ubuntu Breezy

Do you have other suggestions to speed up the installation? Are there alternatives to qemu which is faster? I am running qemu and kqemu and allocated 10 GB of image file and 256 RAM. Thanks.
 
Old 02-17-2006, 01:54 AM   #9
schmidta
LQ Newbie
 
Registered: Feb 2006
Location: Karlsruhe
Distribution: Debian Sid
Posts: 13

Rep: Reputation: 0
Hi depam,

I installed Windows2000 in qemu on a

AMD Sempron 1583MHz
1 GB Ram
Debian Sid

and it took me about 2.5h IIRC.

Booting the installed windows 2000 takes 1 min.

On the qemu page there is a (proprietary :/) kernel module which speeds up qemu a lot (since its closed source I haven't tried yet)

Maybe this will help:

http://fabrice.bellard.free.fr/qemu/qemu-accel.html

Last edited by schmidta; 02-17-2006 at 01:59 AM.
 
Old 02-17-2006, 02:12 AM   #10
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
schmidta,

Do you know how to pause the existing window state? Like VMware, there is a feature where I can pause the state and back on even after you reboot your machine? How can I use the snapshot? I tried CTRL-a-s but its not working..I also notice that only 1 lan card was installed. I have two network cards, can i install the other card? Hope you can help me on this...Thanks.
 
Old 02-17-2006, 02:55 AM   #11
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
schmidta,

I know this is too much.. But i really need your help on this. Can you please teach me how to use my lan card on VM? I do have two cards

eth0 with IP 192.168.0.220
eth1 with IP 61.9.10.98

I want to use both of them in my VM. Another thing, can you please teach me snapshot. I want to save it so that i'll just have to resume from the previous session. I hope you understand what I mean. Like pausing in VMWare. Hope you'll help me pls. Thanks.
 
Old 02-17-2006, 03:26 AM   #12
schmidta
LQ Newbie
 
Registered: Feb 2006
Location: Karlsruhe
Distribution: Debian Sid
Posts: 13

Rep: Reputation: 0
Ok for networking try the following:

Qemu works AFAIK only with virtual Lan Cards have a look at http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC20 to see how it works.

To use networking with my win2000 in qemu I have done the following steps:

1) create a file /etc/qemu-ifup
Code:
sudo -p "Password for $0:" /sbin/ifconfig $1 172.19.1.1
2) enable paket forwarding on your host system:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
3) create a NAT rule on your host system
iptables -t NAT -A POSTROUTING -o eth0 -j MASQUERADE
(replace eth0 by your outgoing interface on host system if its not eth0)

4) start your windows: e.g.
Code:
qemu -hda win2000 -net nic -net tap
5) configure windows network:
your ip 172.19.1.2
gateway: 172.19.1.1

6) Enjoy

Snapshots: I haven't tried this feature yet, maybe you should have a look at the documentation of qemu.
 
Old 02-17-2006, 07:49 AM   #13
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
Thanks for the instructions. But can i set my own IP address? For example, can I use 192.168.0.201 instead for me to access other workstations? How about my other ethernet card? It is a static IP, can I also use it? I am also thinking if I can use my modem and dial up using the VM. Is that possible? Again, please forgive me for my ignorance..
 
Old 02-17-2006, 07:54 AM   #14
schmidta
LQ Newbie
 
Registered: Feb 2006
Location: Karlsruhe
Distribution: Debian Sid
Posts: 13

Rep: Reputation: 0
Sure you could, the ip addresses I used are only an example.
I don't know if you could use real network cards now in qemu - have a look at the documentation. I use the tap device (see my example in the last post) works great for me.
 
Old 02-17-2006, 08:36 AM   #15
depam
Member
 
Registered: Sep 2005
Posts: 824

Original Poster
Rep: Reputation: 30
Angry

Schmidta,

I tried the configuration you specified but I just can't seem to make it work. I tried my local IP 192.168.0.201. Here's my configuration:

eth0 61.9.10.100 (IP provided by my ISP)
eth1 192.168.0.201 (local IP passing thru a gateway 192.168.0.220)

1) create a file /etc/qemu-ifup

Code:
sudo -p "Password for $0:" /sbin/ifconfig $1 192.168.0.220

2) enable paket forwarding on your host system:

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
3) create a NAT rule on your host system
iptables -t NAT -A POSTROUTING -o eth0 -j MASQUERADE
(replace eth0 by your outgoing interface on host system if its not eth0)

4) start your windows: e.g.
Code:
qemu -hda win2000 -net nic -net tap
5) configure windows network:
your ip 192.168.0.201
gateway: 192.168.0.220

I read the documentation but its just too complicated for me.
Do i have to specify my real gateway in qemu-ifup?

Can I install two networks on the guest OS? If its not so much trouble can you please teach me how to do it using my real IPs above? Another thing, if I will be installing an application with 3 CDs how am I going to eject the media without stoping qemu? I know this may piss you off but I'm very grateful that someone is helping me out. I am just a newbie on qemu and if you think its too much for you to answer my inquiry, its okay. But if you can help me out on this I will be very much grateful.

Again, thanks so much and I hope I can help you out on other things someday.
 
  


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
LXer: Wisconsin voting machine code will be open-source LXer Syndicated Linux News 0 01-07-2006 12:31 AM
Partitioning Linux and Virtual Machine Pup Linux - General 1 12-31-2005 12:46 AM
A good open source virtual machine? dr_zayus69 Linux - Software 1 05-30-2005 06:22 AM
Fedora Virtual Machine in Linux jimmmac Linux - General 2 11-24-2004 02:07 AM
open source virtual machine apocolpse Linux - Software 6 11-19-2004 03:51 PM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration