search for: openconsol

Displaying 20 results from an estimated 52 matches for "openconsol".

Did you mean: openconsole
2013 Dec 26
2
how to use openConsole and openGraphics
hi,all 1.how to use openConsole and openGraphics? 2.what is the theory of that? thanks
2013 Dec 27
0
Re: how to use openConsole and openGraphics
On 12/26/2013 01:46 AM, yue wrote: > hi,all > 1.how to use openConsole and openGraphics? See tools/virsh-console.c for an example use of virDomainOpenConsole. virDomainOpenGraphics is probably similar. > > 2.what is the theory of that? Your question is very vague. What are you trying to accomplish, so that we can better determine how to answer it? -- Er...
2013 Dec 28
1
Re: how to use openConsole and openGraphics
...virt get guest's console( or graphic screen), via what kind of channel, then how libvirt show guest's screen. thanks, Eric Blake At 2013-12-28 04:30:30,"Eric Blake" <eblake@redhat.com> wrote: >On 12/26/2013 01:46 AM, yue wrote: >> hi,all >> 1.how to use openConsole and openGraphics? > >See tools/virsh-console.c for an example use of virDomainOpenConsole. >virDomainOpenGraphics is probably similar. > >> >> 2.what is the theory of that? > >Your question is very vague. What are you trying to accomplish, so that >we can better...
2019 Mar 04
1
How do I close a console connection?
I'm working on (re-) implementing serial console support in virtualbmc [1], and one of the issues I'm hitting right now is that after establishing a console connection via... self._stream = self._conn.newStream(libvirt.VIR_STREAM_NONBLOCK) self._domain.openConsole(None, self._stream, 0) ...I can't figure out how to close the console. Subsequent calls to openConsole fail because "a console connection is already open". I thought maybe I should close the stream, but that doesn't appear to be possible (there is a finish method, but it just t...
2008 Jun 24
2
Debugging
Hi! It's indeed better to open a new thread for this. So, here's my test session: $ qemu -fda extlinux.144 -s -S Then in another terminal: $ gdb extlinux.elf (gdb) set architecture i8086 (gdb) target remote localhost:1234 Remote debugging using localhost:1234 0x0000fff0 in ?? () at localboot.inc:68 68 jmp kaboom ; If we returned, oh boy... How does "jmp kaboom" get
2012 Sep 04
0
[PATCH] console: Close stdin, stdout, stderr on ldlinux.c32 unload
...se (from fp->oop->close) in the process of reloading ldlinux.c32, and while ansicon_counter is set to its initialised data value of 0 when reloading ldlinux.c32, the core is never reloaded, and so __file_info[] retains its pointers. What this amounts to is that when ldlinux.c32 tries to call openconsole() after being reloaded, the core tries to close the ansicon device (the core still has pointers to __ansicon_close) despite the ansicon code having no knowledge of ever being opened (because ansicon_counter was reinitialised). The most logical way to deal with this is to close stdin, stdout and s...
2019 Apr 05
2
Syslinux LUA -- output not visible in UEFI mode?
Hello all, We're having the following issue: when in UEFI mode, any output/errors from a lua script is invisible! This occurs even just running 'lua -v'. It runs and returns to a (visible) 'boot:' prompt, but there is simply no output visible from lua! (It does do a linefeed, but no visible text appears.) Has anyone encountered this? And/or know of a solution? For
2012 Jul 12
1
Starting a program inside VM through libvirt
Hi again. I was just wondering if there are any support for running programs inside a VM through libvirt. From what I can see in the API the only solution I found was connecting to the VM with openConsole and running the program I want. This however seems a bit tricky through Python and I was just wondering if there are any simpler solutions. Best regards. J?rgen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/att...
2009 Mar 24
1
menu.c32 works on serial console, but hdt.c32 displays on vga only.
...ole and I run "hdt", it displays the hdt screen on the VGA adaptor and not on the serial interface. In my pxeboot config file I have: serial 0 38400 console 0 prompt 1 I noticed that the main function in hdt.c has: console_ansi_raw(); /* Opening the Syslinux console */ // openconsole(&dev_stdcon_r, &dev_ansicon_w); Could the missing openconsole be stopping it from working on the serial console? Is there something I need to do to get hdt to run on the serial console? -- -- rouilj John Rouillard System Administrator Renesys Corporation 603-244-9084 (cell) 603-64...
2014 May 26
0
How to open virtual machine console using python libvirt.
Hi, How to open virtual machine console using python libvirt. I tried openConsole function,it returning integer 0 and not opening any console. code ====  import libvirt  conn = libvirt.open('qemu+ssh://root@192.168.1.6/system')  vm=conn.lookupByName("vm1-1")  stream=onn.newStream(libvirt.VIR_STREAM_NONBLOCK)  vm.openConsole(None,stream, 0) Regards,  Deepak S...
2014 Jun 10
2
Recent (6.02) PXELINUX on Soekris net4501
...is BIOS (solution: rebuild PXELINUX with DisplayCon initialized to 0, and BaudDivisor set to the appropriate speed while we are at it) * missing stdio initialization: apparently com32 routines make a liberal amount of printf() calls which go nowhere because it seems to me that openconsole is never called (worked around by patching com32/lib/sys/write.c to call write_serial directly if fd==1, crude hack but allows me to use printf() for debugging). But then I'm stuck with the box hanging in pxe_init_isr for no obvious reason. So, question: * is Soekris net4501 +...
2006 Sep 28
1
ramfs to tmpfs
...onst char *fmt, ...) { va_list ap; int err = errno; va_start(ap, fmt); fprintf(stderr, "%s: ", program); vfprintf(stderr, fmt, ap); if (p) fprintf(stderr, ": %s\n", strerror(err)); va_end(ap); exit(1); } /* change stdin, stdout and stderr to /dev/console */ static void openconsole(void) { int fd; if ((fd = open("/dev/console", O_RDWR)) >= 0) { dup2(fd, 0); dup2(fd, 1); dup2(fd, 2); if (fd > 2) close(fd); } } /* if init specified in cmdline, execute it, else trye from the usual * places. Die if no init found */ static void __attribute__ ((noretu...
2007 Apr 26
2
boot 32 or 64 kernel depending on cpu
...t;string.h> #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <console.h> #include <cpuid.h> #include <syslinux/boot.h> int main(int argc, char *argv[]) { const char *kernel, *initrd; char cmdline[1024]; int i; unsigned p; s_cpu cpu; openconsole(&dev_stdcon_r, &dev_stdcon_w); if (argc < 5) { fprintf(stderr, "missing options, usage:\n" " l23or64 <32b kernel> <32b initrd> \\" " <64b kernel> <64b initrd> \\" " [kernel arguments]\n");...
2012 Oct 19
3
[PATCH 0/3] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> The first two patches in this series are fixes for bugs reported by someone in #syslinux. The third makes dmitest.c32 actually wait for user input. If no one has any objections/concerns, I'll pull this into the official elflink branch. Matt Fleming (3): core: Print error message if we don't load ldlinux.c32 Clean up $(GPLLIB) leak
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and
2012 Nov 23
1
[PATCH] nictype.c32: PXELINUX module to display UNDI NIC bus type...
..."PnP", + "CardBus", +}; + +static int usage(const char *prog); + +static const char prog_name[] = "nictype.c32"; + +int main(int argc, char **argv) +{ + int status; + t_PXENV_UNDI_GET_NIC_TYPE nic_type_info; + char filename[] = "VVVVDDDD"; + + openconsole(&dev_stdcon_r, &dev_stdcon_w); + + status = pxe_get_nic_type(&nic_type_info); + if (status == -1 || status != PXENV_STATUS_SUCCESS) { + fprintf(stderr, "pxe_get_nic_type failure\n"); + goto err_nic_type_info; + } + + /* Unknown NIC type? */ + if (nic_type_info....
2010 Jul 01
2
[PATCH] ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabled
...) { + p = *pp; + while ((c = *p++)) + *q++ = c; + *q++ = ' '; + a = 1; + } + q -= a; + *q = '\0'; + + if (!str[0]) + syslinux_run_default(); + else + syslinux_run_command(str); +} + +int main(int argc, char *argv[]) +{ + char **args[2]; + int arg = 0; + + openconsole(&dev_null_r, &dev_stdcon_w); + + if (argc) + arg++; + args[0] = &argv[arg]; + args[1] = NULL; + while (arg < argc) { + if (!strcmp(argv[arg], "--")) { + argv[arg] = NULL; + args[1] = &argv[arg + 1]; + break; + } + arg++; + } + if (args[1]...
2008 Aug 22
1
syslinux-3.71-21-gbd09a6d - build breakage
...nce to `strtoul' ethersel.c:(.text+0xbd): undefined reference to `strtoul' ethersel.o: In function `main': ethersel.c:(.text+0xee): undefined reference to `dev_stdcon_w' ethersel.c:(.text+0xf3): undefined reference to `dev_null_r' ethersel.c:(.text+0xf8): undefined reference to `openconsole' ethersel.c:(.text+0xfd): undefined reference to `pci_scan' ethersel.c:(.text+0x118): undefined reference to `__syslinux_config_file' ethersel.c:(.text+0x12d): undefined reference to `fopen' ethersel.c:(.text+0x196): undefined reference to `malloc' ethersel.c:(.text+0x238): und...
2004 Nov 17
1
SYSLINUX 2.12-pre1 released: initial libcom32 release
Hi all, I have released SYSLINUX 2.12-pre1. This version has an initial version of libcom32, a small C library based on klibc for writing com32 programs in C. It is far from perfect yet, but it should be a lot easier to use than hand-coding everything. As usual, find this stuff in: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/Testing/ -hpa
2010 Jun 26
0
[MODULE] pwd
...+#ifndef PATH_MAX +# ifdef NAME_MAX +# define PATH_MAX NAME_MAX +# elif FILENAME_MAX +# define PATH_MAX FILENAME_MAX +# else +# define PATH_MAX 256 +# endif /* NAME_MAX */ +#endif /* PATH_MAX */ + +int main(void) +{ + int rv = 0; + char pwd[PATH_MAX], *pwdptr; + + openconsole(&dev_rawcon_r, &dev_stdcon_w); + pwdptr = getcwd(pwd, PATH_MAX); + if (pwdptr) { + if (pwd[0] != 0) + puts(pwd); + else + puts("."); + } else { + rv = errno; + puts("ERROR: getcwd() returned NULL"); + } + return...