Skip to contentSkip to conversation

kqemu version 1.3.0pre5

Qemu-devel New Fabrice Bellard 18 participants 24 messages Mar 27, 2006 – Apr 9, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I just released a new version of kqemu which fixes some recently discovered issues. The fixes are the following:

- Support for guest Linux kernels compiled with gcc >= 3.3

- x86_64 host support is working again (only i386 on x86_64 full virtualization has been tested, x86_64 on x86_64 is implemented but not tested yet).

- Workaround for full virtualization on Windows host (more tests needed).

The documentation (http://bellard.org/qemu/kqemu1-doc.html) gives more information about the new "full virtualization" mode.

Fabrice.

#1 lore raw
Quoted 6 lines · Fabrice Bellard

Hi,

I just released a new version of kqemu which fixes some recently discovered issues. The fixes are the following:

- Support for guest Linux kernels compiled with gcc >= 3.3

Hello,
I tried the Mandriva boot.iso and it now boots fine, thanks !

#2 lore raw
In reply to Fabrice Bellard
Quoted 6 lines · Fabrice Bellard

Hi,

I just released a new version of kqemu which fixes some recently discovered issues. The fixes are the following:

- Support for guest Linux kernels compiled with gcc >= 3.3

Tested with 2.4.26 & 2.6.16 - gcc-3.2, gcc-3.3, gcc-3.4 & gcc-4.0.2 Win2k-SP3, Win2k-SP4, WinXP-SP1, WinXP-SP2
AthlonXP, Sempron & PIII-M

and all combinations of.

Nice work :)

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
#3 lore raw
Quoted 9 lines · Brad Campbell
Quoted 7 lines · Fabrice Bellard

Hi,

I just released a new version of kqemu which fixes some recently discovered issues. The fixes are the following:

- Support for guest Linux kernels compiled with gcc >= 3.3

Quoted 8 lines

Tested with 2.4.26 & 2.6.16 - gcc-3.2, gcc-3.3, gcc-3.4 & gcc-4.0.2 Win2k-SP3, Win2k-SP4, WinXP-SP1, WinXP-SP2
AthlonXP, Sempron & PIII-M

and all combinations of.

Nice work :)

thanks for putting in the MODULE_LICENSE folks!

Auke

#4 lore raw
In reply to Fabrice Bellard
Quoted 5 lines · Fabrice Bellard

Hi,

I just released a new version of kqemu which fixes some recently discovered issues. The fixes are the following:

Quoted 8 lines

- Support for guest Linux kernels compiled with gcc >= 3.3

- x86_64 host support is working again (only i386 on x86_64 full virtualization has been tested, x86_64 on x86_64 is implemented but not tested yet).

- Workaround for full virtualization on Windows host (more tests needed).

I tested Linux guest/WinXP host but the host OS crashed.

Redhat 7.2 guest/Fedora Core 4 host with normal kqemu is slower than -no-kqemu. Why ?

Regards,
Kazu

#5 lore raw
Quoted 1 line · Kazu

I tested Linux guest/WinXP host but the host OS crashed.

I believe -kernel-kqemu is still somewhat experimental on Windows host.

Quoted 2 lines

Redhat 7.2 guest/Fedora Core 4 host with normal kqemu is slower than -no-kqemu. Why ?

Have you got your tmpfs set up correctly so qemu can place its memory swap file in a ramdisk rather than on disk?

/dev/hda1             4.6G  3.1G  1.4G  69% /
tmpfs                 506M     0  506M   0% /dev/shm
/dev/hda2             4.6G  4.5G  103M  98% /home
/dev/hda6              44G   44G  424K 100% /tracks
none                  768M  137M  632M  18% /tmp  <-- not sure why it says none.. it's tmpfs

Regards,
Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
#6 lore raw
Quoted 1 line · Brad Campbell

none 768M 137M 632M 18% /tmp <-- not sure why it says none.. it's tmpfs

change the none to tmpfs in /etc/fstab. normally the mount point goes there, but tmpfs (and proc, for example) don't have a mount point so you can put anything there.

marco

#7 lore raw
Quoted 7 lines · Marco Matthies
Quoted 2 lines · Brad Campbell

none 768M 137M 632M 18% /tmp <-- not sure why it
says none.. it's tmpfs

change the none to tmpfs in /etc/fstab. normally the mount point goes there, but tmpfs (and proc, for example) don't have a mount point so you can put anything there.

You mean they don't have a device node. They do have mountpoints.

Regarding crashes of the host OS, that might have nothing to do with QEMU. Ms Windows is known to be an "experimental" OS in general (by experimental I mean that it crashes a lot) :-)
Normal Operating Systems don't crash no matter what program they are running.

Quoted 9 lines

marco

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

--
balrog 2oo6

Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258

#8 lore raw
Quoted 2 lines

Normal Operating Systems don't crash no matter what program they are running.

Except that kqemu is a kernel module (or windows equivalent). As such it is effectively part of the OS, and can easily crash the whole machine.

Paul

#9 lore raw

Works fine on my computer too!

OS: Ubuntu 5.10 (Breezy Badger)
CPU: Athlon XP 2000+ (with kernel 2.6.12-10-k7) Using latest CVS version of QEMU with some USB patches from
http://gnome.dnsalias.net/patches/

Quoted 8 lines · Paul Brook
Quoted 3 lines

Normal Operating Systems don't crash no matter what program they are running.

Except that kqemu is a kernel module (or windows equivalent). As such it is
effectively part of the OS, and can easily crash the whole machine.

Quoted 8 lines

Paul

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

--
Bruno de Oliveira Abinader
10LE/INdT

#10 lore raw
In reply to Paul Brook
Quoted 4 lines · Paul Brook
Quoted 2 lines

Normal Operating Systems don't crash no matter what program they are running.

Except that kqemu is a kernel module (or windows equivalent). As such it is effectively part of the OS, and can easily crash the whole machine.

Yes indeed.

I'm actually quite impressed. I've crashed my guests loads, I've crashed qemu loads and yet I've never managed to leave kqemu in a state that compromised the system integrity.... I'm not betting my life it won't happen, but thus far I've been quite lucky I guess.. (And I have done some severely stupid things to blow up both qemu and the guests so far)

All bets are off for a Windows host though. I'm sure it's much easier to write a module that does what kqemu does when you a) have a good understanding of what goes on under the hood, and b) have the source to verify this.. unlike writing a Windows system module.

Kudos to the guys who put that together and their progress thus far.

Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
#11 lore raw
In reply to andrzej zaborowski
Quoted 1 line · andrzej zaborowski

Normal Operating Systems don't crash no matter what program they are running.

That only applies to user-mode programs that don't make calls to device drivers. Kqemu is basically a device driver which runs in kernel space, and a crash in there will bring down whole system.

Signature · 4 lines
< Jernej Simončič ><><><><>< http://deepthought.ena.si/ >

The first pull on the cord ALWAYS sends the drapes in the wrong direction.
       -- Boyle's Other Law
#12 lore raw
In reply to Brad Campbell
Quoted 10 lines · Brad Campbell
Quoted 1 line · Kazu

I tested Linux guest/WinXP host but the host OS crashed.

I believe -kernel-kqemu is still somewhat experimental on Windows host.

Quoted 2 lines

Redhat 7.2 guest/Fedora Core 4 host with normal kqemu is slower than -no-kqemu. Why ?

Have you got your tmpfs set up correctly so qemu can place its memory swap

file in a ramdisk rather

Quoted 2 lines

than on disk?

I used tmpfs but the result is the same. Thanks, anyway.

Regards,
Kazu

#13 lore raw
In reply to Fabrice Bellard

I'm still getting a kernel panic running a Linux guest kernel with -kernel-qemu. I'm using kqemu-1.3.0pre5 and qemu-snapshot-2006-03-27_23.

The guest kernel is a precompiled Fedora Core 4 kernel, version 2.6.14-1.1656_FC4. It works fine with kqemu in non-kernel-kqemu mode.

Any hints for how to track this problem down?

--Ed

Linux version 2.6.14-1.1656_FC4 ([email protected]) (gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)) #1 Thu Jan 5 22:13:22 EST 2006 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
0MB HIGHMEM available.
256MB LOWMEM available.
Using x86 segment limits to approximate NX protection
DMI not present.
ACPI: Unable to locate RSDP
Allocating PCI resources starting at 20000000 (gap: 10000000:f0000000)
Built 1 zonelists
Kernel command line: bootdev=hda1 bootnod=b,3,1 boottype=vfat bootdir=/swi/Aros-1.3.0 console=ttyS0 selinux=0 Initializing CPU#0
CPU 0 irqstacks, hard=c03f3000 soft=c03f2000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 3000.676 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 254412k/262144k available (2099k kernel code, 7072k reserved, 718k data, 172k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 6043.49 BogoMIPS (lpj=12086981)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
monitor/mwait feature present.
using mwait in idle threads.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
mtrr: v2.0 (20020519)
CPU: Intel(R) Pentium(R) D CPU 3.00GHz stepping 04
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
checking if image is initramfs... it is
Freeing initrd memory: 1232k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xf9ce0, last bus=0
PCI: Using configuration type 1
ACPI: Subsystem revision 20050916
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX/ICH [8086/7000] at 0000:00:01.0
PCI: BIOS reporting unknown device 01:00
PCI: BIOS reporting unknown device 01:00
PCI: BIOS reporting unknown device 01:00
PCI: BIOS reporting unknown device 01:00
PCI: BIOS reporting unknown device 01:00
PCI: Ignore bogus resource 6 [0:0] of 0000:00:02.0
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
audit(1143569137.708:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 86D1D7472B6BE898
- User ID: Red Hat, Inc. (Kernel Module GPG key)
PCI: PIIX3: Enabling Passive Release on 0000:00:01.0
Limiting direct PCI/PCI transfers.
Activating ISA DMA hang workarounds.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
Linux agpgart interface v0.101 (c) Dave Jones
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 32 ports, IRQ sharing enabled
invalid operand: 0000 [#1]

Modules linked in:
CPU:    0
EIP:    0060:[<c0101147>]    Not tainted VLI
EFLAGS: 00010246   (2.6.14-1.1656_FC4)

EIP is at mwait_idle+0x2f/0x41
eax: c03c1008 ebx: c03c1008 ecx: 00000000 edx: 00000000
esi: c03c1000 edi: 00000010 ebp: 00000000 esp: c03c1fc4
ds: 007b es: 007b ss: 0068
Process swapper (pid: 0, threadinfo=c03c1000 task=c0361c60)

Stack: 00000800 c03c1000 c0113749 c03c1000 00000800 00099100 c03bd800 00461007
       c01010a6 c03c270a 0000004c c03c22e9 00000000 c03f4e60 c0100199
Call Trace:
 [<c0113749>] apm_cpu_idle+0x5e/0x157
 [<c01010a6>] cpu_idle+0x34/0x4c
 [<c03c270a>] start_kernel+0x15f/0x1b9
 [<c03c22e9>] unknown_bootoption+0x0/0x1b6
Code: 00 f0 ff ff 21 e2 8b 42 08 a8 08 75 2d 0f ba 6a 08 10 89 d6 8d 5a 08 31 c9 eb 0c 89 c8 0f 01 c9 8b 46 08 a8 08 75 0e 89 d8 89 ca <0f> 01 c8 8b 46 08 a8 08 74 e6 0f ba 76 08 10 5b 5e c3 83 ec 04
 <0>Kernel panic - not syncing: Attempted to kill the idle task!
 [<c011a858>] panic+0x45/0x1b4
 [<c011baa0>] profile_task_exit+0x30/0x43
 [<c011d610>] do_exit+0x375/0x3b8
 [<c01037e7>] do_divide_error+0x0/0xa8
 [<c0103977>] do_invalid_op+0x0/0xab
 [<c0103a19>] do_invalid_op+0xa2/0xab
 [<c0101147>] mwait_idle+0x2f/0x41
 [<c0236179>] serial8250_console_write+0x0/0x1ec
 [<c011aefe>] __call_console_drivers+0x38/0x44
 [<c0117036>] wake_up_new_task+0xe4/0x184
 [<c011a352>] do_fork+0xd6/0x1e9
 [<c011b3d5>] vprintk+0x1e7/0x2a9
 [<c011b3d5>] vprintk+0x1e7/0x2a9
 [<c01030cb>] error_code+0x4f/0x54
 [<c030007b>] xfrm_get_byname+0x83/0x9a
 [<c0101147>] mwait_idle+0x2f/0x41
 [<c0113749>] apm_cpu_idle+0x5e/0x157
 [<c01010a6>] cpu_idle+0x34/0x4c
 [<c03c270a>] start_kernel+0x15f/0x1b9
 [<c03c22e9>] unknown_bootoption+0x0/0x1b6
#14 lore raw
Quoted 8 lines · Ed Swierk

I'm still getting a kernel panic running a Linux guest kernel with -kernel-qemu. I'm using kqemu-1.3.0pre5 and qemu-snapshot-2006-03-27_23.

The guest kernel is a precompiled Fedora Core 4 kernel, version 2.6.14-1.1656_FC4. It works fine with kqemu in non-kernel-kqemu mode.

Any hints for how to track this problem down?

I was getting an almost _identical_ error on my laptop.. turned out I had forgot to copy the latest and greatest bios *.bin files to /usr/local/share/qemu

Updated the bios from the cvs source dir and it's all been peachy since..

Hope yours is similar..

You do need to be running the absolute latest cvs really for this to work properly.. My desktop was ok, but my laptop was a couple of days worth of commits out of date and *boom*

Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
#15 lore raw
In reply to Ed Swierk
Quoted 8 lines · Ed Swierk

I'm still getting a kernel panic running a Linux guest kernel with -kernel-qemu. I'm using kqemu-1.3.0pre5 and qemu-snapshot-2006-03-27_23.

The guest kernel is a precompiled Fedora Core 4 kernel, version 2.6.14-1.1656_FC4. It works fine with kqemu in non-kernel-kqemu mode.

Any hints for how to track this problem down?

[snip]

Quoted 2 lines

monitor/mwait feature present.
using mwait in idle threads.

[snip]

Quoted 6 lines

invalid operand: 0000 [#1]

Modules linked in:
CPU:    0
EIP:    0060:[<c0101147>]    Not tainted VLI
EFLAGS: 00010246   (2.6.14-1.1656_FC4)

EIP is at mwait_idle+0x2f/0x41

I don't think qemu supports PNI, which includes the monitor/mwait additions. I wonder why Linux detects that. You can probably get around it for now by either passing idle=poll as a boot parameter, or compile your kernel for plain i586 for instance.

Signature · 1 line
Jens Axboe
#16 lore raw
Quoted 12 lines · Jens Axboe
Quoted 2 lines

monitor/mwait feature present.
using mwait in idle threads.

[snip]

Quoted 6 lines

invalid operand: 0000 [#1]

Modules linked in:
CPU:    0
EIP:    0060:[<c0101147>]    Not tainted VLI
EFLAGS: 00010246   (2.6.14-1.1656_FC4)

EIP is at mwait_idle+0x2f/0x41

Quoted 4 lines

I don't think qemu supports PNI, which includes the monitor/mwait additions. I wonder why Linux detects that. You can probably get around it for now by either passing idle=poll as a boot parameter, or compile your kernel for plain i586 for instance.

It seems that with -kernel-kqemu, the guest kernel is seeing the CPUID of the host machine rather than the one normally generated by qemu.

The workarounds you suggest do work--thanks for your help. However, ideally kqemu would trap the CPUID instruction and mask the feature bits for unsupported CPU features.

--Ed

#17 lore raw
Quoted 21 lines · Ed Swierk
Quoted 13 lines · Jens Axboe
Quoted 2 lines

monitor/mwait feature present.
using mwait in idle threads.

[snip]

Quoted 6 lines

invalid operand: 0000 [#1]

Modules linked in:
CPU:    0
EIP:    0060:[<c0101147>]    Not tainted VLI
EFLAGS: 00010246   (2.6.14-1.1656_FC4)

EIP is at mwait_idle+0x2f/0x41

Quoted 4 lines

I don't think qemu supports PNI, which includes the monitor/mwait additions. I wonder why Linux detects that. You can probably get around it for now by either passing idle=poll as a boot parameter, or compile your kernel for plain i586 for instance.

Quoted 6 lines

It seems that with -kernel-kqemu, the guest kernel is seeing the CPUID of the host machine rather than the one normally generated by qemu.

The workarounds you suggest do work--thanks for your help. However, ideally kqemu would trap the CPUID instruction and mask the feature bits for unsupported CPU features.

The problem is that it is not possible to trap on the CPUID instruction :-( So the only possible patch is to support PNI in QEMU. For monitor/mwait for example, doing nops should suffice...

Fabrice.

#18 lore raw

PATCH 1/1 add PNI user instructions

I've posted a patch that adds SSE3 instruction emulation to QEMU some weeks ago, but it accidentally contained some silly changes. Sorry for that.

I'm currently very short on time, so I've just attached a fixed version. To complete PNI, both the monitor and the mwait instruction, and also the MON CPUID flag must be added.

Quoted 3 lines · Fabrice Bellard

The problem is that it is not possible to trap on the CPUID instruction :-( So the only possible patch is to support PNI in QEMU. For monitor/mwait for example, doing nops should suffice...

Fabrice.

Signature · 2 lines
Joachim Henke
http://he-jo.net/
cpu.h +1 -1
@@ -265,7 +265,7 @@
 #define CPUID_SSE  (1 << 25)
 #define CPUID_SSE2 (1 << 26)
 
-#define CPUID_EXT_SS3      (1 << 0)
+#define CPUID_EXT_SSE3     (1 << 0)
 #define CPUID_EXT_MONITOR  (1 << 3)
 #define CPUID_EXT_CX16     (1 << 13)
 
exec.h +4 -0
@@ -260,6 +260,8 @@
 /* use long double functions */
 #define floatx_to_int32 floatx80_to_int32
 #define floatx_to_int64 floatx80_to_int64
+#define floatx_to_int32_round_to_zero floatx80_to_int32_round_to_zero
+#define floatx_to_int64_round_to_zero floatx80_to_int64_round_to_zero
 #define floatx_abs floatx80_abs
 #define floatx_chs floatx80_chs
 #define floatx_round_to_int floatx80_round_to_int
@@ -278,6 +280,8 @@
 #else
 #define floatx_to_int32 float64_to_int32
 #define floatx_to_int64 float64_to_int64
+#define floatx_to_int32_round_to_zero float64_to_int32_round_to_zero
+#define floatx_to_int64_round_to_zero float64_to_int64_round_to_zero
 #define floatx_abs float64_abs
 #define floatx_chs float64_chs
 #define floatx_round_to_int float64_round_to_int
helper2.c +5 -6
@@ -103,13 +103,12 @@
 #endif
         env->cpuid_level = 2;
         env->cpuid_version = (family << 8) | (model << 4) | stepping;
-        env->cpuid_features = (CPUID_FP87 | CPUID_DE | CPUID_PSE |
-                               CPUID_TSC | CPUID_MSR | CPUID_MCE |
-                               CPUID_CX8 | CPUID_PGE | CPUID_CMOV |
-                               CPUID_PAT);
+        env->cpuid_features = CPUID_FP87 | CPUID_DE | CPUID_PSE | CPUID_TSC |
+                              CPUID_MSR | CPUID_PAE | CPUID_MCE | CPUID_CX8 |
+                              CPUID_SEP | CPUID_PGE | CPUID_CMOV | CPUID_PAT |
+                              CPUID_MMX | CPUID_FXSR | CPUID_SSE | CPUID_SSE2;
+        env->cpuid_ext_features = CPUID_EXT_SSE3;
         env->pat = 0x0007040600070406ULL;
-        env->cpuid_ext_features = 0;
-        env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2 | CPUID_PAE | CPUID_SEP;
         env->cpuid_xlevel = 0;
         {
             const char *model_id = "QEMU Virtual CPU version " QEMU_VERSION;
op.c +47 -0

53 lines not on this page · raw message

translate.c +49 -14

99 lines not on this page · raw message

#19 lore raw
In reply to Fabrice Bellard

I tried various guests today on winXP host.

* No crash and good speed for std kqemu (no kernel-kqemu)
* Crash of winXP host systematically on all guests (linux + ms)

It's hard to debug what is the problem. The only thing I have the time to see is a BSOD (blue screen of d**th) and the error message, informative ?

"TRAP_CAUSE_UNKNOWN"

Good job overall :) Kudos to the developpers.

Maybe we can make it a bartpe plugin one day, automatically started with kqemu on ? That would be nice to promote qemu virtualization features...

Quoted 7 lines · Fabrice Bellard

Hi,

I just released a new version of kqemu which fixes some recently discovered issues. The fixes are the following:

- Workaround for full virtualization on Windows host (more tests needed).

--
Christian

#20 lore raw

Hello,

I have the same issues as Christian : I'm unable to get -kernel-kqemu option to work.

My configuration :

Host : Windows XPpro SP2 on Intel P4HT

QEMU : 0.8.0 latest CVS version.
qemu.exe process' affinity set to second 'CPU' (with ImageCfg, but the result is the same if set with ProcExp or with TaskMgr)

Guests :
* Windows 2000 SP4 : freezes just after loading splash screen...
* Ubuntu 5.10 : gives a kernel panic...

Procexp shows about 100% CPU usage in kernel mode... but it's possible to switch to QEMU console and 'q'uit.

Everything works great when I don't use kernel-kqemu...

Am I missing something ?

#21 lore raw

[Qemu-devel] qemu-0.8.0 and vde-1.5.9 question

In reply to Fabrice Bellard

The system is Kanotix-2005-4
Qemu-0.8.0
Vde-1.5.9

I setup the bridge and add interface tun0 to the bridge (have done it before correctly)

but

/usr/bin/vdeqemu -hda disk-image -m256 -localtime -net vde -net nic,macaddr=54:52:00:12:34:62

reports error:
qemu: invalid option -- '-tun-fd'
qemu exited: vdeqemu quits

I seem to reacall that it worked with qemu-0.7.2 ?

Any ideas?

-ishwar

#22 lore raw

Re: [Qemu-devel] qemu-0.8.0 and vde-1.5.9 question

Quoted 12 lines

The system is Kanotix-2005-4
Qemu-0.8.0
Vde-1.5.9

I setup the bridge and add interface tun0 to the bridge (have done it before correctly)

but

/usr/bin/vdeqemu -hda disk-image -m256 -localtime -net vde -net nic,macaddr=5 4:52:00:12:34:62

Quoted 7 lines

reports error:
qemu: invalid option -- '-tun-fd'
qemu exited: vdeqemu quits

I seem to reacall that it worked with qemu-0.7.2 ?

Any ideas?

Just type qemu and look at its options. They changed since 0.7.2. Likely you want something like

-net socket,fd=5

Also AFAIK you don't need vde anymore since qemu can do the bridging for you (but I haven't used it so take this with a grain of salt).

In general you want to look at what changed when you update s/w.

#23 lore raw

Re: [Qemu-devel] qemu-0.8.0 and vde-1.5.9 question

In reply to Ishwar Rattan
Quoted 9 lines · Ishwar Rattan

The system is Kanotix-2005-4
Qemu-0.8.0
Vde-1.5.9

I setup the bridge and add interface tun0 to the bridge (have done it before correctly)

but

Quoted 8 lines

/usr/bin/vdeqemu -hda disk-image -m256 -localtime -net vde -net nic,macaddr=54:52:00:12:34:62

reports error:
qemu: invalid option -- '-tun-fd'
qemu exited: vdeqemu quits

I seem to reacall that it worked with qemu-0.7.2 ?

qemu network options have changed.

You need vde 1.5.11 or vde2 with qemu 0.8.0 and later versions (includes cvs).

Quoted 11 lines

Any ideas?

-ishwar

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.