You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,8 @@ Generate ext4 image file for virtio block device in Unix-like system:
93
93
$ dd if=/dev/zero of=disk.img bs=4M count=32
94
94
$ mkfs.ext4 disk.img
95
95
```
96
+
Instead of creating a new block device image, you can share the hostOS's existing block devices. For example, on macOS host, specify the block device path as `-x vblk:/dev/disk3`, or on Linux host as `-x vblk:/dev/loop3`, assuming these paths point to valid block devices.
97
+
96
98
Mount the virtual block device and create a test file after booting, note that root privilege is required to mount and unmount a disk:
0 commit comments