On Tue, Jul 15, 2025 at 07:31:19AM +0200, Stephan Althaus via illumos-discuss 
wrote:
> On 7/15/25 03:02, Dan McDonald wrote:
> > On Jul 14, 2025, at 5:22 PM, Marcel Telka <[email protected]> wrote:
> > > Hi,
> > > 
> > > I'm trying to explore bhyve for the first time and so I tried some basic
> > > example from the bhyve(8) man page.  Surprisingly, it does not work.
> > > 
> > > # mkfile -n 1g image
> > > # bhyve -c 2 -s 0,hostbridge -s 1,lpc -s 2,virtio-blk,image \
> > > -l com1,stdio -H -P -m 1G vm
> > > virtual machine cannot be booted
> > > # bhyve -c 2 -s 0,hostbridge -s 1,lpc -s 2,virtio-blk,image \
> > > -l com1,stdio -H -P -m 1G vm
> > > vm exit[0]
> > 1.) Check for bhyve processes?
> > 
> > 2.) You aren't specifying a boot rom?  SHould you be?
> > 
> > Here's a pargs for a bhyve running on SmartOS. Some of it is clearly 
> > SmartOS-specific, but perhaps a vew things here might help, esp. `-l 
> > bootrom,/path/to/boot/rom` ?
> > 
> > [root@nuc ~]# pargs `pgrep bhyve`
> > 4449:   bhyve -H -U 170e57f0-4ffe-4fad-af11-c235d04ee16d -B 
> > 1,manufacturer=Joyent,produ
> > argv[0]: bhyve
> > argv[1]: -H
> > argv[2]: -U
> > argv[3]: 170e57f0-4ffe-4fad-af11-c235d04ee16d
> > argv[4]: -B
> > argv[5]: 1,manufacturer=Joyent,product=SmartDC 
> > HVM,version=7.20250710T000436Z,serial=170e57f0-4ffe-4fad-af11-c235d04ee16d,sku=001,family=Virtual
> >  Machine
> > argv[6]: -s
> > argv[7]: 31,lpc
> > argv[8]: -l
> > argv[9]: bootrom,/usr/share/bhyve/uefi-rom.bin
> > argv[10]: -l
> > argv[11]: com1,/dev/zconsole
> > argv[12]: -l
> > argv[13]: com2,socket,/tmp/vm.ttyb
> > argv[14]: -s
> > argv[15]: 0,hostbridge,model=i440fx
> > argv[16]: -c
> > argv[17]: 4
> > argv[18]: -m
> > argv[19]: 8192
> > argv[20]: -s
> > argv[21]: 
> > 0:4:0,virtio-blk,/dev/zvol/rdsk/zones/170e57f0-4ffe-4fad-af11-c235d04ee16d/disk0
> > argv[22]: -s
> > argv[23]: 6:0,virtio-net-viona,net0
> > argv[24]: -s
> > argv[25]: 30:0,fbuf,vga=off,unix=/tmp/vm.vnc
> > argv[26]: -s
> > argv[27]: 30:1,xhci,tablet
> > argv[28]: SYSbhyve-3
> > [root@nuc ~]#
> > 
> > Dan
> > 
> 
> Hi Marcel!
> 
> Recently i have been playing around with bhyve commands.
> 
> Your error message may be raising because youve left the 'old' test running,
> be shure to destroy it  with bhavectl.

I've no bhyve process running.  I'll post some more info shortly...

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   [email protected]  |
|                homepage: http://telka.sk/ |
+-------------------------------------------+

------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/T0a2ef97770149180-M4d6b0b83fab38b84a8f68708
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to