Hardware virtualization with QEMU
From the slackbook WIKI;
"http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:qemu"
I quote below which relates to my questions:
My questions are as follows:
1) I know -hdc and -cdrom cannot be called at the same time, but i have no luck getting an image to be mounted with -hdb or -hdd. The same image I can successfully mount with -cdrom cannot be mounted with either -hdb or -hdd, What's up there. I could not figure out from the manuals if these should just be dd'ed images a directory or iso?
2) Are floppy images restricted to exactly 1.44MB created with dd? I cannot mount anything with the floppy switches either which is probably a size constraint I dont meet.
3) Since USB is seemingly working, what would the command be to activate the usb driver ?
-usb Intel SB82371 or -usb SB82371 ?
4) What is the attainable USB speed? Full USB-1 ?
5) Are the serial and parallel ports running at native speed without delays?
-----------------------------------------------------------------------
Emulated hardware and supported Guest OS-es
The QEMU Virtual Machine emulates a set of hardware components that is independent of the real hardware on which it is running. Since Slackware runs on x86 architecture, I will limit myself to a list of emulated hardware available to Slack (other emulated architectures may have other hardware peripherals available to the Guest OS).
*
IDE-Controller supporting up to 4 drives (the drives are disk
images on the host computer
*
IDE CDROM device (in the form of a CD ISO image, or a real CDROM
device)
*
Floppy disk controller supporting up to 2 drives (floppy disk images)
*
Graphics card (either a Cirrus Logic GD5446 PCI, or VGA-VESA)
*
PS/2 Mouse
*
Ethernet network card (Realtek RTL8139 PCI or NE2000 PCI)
*
A serial port (COM 1)
*
A parallel port (LPT 1)
*
Soundcard (Soundblaster 16 and/or ES1370)
*
A USB-UHCI host controller (the Intel SB82371)The list of Operating Systems that run inside QEMU is quite long. Here is an unofficial list of supported Guest OS-es. I have run various Linuxes (for x68 and x86_64) and Windows 98/2000/XP inside QEMU.
-------------------------------------------------------------------------
I soved (3) with this
qemu -hda WinXP_Home.img -kernel-kqemu -usb -usbdevice host:04b4:8613 -net nic,model=rtl8139 -net user I can see the device and the intel hubs are running.
Amazing, it is the first VM I see that even tries to address USB except for VMWARE. The remainder of the questions are still open.
Quoted 26 lines · [email protected] wrote:
From the slackbook WIKI;
"http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:qemu"
I quote below which relates to my questions:
My questions are as follows:
1) I know -hdc and -cdrom cannot be called at the same time, but i have no luck getting an image to be mounted with -hdb or -hdd. The same image I can successfully mount with -cdrom cannot be mounted with either -hdb or -hdd, What's up there. I could not figure out from the manuals if these should just be dd'ed images a directory or iso?2) Are floppy images restricted to exactly 1.44MB created with dd? I cannot mount anything with the floppy switches either which is probably a size constraint I dont meet.
3) Since USB is seemingly working, what would the command be to activate the usb driver ?
-usb Intel SB82371 or -usb SB82371 ?4) What is the attainable USB speed? Full USB-1 ?
5) Are the serial and parallel ports running at native speed without delays?
Hi,
Quoted 3 lines
My questions are as follows:
1) I know -hdc and -cdrom cannot be called at the same time, but i have no luck getting an image to be mounted with -hdb or -hdd.
For -cdrom you need ISO images.
For -hd[a-d] you need harddisk-images, which are done like this dd id=/dev/hda of=myimage.img
qemu -hda myimage.img
You can´t dd a directory. You could mkisofs a directory or you could use the Samba sharing to hand over a directory.
Quoted 3 lines
The same image
I can successfully mount with -cdrom cannot be mounted with either -hdb or -hdd,
Then it´s likely an ISO image, and not a harddisk image.
Quoted 2 lines
What's up there. I could not figure out from the manuals if these should just be dd'ed images a directory or iso?
You have to dd a whole harddisk (not just a partition)
Quoted 3 lines
2) Are floppy images restricted to exactly 1.44MB created with dd? I cannot mount anything with the floppy switches either which is probably a size constraint I dont meet.
I don´t know.
Quoted 1 line
4) What is the attainable USB speed? Full USB-1 ?
I think speed is something virtual at that point, but I am not sure.
Quoted 2 lines
5) Are the serial and parallel ports running at native speed without delays?
You will always have delays in full-system emulation systems like Qemu. How large those are depends on a lot of factors, so you should measure it yourself, I guess.
Best regards,
Philipp Gühring
Quoted 10 lines · Philipp Gühring
Hi,
Quoted 3 lines
My questions are as follows:
1) I know -hdc and -cdrom cannot be called at the same time, but i have no luck getting an image to be mounted with -hdb or -hdd.For -cdrom you need ISO images.
For -hd[a-d] you need harddisk-images, which are done like this dd id=/dev/hda of=myimage.img
qemu -hda myimage.img
On systems where mounting is done manually you can use the ISO filesystem on a harddisk without problems. You can also mount filesystems from a partitioned image (what you call harddisk image) on a cdrom. So this is not true.
Quoted 12 lines
You can´t dd a directory. You could mkisofs a directory or you could use the Samba sharing to hand over a directory.
Quoted 3 lines
The same image
I can successfully mount with -cdrom cannot be mounted with either -hdb or -hdd,Then it´s likely an ISO image, and not a harddisk image.
Quoted 2 lines
What's up there. I could not figure out from the manuals if these should just be dd'ed images a directory or iso?
dd just makes a copy. You can use the device or a dd'ed copy of the device (image) and it makes no difference. dd and cp can often be used interchangeably.
Quoted 7 lines
You have to dd a whole harddisk (not just a partition)
Quoted 3 lines
2) Are floppy images restricted to exactly 1.44MB created with dd? I cannot mount anything with the floppy switches either which is probably a size constraint I dont meet.
Quoted 5 lines
I don´t know.
Quoted 1 line
4) What is the attainable USB speed? Full USB-1 ?
I think speed is something virtual at that point, but I am not sure.
Yes, with virtual devices you can reach any speed the computer can do. With physical devices you can probably reach "full speed" (12 MB/s) or "slow speed" (1.5 MB/s) if your computer is fast enough.
Regards