LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-09-2010, 12:03 AM   #1
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Rep: Reputation: 31
QEMU / DosEMU inside OpenVZ container


Hi,

I am trying to run QEMU + FreeDOS /DosEMU inside a OpenVZ container. While its not a wise idea to run a VM inside another VM, currently I have no other option as I need to check some old dos application (clipper/blinker) based.

This OpenVZ container is running Cent OS 5.4 32 bit and got 512 MB RAM. I tried dosemu but that doesn't work. Because it require change in mmap_min_addr in /proc/sys/vm/mmap_min_addr. But OpenVZ is preventing me to make this change, saying Operation not permitted (even when I am logged in as root).

Therefore I tried QEMU. First it also asked to load some kernel module (kqemu) but after spending some time over Google and reading docs, I finally found a flag to disable kqemu (as again OpenVZ prevents to load kernel modules inside containers).

Currently my command is like :
Code:
qemu -nographic -no-kqemu -hda c.hd -cdrom fdbasecd.iso -boot d
This gives no error/warning, but all I get is (qemu) in shell and then no response. I had to login via other shell to kill qemu process to get on shell prompt back. If I am missing anything?

I have seen forum posts from user saying that they are running QEMU inside OpenVZ to run windows application. So it should be possible. Any clue ? Also if you can suggest any alternate (like how to get dosemu working in OpenVZ container), that will be also fine. All I want to do is running that MS Dos application on server for few days.

Thanks
 
Old 11-09-2010, 07:01 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Is it possible to run DOSBox under your virtual OS? Under your host OS?
 
Old 11-09-2010, 10:59 PM   #3
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by paulsm4 View Post
Is it possible to run DOSBox under your virtual OS? Under your host OS?
I don't have access to host OS. If I would have that, then first thing I was going to try was changing mmpa_min_addr parameter to get dosemu. But unfortunately its a cheap VPS server and it gave access to OpenVZ container only.

Dosbox requires SDL and X display. But this server got only console. One possible way I can think of is installing TWM or any other light weight window manager and then accessing that over VNC. Then running dosbox under that. In theory, seems a working solution, but haven't tried this way yet. Also I am not sure if its possible to use xfce/twm over VNC directly (means starting X and using VNC client to connect that).

Yesterday I managed to get qemu over vnc though. I started QEMU using following command:

Code:
qemu -no-kqemu -hda myfreedos.img -vnc :1 &
then used a VNC client to connect to QEMU instance and was able to run without any problem. Though its not a secure way. As while QEMU is running this way, any one can access over VNC without requiring any password. So I am not leaning towards this solution.

Sounds interesting challenge
 
  


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
OpenVZ Container Backup vzxen Linux - Virtualization and Cloud 5 09-22-2010 01:53 AM
Reinstall OpenVZ Container OS vzxen Linux - Virtualization and Cloud 0 07-21-2010 02:23 PM
Quota exceeded on CentOS 5.2 when creating OpenVZ container eager Linux - Software 1 03-25-2009 02:19 PM
PPTPclient in openVZ container laurens Linux - Newbie 0 03-24-2009 10:32 AM
LXer: Devs to include OpenVZ suite inside Debian LXer Syndicated Linux News 0 08-08-2006 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration