You are not logged in.

#1 2005-01-31 13:38:02

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

qemu

is there any way to copy information (files) from the qemu emulation env to the linux host?

Offline

#2 2005-01-31 13:48:34

jochen
Member
From: Germany
Registered: 2004-06-01
Posts: 102

Re: qemu

You can use samba.

smb.conf:

[qemu]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

start qemu:

qemu ... -user-net -smb qemu

The ip-address of your host will be  10.0.2.2.

Offline

#3 2005-01-31 14:05:46

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

thanks.
seems i'll have todo something ive been trying to avoid for too long - dancing samba...  roll

Offline

#4 2005-01-31 15:44:11

vicious
Member
Registered: 2004-11-09
Posts: 113

Re: qemu

Does this really work? I thought the current version of qemu depends on an older version of samba (2.x?) and Arch provides only a newer, not compatible version (3.x?). Did you succeed to run samba+qemu+windows?

By the way, I set up a qemu wiki some time ago: http://wiki2.archlinux.org/index.php/qemu .
Feel free to improve it.

Offline

#5 2005-01-31 16:43:45

jochen
Member
From: Germany
Registered: 2004-06-01
Posts: 102

Re: qemu

It does really work -- at least for me. I'm using  a qemu snapshot from 2004-12-27 at the moment. Guest OS is Windows 98 SE. Samba-3.0.10-1.

Doesn't it work for you?

Offline

#6 2005-01-31 17:38:31

vicious
Member
Registered: 2004-11-09
Posts: 113

Re: qemu

jochen wrote:

It does really work -- at least for me. I'm using  a qemu snapshot from 2004-12-27 at the moment. Guest OS is Windows 98 SE. Samba-3.0.10-1.

Doesn't it work for you?

No, when I tried to set it up about a month ago, it didn't work. I searched with google and found probably this thread: http://lists.gnu.org/archive/html/qemu- … 00051.html . As you can see, there are some problems with SAMBA and qemu. Did you run qemu as root?
Right now I don't have a need to run qemu, so I can't verify if the situation has changed. Could you update the wiki with information how to setup windows with qemu+samba?

Offline

#7 2005-02-01 04:13:27

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

im trying todo from the qemu image :

mount -t smbfs -o username=root //10.0.2.2/qemu /mnt/tmp

but i always get

mount: wrong fs type, bad option, bad superblock on //10.0.2.2/qemu, or too many mounted file systems

i didnt know if i need to, but on my host OS i started the samba daemon manually (/etc/rc.d/samba start) and made sure its working (ps aux | grep mbd).

any ideas?

[EDIT]
ps.
the emulated os can ping 10.0.2.2

Offline

#8 2005-02-01 06:33:28

jochen
Member
From: Germany
Registered: 2004-06-01
Posts: 102

Re: qemu

Can you mount the share on your host OS? Just to verify your samba configuration is working.

mount -t smbfs -o username=root //localhost/qemu /mnt/tmp


@vicious: I'll update the the wiki as soon as I have some free time.

Offline

#9 2005-02-01 06:56:57

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

yep, i verified it works flawlessly on localhost. maybe its the issue vicious was referring to.

Offline

#10 2005-02-01 15:51:36

jochen
Member
From: Germany
Registered: 2004-06-01
Posts: 102

Re: qemu

What version of qemu are you running? Just now I compiled the current snapshot of qemu (2005-01-31-23) and verified that samba is working with Win98 and Xfld as guest OSes. Maybe you should use a newer version?

Offline

#11 2005-02-01 16:09:41

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

i been using latest snapshot (qemu-snapshot2005013023-1.pkg.tar.gz)

Offline

#12 2005-12-17 16:35:03

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: qemu

Can you send me a copy of your pkg, z4ziggy?

Offline

#13 2005-12-17 19:00:24

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: qemu

There's a qemu package in the community repo. Did you tried it? There's also a thread about it in the announcement section.  This is an old thread so z4ziggy might not have the package anymore and it might not even work with the current kernel. neutral

Offline

Board footer

Powered by FluxBB