KVM machines became corrupted after reboot (i386 only)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: qemu-kvm
Hi,
I've just upgraded my Linux to Kubuntu 9.10 (i386).
I'm using KVM and virt-manager on it.
Unfortunately my VM boxes became corrupted after I install new software on these or create some files.
Here is the VM definition:
$ virsh dumpxml ubuntu
Connecting to uri: qemu:///system
<domain type='kvm' id='27'>
<name>
<uuid>
<memory>
<currentMemor
<vcpu>1</vcpu>
<os>
<type arch='i686' machine=
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='file' device='disk'>
<source file='/
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='network'>
<mac address=
<source network='default'/>
<target dev='vnet0'/>
<model type='e1000'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5911' autoport='no' listen=
<video>
<model type='vga' vram='8192' heads='1'/>
</video>
</devices>
<seclabel type='dynamic' model='apparmor'>
<label>
<imagelabel
</seclabel>
</domain>
I'm trying to install Ubuntu Server Edition 9.10 but after a few reset there is a problem with swap partition on the screen while booting:
>>>
One or more of the mounts listed in /etc/fstab cannot yet be mounted:
(ESC for recovery shell)
swap: waiting for UUID=903d9649-
<<<
Then when trying to recreate swap on /dev/sda5 I get:
>>>
root@ubuntu:~# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000dd054
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1243 9984366 83 Linux
/dev/sda2 1244 1305 498015 5 Extended
/dev/sda5 1244 1305 497983+ 82 Linux swap / Solaris
root@ubuntu:~# swapon -a
swapon: cannot find the device for UUID=903d9649-
root@ubuntu:~# swapon /dev/sda5
swapon: /dev/sda5: read swap header failed: Invalid argument
root@ubuntu:~# mkswap /dev/sda5
Setting up swapspace version 1, size = 497976 KiB
no label, UUID=38153005-
root@ubuntu:~# swapon /dev/sda5
swapon: /dev/sda5: read swap header failed: Invalid argument
<<<<
Later I tried to install some software:
# apt-get install azureus
and during the package installation I saw strange characters on the screen and everything stopped working.
After a reset system was dead - the grub stopped booting - it seems my entire virtual disk became totally corrupted.
>>>
GRUB loading.
error: invalid arch independent ELF magic
grub rescue>
<<<
The above message is almost every time different
I've tried different disk types: ide, scsi, virtio - always the same.
Also the same when trying to install Kubuntu 9.10 under KVM.
Changed in qemu-kvm (Ubuntu): | |
importance: | Undecided → Medium |
Changed in qemu-kvm (Ubuntu): | |
status: | Incomplete → Confirmed |
Upgrading a Jaunty vm to Karmic works for me, but a new Karmic install fails with the same error.
At some point I manage to update fstab after a mkswap && swapon and it worked on reboot. But after a reboot of the host the problem was back.