forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: Document how to transfer files from QEMU to the host
Document how to transfer files from QEMU to the host
- Loading branch information
1 parent
79cdb5e
commit f43b69f
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Transferring files from QEMU to your host machine | ||
|
||
## Method 1: WebServer | ||
Serenity has a built-in web server which extends to your host machine. | ||
|
||
Open a new terminal and use the following command to start a WebServer instance for the current working directory: | ||
|
||
```console | ||
ws . | ||
``` | ||
|
||
Then we just open `localhost:8000` on our host machine :^) | ||
|
||
![](WebServer_localhost.png) | ||
|
||
**NOTE:** Due to the fact that same browsers download unrecognized files as plain text, you may want to use something like `wget` to download the file **as is** instead. Otherwise the file may appear corrupted when the system tries to load it. | ||
|
||
## Method 2: Mount disk_image | ||
|
||
Another way is to mount Serenity's disk_image to your host machine by using the following command on *nix systems: | ||
|
||
```console | ||
cd "Build/${SERENITY_ARCH}" | ||
mkdir mnt | ||
sudo mount -t ext2 _disk_image mnt | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.