File transfer from host to guest without guest additions

Discussions related to using VirtualBox on Linux hosts.
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

For all of you who have been most helpful with this project, I have a bit of an update. I had determined that the problem is in the set-up of Samba, and have been digging deeply into the documentation, which is full of all sorts of esoteric detail, but lacking in in really helpful tips or suggestions (sort of like an MS help desk). As I work along, I now have the system 50% functional- I can access the shares on the Win 98SE instance running in VirtualBox from the Ubuntu host- but I can not access the shares on the Ubuntu host from the VirtualBox guest. Unfortunately, I can not tell for sure which of the many, many experiments gave me that "breakthrough", because I don't know for sure when it happened in the process- just one day, there they were. I can not successfully ping between the two systems yet, but we continue to work on this. This appears not to be a VirtualBox issue, but one with Samba setup. It sure would be nice if you all would come up with Guest Additions for Windows 98SE! The primary reason I am going this route is that some of the legacy software I am trying to save won't run on XP, and Wine does not offer usb support as yet...
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: File transfer from host to guest without guest additions

Post by ahznb »

But in your previous post you already had access to the host's share in your vm, you just didn't configure your authentication correctly. If you created a valid user in samba and enable it, then you should be able to access the share in your vm after entering the samba username/password. BTW, a samba user is not the same as your login user.

Did you change the host name to 8 chars or less?

Does the host and vm connect to the same workgroup?

Did you create a samba user and password, and enable it?

If you did the above, what happens when you access the host name (or \\192.168.56.1) in your vm, do you get a password prompt? What happens when you enter your samba user/password?

Do you have some firewall blocking your host?

Just out of curiosity, what legacy app are you using? And what do you mean wine doesn't support usb? What type of usb device are you talking about?
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

I'm still working with Samba. Before, I could see the home computer on VirtualBox but not the shares. I did not at that time try looking at the shares on VB because that wasn't my primary approach. After playing around with the smb.conf file, I can not access the home computer from VB, although it shows up on Network Places. I can access the shares from VB with the home Ubuntu network places, which is different. I am also having trouble logging on to the network from the Home Ubuntu instance- the loop back test works OK. So, there is something in the way I am trying to set up Samba that isn't quite working. More studying necessary.
As to what I am trying to connect, I have several pieces of equipment that I use for data acquisition. The most important at this stage is a digital storage oscilloscope that connects to the computer either with a Centronics parallel port or usb- neither of which is available on this computer. The scope is a plug-in device that uses the computer for a display screen, and offers real-time DFT- a really handy unit, especially for field work, since it only measures about 5 inches by 4 inches by one inch (not counting the wall wart I also have to pack). I also have some a couple of VBA macros written for Excel 2000 under Win 98SE that don't behave properly under Win XP for some reason (or in later versions of Excel that I have tried). These macros read a couple of different digital multimeters to give me something that resembles a chart recorder (QtDMM gives me a native application in Ubuntu that does the same thing, so these are not all that critical). However, Excel 2000 is critical because it gives me an FFT function which is not available in OpenOffice Calc. But Excel 2000 runs fine under Wine. Then there is a programable data logger that is no longer available on the market- that software seems to run OK under XP, but it also requires usb, which leaves out Wine.
And we mustn't forget my Palm Pilot, which is critical to my accounting proceedures- so far, the syncing software available with Ubuntu does not give me adequate access to the expense records and the time records. Again, this software seems to work fine under XP. I have always preferred Win 98SE to Win XP, because it is faster. My "speed" test involves loading a *.csv file of about half a meg into a spread sheet and plotting selected groups (usually about 6000 pairs) of data points. Excel 2000 under Win 98SE gives me the chart NOW. Excel 2000 under Win XP requires a few seconds to give me the same chart. Excel 2003 under XP, I can go and have a cup of coffee before the chart is visible. OpenOffice Calc, and my summary report is half-written before the chart ever appears. Rescaling the chart, to, for example, zoom in on a particular area of the data, is also much faster in Excel under Win 98 SE (NOTE: the fastest setup was an old computer that was originally built with Win98 SE. The other tests were done with computers with much faster processors- still slower results). Getting quick preliminary access to a visual representation of the data is quite critical, since often times I am collecting data at remote sites and it can take up to a month to collect the data- I need to know quickly if the data is useful or not. I generally use other tools for the real analysis (Scilab under Ubuntu is quite good for this).
Another problem with Win XP is that each time I try to experiment with XP under VirtualBox, Microsoft wants me to jump through hoops to get the software properly registered before they will let me use it for more than 30 days- they are afraid I might use it on more than one computer at a time, it seems. Since I refuse to but any of my Windows instances on the Internet, authenticating the installation is difficult. I can load 98SE as many times as I need to during my development efforts (both are loaded from original, valid MS CD's, as is my MS Office 2000, although the only thing I still use is Excel). Actually, back in the days when I was a Windows user, once or twice a year I would do the "format c:\" style of cleaning up the system. I did not like XP from the beginning, so started looking at alternatives. I ran Ubuntu 7.04 on one computer for nearly 3 years without ever having a problem with the system before I finally updated that computer to Ubuntu 8.04 (still running without glitches). This computer is a Toshiba laptop, currently with a dual boot between Ubuntu 9.04 (32 bit) and 9.10 (64-bit) that I use for field work and experiments...
Wow. You asked the wrong question. Now, you have to read my dissertation... :D

Charlie
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: File transfer from host to guest without guest additions

Post by ahznb »

Yikes, information overload! And confusing...
cwarner7_11 wrote:I can not access the home computer from VB, although it shows up on Network Places
What actually happens, do you get a password prompt? Did you do the things we mentioned? Details please.
cwarner7_11 wrote:parallel port or usb- neither of which is available on this computer
Do you not have usb ports on your computer? Then how do you think any of this will work even in Win98/XP?
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

Mistake- the computer has usb, but not RS232, which is what i have historically used.

In VB, the host shows up (with a name truncated by one character- I have too many characters in the name, apparently). It shows up in the proper workgroup as well. When I click on the icon for the host, I get a message that the computer is not accessible, perhaps the name is typed incorrectly (although I did not type the name). No request for password. I do not use a password in the VB guest normally when I start it up. What is confusing is that, when I have VB running in the background, I can access the shares on that instance from the network in the host, but I can not access the host from VB. I can also see my shares on the host in the host network window.

Latest winbindd log:

[2010/06/21 01:21:35, 0] winbindd/winbindd.c:main(1125)
winbindd version 3.3.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 01:21:35, 0] winbindd/winbindd_cache.c:initialize_winbindd_cache(2577)
initialize_winbindd_cache: clearing cache and re-creating with version number 1

Latest winbindd-idmap lg:

[2010/06/21 01:35:00, 1] winbindd/idmap.c:idmap_init_passdb_domain(438)
Could not init passdb idmap domain
[2010/06/21 01:35:00, 1] winbindd/idmap_tdb.c:idmap_tdb_alloc_init(341)
idmap uid or idmap gid missing

Latest smbd log:

[2010/06/21 01:21:34, 0] smbd/server.c:main(1260)
smbd version 3.3.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 01:21:34, 0] printing/print_cups.c:cups_connect(103)
Unable to connect to CUPS server localhost:631 - Connection refused
[2010/06/21 01:21:35, 0] printing/print_cups.c:cups_connect(103)
Unable to connect to CUPS server localhost:631 - Connection refused

Latest host log:

[2010/06/21 00:20:37, 0] param/loadparm.c:widelinks_warning(9578)
Share 'print$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:20:37, 1] smbd/service.c:make_connection_snum(1130)
rocketman-desktop (::ffff:190.141.70.220) connect to service print$ initially as user nobody (uid=65534, gid=65534) (pid 6441)
[2010/06/21 00:20:53, 0] param/loadparm.c:widelinks_warning(9578)
Share 'desktop9.04' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:20:53, 1] smbd/service.c:make_connection_snum(1130)
rocketman-desktop (::ffff:190.141.70.220) connect to service desktop9.04 initially as user nobody (uid=65534, gid=65534) (pid 6451)
[2010/06/21 00:21:00, 0] param/loadparm.c:widelinks_warning(9578)
Share 'documents' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:21:00, 1] smbd/service.c:make_connection_snum(1130)
rocketman-desktop (::ffff:190.141.70.220) connect to service documents initially as user nobody (uid=65534, gid=65534) (pid 6458)
[2010/06/21 01:20:45, 0] lib/util_sock.c:read_socket_with_timeout(939)
[2010/06/21 01:20:45, 0] lib/util_sock.c:get_peer_addr_internal(1676)
getpeername failed. Error was Transport endpoint is not connected
read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2010/06/21 01:20:45, 1] smbd/service.c:close_cnum(1342)
rocketman-desktop (::ffff:190.141.70.220) closed connection to service print$
[2010/06/21 01:20:45, 0] lib/util_sock.c:read_socket_with_timeout(939)
[2010/06/21 01:20:45, 0] lib/util_sock.c:get_peer_addr_internal(1676)
getpeername failed. Error was Transport endpoint is not connected
read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2010/06/21 01:20:45, 1] smbd/service.c:close_cnum(1342)
rocketman-desktop (::ffff:190.141.70.220) closed connection to service desktop9.04
[2010/06/21 01:20:45, 0] lib/util_sock.c:read_socket_with_timeout(939)
[2010/06/21 01:20:45, 0] lib/util_sock.c:get_peer_addr_internal(1676)
getpeername failed. Error was Transport endpoint is not connected
read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2010/06/21 01:20:45, 1] smbd/service.c:close_cnum(1342)
rocketman-desktop (::ffff:190.141.70.220) closed connection to service documents

Another host log:

[2010/06/21 00:20:01, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:20:31, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 01:20:45, 0] lib/util_sock.c:read_socket_with_timeout(939)
[2010/06/21 01:20:45, 0] lib/util_sock.c:get_peer_addr_internal(1676)
getpeername failed. Error was Transport endpoint is not connected
read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2010/06/21 01:20:45, 0] lib/util_sock.c:read_socket_with_timeout(939)
[2010/06/21 01:20:45, 0] lib/util_sock.c:get_peer_addr_internal(1676)
getpeername failed. Error was Transport endpoint is not connected
read_socket_with_timeout: client 0.0.0.0 read error = Connection reset by peer.

Latest Guest log:

[2010/06/21 00:14:24, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:19:20, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.

[2010/06/21 01:35:00, 0] winbindd/idmap.c:idmap_alloc_init(587)
ERROR: Initialization failed for alloc backend, deferred!
[2010/06/21 01:35:00, 1] winbindd/idmap_tdb.c:idmap_tdb_alloc_init(341)
idmap uid or idmap gid missing
[2010/06/21 01:35:00, 0] winbindd/idmap.c:idmap_alloc_init(587)
ERROR: Initialization failed for alloc backend, deferred!
[2010/06/21 01:35:00, 1] winbindd/idmap_tdb.c:idmap_tdb_alloc_init(341)
idmap uid or idmap gid missing
[2010/06/21 01:35:00, 0] winbindd/idmap.c:idmap_alloc_init(587)
ERROR: Initialization failed for alloc backend, deferred!

Latest log.lqpxf2isqgev1bgk

[2010/06/21 00:25:18, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:30:21, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:31:53, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:31:57, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 00:41:24, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 01:16:04, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.
[2010/06/21 01:35:00, 0] param/loadparm.c:widelinks_warning(9578)
Share 'IPC$' has wide links and unix extensions enabled. These parameters are incompatible. Wide links will be disabled for this share.

Latest nmbd log:

[2010/06/21 01:21:34, 0] nmbd/nmbd.c:main(850)
nmbd version 3.3.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 01:21:34, 0] nmbd/nmbd_subnetdb.c:create_subnets(206)
create_subnets: No local IPv4 non-loopback interfaces !
[2010/06/21 01:21:34, 0] nmbd/nmbd_subnetdb.c:create_subnets(207)
create_subnets: Waiting for an interface to appear ...
[2010/06/21 01:22:03, 0] nmbd/nmbd_nameregister.c:register_name(483)
register_name: NetBIOS name ROCKETMAN-DESKTOP is too long. Truncating to ROCKETMAN-DESKT
[2010/06/21 01:22:03, 0] nmbd/nmbd_nameregister.c:register_name(483)
register_name: NetBIOS name ROCKETMAN-DESKTOP is too long. Truncating to ROCKETMAN-DESKT
[2010/06/21 01:22:03, 0] nmbd/nmbd_nameregister.c:register_name(483)
register_name: NetBIOS name ROCKETMAN-DESKTOP is too long. Truncating to ROCKETMAN-DESKT
[2010/06/21 01:27:48, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(395)
*****

Samba name server ROCKETMAN-DESKTOP is now a local master browser for workgroup WORKGROUP on subnet 190.141.70.220

*****
None of the other logs in the samba log folder have changed today.

Output of paramtest:

Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

[homes]
comment = Home Directories
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
guest ok = Yes

And the loopback test:

sudo smbclient -L localhost -U%
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.2]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
print$ Disk Printer Drivers
IPC$ IPC IPC Service (rocketman-desktop server (Samba, Ubuntu))
PDF Printer PDF
Canon-PIXMA-MP160 Printer Canon PIXMA MP160
documents Disk
desktop9.04 Disk
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.2]

Server Comment
--------- -------
ROCKETMAN-DESKTO rocketman-desktop server (Samba, Ubuntu)

Workgroup Master
--------- -------
WORKGROUP ROCKETMAN-DESKTOP

I am not sure how critical all of these details are, but it looks like samba is working ok, and somehow VBox is talking to the network- it just won't let me see the shares on the host...

Charlie
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: File transfer from host to guest without guest additions

Post by ahznb »

Ok, lets do this one at a time.

Like I said before, you must change your host name to 8 chars or less, or at the very least 11 chars or less. Refer to my previous post on how to do this. Please do this first, and then try accessing the host from your VM.
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

OK. Things have changed a bit now. The first time I tried changing the host name, it made no difference. Now, it does- something I changed in the smb.conf file, apparently. Now Network Places in Win 98SE asks for a password.

"smbpasswd -a" fails either to locate a guest account when I use a random name, or "VBOX1" which is the name I get from the Ubuntu network. "smbpasswd -a -m VBOX1" yields "Failed to modify password entry for user VBOX1$".

Charlie
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: File transfer from host to guest without guest additions

Post by ahznb »

Good. Now the next step.

Type

Code: Select all

sudo smbpasswd -a <username>
to create a new samba user. Substitute <username> with whatever you want to name your new samba user, and it will prompt you for a password. Then type

Code: Select all

sudo smbpasswd -e <username>
to enable it.

Now try entering this new user/password to access the host share in your VM.
cwarner7_11 wrote:The first time I tried changing the host name, it made no difference.
That's because you need to reload samba to make the changes to smb.conf take effect. Type

Code: Select all

sudo /etc/init.d/samba reload
to reload smb.conf.
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

Progress, but there is a step missing from your instructions- one must first create a unix user before one can add the user smbpasswd.

I also had to change my smb.conf security setting to "share"- now I can access documents on the host from VB- but now the host network can not open the work group (failed to retrieve share list from server). The VB no longer shows up in the Host Network directory...
ahznb
Posts: 64
Joined: 7. Feb 2010, 13:39
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Win98, XP, Win7, Ubuntu

Re: File transfer from host to guest without guest additions

Post by ahznb »

cwarner7_11 wrote:now I can access documents on the host from VB
Great! See how following instructions work out?
cwarner7_11 wrote:but now the host network can not open the work group (failed to retrieve share list from server). The VB no longer shows up in the Host Network directory...
Find the line in smb.conf that starts with "; name resolve order = " and change it to

Code: Select all

name resolve order = lmhosts wins bcast host
Be sure to remove the leading semicolon from the line, then reload smb.conf, or reboot.
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

Uncommenting the name resolve order and changing the order of the entries made the situation a bit worse. When setting security to "user", I can browse the VBox shares from the host, but not the host shares from VBox- the network does not like the password. When I change security to "share", I lose access to the shares on VBox. Before I changed the "name resolve order", I could access I could access host shares from VBox when security was set to "share", I could access the host shares from VBox, but not the VBox shares from host. That is actually a functional setup for me, although not clean- I just have to remember to change the security setting depending on which direction I want the access...most important is getting access to the VBox files from the host. Since I am the only one working both "computers", I can work with this. But I would really like to do a "clean" fix if I can...
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

For some reason, when I commented out the "resolve name order" and changed security back to "share", everything started working the way it is supposed to work. At least on the latest reboot!

Thanks all for your help. Perhaps I can return the favor one of these days... :D
cwarner7_11
Posts: 15
Joined: 14. Jun 2010, 03:53
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 98SE

Re: File transfer from host to guest without guest additions

Post by cwarner7_11 »

Now that we (and the we includes all those here on the forum who have assisted) have a working procedure for accomplishing this task, I have written up a bit of a formal procedure that addresses the steps and issues to look out for (including a few critical screen shots, etc.). How would I submit this document for consideration for inclusion in the documentation available to others, so others can benefit from this exercise?
Post Reply