OS Parameters validation failed on node host.x.x.x : Directory for OS default not found in search path

522 views
Skip to first unread message

Bukar

unread,
Jan 5, 2016, 7:41:24 AM1/5/16
to ganeti

First

I have been trying to add an instance that can boot from iso the first time to install OS, but I have been having a lots of challenges. I am working with Ubuntu 14.04 LTS

root@host:~# gnt-instance add -t plain -o default+CentOS-6.5 -s 50g -n host.x.x.x  --no-start --no-install -H kvm:boot_order=cdrom,cdrom_image_path=/ios/CentOS-6.5-x86_64-minimal.iso test.x.x.x

Failure: command execution error:

OS Parameters validation failed on node host.x.x.x : Directory for OS default not found in search path

the correct directory is actually stated as indicated above, yet I got the above error which indicates that I have left somethings out.

Output of gnt-os list is below:

root@host:~# gnt-os list

Name

debootstrap+default

 

The output of Tail /var/log/ganeti/commands.log is below:

File "/usr/share/ganeti/2.12/ganeti/cli.py", line 2464, in SubmitOpCode

    reporter=reporter)

  File "/usr/share/ganeti/2.12/ganeti/cli.py", line 2443, in PollJob

    return GenericPollJob(job_id, _LuxiJobPollCb(cl), reporter)

  File "/usr/share/ganeti/2.12/ganeti/cli.py", line 2265, in GenericPollJob

    errors.MaybeRaise(msg)

  File "/usr/share/ganeti/2.12/ganeti/errors.py", line 519, in MaybeRaise

    raise errcls(*args)

OpExecError: OS Parameters validation failed on node host.x.x.x : Directory for OS default not found in search path

 

Really I know something is missing, but I couldn’t fix it. Aside specifying the part to which the iso OS is saved while issuing gnt-instance add command , do I need to do anything or do I need to copy the iso to the debootstrap directory. As it is, the correct part of the directory to the iso is specified, but yet I still get the above error I am a newB, kindly assist.

 

Secondly,

I have already created an instance specifying  debootstrap+default , but  I can’t console into it.

Running gnt-instance console instance.x.x.x just hang, I have been reading up, but I couldn’t solve the problem

Below is the command I used to create the instance, output of gnt-instance info and gnt-instance list

 

gnt-instance add -t plain -o debootstrap+default -s 50g -n host.x.x.x  instance1.x.x.x   

  I started the instance using

gnt-instance start instance1.x.x.x   

root@host:~# gnt-instance list

Instance        Hypervisor OS                  Primary_node     Status  Memory

instance1.x.x.x   kvm        debootstrap+default host.x.x.x  running   128M

 

root@host:~# gnt-instance info instance1.x.x.x  

- Instance name: instance1.x.x.x  

  UUID: e9d6923b-6ef7-42fe-ba2e-c6deaa81fc67

  Serial number: 13

  Creation time: 2016-01-04 10:36:05

  Modification time: 2016-01-04 16:00:53

  State: configured to be up, actual state is up

  Nodes:

    - primary: host.x.x.x

      group: default (UUID 20843416-894c-4e56-8b4c-ff7b3d60392b)

    - secondaries:

  Operating system: debootstrap+default

  Operating system parameters:

  Allocated network port: 11000

  Hypervisor: kvm

  console connection: vnc to host.x.x.x :11000 (display 5100)

  Hypervisor parameters:

    acpi: default (True)

    boot_order: default (disk)

    cdrom2_image_path: default ()

    cdrom_disk_type: default ()

    cdrom_image_path: default ()

    cpu_cores: default (0)

    cpu_mask: default (all)

    cpu_sockets: default (0)

    cpu_threads: default (0)

    cpu_type: default ()

    disk_aio: default (threads)

    disk_cache: default (default)

    disk_type: default (paravirtual)

    floppy_image_path: default ()

    initrd_path: default ()

    kernel_args: default (ro)

    kernel_path: default ()

    keymap: default ()

    kvm_extra: default ()

    kvm_flag: default ()

    kvm_path: default (/usr/bin/kvm)

    machine_version: default ()

    mem_path: default ()

    migration_caps: default ()

    migration_downtime: default (30)

    nic_type: default (paravirtual)

    reboot_behavior: default (reboot)

    root_path: default (/dev/vda1)

    security_domain: default ()

    security_model: default (none)

    serial_console: default (True)

    serial_speed: default (38400)

    soundhw: default ()

    spice_bind: default ()

    spice_image_compression: default ()

    spice_ip_version: default (0)

    spice_jpeg_wan_compression: default ()

    spice_password_file: default ()

    spice_playback_compression: default (True)

    spice_streaming_video: default ()

    spice_tls_ciphers: default (HIGH:-DES:-3DES:-EXPORT:-ADH)

    spice_use_tls: default (False)

    spice_use_vdagent: default (True)

    spice_zlib_glz_wan_compression: default ()

    usb_devices: default ()

    usb_mouse: default ()

    use_chroot: default (False)

    use_localtime: default (False)

    user_shutdown: default (False)

    vga: default ()

    vhost_net: default (False)

    virtio_net_queues: default (1)

    vnc_bind_address: default (0.0.0.0)

    vnc_password_file: default ()

    vnc_tls: default (False)

    vnc_x509_path: default ()

    vnc_x509_verify: default (False)

    vnet_hdr: default (True)

  Back-end parameters:

    always_failover: default (False)

    auto_balance: default (True)

    maxmem: default (128)

    memory: default (128)

    minmem: default (128)

    spindle_use: default (1)

    vcpus: default (1)

  NICs:

    - nic/0:

      MAC: aa:00:00:af:d4:91

      IP: None

      mode: bridged

      link: br0

      vlan:

      network: None

      UUID: 767697ad-a409-494d-92fa-41f68d17682f

      name: None

  Disk template: plain

  Disks:

    - disk/0: plain, size 50.0G

      access mode: rw

      logical_id: ganeti/5811850f-42cb-4d8e-a4c6-9cb6890efe1b.disk0

      on primary: /dev/ganeti/5811850f-42cb-4d8e-a4c6-9cb6890efe1b.disk0 (252:0)

      name: None

      UUID: 28684354-6be6-4991-96d3-f2d1efcd0b85

root@host:~#

 

and

gnt-cluster verify

root@host:~# gnt-cluster verify

Submitted jobs 160, 161

Waiting for job 160 ...

Tue Jan  5 13:05:02 2016 * Verifying cluster config

Tue Jan  5 13:05:02 2016 * Verifying cluster certificate files

Tue Jan  5 13:05:02 2016 * Verifying hypervisor parameters

Tue Jan  5 13:05:02 2016 * Verifying all nodes belong to an existing group

Waiting for job 161 ...

Tue Jan  5 13:05:03 2016 * Verifying group 'default'

Tue Jan  5 13:05:03 2016 * Gathering data (1 nodes)

Tue Jan  5 13:05:03 2016 * Gathering information about nodes (1 nodes)

Tue Jan  5 13:05:05 2016 * Gathering disk information (1 nodes)

Tue Jan  5 13:05:05 2016 * Verifying configuration file consistency

Tue Jan  5 13:05:05 2016 * Verifying node status

Tue Jan  5 13:05:05 2016   - ERROR: node host.x.x.x : OS 'debootstrap' has multiple entries (first one shadows the rest): /srv/ganeti/os/debootstrap, /usr/share/ganeti/os/debootstrap

Tue Jan  5 13:05:05 2016 * Verifying instance status

Tue Jan  5 13:05:05 2016 * Verifying orphan volumes

Tue Jan  5 13:05:05 2016 * Verifying N+1 Memory redundancy

Tue Jan  5 13:05:05 2016 * Other Notes

Tue Jan  5 13:05:05 2016   - NOTICE: 1 non-redundant instance(s) found.

Tue Jan  5 13:05:06 2016 * Hooks Results

 

Kindly assist.

Benjamin Redling

unread,
Jan 5, 2016, 7:50:33 AM1/5/16
to gan...@googlegroups.com
On 2016-01-05 13:41, Bukar wrote:
> *I have been trying to add an instance that can boot from iso the first
> time to install OS, but I have been having a lots of challenges. I am
> working with Ubuntu 14.04 LTS*
>
> *root@host:~# gnt-instance add -t plain -o default+CentOS-6.5 -s 50g -n

default+CentOS+6.5 is not in your os list. You should reread the
documentation on the -o parameter here:
http://docs.ganeti.org/ganeti/current/man/gnt-instance.html

> OS Parameters validation failed on node host.x.x.x : Directory for OS
> default not found in search path
>
> *the correct directory is actually stated as indicated above, yet I got
> the above error which indicates that I have left somethings out.*
>
> *Output of gnt-os list is below:*
>
> *root@host:~# gnt-os list*
>
> *Name*
>
> *debootstrap+default*

you might want to read how to have -o ganeti-os-noop and it explains the
whole process of booting from iso very well:
https://nsrc.org/workshops/2014/btnog/raw-attachment/wiki/Track2Agenda/ex-ganeti-instance-iso.htm

I found the nsrc.org resources all very helpful (troubleshooting serial
console, missing bootloader in wheezy instances, ...)

Regards,
Benjamin
--
FSU Jena | JULIELab.de/Staff/Benjamin+Redling.html
vox: +49 3641 9 44323 | fax: +49 3641 9 44321

Bukar

unread,
Jan 6, 2016, 6:29:15 AM1/6/16
to ganeti
Thank you,
I really appreciate, will read up from the links you provided.
Thank you.
Message has been deleted

Bukar

unread,
Jan 8, 2016, 9:35:42 AM1/8/16
to ganeti

I have successfully created the instance, but I  still cant connect to the console, I have installed a remote desktop viewer, and a vnc viewer, but yet I still cant connect to the console using either of them. Below is the gnt instance and gnt-cluster verify command output to provide more information.
Your help will really be appreciated. 

~# gnt-cluster verify

Submitted jobs 302, 303
Waiting for job 302 ...
Fri Jan  8 15:14:33 2016 * Verifying cluster config
Fri Jan  8 15:14:33 2016 * Verifying cluster certificate files
Fri Jan  8 15:14:33 2016 * Verifying hypervisor parameters
Fri Jan  8 15:14:33 2016 * Verifying all nodes belong to an existing group
Waiting for job 303 ...
Fri Jan  8 15:14:34 2016 * Verifying group 'default'
Fri Jan  8 15:14:34 2016 * Gathering data (1 nodes)
Fri Jan  8 15:14:34 2016 * Gathering information about nodes (1 nodes)
Fri Jan  8 15:14:35 2016 * Gathering disk information (1 nodes)
Fri Jan  8 15:14:35 2016 * Verifying configuration file consistency
Fri Jan  8 15:14:35 2016 * Verifying node status
Fri Jan  8 15:14:35 2016   - ERROR: node host.x.x.x : OS 'debootstrap' has multiple entries (first one shadows the rest): /srv/ganeti/os/debootstrap, /usr/share/ganeti/os/debootstrap
Fri Jan  8 15:14:35 2016 * Verifying instance status
Fri Jan  8 15:14:35 2016 * Verifying orphan volumes
Fri Jan  8 15:14:35 2016 * Verifying N+1 Memory redundancy
Fri Jan  8 15:14:35 2016 * Other Notes
Fri Jan  8 15:14:35 2016   - NOTICE: 2 non-redundant instance(s) found.
Fri Jan  8 15:14:35 2016 * Hooks Results



gnt-instance list


Instance         Hypervisor OS                  Primary_node     Status  Memory

reg.x.x.x  kvm        debootstrap+default host.x.x.x  running   128M
test.x.x.x  kvm        noop                host.x.x.x  running   1.0G

gnt-instance info test.x.x.x
- Instance name: test.x.x.x
  UUID: ca711a0b-5e4f-4b36-9abe-aaad573d7a4a
  Serial number: 7
  Creation time: 2016-01-08 11:44:30
  Modification time: 2016-01-08 13:50:57


  State: configured to be up, actual state is up
  Nodes:
    - primary: host.x.x.x
      group: default (UUID 20843416-894c-4e56-8b4c-ff7b3d60392b)
    - secondaries:

  Operating system: noop
  Operating system parameters:
  Allocated network port: 11001
  Hypervisor: kvm
  console connection: vnc to host.x.x.x :11001 (display 5101)


  Hypervisor parameters:
    acpi: default (True)
    boot_order: default (disk)
    cdrom2_image_path: default ()
    cdrom_disk_type: default ()

    cdrom_image_path: /ios/CentOS-6.5-x86_64-minimal.iso

    maxmem: 1024
    memory: default (1024)
    minmem: 256


    spindle_use: default (1)
    vcpus: default (1)
  NICs:
    - nic/0:

      MAC: aa:00:00:29:cf:4c


      IP: None
      mode: bridged
      link: br0
      vlan:
      network: None

      UUID: 910c5f29-627d-4db4-9b71-c105b7151cc2


      name: None
  Disk template: plain
  Disks:
    - disk/0: plain, size 50.0G
      access mode: rw

      logical_id: ganeti/dd7a0ae0-eaf1-4ca5-8b73-2fb61e67b363.disk0
      on primary: /dev/ganeti/dd7a0ae0-eaf1-4ca5-8b73-2fb61e67b363.disk0 (252:1)
      name: None
      UUID: 9a3c360e-4380-4acd-ba73-f54b5b7f3d88



tail /var/log/ganeti/commands.log


  File "/usr/share/ganeti/2.12/ganeti/cli.py", line 2443, in PollJob
    return GenericPollJob(job_id, _LuxiJobPollCb(cl), reporter)
  File "/usr/share/ganeti/2.12/ganeti/cli.py", line 2265, in GenericPollJob
    errors.MaybeRaise(msg)
  File "/usr/share/ganeti/2.12/ganeti/errors.py", line 519, in MaybeRaise
    raise errcls(*args)

OpExecError: OS Parameters validation failed on node host.x.x.x : Directory for OS default not found in search path
2016-01-08 12:04:08,801: gnt-instance console pid=4110 INFO RunCmd ssh -oEscapeChar=none -o HashKnownHosts=no -oGlobalKnownHostsFile=/var/lib/ganeti/known_hosts -oUserKnownHostsFile=/dev/null -oCheckHostIp=no -oHostKeyAlias=Cluster.x.x -oBatchMode=yes -oStrictHostKey Checking=yes -4 -t -t ro...@host.x.x.x  '/usr/lib/ganeti/tools/kvm-console-wrapper /usr/bin/socat test.x.x.x  /var/run/ganeti/kvm-hypervisor/ctrl/test.x.x.x .monitor STDIO,raw,echo=0,escape=0x1d UNIX-CONNECT:/var/run/ganeti/kvm-hypervisor/ctrl/test.x.x.x .serial'
2016-01-08 13:22:06,123: gnt-instance console pid=7588 INFO RunCmd ssh -oEscapeChar=none -o HashKnownHosts=no -oGlobalKnownHostsFile=/var/lib/ganeti/known_hosts -oUserKnownHostsFile=/ dev/null -oCheckHostIp=no -oHostKeyAlias=Cluster.x.x -oBatchMode=yes -oStrictHostKeyChecking=yes -4 -t -t ro...@host.x.x.x  '/usr/lib/ganeti/tools/kvm-console-wrapper /usr/bin/socat test.x.x.x  /var/run/ganeti/kvm-hypervisor/ctrl/test.x.x.x .monitor ST DIO,raw,echo=0,escape=0x1d UNIX-CONNECT:/var/run/ganeti/kvm-hypervisor/ctrl/test.x.x.x .serial'
2016-01-08 13:51:20,815: gnt-instance console pid=8539 INFO RunCmd ssh -oEscapeChar=none -o HashKnownHosts=no -oGlobalKnownHostsFile=/var/lib/ganeti/known_hosts -oUserKnownHostsFile=/dev/null -oCheckHostIp=no -oHostKeyAlias=Cluster.x.x -oBatchMode=yes -oStrictHostKey Checking=yes -4 -t -t ro...@host.x.x.x  '/usr/lib/ganeti/tools/kvm-console-wrapper /usr/bin/socat test.x.x.x  /var/run/ganeti/kvm-hypervisor/ctrl/test.x.x.x .monitor STDIO,raw,echo=0,escape=0x1d UNIX-CONNECT:/var/run/ganeti/kvm-hypervisor/ctrl/test.x.x.x .serial'

 

candlerb

unread,
Jan 9, 2016, 6:12:52 AM1/9/16
to ganeti
On Friday, 8 January 2016 14:35:42 UTC, Bukar wrote:

I have successfully created the instance, but I  still cant connect to the console, I have installed a remote desktop viewer, and a vnc viewer, but yet I still cant connect to the console using either of them.


1. Define "can't connect to the console"? Do you mean you get connection refused, or you get a connection but see a blank screen, or something else?
2. What are the exact commands you used to create and start the instance?
3. Which vnc viewer are you using? I have good experience with TigerVNC Viewer on all platforms.


Note that for windows only the vncviewer[64].exe file is required, you don't need the full TigerVNC installation with the Windows server components.

You definitely want VNC, not RDP (although some viewers will do both - e.g. Remmina for Linux)

4. If you do "ps auxwww | grep kvm", do you see a process for your running instance? Can you show the line here?

Note: your log files show attempts to use "gnt-instance console". That is for the serial console, *not* the VNC console.  But as far as I can see, everything should be set up OK for VNC console (you have vnc_bind_address=0.0.0.0)

Regards,

Brian.

Bukar

unread,
Jan 13, 2016, 10:27:15 AM1/13/16
to ganeti

Hello Brian,

Thank you for your assistance.

  

1. Define "can't connect to the console"? Do you mean you get connection refused, or you get a connection but see a blank screen, or something else?

            
          I have downloaded tigervnc as suggested, but I couldn't install it. I had to install xtightvncviewer. below is the error message I got.
              root@host1:~# xtightvncviewer mail.x.x.x :11002
                               Error: Can't open display:

As you explained, using gnt-instance console  mail.x.x.x just hang, as the serial console is not configured.

I tried vncviewer mail.x.x.x :11002 still got the same error.

I have been reading up on this, but I am still not lucky to lay my hands on the appropriate documentation. on how to connect to an instance using a vnc

2. What are the exact commands you used to create and start the instance?

     
      gnt-instance add -n host1.x.x.x:host2.x.x.x  -o noop -t drbd  -s 100G -B minmem=1024m \
               --no-start  --no-name-check --no-ip-check mail.x.x.x
      
     gnt-instance modify --net 0:link=br0,ip=192.168.1.110 mail.x.x.x


      gnt-instance modify --force -B memory=1G  mail.x.x.x
    
     gnt-instance start \
    -H boot_order=cdrom,cdrom_image_path=/home/sysadmin/Desktop/CentOS-6.5-x86_64-minimal.iso \
    mail.x.x.x
 

3. Which vnc viewer are you using? I have good experience with TigerVNC Viewer on all platforms.

Downloads: https://bintray.com/tigervnc/stable/tigervnc/1.6.0

Note that for windows only the vncviewer[64].exe file is required, you don't need the full TigerVNC installation with the Windows server components.

You definitely want VNC, not RDP (although some viewers will do both - e.g. Remmina for Linux)

   I am presently using   xtightvncviewer and unfortunately I could'nt find any guide to install vnc client on ubuntu 14.04 LTS. if you have one, please help
   I am a new to linux, as such I find it difficult to find my way around such challenges.
   Kindly bear with me, I have tried to find a solution to this, this is the 4th day but yet, I couldn't come up with anything.
   I have reinstalled the entire servers, formed a new cluster just to be sure there is no issue with the installation. 

 

 

4. If you do "ps auxwww | grep kvm", do you see a process for your running instance? Can you show the line here?

  

    root@host1:~# ps auxwww | grep kvm


root       736  0.0  0.0      0     0 ?        S<   15:41   0:00 [kvm-irqfd-clean]
root      3754 15.7  0.6 1496444 26096 ?       Sl   15:50   0:01 qemu-system-x86_64 -enable-kvm -name mail.x.x.x  -m 1024 -smp 1 -pidfile /var/run/ganeti/kvm-hypervisor/pid/mail.x.x.x  -balloon virtio,id=balloon,bus=pci.0,addr=0x3 -daemonize -machine pc-i440fx-trusty -monitor unix:/var/run/ganeti/kvm-hypervisor/ctrl/mail.x.x.x .monitor,server,nowait -serial unix:/var/run/ganeti/kvm-hypervisor/ctrl/mail.x.x.x .serial,server,nowait -usb -usbdevice tablet -vnc :5102 -uuid 800eb2bb-6688-4359-b23d-4276da9192a2 -netdev type=tap,id=hotnic-a6d285cd-pci-5,fd=8 -device virtio-net-pci,mac=aa:00:00:8f:96:8f,id=hotnic-a6d285cd-pci-5,bus=pci.0,addr=0x5,netdev=hotnic-a6d285cd-pci-5 -qmp unix:/var/run/ganeti/kvm-hypervisor/ctrl/mail.x.x.x .qmp,server,nowait -qmp unix:/var/run/ganeti/kvm-hypervisor/ctrl/mail.x.x.x .kvmd,server,nowait -boot c -device virtio-blk-pci,drive=hotdisk-34753252-pci-4,id=hotdisk-34753252-pci-4,bus=pci.0,addr=0x4 -drive file=/var/run/ganeti/instance-disks/mail.x.x.x :0,format=raw,if=none,id=hotdisk-34753252-pci-4,bus=0,unit=4 -S
root      3756  0.0  0.0      0     0 ?        S    15:50   0:00 [kvm-pit/3754]
root      3878  100  0.7 1496444 29604 ?       Sl   15:50   0:08 qemu-system-x86_64 -enable-kvm -name test1.x.x.x  -m 1024 -smp 1 -pidfile /var/run/ganeti/kvm-hypervisor/pid/test1.x.x.x  -balloon virtio,id=balloon,bus=pci.0,addr=0x3 -daemonize -machine pc-i440fx-trusty -monitor unix:/var/run/ganeti/kvm-hypervisor/ctrl/test1.x.x.x .monitor,server,nowait -serial unix:/var/run/ganeti/kvm-hypervisor/ctrl/test1.x.x.x .serial,server,nowait -usb -usbdevice tablet -vnc :5100 -uuid 0cccd5d0-8b1a-4a53-a763-022095e7f750 -netdev type=tap,id=hotnic-9bafcac4-pci-5,fd=8 -device virtio-net-pci,mac=aa:00:00:4f:71:74,id=hotnic-9bafcac4-pci-5,bus=pci.0,addr=0x5,netdev=hotnic-9bafcac4-pci-5 -qmp unix:/var/run/ganeti/kvm-hypervisor/ctrl/test1.x.x.x .qmp,server,nowait -qmp unix:/var/run/ganeti/kvm-hypervisor/ctrl/test1.x.x.x .kvmd,server,nowait -boot c -device virtio-blk-pci,drive=hotdisk-3cfa7065-pci-4,id=hotdisk-3cfa7065-pci-4,bus=pci.0,addr=0x4 -drive file=/var/run/ganeti/instance-disks/test1.x.x.x :0,format=raw,if=none,id=hotdisk-3cfa7065-pci-4,bus=0,unit=4 -S
root      3880  0.0  0.0      0     0 ?        S    15:50   0:00 [kvm-pit/3878]
root      3913  0.0  0.0  15948  2268 pts/1    S+   15:50   0:00 grep --color=auto kvm

 

Note: your log files show attempts to use "gnt-instance console". That is for the serial console, *not* the VNC console.  But as far as I can see, everything should be set up OK for VNC console (you have vnc_bind_address=0.0.0.0)

 

   Your assistance is really appreciated. I feel like I am very close, every other seems ok, but i still feel I am not using the right vnc or command to connect to the instance.

Regards,

 

Below are the outputs to provide more information on the cluster

 

root@host1:~# gnt-cluster verify

Submitted jobs 175, 176

Waiting for job 175 ...

Wed Jan 13 16:08:53 2016 * Verifying cluster config

Wed Jan 13 16:08:53 2016 * Verifying cluster certificate files

Wed Jan 13 16:08:53 2016 * Verifying hypervisor parameters

Wed Jan 13 16:08:53 2016 * Verifying all nodes belong to an existing group

Waiting for job 176 ...

Wed Jan 13 16:08:55 2016 * Verifying group 'default'

Wed Jan 13 16:08:55 2016 * Gathering data (2 nodes)

Wed Jan 13 16:08:55 2016 * Gathering information about nodes (2 nodes)

Wed Jan 13 16:08:57 2016 * Gathering disk information (2 nodes)

Wed Jan 13 16:08:57 2016 * Verifying configuration file consistency

Wed Jan 13 16:08:57 2016   - ERROR: cluster: File /etc/hosts found with 2 different checksums (variant 1 on host1.x.x.x ; variant 2 on host2.x.x.x )

Wed Jan 13 16:08:57 2016 * Verifying node status

Wed Jan 13 16:08:57 2016   - ERROR: node host1.x.x.x : OS 'debootstrap' has multiple entries (first one shadows the rest): /srv/ganeti/os/debootstrap, /usr/share/ganeti/os/debootstrap

Wed Jan 13 16:08:57 2016   - ERROR: node host2.x.x.x : OS 'debootstrap' has multiple entries (first one shadows the rest): /srv/ganeti/os/debootstrap, /usr/share/ganeti/os/debootstrap

Wed Jan 13 16:08:57 2016 * Verifying instance status

Wed Jan 13 16:08:57 2016 * Verifying orphan volumes

Wed Jan 13 16:08:57 2016 * Verifying N+1 Memory redundancy

Wed Jan 13 16:08:57 2016 * Other Notes

Wed Jan 13 16:08:57 2016 * Hooks Results

 

 

root@host1:~# gnt-node list

Node              DTotal  DFree MTotal MNode MFree Pinst Sinst

host1.x.x.x  651.9G 501.7G   3.9G  899M  2.9G     2     0

host2.x.x.x  651.9G 501.7G   3.9G  667M  3.1G     0     2

 

 

root@host1:~# gnt-instance list

Instance          Hypervisor OS                  Primary_node      Status  Memory

mail.x.x.x   kvm        noop                host1.x.x.x  running   1.0G

test1.x.x.x  kvm        debootstrap+default host1.x.x.x  running   1.0G

root@host1:~#

 

root@host1:~# gnt-instance info mail.x.x.x

- Instance name: mail.x.x.x

  UUID: 800eb2bb-6688-4359-b23d-4276da9192a2

  Serial number: 12

  Creation time: 2016-01-13 10:23:07

  Modification time: 2016-01-13 13:43:12

  State: configured to be up, actual state is up

  Nodes:

    - primary: host1.x.x.x

      group: default (UUID 48c5109d-5a9d-4cad-9211-143108cb5f17)

    - secondaries: host2.x.x.x  (group default, group UUID 48c5109d-5a9d-4cad-9211-143108cb5f17)

  Operating system: noop

  Operating system parameters:

  Allocated network port: 11002

  Hypervisor: kvm

  console connection: vnc to host1.x.x.x :11002 (display 5102)

  Hypervisor parameters:

    acpi: default (True)

    boot_order: default (disk)

    cdrom2_image_path: default ()

    cdrom_disk_type: default ()

    cdrom_image_path: default ()

    spice_tls_ciphers: default (HIGH:-DES:-3DES:-EXPORT:-DH)

    spice_use_tls: default (False)

    spice_use_vdagent: default (True)

    spice_zlib_glz_wan_compression: default ()

    usb_devices: default ()

    usb_mouse: default ()

    use_chroot: default (False)

    use_localtime: default (False)

    user_shutdown: default (False)

    vga: default ()

    vhost_net: default (False)

    virtio_net_queues: default (1)

    vnc_bind_address: default (0.0.0.0)

    vnc_password_file: default ()

    vnc_tls: default (False)

    vnc_x509_path: default ()

    vnc_x509_verify: default (False)

    vnet_hdr: default (True)

  Back-end parameters:

    always_failover: default (False)

    auto_balance: default (True)

    maxmem: 1024

    memory: default (1024)

    minmem: 1024

    spindle_use: default (1)

    vcpus: default (1)

  NICs:

    - nic/0:

      MAC: aa:00:00:8f:96:8f

      IP: 192.168.1.110

      mode: bridged

      link: br0

      vlan:

      network: None

      UUID: a6d285cd-1f6b-454f-ace9-24dd54c195c8

      name: None

  Disk template: drbd

  Disks:

    - disk/0: drbd, size 100.0G

      access mode: rw

      nodeA: host1.x.x.x , minor=1

      nodeB: host2.x.x.x , minor=1

      port: 11003

      on primary: /dev/drbd1 (147:1) in sync, status ok

      on secondary: /dev/drbd1 (147:1) in sync, status ok

      name: None

      UUID: 34753252-859f-424d-a3d1-6d82ec324342

      child devices:

        - child 0: plain, size 100.0G

          logical_id: xenvg/78883370-5378-48ab-b248-7f57241ff1a7.disk0_data

          on primary: /dev/xenvg/78883370-5378-48ab-b248-7f57241ff1a7.disk0_data (252:2)

          on secondary: /dev/xenvg/78883370-5378-48ab-b248-7f57241ff1a7.disk0_data (252:2)

          name: None

          UUID: f89c1787-5739-44a1-930d-a49624c99329

        - child 1: plain, size 128M

          logical_id: xenvg/78883370-5378-48ab-b248-7f57241ff1a7.disk0_meta

          on primary: /dev/xenvg/78883370-5378-48ab-b248-7f57241ff1a7.disk0_meta (252:3)

          on secondary: /dev/xenvg/78883370-5378-48ab-b248-7f57241ff1a7.disk0_meta (252:3)

          name: None

          UUID: 525acfe6-44a1-4cae-92fa-8b8dec51659f

 

I really appreciate.

 

candlerb

unread,
Jan 14, 2016, 8:15:13 AM1/14/16
to ganeti
On Wednesday, 13 January 2016 15:27:15 UTC, Bukar wrote:

Hello Brian,

Thank you for your assistance.

  

1. Define "can't connect to the console"? Do you mean you get connection refused, or you get a connection but see a blank screen, or something else?

            


You still haven't answered the question about what happened with your original attempt to connect using VNC. Did you get connection refused, or get a connection but see a blank screen, or something else?


 

          I have downloaded tigervnc as suggested, but I couldn't install it. I had to install xtightvncviewer. below is the error message I got.
              root@host1:~# xtightvncviewer mail.x.x.x :11002
                               Error: Can't open display:


That is wrong use of X11. You can only run X applications on a 'desktop' version of Linux (with the X environment present). And if you logged into your system as a normal user then changed to root with sudo, it won't work; change back to your normal user.

So, if you want to run VNC under Linux, first get to the point where you understand how to run X applications. See if you can get "xeyes" to work first.

If your normal workstation is Windows or OSX, then I suggest you download and run tigervnc on that. It will be much easier.

Perhaps it's too obvious to mention, but the machine where you run vnc viewer does *not* have to be the ganeti node itself (indeed it normally would *not* be)

Bukar

unread,
Jan 14, 2016, 10:02:50 AM1/14/16
to ganeti

1. Define "can't connect to the console"? Do you mean you get connection refused, or you get a connection but see a blank screen, or something else?

            


You still haven't answered the question about what happened with your original attempt to connect using VNC. Did you get connection refused, or get a connection but see a blank screen, or something else?

I usually get connection timed out. The connection is initiated from Realvnc client  from a Windows 10 system Attached is the screenshot.


That is wrong use of X11. You can only run X applications on a 'desktop' version of Linux (with the X environment present). And if you logged into your system as a normal user then changed to root with sudo, it won't work; change back to your normal user.

So, if you want to run VNC under Linux, first get to the point where you understand how to run X applications. See if you can get "xeyes" to work first.

If your normal workstation is Windows or OSX, then I suggest you download and run tigervnc on that. It will be much easier.

Perhaps it's too obvious to mention, but the machine where you run vnc viewer does *not* have to be the ganeti node itself (indeed it normally would *not* be)

I have tried to connect using Realvnc installed on my windows 10, but when I couldn't connect, I decided to connect by installing xtightvncviewer on the master node that is ubuntu 14.04 LTS following a guide online.
apologies please, I am totally new to this, I am just leveraging on the information available to me. Kindly bear with me.

Your assistance and guide is really appreciated.
Thank you.
vnc.JPG

Thomas Ott

unread,
Jan 14, 2016, 10:05:50 AM1/14/16
to gan...@googlegroups.com
Hallo Bukar,

I see the Problem for getting refused is, that you want to connect to the wrong Server.
You want to connect to mail.xxx but this server do not have any VNC Server running.
You have to connect to the node-Server this VM is running.

So the right Host would be: host1.x.x.x:11002

Greetz
Thomas Ott

Am 14.01.16 um 16:02 schrieb Bukar:
Message has been deleted

Bukar

unread,
Jan 14, 2016, 10:14:40 AM1/14/16
to ganeti

Thanks a lot, the error message I get if I try to connect to host1.x.x.x is (getaddrifo: No such host is known. (11001)

I am really in need of help, this is driving me crazy plus hours of studies and no results.

Thank  you, I really appreciate

Benjamin Redling

unread,
Jan 14, 2016, 12:07:14 PM1/14/16
to gan...@googlegroups.com
Am 14.01.2016 um 16:14 schrieb Bukar:
> Thanks a lot, the error message I get if I try to connect to host1.x.x.x
> is (getaddrifo: No such host is known. (11001)

Typo?
According to your last "gnt-instance info mail.x.x.x"
the port was 11002

Bukar

unread,
Jan 15, 2016, 5:28:12 AM1/15/16
to ganeti
its not a typo actually, that is what i get as the error message.
The correct port is specified, but the error message returns port 11001 see the screenshot attached.
vnc2.JPG

Bukar

unread,
Jan 15, 2016, 5:58:58 AM1/15/16
to ganeti
I could actually connect as it is, bear with me, the problem was that the widows 10 PC could not resolve the name. on using IP, I could connect.
Although, as soon as it connects it goes off immediately. The screen just flashes. I  will continue troubleshooting.
Thnaks to you all for your contribution I really appreciate.

candlerb

unread,
Jan 15, 2016, 6:27:11 AM1/15/16
to ganeti
I have seen compatibility problems with realVNC viewer in the past.

Please download vncviewer64.exe (or vncviewer.exe if you have 32-bit windows) from TigerVNC. There is no installation required - just double-click on it and it starts.

It looks like you are getting very close now. As has already been said, connect to 
<IP address of ganeti node>:<port number of running instance>

By the way, from googling around, I see that 11001 also happens to be the Windows error code for "no such host is known". This is just a confusing coincidence :-)

Bukar

unread,
Jan 15, 2016, 7:31:04 AM1/15/16
to ganeti
I am in, I can now connect.
You guys are really great, I am really grateful for all the help you have rendered

Thank  you.

Bukar

unread,
Jan 15, 2016, 7:32:30 AM1/15/16
to ganeti
Sorry I forgot to state that TigerVNC was what I used.
Reply all
Reply to author
Forward
0 new messages