Closed FredrikBakken closed 2 years ago
Update from my side. I changed the git branches for unikraft
, pthread-embedded
, newlib
, lwip
, and redis
to stable
and used the qemu-guest
command from USoC21 to make it load the configuration file as wanted:
qemu-guest \
-k ./build/redis_kvm-x86_64 \
-a "/redis.conf" \
-b kraft0 \
-e ./redis_files
The terminal output no longer shows the warning message: Warning: no config file specified, using the default config. In order to specify a config file use build/app-redis_kvm-x86_64 /path/to/redis.cof
:
SeaBIOS (version 1.13.0-1ubuntu1.1)
iPXE (http://ipxe.org) 00:02.0 C100 PCI2.10 PnP PMM+03F8C800+03ECC800 C100
Booting from ROM...
en1: Added
en1: Interface is up
Powered by
o. .o _ _ __ _
Oo Oo ___ (_) | __ __ __ _ ' _) :_
oO oO ' _ `| | |/ / _)' _` | |_| _)
oOo oOO| | | | | (| | | (_) | _) :_
OoOoO ._, ._:_:_,\_._, .__,_:_, \___)
Dione 0.6.0~6a2069e
1:C 24 Feb 2022 18:04:57.013 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 24 Feb 2022 18:04:57.015 # Redis version=5.0.6, bits=64, commit=c5ee3442, modified=1, pid=1, just started
1:C 24 Feb 2022 18:04:57.017 # Configuration loaded
1:M 24 Feb 2022 18:04:57.021 * Increased maximum number of open files to 10032 (it was originally set to 1024).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.6 (c5ee3442/1) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 1
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
1:M 24 Feb 2022 18:04:57.058 # Server initialized
1:M 24 Feb 2022 18:04:57.059 * Ready to accept connections
en1: Set IPv4 address 172.44.0.76 mask 255.255.255.0 gw 172.44.0.1
However, I am still not able to execute curl
:
$ curl 172.44.0.76 6379
curl: (7) Failed to connect to 172.44.0.76 port 80: Connection refused
curl: (28) Failed to connect to 6379 port 80: Connection timed out
But, I guess that should not be possible anyways?
Note to myself... need to read up further on what is possible and impossible with Redis.
telnet
works as I want it to :)
telnet 172.44.0.76 6379
Trying 172.44.0.76...
Connected to 172.44.0.76.
Escape character is '^]'.
ping
+PONG
Hi,
I have successfully gotten the Redis application up and running according to the documentation, but I am having some issues when trying to run it with a custom configuration file. I have added a new directory to the root path of the
~.unikraft/apps/app-redis
directory, namedredis_files
. Within this directory, I have placed my custom Redis configuration file namedredis.conf
.Within the
menuconfig
, I enabled the usage ofvfscore
and selected9PFS
(set the name of theDefault root device
tofs0
).My launch commands looks like this:
Which launches the application with the following output into the terminal:
This makes me think that the custom config file is not appended as it prints the following message:
Warning: no config file specified, using the default config. In order to specify a config file use build/app-redis_kvm-x86_64 /path/to/redis.cof
The Redis CLI works as normal:
While
curl
is still refused:Any suggestions for how to successfully load a custom Redis.conf file into the unikernel?