I am trying to boot up a vm with qemu-system-ppc64(similar to lkvm). I am using the following command: qemu-system-ppc64 --enable-kvm -vga none -nographic -nodefaults -chardev stdio,id=id1 -device spapr-vty,chardev=id1 -machine type=pseries-2.2,usb=off -smp 1 -m 128 -kernel vmlinux -fsdev local,id=root,path=.,security_model=none -fsdev local,id=containerfs,path=opt/stage2/hello/rootfs/,security_model=none -device virtio-9p-pci,fsdev=root,mount_tag=/dev/root -device virtio-9p-pci,fsdev=containerfs,mount_tag=/dev/basefs -append 'root=/dev/root rootfstype=9p rootflags=trans=virtio,version=9p2000.L  init=lib/systemd/systemd systemd.log_level=debug systemd.log_target=console 'I want to show a simple hello world to the console. So I have written the following service file called hello.service in lib/systemd/system:[Service]Restart=noType=oneshotExecStart=/bin/echo hello worldUser=0 Group=0StandardOutput=journal+consoleStandardError=journal+consoleSyslogIdentifier=hello[Unit]Description= Application HelloDefaultDependencies=falseOnFailure=reaper.serviceWants=exit-watcher.serviceRequires=base-mount.serviceAfter=base-mount.serviceBut when I start the vm, i can't see the output hello world on the screen. Can you please help on how to bring the output on console?
How do I configure a systemd service to execute simple /bin/echo Hello world command to show the output on the console?
kernel;systemd;kvm