[Qemu-devel] RE: For the curious... Host: WinXP Home,Guest: Win2k3

2006-03-09 Thread Nathan Kunkee

When I used -std-vga, the activation worked.

L8tr-


Message: 7
Date: Sun, 05 Mar 2006 19:36:30 -0600
From: "Nathan Kunkee" <[EMAIL PROTECTED]>
Subject: [Qemu-devel] For the curious... Host: WinXP Home,  Guest: Win
2k3 SP1+RC2
To: qemu-devel@nongnu.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed

Hi! For the curious, I was built QEMU from CVS sources and loaded the
following over the weekend:
Host: Win XP Home, 512M RAM, SP2, 2.4 GHz
Guest: Win 2003, SP 1 + RC 2 (trial version download from Microsoft)
My command line was:
start /b "qemu" .\qemu.exe -L . -m 192 -cdrom x11-03905.iso -hda disk1.img
-hdb disk2.img -localtime -net user -net nic,model=rtl8139 %1 %2

disk1.img and disk2.img are the same size and I created them with the built
in fsutil program.

My first reboot after setting up the image reported a disk error after the
BIOS check, and before any Windows stuff loaded. After a fresh start of
QEMU, I have not seen that error again.

However, Windows Activation will not run. I had not specified the network
card model during the initial install, and if there is a default, Windows
did not find it. So, the network card was added after the system was already
running, and the Activation program was waiting in the system tray. Whenever
I run the Activation program, part of the window loads, and the guest system
enters an infinite loop. Windows will eventually report this as STOP 0xEA on
the cirrus driver, dump physical memory, and reboot.

In contrast, Firefox runs just fine on the guest system.

Later-
Nathan




___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] [FYI] gentoo ebuilds for cvs-version

2006-03-09 Thread Sven Köhler
Hi,

are there any Gentoo-users out there?

Well, here are 2 ebuilds to use newest qemu-version from CVS:

http://bugs.gentoo.org/show_bug.cgi?id=125668


Greetings
  Sven



___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] [PATCH] Set hostname in DHCP response

2006-03-09 Thread Ed Swierk
Here is a patch that sets the hostname in the DHCP response generated
by qemu's user-net DHCP server, and adds a new -hostname command line
option to specify the value.

If the guest OS is configured properly, the value received in the DHCP
response is automatically used to set the machine's hostname. (In Red
Hat/Fedora Linuxes, this happens if HOSTNAME is not hardcoded in
/etc/sysconfig/network.)

Feedback welcome.

--Ed
diff -BurN qemu-snapshot-2006-03-06_23.orig/slirp/bootp.c qemu-snapshot-2006-03-06_23/slirp/bootp.c
--- qemu-snapshot-2006-03-06_23.orig/slirp/bootp.c	2005-06-05 17:11:42.0 +
+++ qemu-snapshot-2006-03-06_23/slirp/bootp.c	2006-03-10 07:11:19.0 +
@@ -228,6 +228,16 @@
 val = htonl(LEASE_TIME);
 memcpy(q, &val, 4);
 q += 4;
+
+if (slirp_hostname && *slirp_hostname) {
+val = strlen(slirp_hostname);
+if (val > 32)
+val = 32;
+*q++ = RFC1533_HOSTNAME;
+*q++ = val;
+memcpy(q, slirp_hostname, val);
+q += val;
+}
 }
 *q++ = RFC1533_END;
 
diff -BurN qemu-snapshot-2006-03-06_23.orig/slirp/libslirp.h qemu-snapshot-2006-03-06_23/slirp/libslirp.h
--- qemu-snapshot-2006-03-06_23.orig/slirp/libslirp.h	2005-06-05 17:11:42.0 +
+++ qemu-snapshot-2006-03-06_23/slirp/libslirp.h	2006-03-10 06:47:32.0 +
@@ -32,6 +32,7 @@
int guest_port);
 
 extern const char *tftp_prefix;
+extern const char *slirp_hostname;
 
 #ifdef __cplusplus
 }
diff -BurN qemu-snapshot-2006-03-06_23.orig/slirp/slirp.c qemu-snapshot-2006-03-06_23/slirp/slirp.c
--- qemu-snapshot-2006-03-06_23.orig/slirp/slirp.c	2005-09-03 10:45:09.0 +
+++ qemu-snapshot-2006-03-06_23/slirp/slirp.c	2006-03-10 06:46:28.0 +
@@ -25,6 +25,8 @@
 /* XXX: suppress those select globals */
 fd_set *global_readfds, *global_writefds, *global_xfds;
 
+const char *slirp_hostname = NULL;
+
 #ifdef _WIN32
 
 static int get_dns_addr(struct in_addr *pdns_addr)
diff -BurN qemu-snapshot-2006-03-06_23.orig/vl.c qemu-snapshot-2006-03-06_23/vl.c
--- qemu-snapshot-2006-03-06_23.orig/vl.c	2006-02-20 00:33:36.0 +
+++ qemu-snapshot-2006-03-06_23/vl.c	2006-03-10 06:45:32.0 +
@@ -4183,6 +4183,7 @@
 #endif
"-redir [tcp|udp]:host-port:[guest-host]:guest-port\n"
"redirect TCP or UDP connections from host to guest [-net user]\n"
+   "-hostname name  set hostname in DHCP responses\n"
 #endif
"\n"
"Linux boot specific:\n"
@@ -4267,6 +4268,7 @@
 QEMU_OPTION_tftp,
 QEMU_OPTION_smb,
 QEMU_OPTION_redir,
+QEMU_OPTION_hostname,
 
 QEMU_OPTION_kernel,
 QEMU_OPTION_append,
@@ -4332,6 +4334,7 @@
 { "smb", HAS_ARG, QEMU_OPTION_smb },
 #endif
 { "redir", HAS_ARG, QEMU_OPTION_redir },
+{ "hostname", HAS_ARG, QEMU_OPTION_hostname },
 #endif
 
 { "kernel", HAS_ARG, QEMU_OPTION_kernel },
@@ -4785,6 +4788,9 @@
 case QEMU_OPTION_redir:
 net_slirp_redir(optarg);
 break;
+case QEMU_OPTION_hostname:
+slirp_hostname = optarg;
+break;
 #endif
 #ifdef HAS_AUDIO
 case QEMU_OPTION_audio_help:
___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel