04-05-2011
Qemu + gdb
Hi, I got:
host machine: RedHat (RHEL6)
virtual machine: RedHat (RHEL6)
I run (on host machine):
qemu-system-x86_64 ...... -S -s
after that i run (on host machine):
gdb
target remote localhost:1234
set architecture i386:x86-64
and then i can use (on host machine) 'ctrl + c' to stop virtual machine and 'cont' to continue virtual machine.
Now, I created linux kernel module (in C) with:
asm("aa: jmp aa");
I insert that module to virtual machine. After that whole system stops (on asm("aa: jmp aa")). I would like to step debug after my module hangs.
Do you know the way how to do that?
Maybe how to modify next instructions?
Last edited by Chrisdot; 04-12-2011 at 08:14 AM..
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi i got a virtual linux machine running on qemu
my problem is connecting it to the internet
im a bit confused weather i have to make a virtual network card in qemu
and than tun tap it?
can anyone thats done it before help me out? (1 Reply)
Discussion started by: russian460
1 Replies
2. Filesystems, Disks and Memory
hello all,
I have been trying to boot an image (.IMG) using qemu, for quite some time now and i can't seem to get it to work. I've been able to boot from the Windows XP CD, the Debian iso image, etc, so I know qemu is configured properly and is working. But when it come to booting an image that I... (34 Replies)
Discussion started by: neur0n
34 Replies
3. AIX
Hi friends,
I am a UNIX lover. I have tried several unix flavors including linux, solaris(x86) and FreeBSD, all these are the unices which can be installed on x86 hardware. Now to use the IBM AIX, I searched and googled alot, finally I came across QEME, which emulates the PowerPC platorm to turn... (9 Replies)
Discussion started by: gabam
9 Replies
4. Programming
I created and Compiled a C program to run in QEMU for ARM.
When I run the program using the command
#qemu-arm -L /home/arm-2010.09/arm-none-linux-gnueabi/libc ./test
it gives me the following error:
If 'qemu-arm' is not a typo you can use command-not-found to lookup the package that contains... (0 Replies)
Discussion started by: rupeshkp728
0 Replies
5. Red Hat
I used the redhat RHEL6 boot with initrd but it failed, can sb help me
# /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m 1024 -net nic,model=virtio -net tap,script=/etc/qemu-ifup -initrd /boot/initramfs-2.6.32-279.el6.x86_64.img -kernel /boot/vmlinuz-2.6.32-279.el6.x86_64 -append "root=/dev/ram... (4 Replies)
Discussion started by: yanglei_fage
4 Replies
6. IP Networking
hello networking folks,
i have 3 virtual machines that need to talk to each other
How can i create a bridge to loopback ?
-net tap,vlan=0,ifname=tap1
where tap1 is connected to lo:1 , tap2 is connected to lo:2 etc
thx (0 Replies)
Discussion started by: TwiceDone
0 Replies
7. Virtualization and Cloud Computing
Heyas
So, i like doing custom a LiveImage of my OS.
Using Redhats kickstart/livecd-creator method.
Anyway, so i would like to test the liveimages...
AND also, i WOULD like to install FreeBSD, Solaris, or whatever, onto a Virtual Machine.
I used to use Oracles Virtualbox, but eversince... (3 Replies)
Discussion started by: sea
3 Replies
8. BSD
Hi
Problem changed.
I've got a message showing on the screen which says
Guest has not initialized the display (yet)
Any how I can fix this?
Thanks Jack (4 Replies)
Discussion started by: lucky7456969
4 Replies
LEARN ABOUT DEBIAN
pvm_config
CONFIG(3PVM) PVM Version 3.4 CONFIG(3PVM)
NAME
pvm_config - Returns information about the present virtual machine configuration.
SYNOPSIS
C int info = pvm_config( int *nhost, int *narch, struct pvmhostinfo **hostp )
struct pvmhostinfo {
int hi_tid;
char *hi_name;
char *hi_arch;
int hi_speed;
};
Fortran call pvmfconfig( nhost, narch, dtid, name, arch, speed, info )
PARAMETERS
nhost Integer returning the number of hosts (pvmds) in the virtual machine.
narch Integer returning the number of different data formats being used.
hostp Returns pointer to an array of structures which contain information about each host including its pvmd task ID, name, architecture,
and relative speed.
dtid Integer returning pvmd task ID for host
name Character string returning name of host
arch Character string returning architecture name of host
speed Integer returning relative speed of host. Default value is 1000.
info Integer status code returned by the routine. Values less than zero indicate an error.
DESCRIPTION
The routine pvm_config returns information about the present virtual machine. The information returned is similar to that available from
the console command conf.
The C function returns information about the entire virtual machine in one call. The Fortran function returns information about one host
per call and cycles through all the hosts. Thus, if pvmfconfig is called nhost times, the entire virtual machine will be represented.
Note that in C the hostp array is allocated and owned by libpvm. It is automatically freed or reused on the next call to pvm_config.
Note that in Fortran the reported value of nhost and the host configuration do not change until the function resets at the end of a com-
plete cycle. The user can reset pvmfconfig() at any time by calling it with nhost = -1.
If pvm_config is successful, info will be 0. If some error occurs then info will be < 0.
EXAMPLES
C:
struct pvmhostinfo *hostp;
int i, nhost, narch;
info = pvm_config( &nhost, &narch, &hostp );
for (i = 0; i < nhost; i++)
printf("%s
", hostp[i].hi_name);
Fortran:
Do i=1, NHOST
CALL PVMFCONFIG( NHOST,NARCH,DTID(i),HOST(i),ARCH(i),SPEED(i),INFO )
Enddo
ERRORS
The following error condition can be returned by pvm_config
PvmSysErr
pvmd not responding.
SEE ALSO
pvm_tasks(3PVM)
31 August, 1994 CONFIG(3PVM)