Gentoo Archives: gentoo-server

From: Preston Hagar <prestonh@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Windows NT4 on KVM+QEMU extremely slow...
Date: Thu, 18 Apr 2013 18:28:51
Message-Id: CAK6zN=2JxfGYapvmKLP=Msmh=GmexQ=-1+3GQODxh2h4=O67aQ@mail.gmail.com
In Reply to: Re: [gentoo-server] Windows NT4 on KVM+QEMU extremely slow... by "Vinícius Ferrão"
1 On Thu, Apr 18, 2013 at 11:29 AM, Vinícius Ferrão <viniciusferrao@×××××××.br
2 > wrote:
3
4 > KVM is enabled in BIOS too.
5 >
6 > I doubled checked it. Disabled and even got a message saying the KVM is
7 > not available when Disabled in BIOS….
8 >
9 > Thanks,
10 >
11 > *Vinícius Ferrão*: Administrador de Sistemas
12 > www.ferrao.eti.br | +55 (21) 8888-2619
13 >
14 > On Apr 18, 2013, at 11:29 AM, Robert Bridge <robert@××××××××.com>
15 > wrote:
16 >
17 > Hi,
18 >
19 > Are you sure your hardware virt isn't disabled in the BIOS? It is, in
20 > my experience, the one BIOS setting the linux kernel doesn't/can't
21 > over-ride.
22 >
23 > Cheers,
24 > RobbieAB
25 >
26 > On 18 April 2013 01:35, Vinícius Ferrão <viniciusferrao@×××××××.br> wrote:
27 >
28 > Hello dudes,
29 >
30 > Thanks for the replies.
31 >
32 > But I've read somewhere that -no-kvm should be enabled in order to run NT4
33 > Properly.
34 >
35 > Anyway, I removed the flag and nothing really happened. It's still slow.
36 > It's usable, but slow. VMWare was much faster.
37 >
38 > And about the RAM issue. It's Windows NT4. I don't think more is necessary.
39 > The machine boots consuming only 30MB. And about the slowness of the system
40 > is during CPU intensive operations.
41 >
42 > Anything else to try dudes?
43 >
44 > Thanks,
45 >
46 > Vinícius Ferrão: Administrador de Sistemas
47 > www.ferrao.eti.br | +55 (21) 8888-2619
48 >
49 > On Apr 17, 2013, at 5:54 PM, Hinnerk van Bruinehsen
50 > <h.v.bruinehsen@×××××××××.de>
51 > wrote:
52 >
53 > On Wed, Apr 17, 2013 at 07:34:00PM +0000, Vinícius Ferrão wrote:
54 >
55 > Hello dudes,
56 >
57 > I'm running Windows NT 4 Terminal Server on QEMU and the performance is too
58 > slow; I don't even know how to debug it and I even don't if this is normal
59 > or not.
60 >
61 > On VMWare Player the performance was much better. And this isn't a
62 > migration. I've reinstalled the NT4 from the ground.
63 >
64 > Anyway; i'm launching the VM with this arguments:
65 > kvm -m 128m -name WinNT4TS -drive file=winnt4ts.raw -cdrom Windows\ NT\ 4\
66 > Terminal\ Server\ Image/WINNT-TSE40.iso -net
67 > nic,model=ne2k_pci,macaddr=00:0c:29:74:fa:b4 -net tap -vga std -cpu
68 > pentium,level=1 -smp 1 -no-acpi -no-hpet -no-kvm -boot c -vnc none
69 > -daemonize
70 >
71 >
72 > Hi,
73 >
74 > iirc the commandline switch --no-kvm disables kvm (so it'S just software
75 > emulated qemu). You disable hardware virtualization accerleration with
76 > it.
77 >
78 > Other than that: more than 128 MB ram will most likely also help to
79 > speed things up.
80 >
81 > WKR
82 > Hinnerk
83 >
84 >
85 >
86 >
87 >
88
89 You might try setting cache=writeback. To do so, after the
90
91 file=winnt4ts.raw
92
93 make it
94
95 file=winnt4ts.raw,cache=writeback
96
97
98 It made a big difference for me with the MS Server 2003 I run with KVM.
99 For reference, here is the kvm command that is run for my Win server 2003
100 VM (I migrated it from VMWare to KVM and now get the same or slightly
101 better performance):
102
103 /usr/bin/kvm -S -M pc-1.0 -cpu qemu64,-svm -enable-kvm -m 2048 -smp
104 1,sockets=1,cores=1,threads=1 -name antitrust -uuid
105 564dbb65-75b3-74bd-7252-d9749ee2697d -nodefconfig -nodefaults -chardev
106 socket,id=charmonitor,path=/var/lib/libvirt/qemu/antitrust.monitor,server,nowait
107 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
108 -no-shutdown -boot c -drive
109 file=/var/data/vm/kvm/antitrust.img,if=none,id=drive-virtio-disk0,format=raw,cache=writeback
110 -device
111 virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0
112 -drive
113 file=/var/data/vm/kvm/virtio-win-0.1-52.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw
114 -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev
115 tap,fd=18,id=hostnet0 -device
116 e1000,netdev=hostnet0,id=net0,mac=00:0c:29:e2:69:7d,bus=pci.0,addr=0x3
117 -chardev pty,id=charserial0 -device
118 isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charparallel0
119 -device isa-parallel,chardev=charparallel0,id=parallel0 -usb -device
120 usb-mouse,id=input0 -vnc 127.0.0.1:2 -vga vmware -device
121 virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4