From: Stefan Hajnoczi Subject: Re: question regarding early ssh with kvm Date: Wed, 18 Sep 2013 10:14:58 +0200 Message-ID: <20130918081458.GA13359@stefanha-thinkpad.redhat.com> References: <5238AD1C.1040606@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Oliver Zemann Return-path: Received: from mail-ea0-f182.google.com ([209.85.215.182]:38133 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644Ab3IRIPD (ORCPT ); Wed, 18 Sep 2013 04:15:03 -0400 Received: by mail-ea0-f182.google.com with SMTP id o10so3245995eaj.41 for ; Wed, 18 Sep 2013 01:15:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <5238AD1C.1040606@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Sep 17, 2013 at 09:27:24PM +0200, Oliver Zemann wrote: > I would like to run my centos with an encrypted hard drive without > entering the password with vnc (as the connection is not encrypted). > For that i followed the guide on http://roosbertl.blogspot.ch/2012/12/centos6-disk-encryption-with-remote.html > > When i follow the tutorial in VirtualBox, i at least can see that i > create a connection to the machine. > But on my productive server which runs in KVM, i even cant ping the machine. > > Is there some way to print out debug messages (like "ip addr show") > before the mount command has been executed? Maybe some kvm console > driver where i can pipe messages to...? > Also, is virtio_net and virtio_pci enough to load? > > I try to get that working for more than 10 days now, this is really > driving me crazy. In a situation like this a serial console can be helpful. Set the kernel command-line to use the serial port (console=ttyS0) and make sure the VM is configured with a serial port device. This will allow you to follow the boot process. If you need an interactive prompt, check the distro initramfs scripts and set the relevant debug options to get a shell prompt during the boot. Stefan