Boot OpenBSD with bhyve and libvirt automatically.

William B william at firstyear.id.au
Wed Dec 31 07:00:03 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am attempting to have an OpenBSD guest run inside of bhyve and libvirt.

I have already completed the install by running the grub2-bhyve and bhyve commands manually.

When attempting to run the OpenBSD guest from lib virt, I get:

virsh start --console guest
<hang>

An inspection of ps shows that it is at the grub-bhyve command. I daresay it is waiting for the stdin lines:

kopenbsd -h com0 (hd0,openbsd1)/bsd
boot

The "automatic" boot seems not to work.

Is there a way to "automate" the input of these lines into grub-bhyve from libvirt so that my virsh start command works? Or will I need to run this with grub-bhyve / bhyve commands for now? Is this a feature that should be added to grub-bhyve to accept a parameter that is a boot script perhaps? Or libvirt to have a function to direct into stdin of the grub-bhyve prompt.


- -- 
Sincerely,

William Brown

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUo57BAAoJEO/EFteBqAmajYwQAKsbVzN4QSu1yOtUYvW54XEl
8lIxE5ETyxy/l5PhJJ9nPFELBwM+ChlWzTXcf4FhWQBbf8pDhut8mVEibkOQ4RFH
/qgc8rfL+nmjQsR3e3ka5IzXUdFvf0lDO3fIAcbnxeLO2lJV3EP7cNTa+U/T4MXZ
QMDW6rhDriA9JGpqK56sSat6j/YTjsN7LXENF2eE/XBG03hEnTIqgPDaYRzbTs0m
wJyMa7mhFQbjsjeiwMaBV1xPw+tHRmgbpOYe9PwXy2nIMhluXr3MvfOxFfZsmGHY
2Cr9HsfCrzBfyQLNKXtdcjFp3+FV60950H4DuNgdp4l8V0Bc+fS1F6K5A5r6GvSR
aCFSpNBQn0YB7qzN9A6AZan5Y4zNH+DJAFU3TydxnABBvVaXQOOeMVH5aTSaYQUc
SYrGu4VtoRDvEjC2tziz4UCokDZVn9Y4FyoF9UCmR8ZUx2GDOgVN8PF4Yi6qj959
fHHgyM0qgAHwCOMu+3GqjmuB9Xnub2G73uxFxMb6GbB5xrydjxdqjxzdD2EfuIJU
1yKGluMSjIZZLyOXYHaGwL3PMn8tdUM7PzQt/jzv+4LENuN5YbQns6/TkDeyPRFP
ju2iJsK7l0KMseQdfmu0nyrZrih9W/8wvA0qQdFJ+NPC+3NQbyD1IcrTkr1lqT9x
rZ7OwvfjPf+LKG+L/Ug5
=SVtg
-----END PGP SIGNATURE-----


More information about the freebsd-virtualization mailing list