Projekat

Općenito

Profil

Akcije

Podrška #20026

Zatvoren

lucid ganeti2, drbd

Dodano od Ernad Husremović prije više od 15 godina. Izmjenjeno prije oko 15 godina.

Status:
Odbačeno
Prioritet:
Visok
Odgovorna osoba:
Početak:
31.03.2010
Završetak:
% završeno:

0%

Procjena vremena:

Povezani tiketi 2 (0 otvoreno2 zatvorenih)

korelira sa system toolbox - Podrška #20056: zvijer-2, zvijer-3: drbd, ocsfs2ZatvorenoErnad Husremović05.04.2010

Akcije
korelira sa system toolbox - Prijedlozi #19192: opennebula cloud - virtualizationOdbačenoErnad Husremović23.12.2009

Akcije
Akcije #1

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# apt-get install ganeti2

Čitam spiskove paketa... Done
Gradim stablo zavisnosti       
Reading state information... Done
Slijedeći dodatni paketi će biti instalirani:
  build-essential cvs debconf-utils debhelper debootstrap dkms dpatch dpkg-dev
  drbd8-source drbd8-utils dump fakeroot g++ g++-4.4
  ganeti-instance-debootstrap gettext html2text intltool-debian kernel-package
  kpartx kvm libaio1 libdevmapper-event1.02.1 libmail-sendmail-perl
  libreadline5 libsdl1.2debian libstdc++6-4.4-dev libsys-hostname-long-perl
  lvm2 patch patchutils po-debconf python-pyparsing qemu-common qemu-kvm
  seabios socat vgabios watershed xz-utils
Predloženi paketi:
  dh-make curl debian-keyring debian-maintainers heartbeat g++-multilib
  g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg drbd8-module-source
  gettext-doc linux-source kernel-source libncurses-dev docbook-utils xmlto
  grub grub2 jfsutils mcelog oprofile reiserfsprogs squashfs-tools xfsprogs
  quota btrfs-tools libstdc++6-4.4-doc diffutils-doc libmail-box-perl
  mol-drivers-macosx openbios-sparc kvm-pxe ubuntu-vm-builder uml-utilities
Slijedeći NOVI paketi će biti instalirani:
  build-essential cvs debconf-utils debhelper debootstrap dkms dpatch dpkg-dev
  drbd8-source drbd8-utils dump fakeroot g++ g++-4.4
  ganeti-instance-debootstrap ganeti2 gettext html2text intltool-debian
  kernel-package kpartx kvm libaio1 libdevmapper-event1.02.1
  libmail-sendmail-perl libreadline5 libsdl1.2debian libstdc++6-4.4-dev
  libsys-hostname-long-perl lvm2 patch patchutils po-debconf python-pyparsing
  qemu-common qemu-kvm seabios socat vgabios watershed xz-utils
0 upgraded, 41 newly installed, 0 to remove and 0 not upgraded.
Need to get 19,6MB of archives.
After this operation, 64,5MB of additional disk space will be used.
Da li želite da nastavite [D/n]?

Akcije #3

Izmjenjeno od Ernad Husremović prije više od 15 godina

Node roles

Each node can be in one of the following states:

master

Only one node per cluster can be in this role, and this node is the one holding the authoritative copy of the cluster configuration and the one that can actually execute commands on the cluster and modify the cluster state. See more details under Cluster configuration.
master_candidate

The node receives the full cluster configuration (configuration file and jobs) and can become a master via the gnt-cluster masterfailover command. Nodes that are not in this state cannot transition into the master role due to missing state.

regular

This the normal state of a node.

drained

Nodes in this state are functioning normally but cannot receive new instance, because the intention is to set them to offline or remove them from the cluster.

offline

These nodes are still recorder in the ganeti configuration, but except for the master daemon startup voting procedure, they are not actually contacted by the master. This state was added in order to allow broken machines (that are being repaired) to remain in the cluster but without creating problems.

Akcije #4

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# m-a -f get drbd8-module-source

Čitam spiskove paketa... Done
Gradim stablo zavisnosti       
Reading state information... Done
Note, selecting drbd8-source instead of drbd8-module-source
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/220kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 106164 files and directories currently installed.)
Preparing to replace drbd8-source 2:8.3.7-1ubuntu1 (using .../drbd8-source_2%3a8.3.7-1ubuntu1_all.deb) ...
Removing all [drbd8-8.3.7] DKMS Modules
Done.
Unpacking replacement drbd8-source ...
Setting up drbd8-source (2:8.3.7-1ubuntu1) ...
Loading new drbd8-8.3.7 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-18-generic
Building for architecture x86_64
Building initial module for 2.6.32-18-generic
Done.

drbd.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.32-18-generic/updates/dkms/

/etc/modprobe.d/drbd.conf: added 'options drbd cn_idx=7'
depmod....

DKMS: install Completed.

Updated infos about 1 packages

Akcije #5

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# brctl show

bridge name    bridge id        STP enabled    interfaces
br0        8000.00241daca5bb    no        eth0

Akcije #6

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# pvcreate /dev/sda3

  Physical volume "/dev/sda3" successfully created

Akcije #7

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# vgcreate xenvg /dev/sda3

  Volume group "xenvg" successfully created

filter = [ "a/.*/", "r|/dev/cdrom|", "r|/dev/drbd[0-9]+|" ]
Akcije #8

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# modinfo drbd

filename:       /lib/modules/2.6.32-18-generic/updates/dkms/drbd.ko
alias:          block-major-147-*
license:        GPL
version:        8.3.7
description:    drbd - Distributed Replicated Block Device v8.3.7
author:         Philipp Reisner <phil@linbit.com>, Lars Ellenberg <lars@linbit.com>
srcversion:     209A8233EEAE2D2761867A8
depends:        
vermagic:       2.6.32-18-generic SMP mod_unload modversions 
parm:           minor_count:Maximum number of drbd devices (1-255) (uint)
parm:           disable_sendpage:bool
parm:           allow_oos:DONT USE! (bool)
parm:           cn_idx:uint
parm:           proc_details:int
parm:           enable_faults:int
parm:           fault_rate:int
parm:           fault_count:int
parm:           fault_devs:int
parm:           usermode_helper:string

Akcije #9

Izmjenjeno od Ernad Husremović prije više od 15 godina

ali sam ovdje zabrljo i ne znam pomaknuti dalje

root@zvijer-1:~# gnt-cluster init zvijer-1

/var/lib/ganeti
<ganeti.utils.HostInfo instance at 0xd75bd8>
Failure: prerequisites not met for this operation:
Cluster IP already active. Aborting.

Akcije #10

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-cluster init -b br0 smraka-1b

Failure: prerequisites not met for this operation:
Cluster IP already active. Aborting.

Akcije #11

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/share/doc/ganeti2# gnt-cluster info

Corrupt configuration file: Can't read from the ssconf file: '[Errno 2] No such file or directory: '/var/lib/ganeti/ssconf_master_node''
Aborting.

Akcije #12

Izmjenjeno od Ernad Husremović prije više od 15 godina

smraka-1b

Removing ganeti2 ...
 * Stopping Ganeti cluster                                                       * ganeti-rapi...                                                        [ OK ] 
 * ganeti-masterd...                                                     [ OK ] 
 * ganeti-noded...                                                       [ OK ] 
Purging configuration files for ganeti2 ...
dpkg: warning: while removing ganeti2, directory '/var/log/ganeti' not empty so not removed.
dpkg: warning: while removing ganeti2, directory '/var/lib/ganeti' not empty so not removed.
Processing triggers for python-support ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Akcije #13

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# lsmod | grep drbd

drbd                  283056  0 

Akcije #14

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~/devel/ganeti# sudo apt-get install python-pyinotify automake docbook-utils graphviz pylint python-sphinx

Akcije #15

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-cluster info

Failure: prerequisites not met for this operation:
Cluster not initialized or this machine is not part of a cluster

Akcije #16

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-cluster init --master-netdev=br0 --vg-name=ubuntu smraka-1b

Failure: prerequisites not met for this operation:
error type: resource_not_unique, error details:
Cluster IP already active. Aborting.

Akcije #17

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-cluster destroy --yes-do-it

Failure: prerequisites not met for this operation:
Cluster not initialized or this machine is not part of a cluster

Akcije #18

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# make install

Akcije #19

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# apt-get install debootstrap dump kpartx

Akcije #20

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~/devel/ganeti# lsmod | grep kvm

kvm_intel              46200  0 
kvm                   283328  1 kvm_intel

Akcije #21

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~/devel/ganeti# mkdir /srv/ganeti/ /srv/ganeti/os /srv/ganeti/export

Akcije #22

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~/devel/ganeti/doc/examples# ls /usr/local/lib/ganeti/

daemon-util  tools

Akcije #23

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~/devel/ganeti/doc/examples# invoke-rc.d ganeti start

 * Starting Ganeti cluster                                                     
 Missing configuration file /var/lib/ganeti/server.pem
 * Incomplete configuration, will not run.

Akcije #25

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# openssl req -new -newkey rsa:1024 -days 1825 -nodes  -x509 -keyout /var/lib/ganeti/server.pem  -out /var/lib/ganeti/server.pem -batch && chmod 0400 /var/lib/ganeti/server.pem
Generating a 1024 bit RSA private key
...............................++++++
.............................................++++++
writing new private key to '/var/lib/ganeti/server.pem'
-----

Akcije #26

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# /etc/init.d/ganeti start

 * Starting Ganeti cluster                                                       
 * ganeti-noded...                                                       [ OK ] 
 * ganeti-masterd...                                                            
  Cluster configuration incomplete: 'Can't read from the ssconf file: '[Errno 2] 
 No such file or directory: '/var/lib/ganeti/ssconf_master_node'''
                                                                         [fail]
 * ganeti-rapi...                                                               
  SSL key file '/var/lib/ganeti/rapi.pem' was not found
                                                                         [fail]
 * ganeti-confd...                                                              
 Need HMAC key /var/lib/ganeti/hmac.key to run
                                                                         [fail]

Akcije #27

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:# mkdir /etc/ganeti /var/lib/ganeti /var/log/ganeti /srv/ganeti /srv/ganeti/os /srv/ganeti/export

Akcije #28

Izmjenjeno od Ernad Husremović prije više od 15 godina

smraka-1b.bring.out.ba

root@smraka-1b:~/devel/ganeti/doc# vi /etc/hostname
root@smraka-1b:~/devel/ganeti/doc# /etc/init.d/hostname start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service hostname start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start hostname
hostname stop/waiting
root@smraka-1b:~/devel/ganeti/doc# hostname
smraka-1b.bring.out.ba

Akcije #29

Izmjenjeno od Ernad Husremović prije više od 15 godina

  • Naslov promijenjeno iz lucid ganeti2 u lucid ganeti2, drbd
Akcije #30

Izmjenjeno od Ernad Husremović prije više od 15 godina

glup ko noć

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# cat /etc/hosts127.0.0.1 localhost

192.168.45.40    zvijer-1.bring.out.ba zvijer-1
192.168.45.41    smraka-1b.bring.out.ba    smraka-1b
192.168.45.49    master.bring.out.ba     master <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< dodati adresu koja NE POSTOJI trenutno !

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Akcije #31

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# gnt-cluster init -d --enabled-hypervisors=kvm --vg-name=ubuntu --master-netdev=br0 master.bring.out.ba

Akcije #32

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# invoke-rc.d ganeti start

 * Starting Ganeti cluster                                                       
 * ganeti-noded...                                                       [ OK ] 
 * ganeti-masterd...                                                     [ OK ] 
 * ganeti-rapi...                                                        [ OK ] 
 * ganeti-confd...                                                       [ OK ]

Akcije #33

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# ip addr show br0

3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:1c:c4:18:d7:43 brd ff:ff:ff:ff:ff:ff
    inet 192.168.45.41/24 brd 192.168.45.255 scope global br0
    inet 192.168.45.49/32 scope global br0:0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ganeti napravio
    inet6 fe80::21c:c4ff:fe18:d743/64 scope link 
       valid_lft forever preferred_lft forever

Akcije #34

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# gnt-instance add -t file --disk 0:size=30g -B memory=512 -n smraka-1b -o ubuntu-lucid i1
Failure: command execution error:

Hypervisor parameter validation failed on node smraka-1b.bring.out.ba: Parameter 'kernel_path' fails validation: not found or not a file (current value: '/boot/vmlinuz-2.6-kvmU')

Akcije #35

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# ln -s /boot/vmlinuz-2.6.32-19-generic /boot/vmlinuz-2.6-kvmU

root@smraka-1b:/usr/local/lib/python2.6/dist-packages/ganeti# gnt-instance add -t file --disk 0:size=30g -B memory=512 -n smraka-1b -o ubuntu-lucid i1

Failure: prerequisites not met for this operation:
error type: True, error details:
OS 'ubuntu-lucid' not in supported OS list for node smraka-1b.bring.out.ba: Directory for OS ubuntu-lucid not found in search path

Akcije #36

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-os-dir=/srv/ganeti/os

Akcije #37

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-node info

Node name: smraka-1b.bring.out.ba
  primary ip: 192.168.45.41
  secondary ip: 192.168.45.41
  master candidate: True
  drained: False
  offline: False
  primary for no instances
  secondary for no instances

Akcije #38

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-os list

Name               
debootstrap+default

Akcije #39

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-node list-storageNode Type Name Size Used Free Allocatable

smraka-1b.bring.out.ba lvm-pv /dev/sda5 698.4G 18.6G 679.8G Y

Akcije #40

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-cluster info

Cluster name: master.bring.out.ba
Cluster UUID: 4ef9c7cb-2181-46d9-92f8-b6fda334e7fc
Creation time: 2010-04-05 13:51:14
Modification time: 2010-04-05 13:51:14
Master node: smraka-1b.bring.out.ba
Architecture (this node): 64bit (x86_64)
Tags: (none)
Default hypervisor: kvm
Enabled hypervisors: kvm
Hypervisor parameters:
  - kvm:
      nic_type: paravirtual
      use_localtime: False
      root_path: /dev/vda1
      security_model: none
      kernel_args: ro
      cdrom_image_path: 
      migration_port: 8102
      vnc_x509_path: 
      security_domain: 
      boot_order: disk
      serial_console: True
      vnc_tls: False
      usb_mouse: 
      acpi: True
      vnc_bind_address: 
      disk_cache: default
      vnc_password_file: 
      disk_type: paravirtual
      kernel_path: /boot/vmlinuz-2.6-kvmU
      initrd_path: 
      vnc_x509_verify: False
OS specific hypervisor parameters:
Cluster parameters:
  - candidate pool size: 10
  - master netdev: br0
  - lvm volume group: ubuntu
  - file storage path: /srv/ganeti/file-storage
Default instance parameters:
  - default:
      auto_balance: True
      vcpus: 1
      memory: 128
Default nic parameters:
  - default:
      link: xen-br0
      mode: bridged

Akcije #41

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-cluster modify -N link=br0

Akcije #42

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-instance add -t file --disk 0:size=30g -B memory=512 -n smraka-1b -o debootstrap+default i1

...
debootstrap+default  i1
/dev/loop0p1   *      0+   3915    3916-  31455269+  83  Linux
/dev/loop0p2          0       -       0          0    0  Empty
/dev/loop0p3          0       -       0          0    0  Empty
/dev/loop0p4          0       -       0          0    0  Empty
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Invalid argument

I: Retrieving Release
E: Failed getting release file http://archive.bring.out.ba/ubuntu/dists/lenny/Release
Akcije #43

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# cat /etc/default/ganeti-instance-debootstrap

# ganeti-instance-debootstrap defaults file

# if you want to change from the default of installing debian stable
# on the next instance, customize this file before the instance
# installation

# PROXY: if non-null, use this as an http-proxy in order to speed up
# non-cached installs; not that if not set, debootstrap might still
# use a system-wide proxy setting if it is exported in the
# ganeti-noded daemon environment
# PROXY="http://proxy.example.com:3128/" 

# MIRROR: do not customize MIRROR if you want to be able to install
# both debian and ubuntu, since they have different defaults; or
# customize it before each install
MIRROR="http://archive.bring.out.ba/ubuntu" 

# ARCH: define ARCH only if you want a different architecture than the
# current one; the known use case is to install a 32-bit instance on a
# 64-bit node; choose either "i386" or "amd64":
# ARCH="i386" 
ARCH="amd64" 

# SUITE: change suite to any of the ones supported by deboostrap; this
# could be unstable, etch, etc.:
# SUITE="lenny" 
SUITE="lucid" 

# EXTRA_PKGS: depending on the suite and architecture you are using, different
# extra packages are needed for different hypervisors. For example:
#
# Xen, for etch/lenny i386:
# EXTRA_PKGS="linux-image-xen-686,libc6-xen" 
# Xen, for etch/lenny amd64:
# EXTRA_PKGS="linux-image-xen-amd64" 
# KVM, for lenny i386:
# EXTRA_PKGS="acpi-support-base,console-tools,udev,linux-image-686" 
# KVM, for lenny amd64:
# EXTRA_PKGS="acpi-support-base,console-tools,udev,linux-image-amd64" 
#

# CUSTOMIZE_DIR: a directory containing scripts to customize the installation.
# The scripts are executed using run-parts
# By default /etc/ganeti/instance-debootstrap.d
# CUSTOMIZE_DIR="/etc/ganeti/instance-debootstrap.d" 

# GENERATE_CACHE: if set to yes (the default), create new cache files;
# any other value will disable the generation of cache files (but they
# will still be used if they exist)
GENERATE_CACHE="yes" 

# CLEAN_CACHE: should be set to the number of days after which to
# clean the cache; the default is 14 (two weeks); to disable cache
# cleaning, set it to an empty value ("")
CLEAN_CACHE="14" 

# PARTITION_STYLE: whether and how the target device should be partitioned.
# Allowed values:
# 'none': just format the device, but don't partition it
# 'msdos': install an msdos partition table on the device, with a single
#          partition on it
# (more styles may be added in the future)
# The default is "msdos" from ganeti 2.0 onwards, but none if installing under
# Ganeti 1.2 (os api version 5)
# PARTITION_STYLE="none" 

Akcije #44

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-instance add -t file --disk 0:size=30g -B memory=512 -n smraka-1b -o debootstrap+default i1

Mon Apr  5 14:31:37 2010 * creating instance disks...
Mon Apr  5 14:31:37 2010 adding instance i1.bring.out.ba to cluster config
Mon Apr  5 14:31:37 2010  - INFO: Waiting for instance i1.bring.out.ba to sync disks.
Mon Apr  5 14:31:37 2010  - INFO: Instance i1.bring.out.ba's disks are in sync.
Mon Apr  5 14:31:37 2010 * running the instance OS create scripts...
Mon Apr  5 14:32:32 2010 * starting instance...

Akcije #45

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-instance list

Instance        Hypervisor OS                  Primary_node           Status  Memory
i1.bring.out.ba kvm        debootstrap+default smraka-1b.bring.out.ba running   512M

Akcije #46

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-instance console i1

i tu zaglavio ...

Akcije #47

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@zvijer-1:~# gnt-cluster modify --enabled-hypervisors kvm

Failure: prerequisites not met for this operation:
Hypervisor parameter validation failed on node zvijer-1.bring.out.ba: Instance kernel '/boot/vmlinuz-2.6-kvmU' not found or not a file

Akcije #48

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/boot# ln -s initrd.img-2.6.32-19-generic initrd.img-2.6-kvmU

Akcije #49

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-instance add -t plain -s 1G -n smraka-1b -o debootstrap+default i4

Mon Apr  5 15:25:43 2010 * creating instance disks...
Mon Apr  5 15:25:43 2010 adding instance i4.bring.out.ba to cluster config
Mon Apr  5 15:25:44 2010  - INFO: Waiting for instance i4.bring.out.ba to sync disks.
Mon Apr  5 15:25:44 2010  - INFO: Instance i4.bring.out.ba's disks are in sync.
Mon Apr  5 15:25:44 2010 * running the instance OS create scripts...

Akcije #50

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:/usr/local/src/ganeti-instance-debootstrap# gnt-instance add -t plain -s 1G -n smraka-1b -o debootstrap+default i4

Akcije #51

Izmjenjeno od Ernad Husremović prije više od 15 godina

7: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500
    link/ether f6:b9:2a:5f:8b:d7 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f4b9:2aff:fe5f:8bd7/64 scope link 
       valid_lft forever preferred_lft forever
Akcije #53

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-cluster modify --hypervisor-parameters kvm:kernel_path=

Akcije #54

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-instance info i1

Instance name: i1.bring.out.ba
UUID: 6b781178-91ac-4815-9c80-2432ad9b86f1
Serial number: 2
Creation time: 2010-04-05 16:30:49
Modification time: 2010-04-05 16:32:57
State: configured to be up, actual state is up
  Nodes:
    - primary: smraka-1b.bring.out.ba
    - secondaries: 
  Operating system: debootstrap+default
  Allocated network port: 11005
  Hypervisor: kvm
    - nic_type: default (paravirtual)
    - use_localtime: default (False)
    - root_path: default (/dev/vda1)
    - security_model: default (none)
    - kernel_args: default (ro)
    - cdrom_image_path: default ()
    - usb_mouse: default ()
    - vnc_x509_path: default ()
    - security_domain: default ()
    - boot_order: default (disk)
    - serial_console: default (True)
    - vnc_tls: default (False)
    - vnc_bind_address: default ()
    - acpi: default (True)
    - disk_cache: default (default)
    - vnc_password_file: default ()
    - disk_type: default (paravirtual)
    - kernel_path: default ()
    - initrd_path: default ()
    - vnc_x509_verify: default (False)
  Hardware:
    - VCPUs: 1
    - memory: 128MiB
    - NICs:
      - nic/0: MAC: aa:00:00:5d:a4:da, IP: None, mode: bridged, link: br0
  Disks:
    - disk/0: lvm, size 1.0G
      access mode: rw
      logical_id:  ubuntu/3bff2aa0-d512-4de1-a98f-db325127013a.disk0
      on primary:  /dev/ubuntu/3bff2aa0-d512-4de1-a98f-db325127013a.disk0 (252:2)

Akcije #55

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# gnt-cluster modify --hypervisor-parameters kvm:root_path=/dev/sda1

Akcije #56

Izmjenjeno od Ernad Husremović prije više od 15 godina

ali opet isto

Akcije #57

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# kpartx -a /dev/ubuntu/3bff2aa0-d512-4de1-a98f-db325127013a.disk0

root@smraka-1b:~# mount /dev/mapper/ubuntu-3bff2aa0--d512--4de1--a98f--db325127013a.disk0p1 /mnt/test

root@smraka-1b:~# ls /mnt/test

bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var

Akcije #58

Izmjenjeno od Ernad Husremović prije više od 15 godina

u boot nema kernela ?

root@smraka-1b:~# rm /var/cache/ganeti-instance-debootstrap/cache-lucid-amd64.tar

Akcije #59

Izmjenjeno od Ernad Husremović prije više od 15 godina

root@smraka-1b:~# apt-get install lvm2 ssh bridge-utils iproute iputils-arping python python-pyopenssl openssl python-pyparsing python-simplejson

Čitam spiskove paketa... Done
Gradim stablo zavisnosti       
Reading state information... Done
lvm2 is already the newest version.
bridge-utils is already the newest version.
iproute is already the newest version.
iputils-arping is already the newest version.
iputils-arping postavljen za ručnu instalaciju.
python is already the newest version.
Note, selecting python-openssl instead of python-pyopenssl
python-openssl is already the newest version.
openssl is already the newest version.
python-pyparsing is already the newest version.
python-pyparsing postavljen za ručnu instalaciju.
python-simplejson is already the newest version.
python-simplejson postavljen za ručnu instalaciju.
Sljedeći paketi su automatski instalirani i više nisu potrebni:
  debhelper libfile-copy-recursive-perl drbd8-source python-openssl patchutils update-inetd po-debconf groff-base intltool-debian socat gettext
  linux-headers-2.6.32-18 cvs libcurl3 dkms drbd8-utils libcroco3 kvm curl debconf-utils ganeti-instance-debootstrap kernel-package man-db html2text
  info libmail-sendmail-perl libsys-hostname-long-perl dpatch linux-headers-2.6.32-18-generic
Use 'apt-get autoremove' to remove them.
Slijedeći NOVI paketi će biti instalirani:
  ssh
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1264B of archives.
After this operation, 45,1kB of additional disk space will be used.
Get:1 http://archive.bring.out.ba/ubuntu/ lucid/main ssh 1:5.3p1-3ubuntu3 [1264B]
Fetched 1264B in 1s (768B/s)
Selecting previously deselected package ssh.
(Reading database ... 88509 files and directories currently installed.)
Unpacking ssh (from .../ssh_1%3a5.3p1-3ubuntu3_all.deb) ...
Setting up ssh (1:5.3p1-3ubuntu3) ...

Akcije #60

Izmjenjeno od Ernad Husremović prije više od 15 godina

http://groups.google.com/group/ganeti/tree/browse_frm/month/2009-04?_done=%2Fgroup%2Fganeti%2Fbrowse_frm%2Fmonth%2F2009-04%3Fx%x%

I used the following command to create a single kvm instance using a lenny iso:

# gnt-instance add -H kvm:boot_order=cdrom,cdrom_image_path='<ISO-FILE-PATH>',kernel_path='',initrd_path='', \
root_path=/dev/vda1,disk_type=ide,vnc_bind_address=0.0.0.0 -t
plain --disk 0:size=<SIZE> -B memory=<MEM> -o debootstrap -n <NODE> <INSTANCE>

I don't know if it is the best approach but it worked for me.

Most of the options where taken from PrimeHaxor's (thanks) email: KVM CD Images.

Akcije #63

Izmjenjeno od Ernad Husremović prije oko 15 godina

  • Prioritet promijenjeno iz Normalan u Visok
Akcije #64

Izmjenjeno od Ernad Husremović prije oko 15 godina

  • Status promijenjeno iz Dodijeljeno u Odbačeno

ovaj ganeti sam nešto čačkao ali neuspješno.
gledati standardna rješenja - drbd manuelno podesiti, opennebula, eucalyptus/EC2

Akcije

Također dostupno kao Atom PDF