Brett wrote: > Hi, > Not sure if this is a ports question, or misc question, or none of the > above... > > I am running amd64 current, and installed qemu-0.15.1p0 from ports. > Following the readme instructions, I was able to boot a recent snapshot of > OpenBSD (amd64) as the guest OS. Networking and x window system all work. > I've then tried to install some kind of linux as the guest. > > After creating a virtual.img, I then try: > $ qemu-system-x86_64 -m 200 -monitor stdio -no-fd-bootchk -hda virtual.img > -cdrom debian-6.0.3-amd64-CD-1.iso -boot d > > The initial boot message and installer menu appears, however when I select > something (eg install or graphical install) the screen then blanks > indefintely, and looking at top, qemu-system starts at about 7% cpu usage, > then climbs to 98% over a few minutes. I left the installer in this state > for about 4 hours this afternoon, and it was still stuck on blank screen > when I came home, so I don't think its just being incredibly slow.
I've seen that too in the past, but I may have found a way that works. > Basically the same result occurs if I try TinyCore Linux, Bodhi Linux, or > Lubuntu. The "monitor" in the shell I launch qemu from just displays: QEMU > 0.15.1 monitor - type 'help' for more information (qemu) > > I've played around with the arguments to the above command, trying teh > different -vga and -net settings, but i'm pretty sure they are not the > problem. > > Is there a known working linux distro I could try? Or some other arguments > or changes I can make so the critter will boot? I could not find anything > relevant on the mailing lists or web. A couple of weeks ago Slackware and Debian seemed to work for me. (qemu 0.13.0p1 on 4.9 amd64) If I'm not mistaken they both have a non-graphical installer. I removed the Slackware image but I remember it working fairly smooth from the command line. (I didn't install a graphical environment on either) Though I haven't really used it, I still have a Debian image around that seems to boot up fine without the black/blank screen. (If I remember correctly the black screen was there for, maybe, up to a couple of minutes, during the initial install) I used the following CD image: $ ls Debian/*.iso Debian/debian-6.0.2.1-amd64-netinst.iso and the script I use is: $ cat debian.sh #!/bin/sh qemu-system-x86_64 -no-acpi -soundhw ac97 \ -hda ~/thuis.lan/virtual/Debian/hd.img \ -net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:58 \ -net user,vlan=0 Perhaps the -no-acpi parameter does the magic. > Also, launching as a normal user, the highest I can specify -m is 330 > (with a "Failed to allocate memory: Cannot allocate memory" message), > while using the above command as root, I can set -m to (eg) 2660. Is there > a sysctl or other setting that will allow a higher memory allocation as > normal user? > see ksh(1) -> use ulimit to increase the size of the data area, e.g.: ulimit -Sd 1048576 I hope some of this is useful.