DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd February 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default [VM,6.8] Can not install OpenBSD into vm

Hi,

Today, I attempt to create a VM OpenBSD on OpenBSD Host.

My computer, normally, can virtualize:
Code:
$ dmesg | egrep '(VMX/EPT|SVM/RVI)'
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
My vm.conf used:
Code:
$ cat /etc/vm.conf                                                                                                                                                                           

switch "sw" {
	interface bridge0
}

vm "web" {
	disk /home/zou/VM/web.qcow2 format qcow2
	interface { switch "sw" }
	memory 1024M
	owner zou	
}
the iface bridge0 is up:
Code:
$ ifconfig bridge0
bridge0: flags=41<UP,RUNNING>
	description: switch1-sw
	index 4 llprio 3
	groups: bridge
	priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp
	designated: id 00:00:00:00:00:00 priority 0
	em0 flags=3<LEARNING,DISCOVER>
		port 1 ifpriority 0 ifcost 0
	Addresses (max cache: 100, timeout: 240):
		28:d1:27:d6:f9:31 em0 1 flags=0<>
I created, without problem, the file qcow2, but when I attempt to start to install OpenBSD, it fails!

I tried with the install68.i{mg,so} or directly with bsd.rd, as:
1/
Code:
 # vmctl start -c -m 1G -L -i 1 -r install68.img -d web.qcow2 web
2/
Code:
# vmctl start -m 1G -L -i 1 -r install68.iso -d web.qcow2 web
3/
Code:
doas vmctl start -c -m 1G -L -i 1 -b /bsd.rd -d /home/zou/VM/web.qcow2 web
And yes, I checked with signify both iso and img file. There are OK!

Code:
$ sha256 -C SHA256 install68.i*                                                                                                                                                              
(SHA256) install68.img: OK
(SHA256) install68.iso: OK
$ signify -Cp /etc/signify/openbsd-68-base.pub -x SHA256.sig install68.i*                                                                                                                    
Signature Verified
install68.img: OK
install68.iso: OK
All failed just after the launch.

1/ first method, with iso
Code:
Connected to /dev/ttyp2 (speed 115200)
Boot failed: not a bootable disk
Boot failed: Could not read from CDROM (code 0005)
Boot failed: could not read the boot disk
No bootable device.  Retrying in 60 seconds.

2/ second with img, see:
- https://bin.disroot.org/?c87d8115c47...YMX1BNfZfXquSY

3/ third, with bsd.rd, see:
- https://bin.disroot.org/?3d62113d2fa...eTC8adWq6uwWGE

---

I noticied on log messages, thoses errors:
- https://bin.disroot.org/?1723c27413d...49DHfAuVcTrKhX

And, on dmesg:
Code:
vmx_fault_page: uvm_fault returns 14, GPA=0xffffca78, rip=0xfbd49
---

Result: I cant install VM!

One suggestion? idea?
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733

Last edited by CiotBSD; 2nd February 2021 at 04:31 PM.
Reply With Quote
  #2   (View Single Post)  
Old 2nd February 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 476
Default

How did you create /home/zou/VM/web.qcow2?

This works for me:
Code:
vmctl create -s 10G disk.qcow2
doas rcctl -f start vmd
doas vmctl start -m 1G -L -i 1 -r install68.iso -d disk.qcow2 -c test
I didn't create vm.conf or a bridged interface but note that your example configuration file specifies a bridged interface but the vmctl command creates a local network interface for the VM (see the man page for details on the "-L" option).
__________________
Destruam et ædificabo
Reply With Quote
  #3   (View Single Post)  
Old 2nd February 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

I created exactly as wroted into the FAQ virtualisation.

Telling me, "it works for me": It doesn't help!

Solene@, team OpenBSD member, logged on to my station, checked several things, tested the creation. I do have a problem, when starting the VM that kills immediately. We don't understand the why, or the reason!
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733

Last edited by CiotBSD; 2nd February 2021 at 08:34 PM.
Reply With Quote
  #4   (View Single Post)  
Old 2nd February 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 476
Default

Quote:
Originally Posted by CiotBSD View Post
I created exactly as wroted into the FAQ virtualisation.
So you ran the same vmctl create command as I posted above then?

Quote:
Originally Posted by CiotBSD View Post
Telling me, "it works for me": It doesn't help at all.
I was just attempting to demonstrate a method that works. Does my posted method work for you? Be sure to remove your bridged interface and vm.conf before trying it.

If my method works for you then it is likely that your bridged interface configuration and/or vm.conf is the cause of your error.

You could also try using the vmctl start command without the -L option but with your bridged interface and vm.conf intact. That option appears to contradict vm.conf and so may be causing the problem.

I should have mentioned that I'm using -current (sorry). You should probably also state explicitly whether you're using -stable or -release.
__________________
Destruam et ædificabo
Reply With Quote
  #5   (View Single Post)  
Old 2nd February 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

OK, I understand your opinion; but:

Code:
# rm -fP /etc/vm.conf
# rm -fP /etc/hostname.bridge0 
# rcctl disable vmd
# rcctl stop vmd    
vmd(ok)
# reboot
After login by SSH:

Code:
$ vmctl create -s 10G disk.qcow2
vmctl: qcow2 imagefile created
$ doas rcctl -f start vmd
vmd(ok)

$ doas vmctl start -m 1G -L -i 1 -r install68.iso -d disk.qcow2 -c test
Connected to /dev/ttyp1 (speed 115200)
Boot failed: not a bootable disk

CD-ROM: E0
Loading /6.8/AMD64/CDBOOT
probing: pc0 com0 mem[638K 1022M a20=on] 
disk: hd0+* cd0
>> OpenBSD/amd64 CDBOOT 3.52
boot> 
cannot open cd0a:/etc/random.seed: No such file or directory
booting cd0a:/6.8/amd64/bsd.rd: 3822285+1573888+3882232+0+761856 [324353+128+468792+313530]=0xaa3780
entry point at 0xffffffff81001000
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.8 (RAMDISK_CD) #94: Sun Oct  4 18:21:11 MDT 2020
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 1056948224 (1007MB)
avail mem = 1020952576 (973MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf3f40 (10 entries)
bios0: vendor SeaBIOS version "1.11.0p3-OpenBSD-vmm" date 01/01/2011
bios0: OpenBSD VMM
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz, 3301.65 MHz, 06-2a-07
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,HV,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,PQM,SMAP,AVX512IFMA,PCOMMIT,CLFLUSHOPT,SENSOR,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
Boot failed: not a bootable disk

CD-ROM: E0
Loading /6.8/AMD64/CDBOOT
probing: pc0 com0 mem[638K 1022M a20=on] 
disk: hd0+* cd0
>> OpenBSD/amd64 CDBOOT 3.52
boot> 
cannot open cd0a:/etc/random.seed: No such file or directory
booting cd0a:/6.8/amd64/bsd.rd: 3822285+1573888+3882232+0+761856 [324353+128+468792+313530]=0xaa3780
entry point at 0xffffffff81001000
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.8 (RAMDISK_CD) #94: Sun Oct  4 18:21:11 MDT 2020
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 1056948224 (1007MB)
avail mem = 1020952576 (973MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf3f40 (10 entries)
bios0: vendor SeaBIOS version "1.11.0p3-OpenBSD-vmm" date 01/01/2011
bios0: OpenBSD VMM
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz, 3301.92 MHz, 06-2a-07
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,HV,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,PQM,SMAP,AVX512IFMA,PCOMMIT,CLFLUSHOPT,SENSOR,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
Boot failed: not a bootable disk

CD-ROM: E0
Loading /6.8/AMD64/CDBOOT
probing: pc0 com0 mem[638K 1022M a20=on] 
disk: hd0+* cd0
>> OpenBSD/amd64 CDBOOT 3.52
boot> 
cannot open cd0a:/etc/random.seed: No such file or directory
booting cd0a:/6.8/amd64/bsd.rd: 3822285+1573888+3882232+0+761856 [324353+128+468792+313530]=0xaa3780
entry point at 0xffffffff81001000
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.8 (RAMDISK_CD) #94: Sun Oct  4 18:21:11 MDT 2020
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 1056948224 (1007MB)
avail mem = 1020952576 (973MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf3f40 (10 entries)
bios0: vendor SeaBIOS version "1.11.0p3-OpenBSD-vmm" date 01/01/2011
bios0: OpenBSD VMM
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz, 3301.67 MHz, 06-2a-07
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,HV,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,PQM,SMAP,AVX512IFMA,PCOMMIT,CLFLUSHOPT,SENSOR,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
Boot failed: not a bootable disk

CD-ROM: E0
Loading /6.8/AMD64/CDBOOT
probing: pc0 com0 mem[638K 1022M a20=on] 
disk: hd0+* cd0
>> OpenBSD/amd64 CDBOOT 3.52
boot>
~.
the problem is elsewhere!
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
  #6   (View Single Post)  
Old 2nd February 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 476
Default

Apart from the fact that I'm testing this in -current the only other difference is this:
Code:
~$ dmesg | egrep '(VMX/EPT|SVM/RVI)'
vmm0 at mainbus0: SVM/RVI
~$
^ I'm using an AMD machine so the L1TF mitigation isn't needed.

Unfortunately I don't know how you would go about disabling that mitigation in OpenBSD, perhaps Solene@ can help you with that.
__________________
Destruam et ædificabo
Reply With Quote
  #7   (View Single Post)  
Old 3rd February 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,025
Default

I am going to guess that the problem is the "slow L1TF mitigation" needed by your hardware. My Intel processor (i5-2520M) does not produce that message.
Code:
$ dmesg | grep vmm0
vmm0 at mainbus0: VMX/EPT
More info on L1TF: https://en.wikipedia.org/wiki/Foreshadow
Reply With Quote
  #8   (View Single Post)  
Old 3rd February 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

@jggimi: I remember about that! It seems possible…
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
Reply

Tags
6.8, fault, openbsd, vm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Openbsd 5.7 Can't install php-5.6.5 Valus OpenBSD Packages and Ports 4 23rd February 2015 10:36 AM
How to install kde in openbsd v5.6? Crypto333 OpenBSD Packages and Ports 6 30th December 2014 04:53 PM
Install OpenBSD 3.6 zabidin2 OpenBSD Installation and Upgrading 4 22nd September 2010 10:09 AM
How - To install GNOME vile I install OpenBSD ? looop OpenBSD Installation and Upgrading 6 24th April 2010 08:58 PM
install ssh openbsd darken OpenBSD Packages and Ports 22 26th September 2008 02:58 AM


All times are GMT. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick