On Wed, 1 Jul 2020 at 16:59, Ottavio Caruso
<ottavio2006-usenet2012@yahoo.com> wrote:
On Wed, 1 Jul 2020 at 16:45, Kai Peter <kp@lists.openqmail.org> wrote:
>
> Hi,
>
> I'm curious why the option -pidfile creates a file with mode 0600.
It doesn't :
Sorry, I meant it does, but not owned by root:
oc@e130:~$ cat opt/bin/boot-openbsd-virtio
#!/bin/sh
qemu-system-x86_64 \
-drive if=virtio,file=/home/oc/VM/img/openbsd.image,index=0,media=disk
\
-M q35,accel=kvm -m 250M -cpu host,kvmclock-stable-bit -smp $(nproc) \
-nic user,hostfwd=tcp:127.0.0.1:5556-:22,model=virtio-net-pci \
-daemonize -display none \
-serial mon:telnet:127.0.0.1:6666,server,nowait \
-pidfile /home/oc/VM/pid/openbsd-pid
oc@e130:~$ ls -l /home/oc/VM/pid/
total 4
-rw------- 1 oc oc 5 Jul 1 16:54 openbsd-pid