Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Running QEMU on a Linode
PostPosted: Tue Oct 20, 2009 10:55 am 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 10:43 am
Posts: 8
Hi, I'm running a QEMU instance on my Linode, and I have noticed that it freezes completely quite frequently. The QEMU virtual machine is running a minimal install of Debian Lenny, which is completely idle and has no services running besides those installed by default on Debian systems and an ssh daemon.

My Linode has 360 MB + swap, and I have assigned 248 MB to the QEMU virtual machine. The Linode itself isn't running anything except for default Debian services, the Zabbix agent and qemu.

I need to run a virtualized environment for testing purposes, but I'm worried about the frequent hangs. Is there a workaround for this or something I should check? If this is a known problem with QEMU running on top of a Linode, are there any virtualization alternatives that you could suggest?


Thanks in advance,
Alex


Top
   
 Post subject:
PostPosted: Tue Oct 20, 2009 3:12 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Disclaimer: this is personal opinion, and somebody will probably post to say that I'm wrong, but...

I find that it's generally not a good idea to double-virtualize (run an OS inside a virtual machine running on an OS inside a virtual machine running on an OS). Should it work? I've no idea, although I suspect not, since Linode isn't running Xen with VT (IE, you can't run Windows on your node).


Top
   
PostPosted: Tue Oct 20, 2009 10:06 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
alemartini wrote:
I need to run a virtualized environment for testing purposes

Your Linode IS a virtualized environment.
Quote:
are there any virtualization alternatives that you could suggest?

If you need something for testing without disturbing your "production" Linode, then I recommend another Linode. I keep a spare linode for nothing more than testing updates, but if you only need to test things once in a while it is fairly cheap and easy to just create a new linode for a day or two.


Top
   
 Post subject:
PostPosted: Tue Oct 20, 2009 10:55 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Xen, by its nature, claims exclusive use of the VT-X technology on-chip. It's therefore not available to Linodes. Your performance will suffer drastically if you try this for any length of time.

As other posters have suggested, what is your need for an airtight virtualized environment?

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Wed Oct 21, 2009 7:41 pm 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 10:43 am
Posts: 8
Ok, I'd like to thank all the people that have shared their feedback on this issue.

Let me try the same question from a different angle.

Suppose that you needed to perform some testing that involved running an OS that is not GNU/Linux (let's say FreeBSD to give an example).

Is that possible on a Linode? In case it is, what virtualization product would you use to achieve that goal?

Just to clarify a few points:

  • I am aware that a Linode is a virtual environment.
  • I am aware that running a virtual machine on top a virtual machine has many drawbacks (a significant performance penalty being one of them)
  • I'm not interested in performance (I'd just like to be able to run a different OS from time to time)



Thanks again,
Alex


Top
   
 Post subject:
PostPosted: Thu Oct 22, 2009 10:58 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Have you tried other VM software? VirtualBox? VMWare?


Top
   
 Post subject:
PostPosted: Thu Oct 22, 2009 7:21 pm 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 10:43 am
Posts: 8
I've tried VirtualBox but so far I've been unable to compile the kernel module (vboxdrv).

Is there any guide to get VirtualBox working on a Linode?


Top
   
 Post subject:
PostPosted: Thu Oct 22, 2009 7:45 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
alemartini wrote:
I've tried VirtualBox but so far I've been unable to compile the kernel module (vboxdrv).

Is there any guide to get VirtualBox working on a Linode?


Why?

_________________
Image
Where "Thought Crime" is commited
http://www.rejecttheherd.net


Top
   
 Post subject:
PostPosted: Thu Oct 22, 2009 10:46 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
alemartini wrote:
Suppose that you needed to perform some testing that involved running an OS that is not GNU/Linux (let's say FreeBSD to give an example).


Top
   
 Post subject:
PostPosted: Fri Oct 23, 2009 11:05 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
FreeBSD can run "natively" on a Linode. Windows, on the other hand, would be more trouble.


Top
   
 Post subject:
PostPosted: Fri Oct 23, 2009 11:35 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
alemartini wrote:
Is there any guide to get VirtualBox working on a Linode?

VirtualBox runs the guest OS ring0 in the (normally unused) ring1 of the host OS (while user code runs in ring3). The Xen Dom0 installs the hypervisor to take charge of ring0. Unless Xen were patched to support access to ring1, VirtualBox under Xen won't work. An old VirtualBox ticket (203) is related to this and is "closed: wontfix".

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Oct 23, 2009 12:20 pm 
Offline
Senior Newbie

Joined: Sat Jan 17, 2009 6:35 pm
Posts: 11
jed wrote:
Xen, by its nature, claims exclusive use of the VT-X technology on-chip. It's therefore not available to Linodes. Your performance will suffer drastically if you try this for any length of time.


That was qemu on Xen--I wonder if xen on xen would have better performance?
-r


Top
   
 Post subject:
PostPosted: Fri Oct 23, 2009 1:41 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
rogerdpack wrote:
jed wrote:
Xen, by its nature, claims exclusive use of the VT-X technology on-chip. It's therefore not available to Linodes. Your performance will suffer drastically if you try this for any length of time.


That was qemu on Xen--I wonder if xen on xen would have better performance?
-r

The Xen host does not expose VT-X to guests, so I would imagine it'd roughly be the same.

EDIT: My first answer was not technically correct.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
PostPosted: Mon Apr 07, 2014 9:38 am 
Offline
Newbie

Joined: Mon Apr 07, 2014 9:30 am
Posts: 2
Hello! Is there any update on the matter? I've been trying to setup a Windows VM inside my linode with no success. Qemu doesn't work (bsod) and virtualbox won't compile the required modules. I need to serve a "legacy" silverlight applcation that is not critical for me, so i would like to avoid having to maintain a whole VPS just for that.


Top
   
PostPosted: Mon Apr 07, 2014 10:51 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Linode is really not the best place for you if you need to run legacy Windows software. That said, you might look into Mono, the Linux implementation of .NET. I'd imagine you don't need to run Silverlight itself (since that's client-side), but you may need to run the .NET backend stuff?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group