From owner-freebsd-virtualization@freebsd.org Tue Oct 15 10:35:35 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3A89115AD06 for ; Tue, 15 Oct 2019 10:35:35 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (flets-sg1026.kamome.or.jp [202.216.24.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp", Issuer "smtp" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46ssJj64wgz41tJ for ; Tue, 15 Oct 2019 10:35:33 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (kx.truefc.org [202.216.24.26]) by kx.truefc.org (8.15.2/8.15.2) with ESMTP id x9FAZNlU043565; Tue, 15 Oct 2019 19:35:23 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <201910151035.x9FAZNlU043565@kx.truefc.org> Date: Tue, 15 Oct 2019 19:35:23 +0900 From: KIRIYAMA Kazuhiko To: Simon Gusev Cc: freebsd-virtualization@freebsd.org, KIRIYAMA Kazuhiko Subject: Re: VM freezed at booting of FreeBSD-13.0-CURRENT-amd64-20191011-r353427-memstick.img In-Reply-To: <03057504.20191015110705@fly777.net> References: <201910150751.x9F7p803016663@kx.truefc.org> <03057504.20191015110705@fly777.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 MULE XEmacs/21.4 (patch 24) (Standard C) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46ssJj64wgz41tJ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of kiri@truefc.org has no SPF policy when checking 202.216.24.26) smtp.mailfrom=kiri@truefc.org X-Spamd-Result: default: False [-0.38 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.57)[-0.570,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.91)[-0.905,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[truefc.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4704, ipnet:202.216.0.0/19, country:JP]; IP_SCORE(-0.00)[country: JP(-0.00)]; ONCE_RECEIVED(0.10)[] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2019 10:35:35 -0000 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 =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| =A0Options: =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| =A05. [K]ernel: kernel (1 of 2) =A0 =A0 =A0 =A0 =A0 | =A0.- =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-. > > =A0| =A06. Configure Boot [O]ptions... =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 =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+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =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 metr= ic 0 mtu 1500 > > =A0 =A0 =A0 =A0 > > > options=3D4e523bb > > =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 ) > > =A0 =A0 =A0 =A0 status: active > > =A0 =A0 =A0 =A0 nd6 options=3D29 > > igb1: flags=3D8943 metr= ic 0 mtu 1500 > > =A0 =A0 =A0 =A0 > > > options=3D4a520b9 > > =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 ) > > =A0 =A0 =A0 =A0 status: active > > =A0 =A0 =A0 =A0 nd6 options=3D29 > > lo0: flags=3D8049 metric 0 mtu 16384 > > =A0 =A0 =A0 =A0 > > options=3D680003 > > =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 > > vm-public: flags=3D8843 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 > > =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 > > vm-local: flags=3D8843 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 > > =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 > > =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 > > tap0: flags=3D8943 metr= ic 0 mtu 1500 > > =A0 =A0 =A0 =A0 description: vmnet-tbedfc-0-local > > =A0 =A0 =A0 =A0 options=3D80000 > > =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 > > =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