1 |
On Saturday, 27 July 2019 06:15:49 BST Adam Carter wrote: |
2 |
> Some time back i moved from vmware to virtualbox, and am currently |
3 |
> wondering if there are some old vmware files i can remove. Virtualbox uses |
4 |
> the old vmware disk files, so first i checked via atime and lsof. |
5 |
> |
6 |
> Why does atime not show all the files that lsof shows were open? |
7 |
|
8 |
They are snapshots and unless saved I would think they are removed when you |
9 |
shut down VBox. |
10 |
|
11 |
> Steps were; |
12 |
> 1. start vm |
13 |
> 2. create and save dummy file in vm |
14 |
> 3. run lsof on vm PID |
15 |
> 4. shut down mv |
16 |
> 5. run find to see which files were accessed |
17 |
> |
18 |
> # lsof -p 2299 | grep 'VIRTUALS/Win-10-x64' |
19 |
> VirtualBo 2299 adam 42u REG 259,2 2453 10095159 |
20 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64.vmdk |
21 |
> VirtualBo 2299 adam 44u REG 259,2 2146762752 10094024 |
22 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s001.vmdk |
23 |
> VirtualBo 2299 adam 45u REG 259,2 2146762752 10094071 |
24 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s002.vmdk |
25 |
> VirtualBo 2299 adam 46u REG 259,2 2146762752 10094011 |
26 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s003.vmdk |
27 |
> VirtualBo 2299 adam 47u REG 259,2 2146762752 10094108 |
28 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s004.vmdk |
29 |
> VirtualBo 2299 adam 48u REG 259,2 2146762752 10094076 |
30 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s005.vmdk |
31 |
> VirtualBo 2299 adam 49u REG 259,2 2146762752 10094127 |
32 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s006.vmdk |
33 |
> VirtualBo 2299 adam 50u REG 259,2 2146762752 10094050 |
34 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s007.vmdk |
35 |
> VirtualBo 2299 adam 51u REG 259,2 2146762752 10094087 |
36 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s008.vmdk |
37 |
> VirtualBo 2299 adam 52u REG 259,2 2146762752 10094031 |
38 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s009.vmdk |
39 |
> VirtualBo 2299 adam 53u REG 259,2 2146762752 10094102 |
40 |
> /home/adam/VIRTUALS/Win-10-x64/Windows 7 x64-s010.vmdk |
41 |
> VirtualBo 2299 adam 54u REG 259,2 2146762752 10094021 |
42 |
> <snip> |
43 |
> |
44 |
> # find VIRTUALS/Win10-vbox/ -atime -1 -type f |
45 |
> VIRTUALS/Win10-vbox/Win10-vbox.vbox |
46 |
> VIRTUALS/Win10-vbox/Logs/VBox.log |
47 |
> VIRTUALS/Win10-vbox/Logs/VBox.log.1 |
48 |
> VIRTUALS/Win10-vbox/Win10-vbox.vbox-prev |
49 |
> # |
50 |
|
51 |
Incidentally, I can't start VMs when the gentoo host is running kernel |
52 |
4.19.57. I get an error about "Failed to attach the network LUN |
53 |
(VERR_INTNET_FLT_IF_NOT_FOUND)." Kernel 4.19.52 works fine. |
54 |
|
55 |
Are you getting any such problems? |
56 |
|
57 |
-- |
58 |
Regards, |
59 |
|
60 |
Mick |