LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 06-17-2014, 04:54 AM   #1
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 339

Rep: Reputation: 33
Virtyalbox or Qemu - and how?


I need a VM to debug an embedded program, but I don't seem to get anything working properly.

I have two machines: a laptop - ThinkPad T42 (Pentium M, no HW support for virtualization) and a desktop - HP Pavilion a6622sc (AMD Phenom 8550, AMD-V).

The laptop runs Linux Mint 13 (32-bit) MATE and the desktop runs Ubuntu 14.04 LTS (32-bit).

I've tried both Virtualbox and Qemu on both machines, but no combination seems to work properly.

Laptop/qemu
1) command 'qemu' doesn't exist.
2) on laptop Aqemu only gives IBM PC 64-bit option as computer type.
and keep complaining: "SPICE port number incorrect!" even if SPICE is not enabled. It doesn't start anything (the "play"-button).
3) In qemu-launcher the path to qemu is set to /usr/bin/qemu-system-i386, but it still doesn't launch anything (well, a window opens and closes so fast I can't see what it was).
4) On command line it starts, and even debugging works, but I don't seem to get any window showing the output (printk).

laptop/Virtualbox
Everything starts fine and a window opens and the ouput is displayed there, but no luck with any kind of debugging.

desktop/Virtualbox: same as on laptop.

I'll check the desktop/qemu-stuff in more detail.

Darn those interruptions: I forgot the questions:

- Which one I'd be better off with?

- Any bent-of-iron-wire instructions how to install Qemu right (and what to install) and/or how to install the Virtualbox right (and what to install) for either of the machines?

- Any step-by-step instructions how to debug using Virtualbox?

Last edited by turboscrew; 06-17-2014 at 11:39 AM.
 
Old 06-17-2014, 03:04 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,340

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Might make more sense if you made two questions on this maybe.


Qemu to start.

Qemu doesn't need virtual hardware support. It is pretty small and if installed and you have permissions correctly set, it should start or do something by command line. Find the file qemu and see what the permissions are.

Using the software manager or package management is usually the best way to install software. There are some front ends to qemu that sometimes make life easier.

Last edited by jefro; 06-17-2014 at 09:44 PM.
 
Old 06-17-2014, 03:28 PM   #3
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,328

Rep: Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772
Quote:
Originally Posted by turboscrew View Post
Everything starts fine and a window opens and the ouput is displayed there, but no luck with any kind of debugging.
What do you mean by this? What starts just fine? How are you trying to debug what?
 
Old 06-18-2014, 04:44 AM   #4
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 339

Original Poster
Rep: Reputation: 33
Well,
Quote:
1) command 'qemu' doesn't exist.
about
Quote:
Everything starts fine and a window opens and the ouput is displayed there, but no luck with any kind of debugging.
I tried setting the environment variable VBOX_GUI_DBG_AUTO_SHOW and switch '--dbg', but not a glimpse anywhere about debug entry in any menu. I havent found any info about using a remote debugger (how to connect) either.

I have two machines and two VMs (this far) and I would like to have one combination that works.
 
Old 06-18-2014, 07:13 AM   #5
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 339

Original Poster
Rep: Reputation: 33
Desktop/Qemu-launcer:
- first QDiskFileDialog opens (empty, no menu)
- then QEMUCTL opens (empty), cannot close the window - not from the "x" nor feom the menu ("Quit").

Desktop/Aqemu
It opens a terminal window, boots the guest and the guest output ends up onto the opened terminal.

The command line generated was:
Code:
/usr/bin/kvm -monitor stdio -cpu pentium -k fi -enable-kvm -m 256 -localtime -S -fda /home/jaa/OXkernel/ox/vmox.img -hda /home/jaa/.aqemu/OXkernel_HDA.img -boot once=a,menu=on -net nic,vlan=0 -net user,vlan=0 -name "OXkernel
I'm a bit concerned, though, because when I (accidentally) added --dbg I got error pop-up saying:
Quote:
Error #1
qemu-system-x86_64: --dbg: invalid option
I thought it should have been qemu-system-i386 (with pentium set as processor type).
Anyway, If I use Aqemu, gdb can't connect to it.

On command line it works fine. It's just that ddd looses keyboard (but not mouse?) and shortly after that, crashes.
Nemiver seems to work better.
Quote:
qemu-system-i386 -s -S -fda ~/OXkernel/ox/vmox.img
So it looks like not everything installed right, and I wouldn't like to base future effort on unstable environment.

BTW, any idea about these:
http://qemu-forum.ipi.fi/
http://qemu-buch.de/
Are they disappeared totally or jus moved somewhere else?
 
Old 06-18-2014, 01:39 PM   #6
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,328

Rep: Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772
I managed to enable the debugger in VirtualBox by editing ~/.VirtualBox/VirtualBox.xml and adding the following to it:
Code:
<ExtraDataItem name="GUI/Dbg/Enabled" value="true"/>
I don't know how good or bad it is though. I should also mention I am using VirtualBox 4.3.12 from the Oracle repositories with the Extension pack installed but I don't know how much difference any of that makes.

Last edited by 273; 06-18-2014 at 01:40 PM.
 
1 members found this post helpful.
Old 06-18-2014, 05:02 PM   #7
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 339

Original Poster
Rep: Reputation: 33
@273: Heyyy, that did it. The 'debug' suddenly appeared. Thanks!
(And seems to work too.)

Last edited by turboscrew; 06-18-2014 at 05:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
qemu: hardware error: qemu: could not load PowerPC bios 'openbios-ppc' Skaperen Linux - Virtualization and Cloud 8 06-09-2011 07:15 AM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 03:56 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
After qemu-img, qemu is not capable to detect the C drive (empty) frenchn00b Linux - General 3 10-18-2009 05:39 AM


All times are GMT -5. The time now is 12:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration