|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Debian on OpenBSD vmd
Hi.
I attempt to run an install a Debian Buster into a VM on OpenBSD 6.5. This OpenBSD run on a server, without X, only SSH connection. Ago 8 months, I installed with success a Debian Stretch on other VM, and previously on OpenBSD 6.4, segun this tutorial: http://www.netzbasis.de/openbsd/vmd-debian/ I understand the process to connect on VM is by serial console... no X! Now, just i use the same tuto to install Buster; after sames modifications with new files, when i start the VM, i've this error: undefined video mode number: 314. - boot.img: http://ftp.debian.org/debian/dists/b...ia/boot.img.gz - initrd: http://ftp.debian.org/debian/dists/b.../xen/initrd.gz - virtio module: http://ftp.debian.org/debian/pool/ma...9-3_amd64.udeb The preparation of boot.img: Code:
gzip -d initrd.gz mkdir buster cd buster ar -x ../virtio-modules-4.9.0-11-amd64-di_4.9.189-3_amd64.udeb data.tar.xz xz -d data.tar.xz tar xf data.tar rm data.tar find . | cpio -o -A -H sv4cpio -O ../initrd cd .. gzip -9 initrd gzip -d boot.img.gz doas vnconfig vnd1 ~/vm/debian/boot.img doas mount /dev/vnd1i /mnt doas cp initrd.gz /mnt/INITRD.GZ doas vi /mnt/TXT.CFG - append vga=788 initrd=initrd.gz --- quiet ^M + append vga=off initrd=initrd.gz --- quiet console=ttyS0,115200n8 ^M doas umount /mnt doas vnconfig -u vnd1 I start the vm: Code:
vmctl start install -c And after few seconds, the result is: Last edited by CiotBSD; 2nd October 2019 at 10:40 AM. Reason: precisions |
|
||||
Hello and welcome!
Virtual video hardware is NOT made available to vmm(4) guests. Only serial consoles are supported. IdOp's assumption that the Linux kernel is producing the message is likely to be correct. Guests can support graphical applications, such as webservers or X clients. But they do not have access to any type of graphic "cards" in their virtual machines. |
|
|||
Yes, I understand the video process.
But, the customized TXT.CFG (into boot.img file) is to set vga=off and console=... After the error message, no input is possible! On OpenBSD 6.4, for Debian Stretch, this run correctly. |
|
||||
This is apparently a Debian issue, since Debian is looking for a video card that does not exist. Perhaps provisioning requirements have changed in this version?
Run your guest where video is supported, such as with emulators/qemu on OpenBSD, then provision this guest to ensure it uses a serial console and does not attempt to use a video card. |
|
|||
Quote:
I'm connecting by SSH session. The purpose is run a server Debian Buster on VM into an OpenBSD server (without X). Last edited by CiotBSD; 2nd October 2019 at 05:46 PM. |
|
||||
First off , Welcome to the forum,... It is normal for servers to not use Xorg or any X windows.
Quote:
You should be able to use QEMU, and install Debian on ir, but on your PC, with a QEMU VM, where video is supported (as jggimi said). I will say though, from experience, it is not worth the trouble, of course that might depend on your reasons for wanting to do this, I have a very low opinion of what Debian has become, and that would be another topic, in off topic, Just saying, The current stable Debian 10, did not work well at all on a VM, and it is not much better on bare metal, real hardware. Any way , I think if you can explain more about why you want to do this it might help. It does not make sense to me why someone would want to put Debian, or any OS on a VM , on a webserver (if it is a web server), ..? === edited === For help with installing Debian, on VM or bare metal, you would be better off asking on a forum that is dedicated to Debian, of course, if the host system is OpenBsd, installing the VM software, etc, would be a OpenBsd issue, my suggestion is start with a simple QEMU VM, and try installing FreeDos to a QEMU VM, then try another, install OpenBsd to it, the the 3rd one, try Debian, you will see what I mean, it just plain does not work well. Ahh, another one that runs really well on a VM, and is fun, My favorite: Minix3
__________________
My best friends are parrots Last edited by PapaParrot; 2nd October 2019 at 06:18 PM. |
|
||||
Quote:
|
|
|||
Quote:
---- I restart vmd. - delete file of vm - recreate new file qcow2 - download file boot.img.gz shared by netbazis... (this boot.img.gz - and restart install, with same problem! Code:
$ doas rcctl restart vmd $ rm -fP buster.qcow2 $ vmctl create buster.qcow2 -s 60G $ ftp http://www.netzbasis.de/openbsd/vmd-debian/boot.img.gz $ gunzip -d boot.img.gz $ vmctl start install -c Code:
ROOT="/home/myid/vm" switch "sw" { interface bridge0 } # VM to attempt an install img OS vm "install" { disable disk $ROOT/debian/boot.img disk $ROOT/debian/buster.qcow2 interface { switch "sw" } memory 1G owner myid } And qemu is not the solution! (only with vmd, please) |
|
||||
I'm using -current, and have downloaded and tested the prepared image from the "how to" site. It will start the install process without attempting to use a video card.
From what I can determine, your problem is not an OpenBSD problem. Instead, it is a problem with how your newer version of Debian is provisioned. |
|
|||
OK.
I reboot my laptop with HD OpenBSD 6.5 to attempt SSH connections on the server (too, on 6.5). And, it's run correctly! (But, the installer not found the ISO to continue the install... it's other problem, not result to this issue; i think) Surprising: With my HD Debian Sid, connecting by SSH on the same server, I've this issue. But with HD OpenBSD, it's OK! @jggimi: thank! |
|
|||
Quote:
On OpenBSD, ssh client is: Code:
$ ssh -V OpenSSH_8.0, LibreSSL 2.9.1 - https://packages.debian.org/sid/ssh - https://packages.debian.org/sid/openssh-client - https://packages.debian.org/sid/libssl1.1 or, perhaps, the DE? On OpenBSD is Xfce 4.12; On Debian Sid is 4.14! |
|
|||
Hi.
For OpenBSD: Code:
user myid hostname ip_server port *** addkeystoagent true addressfamily any batchmode no canonicalizefallbacklocal yes canonicalizehostname false challengeresponseauthentication no checkhostip yes compression yes controlmaster auto enablesshkeysign no clearallforwardings no exitonforwardfailure no fingerprinthash SHA256 forwardagent no forwardx11 no forwardx11trusted yes gatewayports no hashknownhosts yes hostbasedauthentication no identitiesonly no kbdinteractiveauthentication yes nohostauthenticationforlocalhost no passwordauthentication yes permitlocalcommand no proxyusefdpass no pubkeyauthentication yes requesttty auto streamlocalbindunlink no stricthostkeychecking ask tcpkeepalive yes tunnel false verifyhostkeydns true visualhostkey yes updatehostkeys false canonicalizemaxdots 1 connectionattempts 1 forwardx11timeout 1200 numberofpasswordprompts 3 serveralivecountmax 7 serveraliveinterval 30 ciphers chacha20-poly1305@openssh.com,aes256-ctr controlpath ~/.ssh/socket-myid@ip_server:*** hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,ssh-rsa-cert-v01@openssh.com,ssh-rsa,ssh-dss-cert-v01@openssh.com,ssh-dss hostbasedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa kexalgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 casignaturealgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa loglevel INFO macs hmac-sha2-512-etm@openssh.com,hmac-sha2-512 pubkeyacceptedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa xauthlocation /usr/X11R6/bin/xauth identityfile ~/.ssh/id_rsa identityfile ~/.ssh/id_dsa identityfile ~/.ssh/id_ecdsa identityfile ~/.ssh/id_ed25519 identityfile ~/.ssh/id_xmss canonicaldomains globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 userknownhostsfile ~/.ssh/known_hosts ~/.ssh/known_hosts2 connecttimeout none tunneldevice any:any controlpersist yes escapechar ~ ipqos af21 cs1 rekeylimit 0 0 streamlocalbindmask 0177 syslogfacility USER Code:
user myid hostname ip_server port *** addkeystoagent true addressfamily any batchmode no canonicalizefallbacklocal yes canonicalizehostname false challengeresponseauthentication no checkhostip yes compression yes controlmaster auto enablesshkeysign no clearallforwardings no exitonforwardfailure no fingerprinthash SHA256 forwardagent no forwardx11 no forwardx11trusted yes gatewayports no gssapiauthentication yes gssapikeyexchange no gssapidelegatecredentials no gssapitrustdns no gssapirenewalforcesrekey no gssapikexalgorithms gss-gex-sha1-,gss-group14-sha1- hashknownhosts yes hostbasedauthentication no identitiesonly no kbdinteractiveauthentication yes nohostauthenticationforlocalhost no passwordauthentication yes permitlocalcommand no proxyusefdpass no pubkeyauthentication yes requesttty auto streamlocalbindunlink no stricthostkeychecking ask tcpkeepalive yes tunnel false verifyhostkeydns true visualhostkey yes updatehostkeys false canonicalizemaxdots 1 connectionattempts 1 forwardx11timeout 1200 numberofpasswordprompts 3 serveralivecountmax 7 serveraliveinterval 30 ciphers chacha20-poly1305@openssh.com,aes256-ctr controlpath ~/.ssh/socket-1a12c584cabe32e54d63767c556a9bbe86455c90 hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,ssh-rsa-cert-v01@openssh.com,ssh-rsa,ssh-dss-cert-v01@openssh.com,ssh-dss hostbasedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa kexalgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 casignaturealgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa loglevel INFO macs hmac-sha2-512-etm@openssh.com,hmac-sha2-512 pubkeyacceptedkeytypes ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa xauthlocation /usr/bin/xauth identityfile ~/.ssh/id_rsa identityfile ~/.ssh/id_dsa identityfile ~/.ssh/id_ecdsa identityfile ~/.ssh/id_ed25519 identityfile ~/.ssh/id_xmss canonicaldomains globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 userknownhostsfile ~/.ssh/known_hosts ~/.ssh/known_hosts2 sendenv LANG sendenv LC_* connecttimeout none tunneldevice any:any controlpersist yes escapechar ~ ipqos lowdelay throughput rekeylimit 0 0 streamlocalbindmask 0177 syslogfacility USER Code:
$ diff Debian-ssh-G-server OpenBSD-ssh-G-server 21,26d20 < gssapiauthentication yes < gssapikeyexchange no < gssapidelegatecredentials no < gssapitrustdns no < gssapirenewalforcesrekey no < gssapikexalgorithms gss-gex-sha1-,gss-group14-sha1- 51c45 < controlpath ~/.ssh/socket-1a12c584cabe32e54d63767c556a9bbe86455c90 --- > controlpath ~/.ssh/socket-myid@ip_server:*** 59c53 < xauthlocation /usr/bin/xauth --- > xauthlocation /usr/X11R6/bin/xauth 68,69d61 < sendenv LANG < sendenv LC_* 74c66 < ipqos lowdelay throughput --- > ipqos af21 cs1 |
|
||||
Hmmm. I don't see anything obvious in these differences. OpenBSD does not use GSS-API for authentication, a ControlPath is only used with multiplexed sessions (ssh -O), XAuthLocation is only used with X11 Forwarding (ssh -X/-Y), I don't perceive anything significant in the locale differences sent to the servier, and and the IPQoS values are actually identical: lowdelay = af21, throughput = cs1.
|
|
||||
I perceive two related problems: A Debian-specific serial console / video card provisioning issue of some kind, and an ssh(1) issue that presents on a Debian workstation. I'm not sure I can help any further with either, and both appear to me to be Debian problems.
|
|
|||
We have identified the reason: a Debian-specific serial console!
Thanks for your help! |
Tags |
debian, openbsd 6.5, vmm |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dual boot Debian/OpenBSD - mount OpenBSD /home from Debian | shep | OpenBSD General | 5 | 11th April 2019 10:19 PM |
MultiBoot OpenBSD/Debian | Funkygoby | OpenBSD Installation and Upgrading | 23 | 5th March 2019 09:46 PM |
Microsoft has released a Debian Linux switch OS. Repeat, a Debian Linux switch OS | J65nko | News | 9 | 12th March 2016 11:58 PM |
Debian + FreeBSD | bsdperson | Other BSD and UNIX/UNIX-like | 20 | 22nd August 2011 06:41 PM |
Debian 5.0 released | ephemera | Other BSD and UNIX/UNIX-like | 36 | 26th November 2010 04:50 PM |