From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: Install a new guest remotely? Date: Mon, 11 Jan 2010 16:28:05 +0000 Message-ID: <20100111162805.GO1836@redhat.com> References: <4B4B4D95.6070705@binaryfreedom.info> <8D99384881314DC3AFD921018B113057@neilhp> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Neil Aggarwal Return-path: Received: from mx1.redhat.com ([209.132.183.28]:29962 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172Ab0AKQ2K (ORCPT ); Mon, 11 Jan 2010 11:28:10 -0500 Content-Disposition: inline In-Reply-To: <8D99384881314DC3AFD921018B113057@neilhp> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Jan 11, 2010 at 10:20:02AM -0600, Neil Aggarwal wrote: > Hello: > > > is a pain I'm using virt-install but I need X installed, we do not > > install X on our servers at all, and will rather not to. So can I do > > Our KVM servers are remote and do not have X installed. > > When we install a guest, we tell it to use vnc > by adding --vnc --noautoconsole to the virt-install > command. Yep, that is the best way to run virt-install on a head-less machine > Then use virsh vncdisplay to get the port on the server > to connect your VNC viewer. We use an SSH tunnel > for the connection to ensure security. You can also use "virt-viewer" to automate that bit of the process virt-viewer --connect qemu+ssh://root@servername/system GUESTNAME and virt-viewer will connect to libvirt on the remote host, query the VNC port and setup an SSH tunnel for the VNC connection. It is essentially a VNC client that knows about libvirt. It can do TLS or SASL security instead of SSH tunnels too if desired Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|