How to enable VNC console with kvm hypervisor and ganeti-instance-image install

2,983 views
Skip to first unread message

Matt Gumbel

unread,
Jul 12, 2011, 1:13:32 AM7/12/11
to gan...@googlegroups.com
Hello,

I create an instance using ganeti-instance-image OS and start it up with my ISO of choice. Problem is there is no VNC console...only serial console. I can see the arguments passed to the kvm hypervisor do not include -vnc in the process listing.

Is there something special I need to do to get a vnc console?

thanks,
Matt
Intel opensource technology center

Instance name: oag04
UUID: 927c72ea-521b-449c-a896-04e9934f155a
Serial number: 2
Creation time: 2011-07-11 16:09:23
Modification time: 2011-07-11 16:10:06
State: configured to be up, actual state is up
  Nodes:
    - primary: yyy
    - secondaries:
  Operating system: image+default
  Allocated network port: 11006
  Hypervisor: kvm
    - acpi: default (True)
    - boot_order: default (disk)
    - cdrom2_image_path: default ()
    - cdrom_disk_type: default ()
    - cdrom_image_path: default ()
    - disk_cache: default (default)
    - disk_type: default (paravirtual)
    - floppy_image_path: default ()
    - initrd_path: default ()
    - kernel_args: default (ro)
    - kernel_path:
    - kvm_flag: default ()
    - mem_path: default ()
    - migration_downtime: default (30)
    - nic_type: default (paravirtual)
    - root_path: default (/dev/vda1)
    - security_domain: default ()
    - security_model: default (none)
    - serial_console: default (True)
    - usb_mouse: default ()
    - use_chroot: default (False)
    - use_localtime: default (False)
    - vhost_net: default (False)
    - vnc_bind_address: default ()
    - vnc_password_file: default ()
    - vnc_tls: default (False)
    - vnc_x509_path: default ()
    - vnc_x509_verify: default (False)
  Hardware:
    - VCPUs: 23
    - memory: 61440MiB
    - NICs:
      - nic/0: MAC: aa:00:00:eb:b1:88, IP: 10.23.219.46, mode: bridged, link: br0
  Disk template: plain
  Disks:
    - disk/0: lvm, size 650.0G
      access mode: rw
      logical_id:  xenvg/c7d6c9e2-24d8-4336-8a6b-939dce5f8037.disk0
      on primary:  /dev/xenvg/c7d6c9e2-24d8-4336-8a6b-939dce5f8037.disk0 (253:0)


Iustin Pop

unread,
Jul 12, 2011, 4:17:50 AM7/12/11
to gan...@googlegroups.com
On Mon, Jul 11, 2011 at 10:13:32PM -0700, Matt Gumbel wrote:
> Hello,
>
> I create an instance using ganeti-instance-image OS and start it up with my
> ISO of choice. Problem is there is no VNC console...only serial console. I
> can see the arguments passed to the kvm hypervisor do not include -vnc in
> the process listing.
>
> Is there something special I need to do to get a vnc console?

Disabling the serial console should be all that is needed, I think.

regards,
iustin

Meik Sievertsen

unread,
Jul 12, 2011, 4:25:59 AM7/12/11
to gan...@googlegroups.com
Hello Matt,

On 12.07.2011 07:13, Matt Gumbel wrote:
> Hello,
>
> I create an instance using ganeti-instance-image OS and start it up with
> my ISO of choice. Problem is there is no VNC console...only serial
> console. I can see the arguments passed to the kvm hypervisor do not
> include -vnc in the process listing.
>
> Is there something special I need to do to get a vnc console?
>

You may want to change the vnc_bind_address of your instance (and maybe
adjust it cluster wide).

You can do this with the following command:
gnt-instance modify -H vnc_bind_address=0.0.0.0 oag04

Replace 0.0.0.0 with your hostname if you do not want to access from
external.

The allocated network port is the VNC port you connect to, for your
instance ::11006

If you want to change the vnc_bind_address for all new instances you can
change it cluster-wide:
gnt-cluster modify -H kvm:vnc_bind_address=0.0.0.0

Cheers,
Meik

> [...]


--
Meik Sievertsen
------------------------------------------------------------------
new-data-services GmbH
Anton-Günther-Straße 26
26180 Rastede
------------------------------------------------------------------
email sieve...@new-data-services.de
web http://www.new-data-services.de

phone +49 4402 919110
fax +49 4402 919129
------------------------------------------------------------------
http://gallery2print.de/
http://www.strom-guenstiger.de/
http://www.gastarife-online.de/
------------------------------------------------------------------
Amtsgericht Oldenburg, HRB 121015
Geschäftsführer: Jens Kohlenberg, Meik Sievertsen
Ust-IdNr.: DE 207 624 889

Matt Gumbel

unread,
Jul 12, 2011, 11:37:05 PM7/12/11
to gan...@googlegroups.com
Tried that, but no luck (see gnt-instance info below). Is it possible VNC doesn't work with the kvm hypervisor?

Instance name: xxx
UUID: 7d216f5d-c7e3-46f5-960d-dc33118ad5f2
Serial number: 2
State: configured to be up, actual state is up
  Nodes:
    - primary: xxx
    - secondaries:
  Operating system: image+default
  Allocated network port: 11007
  Hypervisor: kvm
[...]
    - serial_console: False

Iustin Pop

unread,
Jul 13, 2011, 5:36:41 AM7/13/11
to gan...@googlegroups.com
On Tue, Jul 12, 2011 at 08:37:05PM -0700, Matt Gumbel wrote:
> On Tuesday, July 12, 2011 1:17:50 AM UTC-7, Iustin Pop wrote:
> >
> > On Mon, Jul 11, 2011 at 10:13:32PM -0700, Matt Gumbel wrote:
> > > Is there something special I need to do to get a vnc console?
> >
> > Disabling the serial console should be all that is needed, I think.
> >
>
> Tried that, but no luck (see gnt-instance info below). Is it possible VNC
> doesn't work with the kvm hypervisor?

Nope. As said in the other reply, you need to set the vnc_bind_address
to a valid ipv4 or ipv6 value.

regards,
iustin

Matt Gumbel

unread,
Jul 13, 2011, 4:38:34 PM7/13/11
to gan...@googlegroups.com
It worked, thank you very much.
Reply all
Reply to author
Forward
0 new messages