machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 354 forks source link

xhyve should restrict access to a FS backing store to a single instance #134

Open wiredfool opened 7 years ago

wiredfool commented 7 years ago

Ubuntu 16.04 as a guest:

Oh the console:

Ubuntu 16.04.2 LTS builder-16 ttyS0

builder-16 login: [   60.497061] EXT4-fs error (device vda1): ext4_mb_generate_buddy:758: group 17, block bitmap and bg descriptor inconsistent: 12327 vs 12565 free clusters
[   91.564682] EXT4-fs error (device vda1): ext4_lookup:1583: inode #286371: comm python: deleted inode referenced: 512330
[   91.566572] EXT4-fs error (device vda1): ext4_lookup:1583: inode #286371: comm python: deleted inode referenced: 512330

What happened -- I think

$ ps ax | grep xhyve
root             74358 105.0  5.3  3526696 222940 s000  R+    7:38PM 251:19.49 xhyve -m 1G -c 4 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -s 2:0,virtio-net -s 4,virtio-blk,builder-16.04-x64.raw -s 5,virtio-blk,builder-16.04-x64-ds.raw -f kexec,vmlinuz-4.4.0-77-generic,initrd.img-4.4.0-77-generic,earlyprintk=serial console=ttyS0 acpi=off root=/dev/vda1 ro
root             76137   4.2  0.1  3526692   4052 s001  S+    8:02PM  10:02.55 /Users/erics/src/xhyve/build/xhyve -m 1G -c 4 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -s 2:0,virtio-net -s 4,virtio-blk,builder-16.04-x64.raw -s 5,virtio-blk,builder-16.04-x64-ds.raw -f kexec,vmlinuz-4.4.0-77-generic,initrd.img-4.4.0-77-generic,earlyprintk=serial console=ttyS0 acpi=off root=/dev/vda1 ro
root             76136   0.0  0.0  2454648   2076 s001  S+    8:02PM   0:00.01 sudo /Users/erics/src/xhyve/build/xhyve -m 1G -c 4 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -s 2:0,virtio-net -s 4,virtio-blk,builder-16.04-x64.raw -s 5,virtio-blk,builder-16.04-x64-ds.raw -f kexec,vmlinuz-4.4.0-77-generic,initrd.img-4.4.0-77-generic,earlyprintk=serial console=ttyS0 acpi=off root=/dev/vda1 ro

I think PID 74358 was an xhyve process (version: whatever is in brew) that was in a terminal window that closed (it was some weird swipe thing, but it was gone, but still running in the background). 76137 is from current master.

I think they were both running off of the same backing store, and it got corrupted when shut down.