![]() It's not the Wifi problem causing Git repo corruption.ģ) If you read the comments to the SuperUser post, you'll see that people shutting down the VM properly (like we do), also experience Git repo corruption. The OP in the StackOverflow question doesn't mention anything about shared folders either.Ģ) The LIU website lists several reasons for not using VirtualBox. Thank you for the reply, but it wasn't very useful - sorry.ġ) I clearly wrote that we use "no shared folders or Samba". Dec 2009, 20:14 Primary OS: MS Windows 10 VBox Version: PUEL Guest OSses: Windows, Linux scottgus1 Site Moderator Posts: 18118 Joined: 30. Aside from disconnecting while Git is doing something (network, power loss) I can't think of any reason running Git in a Virtualbox guest should be a special case. Is there a way to "purge" any running processes in Git in the guest? If Git stays open while the guest is shutting down or fails to finish communicating, then some trouble might happen. r-shutdown says problems happen when one does not shut down the guest first before shutting down the host. But NAT is supposed to work with Wi-Fi always. suggests a network failure, especially when attaching the Virtualbox guest to a wireless network. GASF's are only for file copy between host & guest, nothing else. If you are using Virtualbox's Guest Additions Shared Folders, then either try real shared folders through a real network, or store the files inside the guest itself. ![]() ubuntu-vm says not to use shared folders. ![]() What the OS does with its data isn't much under control by Virtualbox. Virtualbox provides virtual "hardware" that an OS can use, and a network that allows the OS to talk to the outside world. ![]() Only turned up two links that weren't about corrupting a Git repository. Mar 2020, 12:10Ĭorruption Git repository site: (2) liucs DOT net/cs102f13/non-virtual.html We are also using a lot of symlinks that causes all sorts of problem in Windows.) We hope to avoid dual boot or giving our engineers two laptops. (The control system configuration is stored in Git and the service engineers updates the systems using various Bash scripts. This issue is very troublesome because we are using Git in a vitrual Linux machine to create a rock-solid environment for our service engineers. The storage is 8 GB - dynamically allocated - plenty of place.Īre there any experts in this forum that can shed some light upon this? We are using a plain Debian virtual machine with a recent version of VirtualBox (6.1.X.) on Windows 10 with all updates. As if the object file is being held open by git." We are seemingly experiencing this truncation too. The last commit gets truncated to a zero length object. In a SuperUser post(3) a user describes the issue like this: " when I shut down the VM, my local repository gets corrupted. We stop the virtual machine before shutting down the Windows PC. We run Git only in the virtual machine, no shared folders or Samba, no Git GUI or IDE - just plain Git CLI. And the Computer Science department at Linköping University (in Sweden) has given up using Virtual box for Git on Windows(2): "The local git repository on your VM gets corrupted easily" Outside this forum, on for example Stackoverflow there are plenty of questions related to this - one example(1). To my surprise there are no or very few post about Git repository corruption in this forum. (URLs obfuscated at the bottom since "You must be a member for 1 days and have 1 posts before you can post urls".)
0 Comments
Leave a Reply. |