Date: Sun, 21 Sep 2014 20:24:17 +0400 From: Roman Bogorodskiy <novel@FreeBSD.org> To: Assaf Gordon <assafgordon@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: FreeBSD with qemu/kvm "-kernel" option Message-ID: <20140921162415.GA47464@kloomba> In-Reply-To: <541CC2CA.2050009@gmail.com> References: <541CC2CA.2050009@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Assaf Gordon wrote: > Hello, >=20 > I have FreeBSD 8.4, 9.3 and 10 guests VM running under KVM (on amd64 host= ). > They work great with virtio disk and network. >=20 > Now I'm trying to take it to the next level: > Instead of using the bootloader inside the VM, I want to specify the kern= el directly using qemu's "-kernel" option. >=20 > Generally, the usage is supposed to be this: > kvm -drive file=3Dfreebsd.qcow2,media=3Ddisk,if=3Dvirtio,index=3D0 \ > -kernel ./kernel >=20 > Where "./kernel is the FreeBSD kernel ELF file (stored as a file on the h= ost machine). > Using the generic "/boot/kernel/kernel" kernel does not work (VM doesn't = boot at all). >=20 > I assume that more options are needed (e.g. "-initrd" and "-append"), and= perhaps also a kernel with different options. >=20 > Does anyone have an idea of how to achieve this ? > Is rebuilding a kernel image from source with special options needed ? I guess, qemu's -kernel requires kernel to be multiboot compatible and FreeBSD kernel is not. Roman Bogorodskiy --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAEBAgAGBQJUHvuvAAoJEMltX/4IwiJqZHEH/0pZqMMNoPcO25QB6psPXh+U w2Erkk0XTk4OQ+9nGe2LU70p3y2xpA31bxZ3zmA/dr1xxVpZGxJxgjdtt2Bbkih8 GhdPfMGIHHzEAOkTQayWRdPqMIqMiZ3M4yhhIh7QwnPHTzGAbdTHTcd9ee7b4IcO 2zTy3/ArJhG0SJQj+IKBgQ0ENeBVDnpWPRUESqLasPswY4h0bZxfnHjoZvb8paw3 02a/hIbpDFUKI2rS+SDfp5paLHWv5qwsNXN7iREjDq65lR8Oarc9U9SgbNSbMkSy ++VxN9oxkq1AwIUfTG+ZixVr+DG6p1yvzvzb82b+o7TN+vTYw2bPT5kA85Mcn9k= =a9b1 -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140921162415.GA47464>