/l3/users/tigor/nt-scale/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#ls
scripts vm-linux3 xend-config.sxp xend-pci-permissive.sxp xend-pci-quirks.sxp |
#cat vm-linux3
# -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ... # - /dev/sgxx or sgx # - result of 'scsi_id -gu -s'. # ex. # scsi_id -gu -s /block/sdb # 36000b5d0006a0000006a0257004c0000 # # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as # which the specified guest domain recognize. # #vscsi = [ '/dev/sdx, 0:0:0:0' ] #============================================================================ |
#grep -v ^# /etc/xen/vm-linux3 | grep -vx ''
kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" memory = 128 name = "vm-linux3" vif = [ 'bridge=eth0' ] disk = [ 'phy:NEWVG/vm-linux3,xvda1,w' ] root = "/dev/xvda1 ro" extra = "4" |
#for i in {1..20}
> do > cat <<EOF > /etc/xen/vm$i > kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" > ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" > memory = 128 > name = "vm$i" > vif = [ 'bridge=eth0' ] > disk = [ 'phy:NEWVG/vm$i,xvda1,w' ] > root = "/dev/xvda1 ro" > extra = "4" > EOF > done |
#less vm10
|
#xm create vm1
Using config file "./vm1". Started domain vm1 (id=4) |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 5894 2 r----- 5264.8 vm1 4 128 1 -b---- 1.4 |
#for i in {1..20}
![]() > do > xm create vm^C |
#for i in {2..20}; do
> xm create vm$i > done Using config file "./vm2". Started domain vm2 (id=5) Using config file "./vm3". Started domain vm3 (id=6) Using config file "./vm4". Started domain vm4 (id=7) Using config file "./vm5". Started domain vm5 (id=8) ... Using config file "./vm16". Started domain vm16 (id=19) Using config file "./vm17". Started domain vm17 (id=20) Using config file "./vm18". Started domain vm18 (id=21) Using config file "./vm19". Started domain vm19 (id=22) Using config file "./vm20". Started domain vm20 (id=23) |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 6302 2 r----- 5374.5 vm1 4 128 1 -b---- 1.4 vm10 13 128 1 -b---- 1.4 vm11 14 128 1 -b---- 1.5 vm12 15 128 1 -b---- 1.4 vm13 16 128 1 -b---- 1.4 vm14 17 128 1 -b---- 1.4 vm15 18 128 1 -b---- 1.3 vm16 19 128 1 -b---- 1.3 ... vm19 22 128 1 -b---- 1.4 vm2 5 128 1 -b---- 1.4 vm20 23 128 1 -b---- 1.5 vm3 6 128 1 -b---- 1.5 vm4 7 128 1 -b---- 1.4 vm5 8 128 1 -b---- 3.5 vm6 9 128 1 -b---- 1.4 vm7 10 128 1 -b---- 1.4 vm8 11 128 1 -b---- 1.4 vm9 12 128 1 -b---- 1.4 |
#xm console vm20
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 4 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] released 0 pages of unused memory ... Cleaning up temporary files.... Setting kernel variables ...done. Configuring network interfaces...done. Cleaning up temporary files.... INIT: Entering runlevel: 4 Using makefile-style concurrent boot in runlevel 4. Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. Starting OpenBSD Secure Shell server: sshd. Debian GNU/Linux 6.0 vm-linux3 hvc0 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 6302 2 r----- 5392.0 vm1 4 128 1 -b---- 1.4 vm10 13 128 1 -b---- 1.4 vm11 14 128 1 -b---- 1.5 vm12 15 128 1 -b---- 1.4 vm13 16 128 1 -b---- 1.4 vm14 17 128 1 -b---- 1.4 vm15 18 128 1 -b---- 1.3 vm16 19 128 1 -b---- 1.3 ... vm19 22 128 1 -b---- 1.4 vm2 5 128 1 -b---- 1.4 vm20 23 128 1 -b---- 1.5 vm3 6 128 1 -b---- 1.5 vm4 7 128 1 -b---- 1.4 vm5 8 128 1 -b---- 3.5 vm6 9 128 1 -b---- 1.4 vm7 10 128 1 -b---- 1.4 vm8 11 128 1 -b---- 1.4 vm9 12 128 1 -b---- 1.4 |
#apt-cache search virtd
|
#apt-cache search virt
aewm++ - minimal window manager written in C++ aolserver4-core - AOL web server version 4 - core libraries aolserver4-daemon - AOL web server version 4 - program files aolserver4-dev - AOL web server version 4 - development files aolserver4-doc - AOL web server version 4 - documentation apache2 - Apache HTTP Server metapackage python-apipkg - namespace control and lazy-import mechanism for Python apoo - An Assembly course aid aqemu - Qt4 front-end for QEMU and KVM aranym - Atari Running on Any Machine ... xserver-xorg-input-vmmouse - X.Org X server -- VMMouse input driver to use with VMWare xserver-xorg-video-qxl - X.Org X server -- QXL display driver xteddy - a cuddly teddy bear (or other image) for your X desktop xvkbd - software virtual keyboard for X11 yasr - General-purpose console screen reader r-cran-zelig - GNU R package providing a unified front-end for estimating statistical models zerofree - zero free blocks from ext2/3 file-systems libzipios++-dev - a small C++ library for reading zip files (development) libzipios++-doc - a small C++ library for reading zip files (documents) libzipios++0c2a - a small C++ library for reading zip files (library) |
#/etc/init.d/
![]() acpid hwclock.sh portmap acpi-fakekey ifupdown pppd-dns acpi-support ifupdown-clean procps alsa-utils kbd rc anacron kerneloops rc.local apmd kexec rcS atd kexec-load reboot avahi-daemon keyboard-setup rmnologin binfmt-support keymap.sh rsync bluetooth killprocs rsyslog ... checkroot.sh loadcpufreq stop-bootlogd console-setup lvm2 stop-bootlogd-single cpufrequtils module-init-tools sudo cron mountall-bootclean.sh udev cups mountall.sh udev-mtab dbus mountdevsubfs.sh umountfs ebtables mountkernfs.sh umountnfs.sh exim4 mountnfs-bootclean.sh umountroot fancontrol mountnfs.sh unattended-upgrades fuse mountoverflowtmp urandom |
#apt-cache search virt manager
aewm++ - minimal window manager written in C++ ctwm - Claude's Tab window manager dvtm - Tiling window management for the console fvwm-icons - icon *.xpm files from fvwm development site fvwm - F(?) Virtual Window Manager fvwm1 - Old version of the F(?) Virtual Window Manager gamin - File and directory monitoring system libgnomevfs2-0-dbg - GNOME Virtual File System (debugging libraries) libgnomevfs2-0 - GNOME Virtual File System (runtime libraries) libgnomevfs2-bin - GNOME Virtual File System (support binaries) ... libthunar-vfs-1-2 - VFS abstraction used in thunar vde2 - Virtual Distributed Ethernet vdesk - manages virtual desktops for minimal window managers virt-manager - desktop application for managing virtual machines voms-server - Virtual Organization Membership Service Server vtwm - Virtual Tab Window Manager w9wm - enhanced window manager based on 9wm windowlab - small and simple Amiga-like window manager windows-el - window manager for GNU Emacs xfm - X file and application manager |
#/etc/init.d/li
![]() libvirt-bin live-boot live-config |
#/etc/init.d/li
![]() libvirt-bin live-boot live-config |
#/etc/init.d/libvirt-bin start
Starting libvirt management daemon: libvirtd already running. |
#/etc/init.d/libvirt-bin restart
Restarting libvirt management daemon: /usr/sbin/libvirtd. |
#vim /etc/xen/xend-config.sxp
--- /tmp/l3-saved-14737.25129.8516 2011-02-25 12:32:24.000000000 +0200 +++ /etc/xen/xend-config.sxp 2011-02-25 12:33:16.000000000 +0200 @@ -57,7 +57,7 @@ # (xen-api-server ((unix))) -#(xend-http-server no) +(xend-http-server yes) #(xend-unix-server no) #(xend-tcp-xmlrpc-server no) #(xend-unix-xmlrpc-server yes) @@ -81,7 +81,7 @@ # Port xend should use for the HTTP interface, if xend-http-server is set. -#(xend-port 8000) +(xend-port 8000) # Port xend should use for the relocation interface, if xend-relocation-server # is set. |
#virt-manager
![]() |
#apt-cache search ovirt
|
#lvcreate /dev/NEWVG/win0
![]() Volume group name expected (no slash) Run `lvcreate --help' for more information. |
#lvcreate /dev/NEWVG/win0
![]() Volume group name expected (no slash) Run `lvcreate --help' for more information. |
#ssh-keygen -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 5e:81:3c:31:0d:18:f3:07:49:06:a0:cd:ff:a4:4a:51 root@linux3 The key's randomart image is: +--[ DSA 1024]----+ | ..+=B+ | | + .=.=. | | . o E = o | | o o . | | . . S . | | . = . | | . . o | | . . | | . | +-----------------+ |
#for i in {1..20}
> do > xm shutdown vm$i > done |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 5596 2 r----- 5946.9 vm10 13 124 1 -b---- 1.7 vm11 14 124 1 -b---- 1.9 vm12 15 124 1 -b---- 1.8 vm13 16 124 1 -b---- 1.7 vm14 17 124 1 -b---- 1.7 vm15 18 124 1 -b---- 1.7 vm16 19 124 1 -b---- 1.7 vm17 20 124 1 -b---- 1.7 vm18 21 124 1 -b---- 1.7 vm19 22 124 1 -b---- 1.8 vm20 23 124 1 -b---- 1.9 vm4 7 124 1 -b---- 1.8 vm5 8 124 1 -b---- 3.8 vm6 9 124 1 -b---- 1.7 vm7 10 124 1 -b---- 1.7 vm8 11 124 1 -b---- 1.8 vm9 12 124 1 -b---- 1.7 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 5596 2 r----- 5976.4 |
#mount /dev/NEWVG/vg10 /mnt
![]() mount: special device /dev/NEWVG/vg10 does not exist |
#mount /dev/NEWVG/vm10 /mnt
|
#less /mnt/etc/network/interfaces
|
#less /mnt/root/.ssh/authorized_keys
|
#ls -l /mnt/root/.ssh/authorized_keys
-rw-r--r-- 1 root root 601 лют 25 12:44 /mnt/root/.ssh/authorized_keys |
#umount /mnt
|
#for i in {1..20}; do xm create vm$i; done
Using config file "./vm1". Started domain vm1 (id=24) Using config file "./vm2". Started domain vm2 (id=25) Using config file "./vm3". Started domain vm3 (id=26) Using config file "./vm4". Started domain vm4 (id=27) Using config file "./vm5". Started domain vm5 (id=28) ... Using config file "./vm16". Started domain vm16 (id=39) Using config file "./vm17". Started domain vm17 (id=40) Using config file "./vm18". Started domain vm18 (id=41) Using config file "./vm19". Started domain vm19 (id=42) Using config file "./vm20". Started domain vm20 (id=43) |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 5596 2 r----- 6206.6 vm1 24 128 1 -b---- 1.4 vm10 33 128 1 -b---- 1.4 vm11 34 128 1 -b---- 1.4 vm12 35 128 1 -b---- 1.3 vm13 36 128 1 -b---- 1.4 vm14 37 128 1 -b---- 1.4 vm15 38 128 1 -b---- 1.3 vm16 39 128 1 -b---- 1.3 ... vm19 42 128 1 -b---- 1.4 vm2 25 128 1 -b---- 1.3 vm20 43 128 1 -b---- 2.1 vm3 26 128 1 -b---- 1.3 vm4 27 128 1 -b---- 1.3 vm5 28 128 1 -b---- 1.4 vm6 29 128 1 -b---- 1.4 vm7 30 128 1 -b---- 1.3 vm8 31 128 1 -b---- 1.3 vm9 32 128 1 -b---- 1.3 |
#ping 192.168.15.201
PING 192.168.15.201 (192.168.15.201) 56(84) bytes of data. 64 bytes from 192.168.15.201: icmp_req=1 ttl=64 time=4.55 ms ^C --- 192.168.15.201 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 4.557/4.557/4.557/0.000 ms |
#ssh 192.168.15.201
The authenticity of host '192.168.15.201 (192.168.15.201)' can't be established. RSA key fingerprint is 7e:a8:b8:ed:7a:9a:b4:05:d5:2b:5e:f5:da:62:a1:bb. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.201' (RSA) to the list of known hosts. Linux vm-linux3 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 25 09:23:37 2011 root@vm-linux3:~# exit logout Connection to 192.168.15.201 closed. |
#ssh
![]() ssh ssh-agent ssh-copy-id ssh-keygen ssh-vulnkey ssh-add ssh-argv0 sshd ssh-keyscan |
#ssh-keyscan 192.168.15.201
# 192.168.15.201 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.201 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf |
#for i in {1..20}; do ssh-keyscan 192.168.15.$[200+i]; done
# 192.168.15.201 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.201 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.202 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.202 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.203 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.203 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.204 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.204 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.205 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.205 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf ... # 192.168.15.216 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.216 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.217 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.217 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.218 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.218 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.219 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.219 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf # 192.168.15.220 SSH-2.0-OpenSSH_5.5p1 Debian-6 192.168.15.220 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/sUcd2+p3jl/MONXVpQ8QKqf1U59Ah0PFQP+g7yjQHSlqbjaznImGPwcSTkBinHjQSFRtJDFahQm14U7Su7/Xpho6Z6znb2nsNEG2xokNGh+bLvJsHk26Q5zqUb2fJVcK93CWr/ct+2YclhPB0SEGThkfHxdJsV4Fz+pdtRGxXQPjNEAEZlcW4pF4G98aEnIaaELTM90I06cbkyjpxaOnOUwHp21HeMpYtdxMTM/1+PuQQlvCzBziIhJ/uZX4aQSY4TbBejRwek4tn1lW3ZYD6Q4tRMbAV+hexlWkUiYddTyF6P7R1JbmfEiCxpnm80DGgS+xDqXQlk19G31BdKRf |
#ssh 192.168.15.220
Linux vm-linux3 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 25 09:23:37 2011 root@vm-linux3:~# exit logout Connection to 192.168.15.220 closed. |
#apt-cache search dsh
apf-firewall - easy iptables based firewall system catdoc - MS-Word to TeX or plain text converter docbook2odf - XSLT based conversions from docbook to Oasis Open Document (openoffice.org) dsh - dancer's shell, or distributed shell libeigen2-dev - lightweight C++ template library for linear algebra fatrat - multi-protocol download manager, feature rich and extensible via plugin libjs-flotr - plotting library for the Prototype Framework galleta - An Internet Explorer cookie forensic analysis tool libgdata-cil-dev - Google GData CLI client library libgdata1.4-cil - Google GData CLI client library ... webdruid - A web server log file analysis tool libwriter2latex-java-doc - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- javadoc libwriter2latex-java - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- library openoffice.org-writer2latex - Writer/Calc to LaTeX converter extension for OpenOffice.org openoffice.org-writer2xhtml - Writer/Calc to XHTML converter extension for OpenOffice.org writer2latex-manual - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- manual writer2latex - OpenOffice.org Writer/Calc to LaTeX/XHTML converter libxbae-dev - Xbae Matrix Widget development package libxbae4 - Xbae Matrix Widget libraries python-xlwt - module for reading/writing Microsoft Excel spreadsheet files |
#apt-cache search distributed shell
bzrtools - Collection of tools for bzr dish - the diligence/distributed shell for parallel sysadmin dsh - dancer's shell, or distributed shell ksh - The real, AT&T version of the Korn shell narval-utils - An Ada framework for Distributed Acquisition Systems (utils) pal - command-line calendar program that can keep track of events scsh - A `scheme' interpreter designed for writing system programs (default version) tiger-otheros - Scripts to run Tiger in other operating systems |
#apt-get install dsh
Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Будуть встановлені наступні додаткові пакунки: libdshconfig1 Пропоновані пакунки: update-cluster НОВІ пакунки, які будуть встановлені: dsh libdshconfig1 оновлено 0, встановлено 2 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. ... Отр:2 http://10.0.35.1/debian/ squeeze/main dsh amd64 0.25.10-1 [36,3 kB] Отримано 47,3 kB за 0sB (198 kB/s) Selecting previously deselected package libdshconfig1. (Reading database ... 129071 files and directories currently installed.) Unpacking libdshconfig1 (from .../libdshconfig1_0.20.13-1_amd64.deb) ... Selecting previously deselected package dsh. Unpacking dsh (from .../dsh_0.25.10-1_amd64.deb) ... Processing triggers for man-db ... Setting up libdshconfig1 (0.20.13-1) ... Setting up dsh (0.25.10-1) ... |
#dpkg -L dsh
/. /usr /usr/bin /usr/bin/dsh /usr/sbin /usr/share /usr/share/locale /usr/share/locale/ja /usr/share/locale/ja/LC_MESSAGES /usr/share/locale/ja/LC_MESSAGES/dsh.mo ... /usr/share/doc/dsh/changelog.Debian.gz /usr/lib /usr/lib/update-cluster /usr/lib/update-cluster/dsh.updatelist /etc /etc/dsh /etc/dsh/group /etc/dsh/dsh.conf /etc/dsh/machines.list /etc/dsh/group/all |
#vim /etc/dsh/machines.list
|
#~
.list machines. |
#dsh -h
![]() Distributed Shell / Dancer's shell version 0.25.10 Copyright 2001-2005 Junichi Uekawa, distributed under the terms and conditions of GPL version 2 -v --verbose Verbose output -q --quiet Quiet -M --show-machine-names Prepend the host name on output -H --hide-machine-names Do not prepend host name on output -i --duplicate-input Duplicate input given to dsh -b --bufsize Change buffer size used in input duplication -m --machine [machinename] Execute on machine -n --num-topology How to divide the machines -a --all Execute on all machines -g --group [groupname] Execute on group member -f --file [file] Use the file as list of machines -r --remoteshell [shellname] Execute using shell (rsh/ssh) -o --remoteshellopt [option] Option to give to shell -h --help Give out this message -w --wait-shell Sequentially execute shell -c --concurrent-shell Execute shell concurrently -F --forklimit [fork limit] Concurrent with limit on number -V --version Give out version information |
#dsh -a date
Fri Feb 25 10:50:18 UTC 2011 Fri Feb 25 10:50:18 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:19 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 Fri Feb 25 10:50:20 UTC 2011 |
#dsh -h
![]() dsh -h Distributed Shell / Dancer's shell version 0.25.10 Copyright 2001-2005 Junichi Uekawa, distributed under the terms and conditions of GPL version 2 -v --verbose Verbose output -q --quiet Quiet -M --show-machine-names Prepend the host name on output -H --hide-machine-names Do not prepend host name on output -i --duplicate-input Duplicate input given to dsh -b --bufsize Change buffer size used in input duplication ... -a --all Execute on all machines -g --group [groupname] Execute on group member -f --file [file] Use the file as list of machines -r --remoteshell [shellname] Execute using shell (rsh/ssh) -o --remoteshellopt [option] Option to give to shell -h --help Give out this message -w --wait-shell Sequentially execute shell -c --concurrent-shell Execute shell concurrently -F --forklimit [fork limit] Concurrent with limit on number -V --version Give out version information |
#dsh route -n
![]() dsh: no machine specified |
#dsh -a route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ... 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 |
#dsh -a route add -net 192.168.30.0/24 gw 192.168.15.1
|
#man dsh
|
#dsh -aM route -n
192.168.15.201: Kernel IP routing table 192.168.15.201: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.201: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.15.201: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 192.168.15.201: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 192.168.15.202: Kernel IP routing table 192.168.15.202: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.202: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.15.202: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 192.168.15.202: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 ... 192.168.15.219: Kernel IP routing table 192.168.15.219: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.219: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.15.219: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 192.168.15.219: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 192.168.15.220: Kernel IP routing table 192.168.15.220: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.220: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.15.220: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 192.168.15.220: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 |
#dsh -aM route -n | sed s/192.168.15.//
201: Kernel IP routing table 201: Destination Gateway Genmask Flags Metric Ref Use Iface 201: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 201: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 201: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 202: Kernel IP routing table 202: Destination Gateway Genmask Flags Metric Ref Use Iface 202: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 202: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 202: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 ... 219: Kernel IP routing table 219: Destination Gateway Genmask Flags Metric Ref Use Iface 219: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 219: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 219: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 220: Kernel IP routing table 220: Destination Gateway Genmask Flags Metric Ref Use Iface 220: 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 220: 192.168.30.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth0 220: 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 5596 2 r----- 7748.8 vm1 24 128 1 -b---- 2.7 vm10 33 128 1 -b---- 2.6 vm11 34 128 1 -b---- 2.6 vm12 35 128 1 -b---- 2.6 vm13 36 128 1 -b---- 2.6 vm14 37 128 1 -b---- 2.6 vm15 38 128 1 -b---- 2.6 vm16 39 128 1 -b---- 2.5 ... vm19 42 128 1 -b---- 2.6 vm2 25 128 1 -b---- 2.5 vm20 43 128 1 -b---- 3.5 vm3 26 128 1 -b---- 2.5 vm4 27 128 1 -b---- 2.5 vm5 28 128 1 -b---- 2.6 vm6 29 128 1 -b---- 2.6 vm7 30 128 1 -b---- 2.6 vm8 31 128 1 -b---- 2.5 vm9 32 128 1 -b---- 2.6 |
#xm dmesg | grep -i vmx
(XEN) VMX: Supported advanced features: (XEN) HVM: VMX enabled |
#apt-get install vncviewer
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Note, selecting 'xtightvncviewer' instead of 'vncviewer' Пропоновані пакунки: tightvncserver НОВІ пакунки, які будуть встановлені: xtightvncviewer оновлено 0, встановлено 1 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 95,4 kB архівів. After this operation, 242 kB of additional disk space will be used. Отр:1 http://10.0.35.1/debian/ squeeze/main xtightvncviewer amd64 1.3.9-6.1+b1 [95,4 kB] Отримано 95,4 kB за 0sB (1 185 kB/s) Selecting previously deselected package xtightvncviewer. (Reading database ... 129097 files and directories currently installed.) Unpacking xtightvncviewer (from .../xtightvncviewer_1.3.9-6.1+b1_amd64.deb) ... Processing triggers for menu ... Processing triggers for man-db ... Setting up xtightvncviewer (1.3.9-6.1+b1) ... update-alternatives: using /usr/bin/xtightvncviewer to provide /usr/bin/vncviewer (vncviewer) in auto mode. Processing triggers for menu ... |
#apt-get install vncviewer
Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Note, selecting 'xtightvncviewer' instead of 'vncviewer' Пропоновані пакунки: tightvncserver НОВІ пакунки, які будуть встановлені: xtightvncviewer оновлено 0, встановлено 1 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 95,4 kB архівів. After this operation, 242 kB of additional disk space will be used. Отр:1 http://10.0.35.1/debian/ squeeze/main xtightvncviewer amd64 1.3.9-6.1+b1 [95,4 kB] Отримано 95,4 kB за 0sB (1 185 kB/s) Selecting previously deselected package xtightvncviewer. (Reading database ... 129097 files and directories currently installed.) Unpacking xtightvncviewer (from .../xtightvncviewer_1.3.9-6.1+b1_amd64.deb) ... Processing triggers for menu ... Processing triggers for man-db ... Setting up xtightvncviewer (1.3.9-6.1+b1) ... update-alternatives: using /usr/bin/xtightvncviewer to provide /usr/bin/vncviewer (vncviewer) in auto mode. Processing triggers for menu ... |
#apt-get install quemu
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано E: Не можу знайти пакунок quemu |
#apt-get install quemu
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано E: Не можу знайти пакунок quemu |
#apt-get install xen-qemu-dm-4.0
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Будуть встановлені наступні додаткові пакунки: etherboot mknbi НОВІ пакунки, які будуть встановлені: etherboot mknbi xen-qemu-dm-4.0 оновлено 0, встановлено 3 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 29,6 MB архівів. After this operation, 34,7 MB of additional disk space will be used. Бажаєте продовжити [Т/н]? t Перервано. |
#apt-get install xen-qemu-dm-4.0
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Будуть встановлені наступні додаткові пакунки: etherboot mknbi НОВІ пакунки, які будуть встановлені: etherboot mknbi xen-qemu-dm-4.0 оновлено 0, встановлено 3 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 29,6 MB архівів. After this operation, 34,7 MB of additional disk space will be used. Бажаєте продовжити [Т/н]? t Перервано. |
#apt-get install xen-qemu-dm-4.0
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Будуть встановлені наступні додаткові пакунки: etherboot mknbi НОВІ пакунки, які будуть встановлені: etherboot mknbi xen-qemu-dm-4.0 оновлено 0, встановлено 3 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 29,6 MB архівів. After this operation, 34,7 MB of additional disk space will be used. ... (Reading database ... 129105 files and directories currently installed.) Unpacking etherboot (from .../etherboot_5.4.4-9_all.deb) ... Selecting previously deselected package mknbi. Unpacking mknbi (from .../mknbi_1.4.4-7_amd64.deb) ... Selecting previously deselected package xen-qemu-dm-4.0. Unpacking xen-qemu-dm-4.0 (from .../xen-qemu-dm-4.0_4.0.1-2_amd64.deb) ... Processing triggers for man-db ... Setting up etherboot (5.4.4-9) ... Setting up mknbi (1.4.4-7) ... Setting up xen-qemu-dm-4.0 (4.0.1-2) ... |
#apt-get install xen-qemu-dm-4.0
Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано Будуть встановлені наступні додаткові пакунки: etherboot mknbi НОВІ пакунки, які будуть встановлені: etherboot mknbi xen-qemu-dm-4.0 оновлено 0, встановлено 3 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 29,6 MB архівів. After this operation, 34,7 MB of additional disk space will be used. ... (Reading database ... 129105 files and directories currently installed.) Unpacking etherboot (from .../etherboot_5.4.4-9_all.deb) ... Selecting previously deselected package mknbi. Unpacking mknbi (from .../mknbi_1.4.4-7_amd64.deb) ... Selecting previously deselected package xen-qemu-dm-4.0. Unpacking xen-qemu-dm-4.0 (from .../xen-qemu-dm-4.0_4.0.1-2_amd64.deb) ... Processing triggers for man-db ... Setting up etherboot (5.4.4-9) ... Setting up mknbi (1.4.4-7) ... Setting up xen-qemu-dm-4.0 (4.0.1-2) ... |
#ssh user@192.168.15.1
![]() The authenticity of host '192.168.15.1 (192.168.15.1)' can't be established. RSA key fingerprint is 24:14:2b:8b:67:6a:26:a8:e4:eb:a5:6e:d0:00:a0:f0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.1' (RSA) to the list of known hosts. user@192.168.15.1's password: Linux linux1 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 25 14:25:55 2011 from linux2.local l3-agent is already running: pid=2418; pidfile=/home/user/.lilalo/l3-agent.pid |
#ssh user@192.168.15.1
The authenticity of host '192.168.15.1 (192.168.15.1)' can't be established. RSA key fingerprint is 24:14:2b:8b:67:6a:26:a8:e4:eb:a5:6e:d0:00:a0:f0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.1' (RSA) to the list of known hosts. user@192.168.15.1's password: Linux linux1 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 25 14:25:55 2011 from linux2.local l3-agent is already running: pid=2418; pidfile=/home/user/.lilalo/l3-agent.pid |
$ls
![]() scripts winxp1 xend-pci-permissive.sxp xenscreenrc vm-linux1 xend-config.sxp xend-pci-quirks.sxp |
$ls
scripts winxp1 xend-pci-permissive.sxp xenscreenrc vm-linux1 xend-config.sxp xend-pci-quirks.sxp |
#cd/usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz
![]() bash: cd/usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz: No such file or directory |
#cd/usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz
![]() bash: cd/usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz: No such file or directory |
#cd/usr/share/doc/xen-utils-common/examples
![]() bash: cd/usr/share/doc/xen-utils-common/examples: No such file or directory |
#cd/usr/share/doc/xen-utils-common/examples
![]() bash: cd/usr/share/doc/xen-utils-common/examples: No such file or directory |
#ls
![]() xm-config.xml xmexample3.gz xmexample.nbd xmexample1.gz xmexample.hvm.gz xmexample.pv-grub.gz xmexample2.gz xmexample.hvm-stubdom.gz xmexample.vti.gz |
#ls
xm-config.xml xmexample3.gz xmexample.nbd xmexample1.gz xmexample.hvm.gz xmexample.pv-grub.gz xmexample2.gz xmexample.hvm-stubdom.gz xmexample.vti.gz |
# -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" # Optional ramdisk. ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" # The domain build function. Default is 'linux'. #builder='linux' # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. memory = 128 # A name for your domain. All domains must have different names. name = "vm-linux3" # 128-bit UUID for the domain. The default behavior is to generate a new UUID # on each call to 'xm create'. #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9" # List of which CPUS this domain is allowed to use, default Xen picks #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 # Number of Virtual CPUS to use, default is 1 #vcpus = 1 #---------------------------------------------------------------------------- # Define network interfaces. # By default, no network interfaces are configured. You may have one created # with sensible defaults using an empty vif clause: # # vif = [ '' ] # # or optionally override backend, bridge, ip, mac, script, type, or vifname: # # vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ] # # or more than one interface may be configured: # # vif = [ '', 'bridge=xenbr1' ] vif = [ 'bridge=eth0' ] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. disk = [ 'phy:NEWVG/vm-linux3,xvda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. # # By default, no frame buffer device is configured. # # To create one using the SDL backend and sensible defaults: # # vfb = [ 'sdl=1' ] # # This uses environment variables XAUTHORITY and DISPLAY. You # can override that: # # vfb = [ 'sdl=1,xauthority=/home/bozo/.Xauthority,display=:1' ] # # To create one using the VNC backend and sensible defaults: # # vfb = [ 'vnc=1' ] # # The backend listens on 127.0.0.1 port 5900+N by default, where N is # the domain ID. You can override both address and N: # # vfb = [ 'vnc=1,vnclisten=127.0.0.1,vncdisplay=1' ] # # Or you can bind the first unused port above 5900: # # vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncunused=1' ] # # You can override the password: # # vfb = [ 'vnc=1,vncpasswd=MYPASSWD' ] # # Empty password disables authentication. Defaults to the vncpasswd # configured in xend-config.sxp. #---------------------------------------------------------------------------- # Define to which TPM instance the user domain should communicate. # The vtpm entry is of the form 'instance=INSTANCE,backend=DOM' # where INSTANCE indicates the instance number of the TPM the VM # should be talking to and DOM provides the domain where the backend # is located. # Note that no two virtual machines should try to connect to the same # TPM instance. The handling of all TPM instances does require # some management effort in so far that VM configration files (and thus # a VM) should be associated with a TPM instance throughout the lifetime # of the VM / VM configuration file. The instance number must be # greater or equal to 1. #vtpm = [ 'instance=1,backend=0' ] #---------------------------------------------------------------------------- # Set the kernel command line for the new domain. # You only need to define the IP parameters and hostname if the domain's # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP. # You can use 'extra' to set the runlevel and custom environment # variables used by custom rc scripts (e.g. VMID=, usr= ). # Set if you want dhcp to allocate the IP address. #dhcp="dhcp" # Set netmask. #netmask= # Set default gateway. #gateway= # Set the hostname. #hostname= "vm%d" % vmid # Set root device. root = "/dev/xvda1 ro" # Root device for nfs. #root = "/dev/nfs" # The nfs server. #nfs_server = '192.0.2.1' # Root directory on the nfs server. #nfs_root = '/full/path/to/root/directory' # Sets runlevel 4. extra = "4" #---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' # for a domain to stop: poweroff, reboot, and crash. For each of these you # may specify: # # "destroy", meaning that the domain is cleaned up as normal; # "restart", meaning that a new domain is started in place of the old # one; # "preserve", meaning that no clean-up is done until the domain is # manually destroyed (using xm destroy, for example); or # "rename-restart", meaning that the old domain is not cleaned up, but is # renamed and a new domain started in its place. # # In the event a domain stops due to a crash, you have the additional options: # # "coredump-destroy", meaning dump the crashed domain's core and then destroy; # "coredump-restart', meaning dump the crashed domain's core and the restart. # # The default is # # on_poweroff = 'destroy' # on_reboot = 'restart' # on_crash = 'restart' # # For backwards compatibility we also support the deprecated option restart # # restart = 'onreboot' means on_poweroff = 'destroy' # on_reboot = 'restart' # on_crash = 'destroy' # # restart = 'always' means on_poweroff = 'restart' # on_reboot = 'restart' # on_crash = 'restart' # # restart = 'never' means on_poweroff = 'destroy' # on_reboot = 'destroy' # on_crash = 'destroy' #on_poweroff = 'destroy' #on_reboot = 'restart' #on_crash = 'restart' #----------------------------------------------------------------------------- # Configure PVSCSI devices: # #vscsi=[ 'PDEV, VDEV' ] # # PDEV gives physical SCSI device to be attached to specified guest # domain by one of the following identifier format. # - XX:XX:XX:XX (4-tuples with decimal notation which shows # "host:channel:target:lun") # - /dev/sdxx or sdx # - /dev/stxx or stx # - /dev/sgxx or sgx # - result of 'scsi_id -gu -s'. # ex. # scsi_id -gu -s /block/sdb # 36000b5d0006a0000006a0257004c0000 # # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as # which the specified guest domain recognize. # #vscsi = [ '/dev/sdx, 0:0:0:0' ] #============================================================================
Время первой команды журнала | 11:13:29 2011- 2-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:32:41 2011- 2-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 9.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008