[Bug 586175] Re: Windows XP/2003 doesn't boot

2011-02-20 Thread Aurelien Jarno
** Changed in: qemu
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.
https://bugs.launchpad.net/bugs/586175

Title:
  Windows XP/2003 doesn't boot

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-10-18 Thread Michael Tokarev
virtio disk is entrely different story, unrelated to this issue.

** Changed in: qemu
   Status: Incomplete = Fix Committed

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-10-17 Thread tekditt
In qemu-kvm-0.12.5-r1 Windows XP/2003 is booting fine on IDE, but it
hangs directly after the first reboot of the Windows setup if you try to
install it on a viostor drive. Windows Vista and higher never had any
problems in any version of qemu-kvm with any drive (IDE and viostor)...

I'm using the binaries of viostor-1.11.1, which I got from this site:
http://www.linux-kvm.com/content/latest-windows-virtio-drivers

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-09-15 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu-kvm - 0.12.5+noroms-0ubuntu6

---
qemu-kvm (0.12.5+noroms-0ubuntu6) maverick; urgency=low

  * debian/fix-CMOS-info-for-drives-defined-with--device.patch: make sure
the CMOS knows about the correct geometry so Windows XP installs
properly. (LP: #586175)
 -- Marc Deslauriers marc.deslauri...@ubuntu.com   Wed, 15 Sep 2010 19:48:15 
-0400

** Changed in: qemu-kvm (Ubuntu)
   Status: New = Fix Released

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-09-15 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/qemu-kvm

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-29 Thread tekditt
This bug is annoying. I don't know who patched what but:

1. I finally was able (with version 0.12.5) to set up a WinXP
installation which is able to boot on its own.

2. But this works only with IDE, if I try to use VirtIO I still can't
boot the installation.

3. I just updated from 0.12.5 to 0.12.5-r1 and again I can't boot the
WinXP installation on IDE.

What the hell are you doing?

I don't know what's wrong but qemu-kvm works with Windows Vista and
above much better than with Windows XP atm. Windows Server 2008 boots on
it's own even with the non-signed viostor drivers.

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-29 Thread tekditt
P.S.: I just read the link posted by Michael.

I have also to mention that this boot problem not only appears by using
the -drive parameter, even the good old -hda got this bug.

I've also tried to correct some funny offsets in the NTFS header, but
all offsets were already set to the right values. And it doesn't boot at
all.

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-29 Thread Michael Tokarev
Does anyone else has similar problem?  With 0.12.4 I were able to repeat
it.  With 0.12.5 all winxp and win2003 installations, existing and new,
just work with either -drive or -hda or with virtio...

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-19 Thread Michael Tokarev
This is fixed by a backport of the mentioned patchset to stable-0.12
branch, in qemu git tree, see
http://git.savannah.gnu.org/gitweb/?p=qemu.git;a=commit;h=6394bd0e05441c363ebb73597c74c951378810e6

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-10 Thread Michael Tokarev
This appears to be fixed in 0.13-tobe by this patch:
http://lists.gnu.org/archive/html/qemu-devel/2010-07/msg00152.html
(hence it's fix released in debian which now has 0.13 in experimental).

** Bug watch added: Debian Bug tracker #588739
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588739

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-10 Thread Michael Tokarev
(and it is also filed agains debian qemu-kvm package, not just qemu --
http://bugs.debian.org/588739 )

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-04 Thread Bug Watch Updater
** Changed in: debian
   Status: New = Fix Released

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-02 Thread Andy Lee Robinson
Great solution Andreas, it worked for a Win2k image which I could only
boot previously using an iso from http://www.resoo.org/docs/ntldr/files/

However, I have a w7 image that I have never managed to boot, apart from
its installation cd image using virt-install

20Gb w7 image:

# losetup /dev/loop0 /vm/w7.img; kpartx -a /dev/loop0
# fdisk -l /dev/loop0

Disk /dev/loop0: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaf12c11f

  Device Boot  Start End  Blocks   Id  System
/dev/loop0p1   *   1  13  1024007  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/loop0p2  132611208670727  HPFS/NTFS
Partition 2 does not end on cylinder boundary.

# hexedit /dev/mapper/loop0p1
   EB 52 90 4E  54 46 53 20  20 20 20 00  02 08 00 00  00 00 00 00  00 
F8 00 00  3F 00 10 00  00 08 00 00  .R.NTFS.?...
0020   00 00 00 00  80 00 80 00  FF 1F 03 00  00 00 00 00  55 21 00 00  00 
00 00 00  02 00 00 00  00 00 00 00  U!..


# hexedit /dev/mapper/loop0p2
   EB 52 90 4E  54 46 53 20  20 20 20 00  02 08 00 00  00 00 00 00  00 
F8 00 00  3F 00 10 00  00 28 03 00  .R.NTFS.?(..
0020   00 00 00 00  80 00 80 00  FF CF 7C 02  00 00 00 00  00 00 0C 00  00 
00 00 00  02 00 00 00  00 00 00 00  ..|.


# kpartx -d /dev/loop0; losetup -d /dev/loop0

I changed location 0x1a to 0xFF on one or other or both partitions and
it still will not boot in virt-manager.

Cheers,
Andy.

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-02 Thread Andreas Jacob
Hi Andy

When i look at your w7 partition table output, then there seems to be a
problem with start/end cylinders.

Your first partitions last cylinder is 13, but also the start cylinder
of your second partition is 13. two partitions should not share the same
cylinder/sector! Something seems to be messed up.

I would create a loop device and then use a deep scan with testdisk on
that loop device. May be it's possible to correct the wrong entrys in
the partition table.

Cheers Andreas

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-02 Thread Jt Loni
I had the same problem.

I.ve tried with VirtualBox and KVM: Win Xp SP3 hang on the same point (mup.sys 
when safe mode)...
Both has the same problem I believe the libvirt maybe the cause.  

So I use Raw Access with VirtualBox that solved my problem

00:00:01.385 [/Devices/piix3ide/0/LUN#0/AttachedDriver/Config/] (level 6)
00:00:01.385   Format string  = VMDK (cb=5)
00:00:01.385   Path   string  = /home/jtloni/.VirtualBox/HardDisks/xp3.vmdk 
(cb=45)

hope will help..

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-02 Thread Andy Lee Robinson
Andreas,

The program that created the disk image seems confused, but it worked for 
creating a VM for FC11.
Windows install seems to run fine, until wanting to boot from the drive it 
created.
I don't know what creates the drive image and geometry, but it is broken.

I think this is what I used to create the VM, but I have messed around
with so many configurations and methods, I'm not sure what is what
anymore.

virt-install --connect qemu:///system -n w7 -r 2048 --vcpus=2 \
--disk path=/vm/w7.img,size=20,sparse=false,format=qcow2 \
-c /vm/w7cd.iso --vnc --noautoconsole \
--os-type windows --os-variant win7 --accelerate --network=bridge:br0 --hvm

How many thousands of people have struggled with this and also got nowhere?
It just looks like the virt-install developers have not tasted their own 
dogfood!

LVM is supposed to be easy - just select vm image and boot, but the more
I read about VMs, kvm, qemu, virtualbox, virsh etc, the more confused I get on 
how they
relate to each other.

testdisk reports this:

~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1 (wtf ??)

 Partition  StartEndSize in sectors
 1 * HPFS - NTFS 2048 206847 204800 [System Reserved]
 2 P HPFS - NTFS   206848   41940991   41734144


Select 1:
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
 Partition  StartEndSize in sectors
 1 * HPFS - NTFS 2048 206847 204800 [System Reserved]

Boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Backup boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
~~


Rebuild BS:
~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
 Partition  StartEndSize in sectors
 1 * HPFS - NTFS 2048 206847 204800 [System Reserved]

filesystem size   204800 204800
sectors_per_cluster   8 8
mft_lcn   8533 8533
mftmirr_lcn   2 2
clusters_per_mft_record   -10 -10
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
~~

Q

Select 2:
~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
 Partition  StartEndSize in sectors
 2 P HPFS - NTFS   206848   41940991   41734144

Boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Backup boot sector
Warning: Incorrect number of heads/cylinder 16 (NTFS) != 1 (HD)
Warning: Incorrect number of sectors per track 63 (NTFS) != 1 (HD)
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
~~

Rebuild BS:
~~
Disk /dev/loop0 - 21 GB / 20 GiB - CHS 41943040 1 1
 Partition  StartEndSize in sectors
 2 P HPFS - NTFS   206848   41940991   41734144

filesystem size   41734144 41734144
sectors_per_cluster   8 8
mft_lcn   786432 786432
mftmirr_lcn   2 2
clusters_per_mft_record   -10 -10
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
~~

It looks a mess.

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-01 Thread Andreas Jacob
I run into the same problem, but the workaround regarding editing the
number of heads in the ntfs partition boot sector did it for me. Little
Howto:

Asume: A raw complete harddisc image within a bootable NTFS partition
with XP or 2k3 on it

Incident: when using these image with kvm based qemu, the system wan't
boot anymore

solution:

1) set up the whole discimage as a loop device
- losetup /dev/loop0 /path/to/my/diskimage.raw

2) let kpartx create drive mappings for all partitions within the loop device
- kpartx -a /dev/loop0

3) you need to know on which partition your NTFS partition resides
- fdisk -l /dev/loop0

4) use the right partition mapping with hex-edit (eg. partition 1)
- hexedit /dev/mapper/loop0p1

5) look on hex position 0x1a, for the count of heads NTFS asumes
- in hexedit type enter and then 1A

6) change the value to 0xFF 
- in hexedit type FF

7) save and exit hexedit
- press Ctrl+X to end 

8) remove the partition mappings
- kpartx -d /dev/loop0

9) remove loop device
- losetup -d /dev/loop0

Hope that helps

Cheers Andreas

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-07-30 Thread James Pulver
I'm getting the same error with restoring an Acronis based image to KVM
on Scientific Linux 5.4. The image is known good, and I just tested to
physical hardware and it boots fine. I hope this can be fixed...

How are people hex editing the disk?

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-07-27 Thread flashydave
I am struggling with the same problem with a WIndows 2003 install under
virt-manager/virsh The byte at 7e1c was already set to 3F. hexediting
the byte at offset 7e1a to FF allowed the system to boot OK.

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-07-27 Thread Mathias Gug
** Changed in: qemu-kvm (Ubuntu)
   Importance: Undecided = Medium

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 586175] Re: Windows XP/2003 doesn't boot

2010-07-25 Thread CurtisNelson
** Also affects: ubuntu
   Importance: Undecided
   Status: New

** Package changed: ubuntu = qemu-kvm (Ubuntu)

-- 
Windows XP/2003 doesn't boot
https://bugs.launchpad.net/bugs/586175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs