Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 19:35:23 +0900
From:      KIRIYAMA Kazuhiko <kiri@truefc.org>
To:        Simon Gusev <semfly@fly777.net>
Cc:        freebsd-virtualization@freebsd.org, KIRIYAMA Kazuhiko <kiri@truefc.org>
Subject:   Re: VM freezed at booting of FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memstick.img
Message-ID:  <201910151035.x9FAZNlU043565@kx.truefc.org>
In-Reply-To: <03057504.20191015110705@fly777.net>
References:  <201910150751.x9F7p803016663@kx.truefc.org> <03057504.20191015110705@fly777.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Oct 2019 17:07:05 +0900,
Simon wrote:
>=20
>=20
>=20
> Hi )
> May be the same problem.
> I said about this here
> https://forums.freebsd.org/threads/freebsd-12-0-release-amd64-freeze-boot=
-from-bhyve-uefi-bhyve_uefi-fd-uefi-gop-screen-goes-blank.69616/
> Solution.
> Try this
> Select
> 3 -=A0[Esc]ape to loader prompt=A0
> set boot_serial=3D"NO"
> boot

`vm install' doesn't wait boot loader. So above
manupulation could not work. I've specified it to the
bhyveload `-e' option like with `-e boot_serial=3DNO':

root@vm:~ # cat /vm/tbedfc/vm-bhyve.log
Oct 15 19:27:55: initialising
Oct 15 19:27:55:  [loader: bhyveload]
Oct 15 19:27:55:  [cpu: 2]
Oct 15 19:27:55:  [memory: 8GB]
Oct 15 19:27:55:  [hostbridge: standard]
Oct 15 19:27:55:  [com ports: com1]
Oct 15 19:27:55:  [uuid: 737d1159-ef36-11e9-847a-0cc47ab3cfd4]
Oct 15 19:27:55:  [utctime: yes]
Oct 15 19:27:55:  [debug mode: no]
Oct 15 19:27:55:  [primary disk: disk0.img]
Oct 15 19:27:55:  [primary disk dev: file]
Oct 15 19:27:55: generated static mac 58:9c:fc:02:46:e2 (based on 'tbedfc:0=
:1571135275:0')
Oct 15 19:27:55: initialising network device tap0
Oct 15 19:27:55: adding tap0 -> vm-local (local addm)
Oct 15 19:27:55: bring up tap0 -> vm-local (local addm)
Oct 15 19:27:55: booting
Oct 15 19:27:55: bhyveload -m 8GB -e autoboot_delay=3D3 -e boot_serial=3DNO=
 -d /vm/.iso/FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memstick.img tbedfc
Oct 15 19:27:59:  [bhyve options: -c 2 -m 8GB -AHP -U 737d1159-ef36-11e9-84=
7a-0cc47ab3cfd4 -u]
Oct 15 19:27:59:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,virtio-b=
lk,/vm/tbedfc/disk0.img -s 5:0,virtio-net,tap0,mac=3D58:9c:fc:02:46:e2]
Oct 15 19:27:59:  [bhyve console: -l com1,stdio]
Oct 15 19:27:59:  [bhyve iso device: -s 3:0,ahci-hd,/vm/.iso/FreeBSD-13.0-C=
URRENT-amd64-20191011-r353427-memstick.img]
Oct 15 19:27:59: starting bhyve (run 1)
Oct 15 19:29:54: bhyve exited with status 1
Oct 15 19:29:54: destroying network device tap0
Oct 15 19:29:55: stopped
root@vm:~ #=20

but also freezed ;-(

> Look here
> https://lists.freebsd.org/pipermail/freebsd-virtualization/2018-November/=
006944.html
> Simon.
> You wrote 15.10.2019, 10:51:08:
> > Hi, all
> > I'm managing bhyve vm by vm-bhyve-devel (1.3-devel) port
> > which I've made by github head [1]. When create 13.0-CURRENT
> > vm with FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memstick.img
> > as follows:
> > vm create -s 16GB -t tmpfile.gpWbtMxa tbedfc
> > vm install -f tbedfc
> > FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memstick.img < /dev/null
> > where /vm/.templates/tmpfile.gpWbtMxa is
> > loader=3D"bhyveload"
> > cpu=3D2
> > memory=3D8GB
> > network0_type=3D"virtio-net"
> > network0_switch=3Dlocal
> > disk0_type=3D"virtio-blk"
> > disk0_name=3D"disk0.img"
> > storage=3D16GB
> > But in install to image, boot freezed at:
> > =A0| =A0____| =A0 =A0 =A0 =A0 =A0 =A0 | =A0_ \ / ____| =A0__ \
> > =A0| |___ _ __ ___ =A0___ | |_) | (___ | | =A0| |
> > =A0| =A0___| '__/ _ \/ _ \| =A0_ < \___ \| | =A0| |
> > =A0| | =A0 | | | =A0__/ =A0__/| |_) |____) | |__| |
> > =A0| | =A0 | | | =A0 =A0| =A0 =A0|| =A0 =A0 | =A0 =A0 =A0| =A0 =A0 =A0|
> > =A0|_| =A0 |_| =A0\___|\___||____/|_____/|_____/ =A0 =A0``` =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0s` `.....---.......--.``` =A0 -/
> > =A0+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DWelcome to FreeBSD=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D+ +o =A0 .--` =A0 =A0 =A0 =A0 /y:` +.
> > =A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 | =A0yo`:. =A0 =A0 =A0 =A0 =A0 =A0:o =A0 `+-
> > =A0| =A01. Boot Multi User [Enter] =A0 =A0 =A0 =A0 =A0 =A0 | =A0 y/ =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 -/` -o/
> > =A0| =A02. Boot [S]ingle*User =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0.=
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0::/sy+:.
> > =A0| =A03. [Esc]ape to loader prompt =A0 =A0 =A0 =A0 =A0 | =A0/ =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 `-- =A0/
> > =A0| =A04. Reboot =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0| `: =A0 =A0 =A0 =A0 =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 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0
> > /boot/kernel/kernel text=3D0x153f9c0 data=3D0xe0 data=3D0x8007c0 syms=
=3D[0x8+0x1722d8+0x8+0x190cb2]
> > Booting...
> > -
> > Using same image, I installed my note PC successfully. In
> > above state,
> > root@vm:~ # cat /vm/tbedfc/tbedfc.conf
> > loader=3D"bhyveload"
> > cpu=3D2
> > memory=3D8GB
> > network0_type=3D"virtio-net"
> > network0_switch=3Dlocal
> > disk0_type=3D"virtio-blk"
> > disk0_name=3D"disk0.img"
> > storage=3D16GB
> > uuid=3D"90a693df-ef1e-11e9-847a-0cc47ab3cfd4"
> > network0_mac=3D"58:9c:fc:0b:65:c9"
> > root@vm:~ # cat /vm/tbedfc/vm-bhyve.log
> > Oct 15 16:36:56: initialising
> > Oct 15 16:36:56: =A0[loader: bhyveload]
> > Oct 15 16:36:56: =A0[cpu: 2]
> > Oct 15 16:36:56: =A0[memory: 8GB]
> > Oct 15 16:36:56: =A0[hostbridge: standard]
> > Oct 15 16:36:56: =A0[com ports: com1]
> > Oct 15 16:36:56: =A0[uuid: 90a693df-ef1e-11e9-847a-0cc47ab3cfd4]
> > Oct 15 16:36:56: =A0[utctime: yes]
> > Oct 15 16:36:56: =A0[debug mode: no]
> > Oct 15 16:36:56: =A0[primary disk: disk0.img]
> > Oct 15 16:36:56: =A0[primary disk dev: file]
> > Oct 15 16:36:56: generated static mac 58:9c:fc:0b:65:c9 (based on 'tbed=
fc:0:1571125016:0')
> > Oct 15 16:36:56: initialising network device tap0
> > Oct 15 16:36:56: adding tap0 -> vm-local (local addm)
> > Oct 15 16:36:56: bring up tap0 -> vm-local (local addm)
> > Oct 15 16:36:56: booting
> > Oct 15 16:36:56: bhyveload -m 8GB -e autoboot_delay=3D3 -d
> > /vm/.iso/FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memstick.img tbedfc
> > Oct 15 16:37:00: =A0[bhyve options: -c 2 -m 8GB -AHP -U
> > 90a693df-ef1e-11e9-847a-0cc47ab3cfd4 -u]
> > Oct 15 16:37:00: =A0[bhyve devices: -s 0,hostbridge -s 31,lpc -s
> > 4:0,virtio-blk,/vm/tbedfc/disk0.img -s
> > 5:0,virtio-net,tap0,mac=3D58:9c:fc:0b:65:c9]
> > Oct 15 16:37:00: =A0[bhyve console: -l com1,stdio]
> > Oct 15 16:37:00: =A0[bhyve iso device: -s
> > 3:0,ahci-hd,/vm/.iso/FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memsti=
ck.img]
> > Oct 15 16:37:00: starting bhyve (run 1)
> > root@vm:~ # uname -a
> > FreeBSD vm.truefc.org 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r353025:
> > Thu Oct =A03 19:38:47 JST 2019 =A0 =A0
> > admin@vm.truefc.org:/ds/obj/current/13.0/r353025/ds/src/current/13.0/r3=
53025/amd64.amd64/sys/GENERIC
> amd64
> > root@vm:~ # ifconfig
> > igb0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metr=
ic 0 mtu 1500
> > =A0 =A0 =A0 =A0
> >
> options=3D4e523bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HW=
CSUM,TSO4,TSO6,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,N=
OMAP>
> > =A0 =A0 =A0 =A0 ether 0c:c4:7a:b3:cf:d4
> > =A0 =A0 =A0 =A0 inet xxx.xxx.xx.xx netmask 0xfffffff8 broadcast xxx.xxx=
.xx.xx
> > =A0 =A0 =A0 =A0 media: Ethernet autoselect (1000baseT <full-duplex>)
> > =A0 =A0 =A0 =A0 status: active
> > =A0 =A0 =A0 =A0 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> > igb1: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metr=
ic 0 mtu 1500
> > =A0 =A0 =A0 =A0
> >
> options=3D4a520b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WO=
L_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,NOMAP>
> > =A0 =A0 =A0 =A0 ether 0c:c4:7a:b3:cf:d5
> > =A0 =A0 =A0 =A0 inet 192.168.1.17 netmask 0xffffff00 broadcast 192.168.=
1.255
> > =A0 =A0 =A0 =A0 media: Ethernet autoselect (1000baseT <full-duplex>)
> > =A0 =A0 =A0 =A0 status: active
> > =A0 =A0 =A0 =A0 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> > lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> > =A0 =A0 =A0 =A0
> > options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
> > =A0 =A0 =A0 =A0 inet6 ::1 prefixlen 128
> > =A0 =A0 =A0 =A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> > =A0 =A0 =A0 =A0 inet 127.0.0.1 netmask 0xff000000
> > =A0 =A0 =A0 =A0 groups: lo
> > =A0 =A0 =A0 =A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
> > vm-public: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric =
0 mtu 1500
> > =A0 =A0 =A0 =A0 ether c6:ed:62:0a:b0:4e
> > =A0 =A0 =A0 =A0 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddela=
y 15
> > =A0 =A0 =A0 =A0 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
> > =A0 =A0 =A0 =A0 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
> > =A0 =A0 =A0 =A0 member: igb0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUT=
OPTP>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifmaxaddr 0 port 1 priority 128 path co=
st 20000
> > =A0 =A0 =A0 =A0 groups: bridge vm-switch viid-4c918@
> > =A0 =A0 =A0 =A0 nd6 options=3D1<PERFORMNUD>
> > vm-local: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0=
 mtu 1500
> > =A0 =A0 =A0 =A0 ether 8a:d0:25:7d:f7:51
> > =A0 =A0 =A0 =A0 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddela=
y 15
> > =A0 =A0 =A0 =A0 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
> > =A0 =A0 =A0 =A0 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
> > =A0 =A0 =A0 =A0 member: tap0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUT=
OPTP>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifmaxaddr 0 port 6 priority 128 path co=
st 2000000
> > =A0 =A0 =A0 =A0 member: igb1 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUT=
OPTP>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ifmaxaddr 0 port 2 priority 128 path co=
st 20000
> > =A0 =A0 =A0 =A0 groups: bridge vm-switch viid-f5dda@
> > =A0 =A0 =A0 =A0 nd6 options=3D1<PERFORMNUD>
> > tap0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metr=
ic 0 mtu 1500
> > =A0 =A0 =A0 =A0 description: vmnet-tbedfc-0-local
> > =A0 =A0 =A0 =A0 options=3D80000<LINKSTATE>
> > =A0 =A0 =A0 =A0 ether 58:9c:fc:10:ff:df
> > =A0 =A0 =A0 =A0 groups: tap vm-port
> > =A0 =A0 =A0 =A0 media: Ethernet autoselect
> > =A0 =A0 =A0 =A0 status: active
> > =A0 =A0 =A0 =A0 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> > =A0 =A0 =A0 =A0 Opened by PID 85496
> > root@vm:~ #
> > Whats' wrong ? =A0BTW 12.1-PRERELEASE(r352368) and
> > 12.0-RELEASE-p10(r352368) are nothing happened.
> > [1]
> > https://github.com/TrueFC/ports/tree/master/sysutils/vm-bhyve-devel
> > ---
> > KIRIYAMA Kazuhiko
> > _______________________________________________
> > freebsd-virtualization@freebsd.org=A0mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> > To unsubscribe, send any mail to
> > "freebsd-virtualization-unsubscribe@freebsd.org"
>=20
>=20
---
KIRIYAMA Kazuhiko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910151035.x9FAZNlU043565>