[Bug 256416] Re: Hardy installer in VM fails with fatal grub error

2008-08-14 Thread Amit Shah
I got this error while trying intrepid-alpha4 on the kvm.git tree (which
has the patch mentioned above).

Command line used:

~/qemu.pt/bin/qemu-system-x86_64 -m 1024 /guests/kubuntu-intrepid-
alpha4-64.qcow2 -cdrom ~/images/intrepid-desktop-amd64.iso -boot d

-- 
Hardy installer in VM fails with fatal grub error
https://bugs.launchpad.net/bugs/256416
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 256416] Re: Hardy installer in VM fails with fatal grub error

2008-08-11 Thread TJ
It seems the RIP is caused by a bug in the recent kvm release. In this
case, kvm-72. I've put a fixed hardy kvm-72 in my PPA for anyone that
wants it.

It is documented with a work-around/fix at:

http://thread.gmane.org/gmane.comp.emulators.kvm.devel/20012/focus=20235

which is a simple patch to ensure 64-bit registers are saved for
SYSENTERs:

diff --git a/qemu/target-i386/cpu.h b/qemu/target-i386/cpu.h
index 7e95900..61c39d4 100644
--- a/qemu/target-i386/cpu.h
+++ b/qemu/target-i386/cpu.h
@@ -542,8 +542,8 @@ typedef struct CPUX86State {

 /* sysenter registers */
 uint32_t sysenter_cs;
-uint32_t sysenter_esp;
-uint32_t sysenter_eip;
+uint64_t sysenter_esp;
+uint64_t sysenter_eip;
 uint64_t efer;
 uint64_t star;


** Changed in: virt-manager (Ubuntu)
   Status: New = Invalid

-- 
Hardy installer in VM fails with fatal grub error
https://bugs.launchpad.net/bugs/256416
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 256416] Re: Hardy installer in VM fails with fatal grub error

2008-08-09 Thread TJ
I've not captured and copied reports from the VM LiveCD log files.

/var/log/messages:

Aug  9 16:23:49 ubuntu python: log-output -t ubiquity chroot /target 
update-initramfs -c -k 
2.6.24-19-generic
Aug  9 16:23:49 ubuntu python: log-output -t ubiquity umount 
/target/tmp/.X11-unix
Aug  9 16:23:49 ubuntu python: log-output -t ubiquity chroot /target umount /sys
Aug  9 16:23:49 ubuntu python: log-output -t ubiquity chroot /target umount 
/proc
Aug  9 16:23:49 ubuntu python: log-output -t ubiquity mount --bind /proc 
/target/proc
Aug  9 16:23:49 ubuntu python: log-output -t ubiquity mount --bind /dev 
/target/dev
Aug  9 16:23:49 ubuntu grub-installer: info: architecture: amd64/generic
Aug  9 16:23:50 ubuntu grub-installer: info: Identified partition label for 
/dev/sda1: msdos
Aug  9 16:23:50 ubuntu grub-installer: dpkg - warning: ignoring request to 
remove grub-pc which isn't 
installed.
Aug  9 16:23:50 ubuntu os-prober: debug: running 
/usr/lib/os-probes/50mounted-tests on /dev/sda5
Aug  9 16:23:51 ubuntu grub-installer: info: Installing grub on '/dev/sda'
Aug  9 16:23:51 ubuntu grub-installer: info: grub-install supports --no-floppy
Aug  9 16:23:51 ubuntu grub-installer: info: Running chroot /target 
grub-install  --no-floppy  /dev/sda
Aug  9 16:23:51 ubuntu grub-installer: You shouldn't call /sbin/grub-install. 
Please call 
/usr/sbin/grub-install instead!
Aug  9 16:23:51 ubuntu grub-installer: 
Aug  9 16:23:51 ubuntu kernel: [  703.079694] CPU 0 
Aug  9 16:23:51 ubuntu kernel: [  703.079695] Modules linked in: usb_storage 
libusual nls_utf8 ufs qnx4 
hfsplus hfs minix ntfs msdos xfs reiserfs jfs ext3 jbd vfat fat ext2 mbcache 
ipv6 af_packet rfcomm l2cap 
bluetooth ppdev lp cpufreq_userspace cpufreq_stats cpufreq_powersave 
cpufreq_ondemand freq_table 
cpufreq_conservative video output sbs sbshc container dock ac iptable_filter 
ip_tables x_tables evdev 
serio_raw parport_pc parport pcspkr psmouse i2c_piix4 i2c_core button battery 
squashfs loop unionfs 
nls_cp437 isofs sg sd_mod sr_mod cdrom 8139too floppy uhci_hcd 8139cp mii 
usbcore ata_piix pata_acpi 
ata_generic libata scsi_mod thermal processor fan fbcon tileblit font bitblit 
softcursor fuse
Aug  9 16:23:51 ubuntu kernel: [  703.079736] Pid: 20428, comm: grub Not 
tainted 2.6.24-19-generic #1
Aug  9 16:23:51 ubuntu kernel: [  703.079737] RIP: 
0010:[usbcore:__crc_usb_ifnum_to_if+0x66ba8a/0x85e6739]  
[usbcore:__crc_usb_ifnum_to_if+0x66ba8a/0x85e6739]
Aug  9 16:23:51 ubuntu kernel: [  703.079750] RSP: 0018:  
EFLAGS: 00010046
Aug  9 16:23:51 ubuntu kernel: [  703.079751] RAX: 007a RBX: 
ffdfbb06 RCX: 

Aug  9 16:23:51 ubuntu kernel: [  703.079753] RDX:  RSI: 
 RDI: 

Aug  9 16:23:51 ubuntu kernel: [  703.079754] RBP: ffdfbadc R08: 
 R09: 

Aug  9 16:23:51 ubuntu kernel: [  703.079756] R10:  R11: 
0200 R12: 

Aug  9 16:23:51 ubuntu kernel: [  703.079758] R13:  R14: 
 R15: 

Aug  9 16:23:51 ubuntu kernel: [  703.079767] FS:  () 
GS:805b9000() 
knlGS:
Aug  9 16:23:51 ubuntu kernel: [  703.079769] CS:  0010 DS: 002b ES: 002b CR0: 
8005003b
Aug  9 16:23:51 ubuntu grub-installer: Segmentation fault
Aug  9 16:23:51 ubuntu kernel: [  703.079770] CR2: 80228ca0 CR3: 
1f26 CR4: 
06e0
Aug  9 16:23:51 ubuntu kernel: [  703.079777] DR0:  DR1: 
 DR2: 

Aug  9 16:23:51 ubuntu kernel: [  703.079784] DR3:  DR6: 
0ff0 DR7: 
0400
Aug  9 16:23:51 ubuntu kernel: [  703.079787] Process grub (pid: 20428, 
threadinfo 81001d57c000, task 
81001d548fc0)
Aug  9 16:23:51 ubuntu kernel: [  703.079788] Stack:  80637e78 
81001d548fc0 80637f58 

Aug  9 16:23:51 ubuntu kernel: [  703.079792]   
  
8020dadb
Aug  9 16:23:51 ubuntu kernel: [  703.079795]  80637f58 
 80637f58 
8047a750
Aug  9 16:23:51 ubuntu kernel: [  703.079797] Call Trace:
Aug  9 16:23:51 ubuntu kernel: [  703.079799]  #DF  
[show_registers+0xab/0x120] 
show_registers+0xab/0x120
Aug  9 16:23:51 ubuntu kernel: [  703.079868]  [__die+0x80/0xe0] __die+0x80/0xe0
Aug  9 16:23:51 ubuntu kernel: [  703.079873]  [die+0x40/0x70] die+0x40/0x70
Aug  9 16:23:51 ubuntu kernel: [  703.079877]  [do_double_fault+0x5a/0x60] 
do_double_fault+0x5a/0x60
Aug  9 16:23:51 ubuntu kernel: [  703.079880]  [double_fault+0x7d/0x90] 
double_fault+0x7d/0x90
Aug  9 16:23:51 ubuntu kernel: [  703.079890]  EOE 
Aug  9 16:23:51 ubuntu kernel: [  703.079891] 
Aug  9 16:23:51 ubuntu kernel: [  703.079891] Code:  Bad RIP value.
Aug  9 16:23:51 ubuntu kernel: [  703.079895]  RSP 
Aug  9 16:23:51