The server doesn't boot natively
-
The server doesn't boot natively.
It can boot in Linux rescue mode. So:
qemu-system-x86_64 -enable-kvm -m 65536 -smp 16 \
-bios /usr/share/ovmf/OVMF.fd \
-drive file=/dev/nvme0n1,format=raw,if=virtio \
-drive file=/dev/nvme1n1,format=raw,if=virtio \
-netdev user,id=net0,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 \
-device virtio-net-pci,netdev=net0 \
-vnc 127.0.0.1:0A couple of lines modified in /etc/rc.conf and /etc/pf.conf
And the server is responding, while waiting for the KVM console.
-
The server doesn't boot natively.
It can boot in Linux rescue mode. So:
qemu-system-x86_64 -enable-kvm -m 65536 -smp 16 \
-bios /usr/share/ovmf/OVMF.fd \
-drive file=/dev/nvme0n1,format=raw,if=virtio \
-drive file=/dev/nvme1n1,format=raw,if=virtio \
-netdev user,id=net0,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 \
-device virtio-net-pci,netdev=net0 \
-vnc 127.0.0.1:0A couple of lines modified in /etc/rc.conf and /etc/pf.conf
And the server is responding, while waiting for the KVM console.
@stefano is this one of those cases where the hosting provider doesn't offer a FreeBSD image? If so, do you plan to run with qemu KVM permanently? What is the impact of that (perf-wise or ability to run jails or bhyve, is any)?
(Edit: I missed the related post, now have bit more context, but still curious to know)
-
The server doesn't boot natively.
It can boot in Linux rescue mode. So:
qemu-system-x86_64 -enable-kvm -m 65536 -smp 16 \
-bios /usr/share/ovmf/OVMF.fd \
-drive file=/dev/nvme0n1,format=raw,if=virtio \
-drive file=/dev/nvme1n1,format=raw,if=virtio \
-netdev user,id=net0,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 \
-device virtio-net-pci,netdev=net0 \
-vnc 127.0.0.1:0A couple of lines modified in /etc/rc.conf and /etc/pf.conf
And the server is responding, while waiting for the KVM console.
@stefano well done !
-
@stefano is this one of those cases where the hosting provider doesn't offer a FreeBSD image? If so, do you plan to run with qemu KVM permanently? What is the impact of that (perf-wise or ability to run jails or bhyve, is any)?
(Edit: I missed the related post, now have bit more context, but still curious to know)
@robinp it was just an emergency measure, while the provider connected the KVM interface to debug it. Those bare metals just run jails, so no problems (except for some performance and resources waste, but it can be done for some hours).
One hour later they gave me the KVM console and it's back to normal operations.