2

I use this command:

virt-install -r 1024 --vcpus=2 --accelerate --nographics -n test -f test.img --cdrom /iso/CentOS.iso

but I doesn't show the text based install:

boot: linux text
Loading vmlinuz.................................
Loading initrd.img..............................................................
................................................................................
...................................
Ready.ÿ

It hangs at Ready.ÿ

any ideas?

Thanks

Zim3r
  • 1,384
  • 5
  • 23
  • 45
  • It's technically not hanging- it's just waiting for you to respond in the graphical terminal (vnc, really). What happens if you append `-x "console=ttyS0"` to the end of your creation command? – qweet Jul 11 '12 at 10:22
  • 1
    @qweet Thanks, it gives me this error: 'ERROR --extra-args only work if specified with --location.' – Zim3r Jul 11 '12 at 10:31
  • what about `virt-install -r 1024 --vcpus=2 --accelerate --nographics -n test -f test.img -l /iso/CentOS.iso -x "console=ttyS0"` ? – qweet Jul 11 '12 at 10:35
  • sorry, it failed again: ERROR Could not find an installable distribution at '/iso/CentOS.iso' The location must be the root directory of an install tree. Domain installation does not appear to have been successful. – Zim3r Jul 11 '12 at 10:46
  • If you use different kernel options at the boot prompt does that give the same result? – whaity Jul 11 '12 at 10:13
  • Thanks, how it that possible? (I use putty) – Zim3r Jul 11 '12 at 10:19
  • why not simply use virt-manager instead of virt-install? – dyasny Jul 31 '12 at 10:17
  • because when I use GUI virt-manager it always freezes and it's really slow. I wasted a lot of times working with virt-manager. – Zim3r Jul 31 '12 at 11:19

1 Answers1

4

--graphics none SHOULD work.

By default RHEL bootup grub chooses graphical install mode if adapter is present. To use text mode installation "text" or "askmethod" must be specified in kernel options i.e. grub and it doesn't matter do you have text console or not. It's impossible to specify kernel options at installation for virt-install. It's possible for normal bootup, but not cd:

--boot kernel=KERNEL,initrd=INITRD,kernel_args="console=/dev/ttyS0"

The best solution is to use PXE bootup - there you can have your own boot menu and settings, but again "--graphics none" should work, but looks like in some circumstances some guys are experiencing problems: KVM Guest installed from console. But how to get to the guest's console?

GioMac
  • 4,444
  • 3
  • 24
  • 41