Re: qemu -nographic
On Fri, Dec 07, 2012 at 02:58:59PM -0800, Constantine A. Murenin wrote: On 11 January 2011 11:18, a.velichin...@gmail.com wrote: The trick with /etc/boot.conf does work; this should transform the cd48.iso install cd into a 'serial' one: $ echo 'set tty com0' /tmp/boot.conf $ growisofs -M cd48.iso -l -graft-points /etc/boot.conf=/tmp/boot.conf Then: $ qemu -nographic -cdrom cd48.iso OpenBSD/i386 CDBOOT 3.15 boot booting cd0a:/4.8/i386/bsd.rd: 5900404 I've tried this on a Linux, and it worked for getting OpenBSD installer to boot through a serial console. However, I was using install52.iso, which includes the filesets, and I was not able to install any filesets from a CD that was altered by growisofs on Linux as above. Looking at /mnt2 during the install, I've noticed that all filenames were in CAPS, and /mnt2/TRANS.TBL was missing (however, all appropriate /mnt2/*/TRANS.TBL and /mnt2/*/*/TRANS.TBL were still present and correct). You should the -R or -J option with growisofs for mixed/lower case filenames. As to the TRANS.TBL files, they're just for kicks; nobody's using them, ever. I worked around by adding the original CD as a regular drive, and selecting disk and wd0 for installing the filesets. The ISO filesystem was mounted from wd0 automatically and with no problems or hoops. apt-get install dvd+rw-tools echo 'set tty com0' boot.conf cp -p install52.iso install52.iso.origFromFTP growisofs -M install52.iso -l -graft-points /etc/boot.conf=boot.conf make that: growisofs -M install52.iso -l -R -graft-points /etc/boot.conf=boot.conf kvm -m 6144 -smp 4 -drive file=/dev/sda,if=scsi \ -drive file=/dev/sdb,if=scsi -drive file=/dev/sdc,if=scsi \ -drive file=install52.iso.origFromFTP -cdrom install52.iso -boot d -nographic
Re: qemu -nographic
On 11 January 2011 11:18, a.velichin...@gmail.com wrote: The trick with /etc/boot.conf does work; this should transform the cd48.iso install cd into a 'serial' one: $ echo 'set tty com0' /tmp/boot.conf $ growisofs -M cd48.iso -l -graft-points /etc/boot.conf=/tmp/boot.conf Then: $ qemu -nographic -cdrom cd48.iso OpenBSD/i386 CDBOOT 3.15 boot booting cd0a:/4.8/i386/bsd.rd: 5900404 I've tried this on a Linux, and it worked for getting OpenBSD installer to boot through a serial console. However, I was using install52.iso, which includes the filesets, and I was not able to install any filesets from a CD that was altered by growisofs on Linux as above. Looking at /mnt2 during the install, I've noticed that all filenames were in CAPS, and /mnt2/TRANS.TBL was missing (however, all appropriate /mnt2/*/TRANS.TBL and /mnt2/*/*/TRANS.TBL were still present and correct). I worked around by adding the original CD as a regular drive, and selecting disk and wd0 for installing the filesets. The ISO filesystem was mounted from wd0 automatically and with no problems or hoops. apt-get install dvd+rw-tools echo 'set tty com0' boot.conf cp -p install52.iso install52.iso.origFromFTP growisofs -M install52.iso -l -graft-points /etc/boot.conf=boot.conf kvm -m 6144 -smp 4 -drive file=/dev/sda,if=scsi \ -drive file=/dev/sdb,if=scsi -drive file=/dev/sdc,if=scsi \ -drive file=install52.iso.origFromFTP -cdrom install52.iso -boot d -nographic `dpkg --list` : ii dvd+rw-tools 7.1-6DVD+-RW/R tools ii qemu-kvm 0.12.5+dfsg-5+squeeze9 Full virtualization on x86 hardware Also, the version of qemu as above has another useful option that allows you to bypass VNC and X -- -curses. Apparently, you must either choose -nographic and enable serial on the media, or choose -curses and have VGA emulation with no usable log of the session. It'd be nice to have -nographic work with VGA emulation, too, and not be a serial-only option. C.
Re: qemu -nographic
On Sat, Jan 08, 2011 at 11:43:17PM +0100, Pieter Verberne wrote: Actually, obsd.img is empty. I'm trying to start a fresh installation. And, I should be able to see BIOS messages like Starting SeaBIOS and Booting from anyway, right? Wrong. The BIOS doesn't print those messages to the serial console. The trick with /etc/boot.conf does work; this should transform the cd48.iso install cd into a 'serial' one: $ echo 'set tty com0' /tmp/boot.conf $ growisofs -M cd48.iso -l -graft-points /etc/boot.conf=/tmp/boot.conf Then: $ qemu -nographic -cdrom cd48.iso OpenBSD/i386 CDBOOT 3.15 boot booting cd0a:/4.8/i386/bsd.rd: 5900404
Re: qemu -nographic
On Tue, 11 Jan 2011 21:18:49 +0200, a.velichin...@gmail.com wrote: On Sat, Jan 08, 2011 at 11:43:17PM +0100, Pieter Verberne wrote: Actually, obsd.img is empty. I'm trying to start a fresh installation. And, I should be able to see BIOS messages like Starting SeaBIOS and Booting from anyway, right? Wrong. The BIOS doesn't print those messages to the serial console. The trick with /etc/boot.conf does work; this should transform the cd48.iso install cd into a 'serial' one: $ echo 'set tty com0' /tmp/boot.conf $ growisofs -M cd48.iso -l -graft-points /etc/boot.conf=/tmp/boot.conf Then: $ qemu -nographic -cdrom cd48.iso OpenBSD/i386 CDBOOT 3.15 boot booting cd0a:/4.8/i386/bsd.rd: 5900404 lilium$ qemu -cdrom cd48.iso -boot d -nographic -serial stdio obsd.img Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory OpenBSD/i386 CDBOOT 3.15 Thanks! :-D
Re: qemu -nographic
On Sat, Jan 08, 2011 at 09:50:36PM +0100, Pieter Verberne wrote: On Sat, 8 Jan 2011 21:03:56 +0100, Henning Brauer wrote: * Pieter Verberne pieterverbe...@xs4all.nl [2011-01-08 17:23]: I'm not sure if it is a good idea (or even possible) but I'm trying to run OpenBSD as guest in qmemu on a Soerkis and OpenBSD as host. Anyway, where I want it for :-) I want to run a public accessible Samba server. (for... fun) I don't really trust it running on Soekris together with all the other services and wanted to 'jail' it in some way. I read Samba is very hard (if possible) to chroot, so I thought about running it in a qemu virtual machine wich AFAIK, acts like a jail. (No, I don't have another computer available) Trusting qemu to separate guests is rather... optimistic. I'd give chrooting SAMBA another go. It's not entirely impossible, I'd wager. Joachim -- TFMotD: menu (3) - curses extension for programming menus http://www.joachimschipper.nl/
qemu -nographic
Hello, I'm not sure if it is a good idea (or even possible) but I'm trying to run OpenBSD as guest in qmemu on a Soerkis and OpenBSD as host. A Soekris has no graphic capabilities so I need to run qemu in nographic mode. I'm not able to do that until now. I ssh to the Soeris and tried several options: lilium$ qemu -nographic -curses obsd.img qemu: -curses: invalid option lilium$ qemu -nographic obsd.img [no output, but qemu is running] lilium$ tty /dev/ttyp0 lilium$ qemu -nographic -serial /dev/ttyp0 obsd.img QEMU 0.13.0 monitor - type 'help' for more information (qemu) [So I do see monitoring mode, but no console output.] lilium$ qemu -nographic -serial stdio obsd.img chardev: opening backend stdio failed qemu: could not open serial device 'stdio': No such file or directory lilium$ qemu -nographic -serial telnet:localhost:1200,server obsd.img QEMU waiting for connection on: telnet:127.0.0.1:1200,server 'lilium$ telnet localhost 1200` does connect, but gives nothing. Am I doing something wrong, or is it just not possible? Pieter qemu-0.13.0 OpenBSD 4.8-current (GENERIC) #477: Fri Nov 12 01:27:20 MST 2010 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 586-class) 500 MHz cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX real mem = 536440832 (511MB) avail mem = 517615616 (493MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 20/70/03, BIOS32 rev. 0 @ 0xfac40 pcibios0 at bios0: rev 2.0 @ 0xf/0x1 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc8000/0xa800 cpu0 at mainbus0: (uniprocessor) amdmsr0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (bios) io address conflict 0x6100/0x100 io address conflict 0x6200/0x200 pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x33 glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES vr0 at pci0 dev 6 function 0 VIA VT6105M RhineIII rev 0x96: irq 11, address 00:00:24:ca:da:68 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 7 function 0 VIA VT6105M RhineIII rev 0x96: irq 5, address 00:00:24:ca:da:69 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr2 at pci0 dev 8 function 0 VIA VT6105M RhineIII rev 0x96: irq 9, address 00:00:24:ca:da:6a ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr3 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 12, address 00:00:24:ca:da:6b ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 ral0 at pci0 dev 17 function 0 Ralink RT2561S rev 0x00: irq 15, address 00:12:0e:61:48:98 ral0: MAC/BBP RT2561C, RF RT5225 glxpcib0 at pci0 dev 20 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio gpio0 at glxpcib0: 32 pins pciide0 at pci0 dev 20 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 1: HITACHI HTS541680J9SA00 wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) ohci0 at pci0 dev 21 function 0 AMD CS5536 USB rev 0x02: irq 7, version 1.0, legacy support ehci0 at pci0 dev 21 function 1 AMD CS5536 USB rev 0x02: irq 7 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 AMD EHCI root hub rev 2.00/1.00 addr 1 isa0 at glxpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS gpio1 at nsclpcsio0: 29 pins npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 AMD OHCI root hub rev 1.00/1.00 addr 1 biomask 65c5 netmask ffe5 ttymask mtrr: K6-family MTRR support (2 registers) vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root root on wd0a swap on wd0b dump on wd0b
Re: qemu -nographic
* Pieter Verberne pieterverbe...@xs4all.nl [2011-01-08 17:23]: Hello, I'm not sure if it is a good idea (or even possible) but I'm trying to run OpenBSD as guest in qmemu on a Soerkis and OpenBSD as host. A Soekris has no graphic capabilities so I need to run qemu in nographic mode. I'm not able to do that until now. I ssh to the Soeris and tried several options: you need qemu-old. they broke the newer one. in turn, the older one is broken in different ways (and much much faster, btw). don't we all love quality software? -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting
Re: qemu -nographic
On Sat, 8 Jan 2011 21:03:56 +0100, Henning Brauer wrote: * Pieter Verberne pieterverbe...@xs4all.nl [2011-01-08 17:23]: Hello, I'm not sure if it is a good idea (or even possible) but I'm trying to run OpenBSD as guest in qmemu on a Soerkis and OpenBSD as host. A Soekris has no graphic capabilities so I need to run qemu in nographic mode. I'm not able to do that until now. I ssh to the Soeris and tried several options: you need qemu-old. they broke the newer one. in turn, the older one is broken in different ways (and much much faster, btw). don't we all love quality software? No luck :-/ Installed qemu-0.9.1p16 Apparently there is no -curses option. lilium$ qemu -no-kqemu -nographic -serial stdio obsd.img [this time no could not open serial device 'stdio' error, but no further output. Is there any way to catch the output?] lilium$ qemu -no-kqemu -nographic -serial telnet:localhost:1200,server obsd.img QEMU waiting for connection on: localhost:1200,server [Sweet, it waits for me] lilium$ telnet localhost 1200 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. [no input possible and no output in the telnet session. The shell where I run qemu gives me the qemu monitor the moment I connect] Anyway, where I want it for :-) I want to run a public accessible Samba server. (for... fun) I don't really trust it running on Soekris together with all the other services and wanted to 'jail' it in some way. I read Samba is very hard (if possible) to chroot, so I thought about running it in a qemu virtual machine wich AFAIK, acts like a jail. (No, I don't have another computer available) I would also love to use Virtualbox on OpenBSD, but I can imagine that porting Vbox takes a lot of work. Cheers,
Re: qemu -nographic
* Pieter Verberne pieterverbe...@xs4all.nl [2011-01-08 21:53]: On Sat, 8 Jan 2011 21:03:56 +0100, Henning Brauer wrote: * Pieter Verberne pieterverbe...@xs4all.nl [2011-01-08 17:23]: Hello, I'm not sure if it is a good idea (or even possible) but I'm trying to run OpenBSD as guest in qmemu on a Soerkis and OpenBSD as host. A Soekris has no graphic capabilities so I need to run qemu in nographic mode. I'm not able to do that until now. I ssh to the Soeris and tried several options: you need qemu-old. they broke the newer one. in turn, the older one is broken in different ways (and much much faster, btw). don't we all love quality software? No luck :-/ Installed qemu-0.9.1p16 Apparently there is no -curses option. dunno about curses lilium$ qemu -no-kqemu -nographic -serial stdio obsd.img [this time no could not open serial device 'stdio' error, but no further output. Is there any way to catch the output?] hmm. this works for me. br...@shmi $ alias qemu1 qemu1='sudo qemu -m 32 -net nic,macaddr=udontstealmine -net tap -serial stdio -nographic /path/to/qemu/qemu.1' -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting
Re: qemu -nographic
On Sat, Jan 08, 2011 at 09:50:36PM +0100, Pieter Verberne wrote: lilium$ qemu -no-kqemu -nographic -serial stdio obsd.img [this time no could not open serial device 'stdio' error, but no further output. Is there any way to catch the output?] lilium$ qemu -no-kqemu -nographic -serial telnet:localhost:1200,server obsd.img QEMU waiting for connection on: localhost:1200,server [Sweet, it waits for me] lilium$ telnet localhost 1200 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. You have serial console setup? Do you have console enabled in /etc/ttys? What's wrong with VNC? I would also love to use Virtualbox on OpenBSD, but I can imagine that porting Vbox takes a lot of work. You dream a lot about this crap. jirib