[Bug 569394] Re: Can't use kvm -curses with virtual or ec2 kernels

arun mittal arunncce2089 at gmail.com
Sun Aug 26 21:45:54 UTC 2012


I still see that error

I installed KVM and create VM in /root. I used following command.

ubuntu-vm-builder kvm lucid --arch 'amd64' --mem '1024' --rootsize
'20480' --kernel-flavour 'generic' --hostname 'ubuntu' --mirror
'http://archive.ubuntu.com/ubuntu' --components 'main' --name 'blah'
--user 'ubuntu' --pass 'ubuntu' --removepkg=cron --dest=/root/vm1
--addpkg openssh-server

I see it created run.sh  tmp3PEhI_.qcow2 in /root/vm1/. When i do
./run.sh -curses, I still see "640 x 480 Graphic mode". I added
blacklist vga16fb in /etc/modprobe.d/blacklist.conf but it did not work.

I followed the post http://blog.zorinaq.com/?e=7, but it did not help
either. I am not sure what am i doing wrong.

The content of my run.sh is

#!/bin/sh

exec kvm -m 1024 -smp 1 -drive file=tmp3PEhI_.qcow2 "$@"

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/569394

Title:
  Can't use kvm -curses with virtual or ec2 kernels

Status in “initramfs-tools” package in Ubuntu:
  Fix Released
Status in “linux-ec2” package in Ubuntu:
  Fix Released
Status in “qemu-kvm” package in Ubuntu:
  Fix Released

Bug description:
  Hi

  I'd like to run kvm -kernel <kernel file> -hda <UEC image> -append
  "/proc/cmdline stuff" but this fails badly with both the EC2 and
  Virtual kernels.

  With the files from:
  http://uec-images.ubuntu.com/lucid/current/unpacked/

  Trying to run:
  kvm -kernel lucid-server-uec-amd64-vmlinuz-ec2 -hda lucid-server-uec-amd64.img -curses -append "root=/dev/sda"
  or:
  kvm -kernel lucid-server-uec-amd64-vmlinuz-virtual -hda lucid-server-uec-amd64.img -curses -append "root=/dev/sda"

  Fails awfully.

  I tried all combinations of nomodeset, vga=none, modeset=0,
  vga.nomodeset, vga.modeset=0, vga=ask and what not, but all failed.

  During the early kernel init, the VGA adapter emulated by kvm switches to graphics mode after:
  [...]
  [    1.073901] EXT3-fs: mounted filesystem with ordered data mode.              
  [    1.074640] VFS: Mounted root (ext3 filesystem) readonly on device 8:0.      
  [    1.075983] devtmpfs: mounted                                                
  [    1.076955] Freeing unused kernel memory: 796k freed                         
  [    1.093995] Write protecting the kernel read-only data: 7788k                

  I just get "640 x 480 Graphic mode" filling my whole remote terminal,
  and can't interact with the curses vm anymore.

  the -ec2 kernels in particular give some spectacularly corrupted
  output.

  Thanks,

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: linux-ec2 (not installed)
  ProcVersionSignature: Ubuntu 2.6.32-21.32-server 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-21-server x86_64
  Architecture: amd64
  Date: Sat Apr 24 13:23:44 2010
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/zsh
  SourcePackage: linux-meta-ec2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/569394/+subscriptions




More information about the foundations-bugs mailing list