-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
22 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
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ The following components are required: | |
### Install QEMU and VMs | ||
|
||
```shell | ||
$ sudo apt-get -y qemu # debian/ubuntu | ||
$ sudo apt-get install qemu -y # debian/ubuntu | ||
``` | ||
|
||
Download and install the VM, taking Ubuntu as an example: | ||
|
@@ -25,7 +25,7 @@ $ truncate -s 10G image.img | |
$ sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 4G \ | ||
-cdrom ubuntu-20.04.6-live-server-amd64.iso \ | ||
-drive file=image.img,format=raw,cache=none,if=virtio \ | ||
-boot d | ||
-no-reboot -boot d | ||
``` | ||
|
||
### Mount shared directory on VMs | ||
|
@@ -40,7 +40,7 @@ host# cargo run --release <socket-path> <backend-url> | |
|
||
```markdown | ||
- fs://?root=<path> | ||
- s3://?root=<path>&bucket=<bucket>&endpoint=<endpoint>®ion=<region>&access_key_id=<access-key-id>&secret_access_key=<secret-access-key> | ||
- s3://?bucket=<bucket>&endpoint=<endpoint>&access_key_id=<access-key-id>&secret_access_key=<secret-access-key>®ion=<region> | ||
``` | ||
|
||
Run the VM through QEMU and create a VirtioFS device: | ||
|
@@ -59,12 +59,11 @@ Mount a shared directory in the VM: | |
guest# sudo mount -t virtiofs <fs-tag> <mount-point> | ||
``` | ||
|
||
For more examples, please refer to the test scripts in github actions of this repository. | ||
> Notes: For more examples or some useful Ubuntu unattended autoinstall scripts, see the scripts [here](./scripts/). | ||
## Periodic Reports During GSoC 2024 And Acknowledgements | ||
|
||
The following are reports from the implementation phase, all synchronized in the [OpenDAL dev mailing list](https://lists.apache.org/[email protected]). | ||
|
||
- [05.12-05.19](./docs/reports/05.12-05.19.md) | ||
- [05.20-06.02](./docs/reports/05.20-06.02.md) | ||
- [06.02-06.27](./docs/reports/06.02-06.27.md) | ||
|
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,3 @@ | ||
OpenDAL: access data freely. | ||
OpenDAL: access data freely. | ||
OpenDAL: access data freely. |
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
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,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo apt-get update | ||
sudo apt-get install cloud-image-utils qemu -y | ||
|
||
cloud-localds seed.iso user-data meta-data | ||
|
||
wget https://releases.ubuntu.com/20.04/ubuntu-20.04.6-live-server-amd64.iso | ||
|
||
sudo mkdir /mnt/ubuntu-iso | ||
sudo mount -o loop ubuntu-20.04.6-live-server-amd64.iso /mnt/ubuntu-iso | ||
|
||
truncate -s 10G image.img | ||
|
||
# Notes: The user and password of the VM created unattended here are both ubuntu. | ||
sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 4G \ | ||
-drive file=image.img,format=raw,cache=none,if=virtio \ | ||
-drive file=seed.iso,format=raw,cache=none,if=virtio \ | ||
-cdrom ubuntu-20.04.6-live-server-amd64.iso \ | ||
-kernel /mnt/ubuntu-iso/casper/vmlinuz \ | ||
-initrd /mnt/ubuntu-iso/casper/initrd \ | ||
-append "console=ttyS0 autoinstall" \ | ||
-nographic -no-reboot -boot d | ||
|
||
sudo umount /mnt/ubuntu-iso | ||
sudo rm -rf /mnt/ubuntu-iso | ||
|
||
sudo qemu-system-x86_64 --enable-kvm -smp 2 \ | ||
-m 4G -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa node,memdev=mem \ | ||
-chardev socket,id=char0,path=/tmp/vfsd.sock -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=myfs \ | ||
-drive file=image.img,format=raw,cache=none,if=virtio \ | ||
-nographic -boot c |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
RUST_LOG=debug cargo run --manifest-path ../Cargo.toml --release \ | ||
/tmp/vfsd.sock \ | ||
fs://?root=$PWD |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
RUST_LOG=debug cargo run --manifest-path ../Cargo.toml --release \ | ||
/tmp/vfsd.sock \ | ||
"s3://?bucket=test&endpoint=http://127.0.0.1:9000&access_key_id=minioadmin&secret_access_key=minioadmin®ion=us-east-1" |
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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo apt-get update | ||
sudo apt-get install awscli -y | ||
|
||
docker compose -f docker-compose-minio.yml up -d --wait | ||
|
||
export AWS_ACCESS_KEY_ID="minioadmin" | ||
export AWS_SECRET_ACCESS_KEY="minioadmin" | ||
export AWS_EC2_METADATA_DISABLED="true" | ||
|
||
aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://test | ||
aws --endpoint-url http://127.0.0.1:9000/ s3 cp example.txt s3://test | ||
aws --endpoint-url http://127.0.0.1:9000/ s3 ls s3://test | ||
aws --endpoint-url http://127.0.0.1:9000/ s3 cp s3://test/example.txt - |
This file was deleted.
Oops, something went wrong.