Difference between revisions of "Qemu on Linux"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(→‎Notes: update; problems/solutions)
m (slight reorg; qemu manpage article renamed)
Line 1: Line 1:
 
[[Computing]]: [[Linux]]: [[Qemu on Linux]]{{seed}}
 
[[Computing]]: [[Linux]]: [[Qemu on Linux]]{{seed}}
 
 
This article is about setting up and running the [[Qemu]] emulator on [[Linux]].
 
This article is about setting up and running the [[Qemu]] emulator on [[Linux]].
 +
==Reference==
 +
* [[Qemu manpage]]
 
==Notes==
 
==Notes==
 
When [[Bochs]] mysteriously stopped being able to run [[Windows 98|Win98]], I found that Qemu was able to use the exact same .img file Bochs had been using, and it did manage to load Win98 quite easily. It would appear, then, that the setup for Qemu on Linux is probably quite similar to that of [[Bochs on Linux|Bochs]].
 
When [[Bochs]] mysteriously stopped being able to run [[Windows 98|Win98]], I found that Qemu was able to use the exact same .img file Bochs had been using, and it did manage to load Win98 quite easily. It would appear, then, that the setup for Qemu on Linux is probably quite similar to that of [[Bochs on Linux|Bochs]].
Line 13: Line 14:
 
** Try qemu again. If the console asks for a password for "/etc/qemu-ifup", on [[Ubuntu]] the password it wants is your user password (not sure if this must be the user who installed qemu or the user who is running qemu; perhaps they have to be the same?); this may be different for other distros
 
** Try qemu again. If the console asks for a password for "/etc/qemu-ifup", on [[Ubuntu]] the password it wants is your user password (not sure if this must be the user who installed qemu or the user who is running qemu; perhaps they have to be the same?); this may be different for other distros
 
** However, the network card may still not work at this point; see Current Issues above.
 
** However, the network card may still not work at this point; see Current Issues above.
 
==Related Articles==
 
* [[Qemu Manpages]]
 

Revision as of 22:49, 14 February 2006

Computing: Linux: Qemu on Linux

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

This article is about setting up and running the Qemu emulator on Linux.

Reference

Notes

When Bochs mysteriously stopped being able to run Win98, I found that Qemu was able to use the exact same .img file Bochs had been using, and it did manage to load Win98 quite easily. It would appear, then, that the setup for Qemu on Linux is probably quite similar to that of Bochs.

Current issues

  • 2005-12-29 Current repository version of Qemu no longer says "warning: could not open /dev/net/tun: no virtual network emulation", but still can't see anyone on network except the local (virtual) machine. DHCP is not fetching an IP address.
  • Need to figure out how to mount an .img file -- although it's probably not safe to write to an .img while it's in use by the emulator, so this actually wouldn't be all that useful once you've got a bootable, networked OS. Networking is the way to exchange files.

Problems/Solutions

  • Problem: "warning: could not open /dev/net/tun: no virtual network emulation"; Solution:
    • as root, run "modprobe tun"; if no error, then the tun module has been installed successfully
    • "ls /dev/net/tun" to make sure the device has been created
    • Try qemu again. If the console asks for a password for "/etc/qemu-ifup", on Ubuntu the password it wants is your user password (not sure if this must be the user who installed qemu or the user who is running qemu; perhaps they have to be the same?); this may be different for other distros
    • However, the network card may still not work at this point; see Current Issues above.