VirtualBox

Custom Query (16363 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1921 - 1923 of 16363)

Ticket Resolution Summary Owner Reporter
#15140 fixed Cannot work with MTU sizes larger than 2 KB => Fixed in SVN JFMG
Description

I have the following setup:

  • Host OS: Windows 7.
  • Guest OS: CentOS Linux 7.
  • Bridged adapter:
    • Host NIC: Intel(R) 82579LM Gigabit Network Connection. This NIC has jumbo packets (9014 bytes) enabled in Windows.
    • Adapter type: any of the three Intel adapter types available.

I set the MTU size to 5000 bytes (using the corresponding "/etc/sysconfig/network-scripts/ifcfg-enp0sx" file) and I succeed ("ip a" command shows it).

Then I try to ping from the guest NIC to the host NIC or vice versa, I can do it with the default ping packet size or even with 2000 byte packet size (which I couldn't before setting the MTU size to 5000 bytes), but not with larger packet sizes. Of course, pinging with larger than 2 KB packets works when I do it between host LAN NICs.

I've tried with a Fedora image and I get the same results.

#6932 obsolete Cannot write data to files on shared folder Evgeny
Description

Shared folder issues with Virtualbox 3.2.0 running in a WinXP SP3 box, with a WinXP SP3 guest, also tested with VBox 3.2.2 WinXP SP3 guest on Debian host.

I'm have an application, that writes data to files. My share on guest mapped as network drive Z. When trying to write some data to existing file, located on Z, i got an "access denied" exception. When doing the same thing to files on drive C, all is ok. When changing the contents of the file on Z with notepad.exe, all is ok.

I wrote a simple app, demonstrating that problem. It's source code and compiled exe is attached in an archive. Run exe, put a path to the file on share in edit box and press ok. If no such file exist, it's will be created and data will be succesfully written. But if such file exist, you got an "access denied" or "unknown error" message box.

The part of code causing the problem is located in VBOX_FALL_TEST1Dlg.cpp:

//... skipped

CFile file;
// create if not exist
file.Open(fileName, CFile::modeCreate | CFile::modeNoTruncate );
file.Close();
        
// open to write
file.Open(fileName, CFile::modeWrite );
file.SeekToEnd();

CString s = "adsasd";

// write. Here throws an exception
file.Write(s, s.GetLength());
file.Close();

//... skipped

Archive and VBox.log attached.

#1187 fixed Cannot write more than 1023 bytes at once on shared drive via C++ ofstream => Fixed in SVN Dirk Farin
Description

I have a strange behaviour when writing files to shared folders on the host system. The configuration is: host: Windows-XP guest: Linux, Debian, 2.6.22 (lenny / testing) gcc on guest: 4.2.3

When using this simple test program, compiled on the guest linux system:


#include <iostream> #include <iomanip> #include <fstream>

int main(int argc, char *argv[]) {

char buf[5000];

for (int i=0;i<5000;i++) buf[i]=1;

std::ofstream os("out", std::ios::binary | std::ios::out); os.write(buf, 1024);

os << "end" << std::endl;

}


The program writes only 'zeros' instead of 'ones' when the output is a shared host folder (ntfs, mount options: "rw,exec,suid,dev"). This happens when the number of bytes written is >=1024. For chunks smaller than 1023, it works ok. It also works ok, if the output is on the guest file-system.

If the last line is removed (the file output is not flushed), no output is written at all (zero-length file). The ios::bad flag is not set after writing, claiming that everything went ok.

Replacing the ofstream output with fwrite-based code works ok for all sizes.

Not sure, if this is a stdc++ problem or a VirtualBox problem, but since the problem occurs with several gcc versions and only appears when writing to the host filesystem, it seems to be related to VirtualBox.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy