[OpenIndiana-discuss] Welcome bhyve!

Stephan Althaus Stephan.Althaus at Duedinghausen.eu
Fri Mar 26 23:10:43 UTC 2021


On 02/24/21 09:53 PM, Stephan Althaus wrote:
> Good Evening to everybody!
>
> .. just to share my experience ..
>
> With the integration of bhyve in to illumos and the packaging of the 
> needed into Openindiana,
> we have besides the elderly kvm and the up-to-date virtualbox a third 
> modern virtualization method: bhyve.
>
> If you want to try it out and are using VirtualBox:
> You can install both bhyve and virtualbox,
> but you can use only one of them.
> Once a bhyve vm is startet, Virtualbox vms will not start until the 
> next reboot,
> because the bhyve vmm kernel module does not unload
> (in other words: i had no luck trying it :-)
>
>
> My first ubuntu vm was easily set up in following the instructions here:
>
> https://omnios.org/info/bhyve_kvm_brand
>
> Someone interested in PCI passthru might want to have a look here:
>
> https://www.pbdigital.org/omniosce/bhyve/openbsd/2020/06/08/bhyve-zones-omnios.html 
>
>
>
> After some fiddling i got a Win7 vbox-vm to work on bhyve:
>
> 1) dladm create-vnic -l e1000g4 vnic1
> zfs create -V 32G home2/vm/Win7vol1
>
> 2) Convert vm disk:
>
> a) VBoxManage  clonemedium disk Win7.vhd win7d1.vmdk --format VMDK
> b) /usr/bin/amd64/qemu-img convert -f vmdk -O raw win7d1.vmdk win7d1.raw
> c) dd if=win7d1.raw of=/dev/zvol/rdsk/home2/vm/Win7vol1 bs=512
>
> 3) i had to switch it from legacy to uefi mode, by re-partitioning, 
> repair startup with win7 installation iso ....
> if your vm is using UEFI you're lucky
> In case of boot problems read here: 
> https://www.jongibbins.com/solving-uefi-boot-problems-on-bhyve-freenas-vm/
>
> 4) Install network driver via virtio-win-0.1.185.iso
> -> 
> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.185-2/
> -> 
> https://www.ateamsystems.com/tech-blog/howto-windows-10-bhyve-w-freebsd-11/
>
>
> Nothing special in the zone cfg but:
>
> ...
> add attr
> set name="diskif"
> set type="string"
> set value="ahci"
> end
> ...
>
> ..which might be renoved if you install the corresponding Windows 
> drivers - i did not try it yet.
>
>
> *Thanks* to all the active developers for giving us this great OS !!!
>
>
> Happy trying!
>
> Stephan
>
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

Hello!

I have a (confguration?) problem with the VNC handling.


Initial problem: no keyboard with vnc, mouse works

If i use the default vnc socket, Keyboard events are not recognized by 
my Win10 bhyve zone , tested with several vnc clients

(socat -d -d -d -d showed transfer of bytes when a key was pressed:

2021/03/26 22:24:29 socat[4426] D select -> (, 0x40, 0x0, 0x0, 
NULL/0.000000), 1
2021/03/26 22:24:29 socat[4426] D read(6, 0x6def60, 8192)
2021/03/26 22:24:29 socat[4426] D read -> 8
2021/03/26 22:24:29 socat[4426] D write(5, 0x6def60, 8)
2021/03/26 22:24:29 socat[4426] D write -> 8
2021/03/26 22:24:29 socat[4426] I transferred 8 bytes from 6 to 5
2021/03/26 22:24:29 socat[4426] D data loop: sock1->eof=0, sock2->eof=0, 
closing=0, wasaction=1, total_to={0.000000}
2021/03/26 22:24:29 socat[4426] D select(7, &0x60, &0x20, &0x0, 
NULL/0.000000)
2021/03/26 22:24:29 socat[4426] D select -> (, 0x0, 0x20, 0x0, 
NULL/0.000000), 1
2021/03/26 22:24:29 socat[4426] D data loop: sock1->eof=0, sock2->eof=0, 
closing=0, wasaction=1, total_to={0.000000}
2021/03/26 22:24:29 socat[4426] D select(7, &0x60, &0x0, &0x0, 
NULL/0.000000)
2021/03/26 22:24:29 socat[4426] D select -> (, 0x40, 0x0, 0x0, 
NULL/0.000000), 1
2021/03/26 22:24:29 socat[4426] D read(6, 0x6def60, 8192)
2021/03/26 22:24:29 socat[4426] D read -> 8
2021/03/26 22:24:29 socat[4426] D write(5, 0x6def60, 8)
2021/03/26 22:24:29 socat[4426] D write -> 8
2021/03/26 22:24:29 socat[4426] I transferred 8 bytes from 6 to 5
2021/03/26 22:24:29 socat[4426] D data loop: sock1->eof=0, sock2->eof=0, 
closing=0, wasaction=1, total_to={0.000000}
2021/03/26 22:24:29 socat[4426] D select(7, &0x60, &0x20, &0x0, 
NULL/0.000000)
2021/03/26 22:24:29 socat[4426] D select -> (, 0x0, 0x20, 0x0, 
NULL/0.000000), 1
2021/03/26 22:24:29 socat[4426] D data loop: sock1->eof=0, sock2->eof=0, 
closing=0, wasaction=1, total_to={0.000000}
2021/03/26 22:24:29 socat[4426] D select(7, &0x60, &0x0, &0x0, 
NULL/0.000000)
)


Good news:
When i start bhyve via command line with the settings

...
-s 30:0,fbuf,vga=off,tcp=0.0.0.0:5905,wait \
-s 30:1,xhci,tablet \
...

VNC works well as expected.


So i am trying to enable the VNC network listener via zonecfg like this:

...
add attr
set name="vnc"
set type="string"
set value="on"
end
add attr
set name="vnc-port"
set type="string"
set value="5905"
end
...

but this does not work at all. :-/


Any hints are appreciated!

Stephan




More information about the openindiana-discuss mailing list