![]() ![]() For the same reason, unfortunately I can't think of a good way for you to incorporate the core_pattern template specifiers into your core dump file names using this method, if you're tied to kernel 2.6.21. Workstation Pro selects the drive letter. This directory contains all of the shared folders that you enable. (Optional) To map a drive to the Shared Folders directory, select Map as a network drive in Windows guests. On the Options tab, select Shared Folders. ![]() If you're wondering, you can't simply put the tee command directly in re_pattern, because in kernels older than 2.6.24 you can't specify arguments to a pipe command with this sysctl. Select the virtual machine and select VM > Settings. Enable a Shared Folder for a Virtual Machine You can enable folder sharing for a specific virtual machine. Linux will pipe any core dumps through your shell script, which won't have any problem writing to the HGFS share itself. Using Shared Folders Guest Operating Systems That Support Shared Folders To use shared folders, a virtual machine must have a supported guest. # sysctl -w re_pattern='|/usr/local/bin/core.sh' Save your script as /usr/local/bin/core.sh, then set the file's executable bit and configure core_pattern as follows: # chmod +x /usr/local/bin/core.sh A persistent solution is to edit /etc/fstab in the Linux guest and add an entry to mount the shared folders automatically on boot. Of course you may wish to implement some logic for $COREFILE so that each subsequent core dump doesn't just overwrite the last. This is going to make the folder available for mounting in the guest OS. Linux 2.6.19 and higher will let you pipe core dumps through an arbitrary program, so create a shell script that copies its stdin to a file on your HGFS share, e.g.: #!/bin/sh Enable shared folders for the VM of your choice. ![]() I don't know why Linux refuses to dump core contents to an HGFS share (Arch Linux kernel 2.6.32 with open-vm-tools 2010.01.19 here), but I do have a solution. Don’t worry about the locations of the shared folders, they can be changed with your VMware software.I've confirmed the issue over here. You can add more or less shares, but don’t forget to change the sharedFolder.maxNum value accordingly. vmx file in a text editor and add the following lines at the bottom of the file to add some random shared folders and enable the drag-and-drop feature: = "FALSE" You have to add some shares to the configuration file of the virtual machine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |