unikraft / app-redis

Redis on Unikraft
5 stars 12 forks source link

issue to run redis through kraft 0.7.5 or 0.7.7 #23

Open ChaoyiHuang opened 8 months ago

ChaoyiHuang commented 8 months ago

kraft 0.7.5 follow the first part of the readme

git clone https://github.com/unikraft/app-redis redis cd redis/ kraft build

kraft run --target redis-qemu-x86_64-initrd --initrd ./rootfs -p 6379:6379 -- /redis.conf

  1. the --initrd flag is deprecated in favour of --rootfs
  2. Fatal error, can't open config file '/redis.conf': Not a directory
  3. qemu parameters: qemu-system-x86_64 -append /redis.conf -cpu qemu64,+pdpe1gb,-vmx,-svm -daemonize -device virtio-net-pci,mac=02:b0:b0:93:2a:01,netdev=hostnet0 -device pvpanic -device sga -display none -initrd .unikraft/build/initramfs-x86_64.cpio -kernel /home/joehuang_sweden/redis/.unikraft/build/redis-qemu-x86_64-initrd_qemu-x86_64 -machine pc -m size=64M -monitor unix:/root/.local/share/kraftkit/runtime/8bba3d7e-eac4-4c44-9e04-ae7d676bdff3/qemu_mon.sock,server,nowait -name 8bba3d7e-eac4-4c44-9e04-ae7d676bdff3 -netdev user,id=hostnet0,hostfwd=tcp::6379-:6379 -nographic -no-reboot -S -parallel none -pidfile /root/.local/share/kraftkit/runtime/8bba3d7e-eac4-4c44-9e04-ae7d676bdff3/machine.pid -qmp unix:/root/.local/share/kraftkit/runtime/8bba3d7e-eac4-4c44-9e04-ae7d676bdff3/qemu_control.sock,server,nowait -qmp unix:/root/.local/share/kraftkit/runtime/8bba3d7e-eac4-4c44-9e04-ae7d676bdff3/qemu_events.sock,server,nowait -rtc base=utc -serial file:/root/.local/share/kraftkit/runtime/8bba3d7e-eac4-4c44-9e04-ae7d676bdff3/machine.log -smp cpus=1,threads=1,sockets=1 -vga none
ChaoyiHuang commented 8 months ago

kraft 0.7.7 same issue: Fatal error, can't open config file '/redis.conf': Not a directory