DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 7th March 2012
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default Some qemu questions (networking,usb devices)

Hello people,

i have installed succesfully qemu-1.0p1 on my system(OpenBSD 5.1)
and then installed windows xp using these steps(i read the guide on /usr/local/share/doc/pkg-readmes):

Code:
qemu-system-i386 -m 320 -monitor stdio -no-fd-bootchk \-hda xpdark.img -cdrom *iso -boot d
Then compressed the virtualdisk with:

Code:
qemu-img convert -c -O qcow2 xpdark.img v.tmp && \mv v.tmp xpdark.img
and after using almost 100% of my cpu it finished succesfully.

The third step in the guide is for booting:

Code:
qemu-system-i386 -m 320 -nographic -no-fd-bootchk -hda xpdark.img
but that won't boot xp: qmu won't load and i have to press the x button on xterm
running qemu to stop it.

However xp load normally if i omit the nographic and -no-fd-bootchk params.

1)Not sure why that happens but i would like to know if anyone has faced the same issue.

2)Also, i noticed that i can't give to the guest OS more than 320mb of memory. Is there a way to give more?( 512 would be nice ) my physical system has 3GB of ram.

3)About networking now i'm trying to connect the guest to the internet but the man page is not much of a help.In the /usr/local/share/doc/pkg-readmes the networking part of qemu says:

Default Settings

By default, QEMU sets up the equivalent of the following networking:

-net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:56
-net user,vlan=0


Does this mean that networking should work by default if don't use the -net parameter to make manual settings?(it doesn't work for me). And if not, can anyone share some tips on how to do it?

4) Also about using usbs to the guest OS the man page says:

-usbdevice devname

So i'm trying something like this:

Code:
qemu-system-i386 -usb -usbdevice sd0 -hda xpdark.img -m 320
but i get: qemu: could not add USB device 'sd0'

I also tried /dev/sd0,/dev/sd0c,/dev/sd0i and the same but with /dev/rsdx

and i get the same errors.

I know i'm asking a lot of questions, but unfortunately, so far the qemu man page
is the most disappointing of all the man pages i've read.

I'm also attaching my dmesg in case someone needs it.
Attached Files
File Type: txt dmesg.txt (16.0 KB, 82 views)

Last edited by sepuku; 7th March 2012 at 11:33 PM.
Reply With Quote
 

Tags
networking, qemu, usb devices

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
qemu networking gpatrick OpenBSD Packages and Ports 2 18th December 2011 04:20 AM
OpenBSD Support for Realtek 802.11n USB devices J65nko News 0 18th December 2010 11:00 PM
OpenBSD OpenBSD developer wants USB devices ocicat News 0 9th November 2010 01:57 AM
Automounting USB devices with HAL/KDE vinegaroon FreeBSD General 1 13th June 2008 02:16 PM
Automatic Mount for Devices/Filesystems vermaden FreeBSD General 11 12th June 2008 04:55 AM


All times are GMT. The time now is 04:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick