Журнал лабораторных работ

Содержание

Журнал

Четверг (02/23/12)

/dev/pts/5
15:29:27
#vim /etc/xen/dom1
15:30:32
#xm create dom1
Using config file "/etc/xen/dom1".
Started domain dom1 (id=5)
/dev/pts/6
15:30:32
#xm create dom1
Using config file "/etc/xen/dom1".
Started domain dom1 (id=5)
/dev/pts/5
15:30:44
#xm console dom1
[    0.000000] Reserving virtual address space above 0xf5800000
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011
[    0.000000] ACPI in unprivileged domain disabled
[    0.000000] released 0 pages of unused memory
[    0.000000] Set 0 page(s) to 1-1 mapping.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 00000000000a0000 (usable)
[    0.000000]  Xen: 00000000000a0000 - 0000000000100000 (reserved)
...
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/hda1 does not exist.  Dropping to a shell!
BusyBox v1.17.1 (Debian 1:1.17.1-8.1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
(initramfs) 85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s...
[  300.736276] XENBUS: Timeout connecting to device: device/vbd/769 (local state 3, remote state 1)
/dev/pts/6
15:30:44
#xm console dom1
[    0.000000] Reserving virtual address space above 0xf5800000
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011
[    0.000000] ACPI in unprivileged domain disabled
[    0.000000] released 0 pages of unused memory
[    0.000000] Set 0 page(s) to 1-1 mapping.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 00000000000a0000 (usable)
[    0.000000]  Xen: 00000000000a0000 - 0000000000100000 (reserved)
...
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/hda1 does not exist.  Dropping to a shell!
BusyBox v1.17.1 (Debian 1:1.17.1-8.1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
(initramfs) 85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s...
[  300.736276] XENBUS: Timeout connecting to device: device/vbd/769 (local state 3, remote state 1)
/dev/pts/5
15:36:42
#xm destroy dom1

/dev/pts/6
15:36:42
#xm destroy dom1

/dev/pts/5
15:36:48
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7038     2     r-----   2789.1
/dev/pts/6
15:36:48
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7038     2     r-----   2789.1
/dev/pts/5
15:36:54
#vim /etc/xen/
/dev/pts/6
15:36:54
#vim /etc/xen/
/dev/pts/5
15:36:54
#vim /etc/xen/dom1
/dev/pts/6
15:36:54
#vim /etc/xen/dom1
/dev/pts/5
15:38:09
#ls -la /boot
total 27748
drwxr-xr-x  3 root root     4096 Feb 23 14:37 .
drwxr-xr-x 22 root root     4096 Feb 23 14:37 ..
-rw-r--r--  1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r--  1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
drwxr-xr-x  3 root root     4096 Feb 23 14:56 grub
-rw-r--r--  1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r--  1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r--  1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r--  1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r--  1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r--  1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r--  1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
/dev/pts/6
15:38:09
#ls -la /boot
total 27748
drwxr-xr-x  3 root root     4096 Feb 23 14:37 .
drwxr-xr-x 22 root root     4096 Feb 23 14:37 ..
-rw-r--r--  1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r--  1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
drwxr-xr-x  3 root root     4096 Feb 23 14:56 grub
-rw-r--r--  1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r--  1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r--  1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r--  1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r--  1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r--  1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r--  1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
15:38:29
#ls /root/
file.txt  install-authorized  KNOPPIX_V6.7.1CD-2011-09-14-EN.iso  start-kvm
/dev/pts/5
15:38:29
#ls /root/
file.txt  install-authorized  KNOPPIX_V6.7.1CD-2011-09-14-EN.iso  start-kvm
/dev/pts/6
15:41:21
#zcat /usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz > /etc/xen/knoppix1

/dev/pts/5
15:41:21
#zcat /usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz > /etc/xen/knoppix1

/dev/pts/6
15:42:25
#vim /etc/xen/knoppix1
/dev/pts/5
15:42:25
#vim /etc/xen/knoppix1
15:43:53
#apic=1

/dev/pts/6
15:43:53
#apic=1

/dev/pts/5
15:44:18
#vim /etc/xen/knoppix1
/dev/pts/6
15:44:18
#vim /etc/xen/knoppix1
/dev/pts/5
15:44:37
#apic=1
# 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' ]
...
# 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' ]
#
       [                      a,w' ]
"/etc/xen/dom1" 212L, 7564C written
/dev/pts/6
15:44:37
#apic=1
#----------------------------------------------------------------------------
# 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:/dev/VG0/vol1,hda1,w' ]
#----------------------------------------------------------------------------
# Define frame buffer device.
#
...
#
# Or you can bind the first unused port above 5900:
#
# vfb  [[ 'vnc=1,vnclisten=0.0a,w' ]
#
# You can override the password:
#
# vfb = [ 'vnc=1,vncpasswd=MYPASSWD' ]
#
"/etc/xen/dom1" 212L, 7564C written
15:46:07
#vim /etc/xen/dom1
--- /tmp/l3-saved-2776.24022.14685	2012-02-23 16:46:10.000000000 +0200
+++ /etc/xen/dom1	2012-02-23 16:46:21.000000000 +0200
@@ -65,7 +65,7 @@
 # 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:/dev/VG0/vol1,hda,w' ]
+disk = [ 'phy:/dev/VG0/vol1,hda1,w' ]
 
 #----------------------------------------------------------------------------
 # Define frame buffer device.
/dev/pts/5
15:46:07
#vim /etc/xen/dom1
/dev/pts/6
15:46:21
#vim /etc/xen/knoppix1
--- /tmp/l3-saved-2776.12293.21819	2012-02-23 16:46:27.000000000 +0200
+++ /etc/xen/knoppix1	2012-02-23 16:50:15.000000000 +0200
@@ -30,7 +30,7 @@
 # memory_sharing = 0
 
 # A name for your domain. All domains must have different names.
-name = "ExampleHVMDomain"
+name = "Knoppix"
 
 # 128-bit UUID for the domain.  The default behavior is to generate a new UUID
 # on each call to 'xm create'.
@@ -68,7 +68,7 @@
 # Random MACs are assigned if not given.
 #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ]
 # type=ioemu specify the NIC is an ioemu device not netfront
-vif = [ 'type=ioemu, bridge=xenbr0' ]
+vif = [ 'type=ioemu, bridge=eth0' ]
 
 #----------------------------------------------------------------------------
 # Define the disk devices you want the domain to have access to, and
@@ -78,7 +78,7 @@
 # and MODE is r for read-only, w for read-write.
 
 #disk = [ 'phy:hda1,hda1,r' ]
-disk = [ 'file:/var/images/min-el3-i386.img,hda,w', ',hdc:cdrom,r' ]
+disk = [ 'phy:/dev/VG0/vol1:sda1,w,file:/root/knoppix.iso,hda,w', ',hdc:cdrom,r' ]
 
 #----------------------------------------------------------------------------
 # Configure the behaviour when a domain exits.  There are three 'reasons'
/dev/pts/5
15:46:21
#vim /etc/xen/knoppix1
15:50:15
#apt-cache search xen-qemu
xen-qemu-dm-4.0 - Xen Qemu Device Model virtual machine hardware emulator
/dev/pts/6
15:50:15
#apt-cache search xen-qemu
xen-qemu-dm-4.0 - Xen Qemu Device Model virtual machine hardware emulator
/dev/pts/5
15:50:38
#apt-cache search xen qemu
imvirt - detects several virtualizations
libimvirt-perl - Perl module for detecting several virtualizations
libvirt-bin - the programs for the libvirt library
libvirt-dev - development files for the libvirt library
libvirt-doc - documentation for the libvirt library
libvirt0-dbg - library for interfacing with different virtualization systems
libvirt0 - library for interfacing with different virtualization systems
python-libvirt - libvirt Python bindings
libvirt-ocaml-dev - OCaml bindings for libvirt
libvirt-ocaml - OCaml bindings for libvirt
libvirt-ruby1.8 - Ruby bindings for libvirt
libvirt-ruby - Ruby bindings for libvirt
xen-qemu-dm-4.0 - Xen Qemu Device Model virtual machine hardware emulator
/dev/pts/6
15:50:38
#apt-cache search xen qemu
imvirt - detects several virtualizations
libimvirt-perl - Perl module for detecting several virtualizations
libvirt-bin - the programs for the libvirt library
libvirt-dev - development files for the libvirt library
libvirt-doc - documentation for the libvirt library
libvirt0-dbg - library for interfacing with different virtualization systems
libvirt0 - library for interfacing with different virtualization systems
python-libvirt - libvirt Python bindings
libvirt-ocaml-dev - OCaml bindings for libvirt
libvirt-ocaml - OCaml bindings for libvirt
libvirt-ruby1.8 - Ruby bindings for libvirt
libvirt-ruby - Ruby bindings for libvirt
xen-qemu-dm-4.0 - Xen Qemu Device Model virtual machine hardware emulator
/dev/pts/5
15:50:43
#apt-get install xen-qemu-dm-4.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  etherboot mknbi
The following NEW packages will be installed:
  etherboot mknbi xen-qemu-dm-4.0
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 29.6 MB of archives.
After this operation, 34.5 MB of additional disk space will be used.
...
(Reading database ... 125323 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_i386.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+squeeze1_i386.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+squeeze1) ...
/dev/pts/6
15:50:43
#apt-get install xen-qemu-dm-4.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  etherboot mknbi
The following NEW packages will be installed:
  etherboot mknbi xen-qemu-dm-4.0
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 29.6 MB of archives.
After this operation, 34.5 MB of additional disk space will be used.
...
(Reading database ... 125323 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_i386.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+squeeze1_i386.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+squeeze1) ...
/dev/pts/5
15:51:15
#xm create knoppix1
Using config file "/etc/xen/knoppix1".
Error: Invalid mode
/dev/pts/6
15:51:15
#xm create knoppix1
Using config file "/etc/xen/knoppix1".
Error: Invalid mode
15:51:26
#vim /etc/xen/knoppix
/dev/pts/5
15:51:26
#vim /etc/xen/knoppix
15:51:44
#~
#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
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
#vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ]
# type=ioemu specify the NIC is an ioemu device not netfront
vif = [ 'type=ioemu, bridge=eth0' ]
#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
...
# 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:hda1,hda1,r' ]
disk = [ 'phy:/dev/VG0/vol1:sda1,w,file:/root/knoppix.iso,hda,w', ',hdc:cdrom,r' ]
#----------------------------------------------------------------------------
# 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:
#
                                                                                       87,1          11%
/dev/pts/6
15:51:44
#~
# 0 (default option, extended power management support disabled)
# 1 (pass-through mode; uses pass-through as needed; efficient but limited in scope)
# 2 (non pass-through mode; extended scope, likely to work on all applicable environment
#    but comparitively less efficient than pass-through mode)
# xen_extended_power_mgmt=0
# 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
...
# and MODE is r for read-only, w for read-write.
                                                                                       79,0-1         8%
#disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:/dev/VG0/vol1:sda1,w,file:/root/knoppix.iso,hda,w', ',hdc:cdrom,r' ]
#----------------------------------------------------------------------------
# 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:
#
                                                                                       87,1          11%

Пятница (02/24/12)

/dev/pts/2
09:06:27
#ssh user@10.0.35.40
user@10.0.35.40's password:
Connection closed by 10.0.35.40
/dev/pts/1
09:06:27
#ssh user@10.0.35.40
user@10.0.35.40's password:
Connection closed by 10.0.35.40
/dev/pts/2
09:09:27
#screen -x
/dev/pts/1
09:09:27
#screen -x
/dev/pts/2
09:10:36
#ssh user@10.0.35.40
user@book:~$
user@book:~$
user@book:~$
user@book:~$
user@book:~$
user@book:~$ ssh root@10.0.35.45
root@10.0.35.45's password:
l3-agent is already running: pid=5589; pidfile=/root/.lilalo/l3-agent.pid
[root@debian5:~]#
[root@debian5:~]#
...
[root@debian5:~]# ls /etc/xen/
dom1  knoppix1  scripts  xend-config.sxp  xend-pci-permissive.sxp  xend-pci-quirks.sxp
[root@debian5:~]# ls /lib/modules/
2.6.32-5-xen-686  2.6.39-bpo.2-686-pae  3.2.7
[root@debian5:~]# scp /boot/vmlinuz-3.2.7 /boot/initrd.img-3.2.7 /lib/modules/3.2.7/
build/               modules.builtin      modules.devname      modules.symbols.bin
kernel/              modules.builtin.bin  modules.order        source/
modules.alias        modules.dep          modules.softdep
modules.alias.bin    modules.dep.bin      modules.symbols
[root@debian5:~]# #scp /boot/vmlinuz-3.2.7 /boot/initrd.img-3.2.7 10.0./boot/
/dev/pts/1
09:10:36
#ssh user@10.0.35.40
[2012-02-23 16:51:34 2088] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch
[2012-02-23 16:51:34 2088] DEBUG (DevController:139) Waiting for devices vif2.
[2012-02-23 16:51:34 2088] DEBUG (DevController:139) Waiting for devices vif.
[2012-02-23 16:51:34 2088] DEBUG (DevController:144) Waiting for 0.
[2012-02-23 16:51:34 2088] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/1
8/0/hotplug-status.
[2012-02-23 16:51:34 2088] DEBUG (DevController:642) hotplugStatusCallback 1.
[2012-02-23 16:51:34 2088] DEBUG (DevController:139) Waiting for devices vscsi.
[2012-02-23 16:51:34 2088] DEBUG (DevController:139) Waiting for devices vbd.
[2012-02-23 16:51:34 2088] DEBUG (DevController:144) Waiting for 2049.
...
[root@debian5:~]# ls /etc/xen/
dom1  knoppix1  scripts  xend-config.sxp  xend-pci-permissive.sxp  xend-pci-quirks.sxp
[root@debian5:~]# ls /lib/modules/
2.6.32-5-xen-686  2.6.39-bpo.2-686-pae  3.2.7
[root@debian5:~]# scp /boot/vmlinuz-3.2.7 /boot/initrd.img-3.2.7 /lib/modules/3.2.7/
build/               modules.builtin      modules.devname      modules.symbols.bin
kernel/              modules.builtin.bin  modules.order        source/
modules.alias        modules.dep          modules.softdep
modules.alias.bin    modules.dep.bin      modules.symbols
[root@debian5:~]# #scp /boot/vmlinuz-3.2.7 /boot/initrd.img-3.2.7 10.0./boot/
прошло 17 минут
/dev/pts/6
09:28:07
#ls /boot
config-2.6.32-5-xen-686      initrd.img-2.6.39-bpo.2-686-pae  vmlinuz-2.6.39-bpo.2-686-pae
config-2.6.39-bpo.2-686-pae  System.map-2.6.32-5-xen-686      xen-4.0-i386.gz
grub                         System.map-2.6.39-bpo.2-686-pae
initrd.img-2.6.32-5-xen-686  vmlinuz-2.6.32-5-xen-686
/dev/pts/5
09:28:07
#ls /boot
config-2.6.32-5-xen-686      initrd.img-2.6.39-bpo.2-686-pae  vmlinuz-2.6.39-bpo.2-686-pae
config-2.6.39-bpo.2-686-pae  System.map-2.6.32-5-xen-686      xen-4.0-i386.gz
grub                         System.map-2.6.39-bpo.2-686-pae
initrd.img-2.6.32-5-xen-686  vmlinuz-2.6.32-5-xen-686
/dev/pts/6
09:28:56
#ls /lib/modules/
2.6.32-5-xen-686  2.6.39-bpo.2-686-pae
/dev/pts/5
09:28:56
#ls /lib/modules/
2.6.32-5-xen-686  2.6.39-bpo.2-686-pae
/dev/pts/6
09:29:09
#vim /boot/grub/
/dev/pts/5
09:29:09
#vim /boot/grub/
/dev/pts/6
09:29:09
#vim /boot/grub/grub.cfg
--- /tmp/l3-saved-3162.12882.20224	2012-02-24 10:37:34.000000000 +0200
+++ /boot/grub/grub.cfg	2012-02-24 10:47:28.000000000 +0200
@@ -9,7 +9,9 @@
 if [ -s $prefix/grubenv ]; then
   load_env
 fi
-set default="4"
+
+set default="5"
+
 if [ "${prev_saved_entry}" ]; then
   set saved_entry="${prev_saved_entry}"
   save_env saved_entry
@@ -78,6 +80,7 @@
 	echo	'Loading initial ramdisk ...'
 	initrd	/boot/initrd.img-2.6.39-bpo.2-686-pae
 }
+
 menuentry 'Debian GNU/Linux, with Linux 2.6.39-bpo.2-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
 	insmod part_msdos
 	insmod ext2
@@ -122,6 +125,17 @@
 	echo	'Loading initial ramdisk ...'
 	module	/boot/initrd.img-2.6.39-bpo.2-686-pae
 }
+menuentry 'Debian GNU/Linux, with Linux 3.2.7 and XEN 4.0-i386' --class debian --class gnu-linux --class gnu --class os --class xen {
+	insmod part_msdos
+	insmod ext2
+	set root='(hd0,msdos1)'
+	search --no-floppy --fs-uuid --set d1d3fe1c-0e10-4948-816a-9c9d9edc4f8b
+	echo	'Loading Linux 3.2.7 ...'
+	multiboot	/boot/xen-4.0-i386.gz placeholder  
+	module	/boot/vmlinuz-3.2.7 placeholder root=UUID=d1d3fe1c-0e10-4948-816a-9c9d9edc4f8b ro  quiet
+	echo	'Loading initial ramdisk ...'
+	module	/boot/initrd.img-3.2.7
+}
 menuentry 'Debian GNU/Linux, with Linux 2.6.39-bpo.2-686-pae and XEN 4.0-i386 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen {
 	insmod part_msdos
 	insmod ext2
/dev/pts/5
09:29:09
#vim /boot/grub/grub.cfg
прошло 12 минут
/dev/pts/9
09:41:34
#ls /boot
config-2.6.32-5-xen-686          System.map-2.6.32-5-xen-686
config-2.6.39-bpo.2-686-pae      System.map-2.6.39-bpo.2-686-pae
config-3.2.7                     System.map-3.2.7
grub                             vmlinuz-2.6.32-5-xen-686
initrd.img-2.6.32-5-xen-686      vmlinuz-2.6.39-bpo.2-686-pae
initrd.img-2.6.39-bpo.2-686-pae  vmlinuz-3.2.7
initrd.img-3.2.7                 xen-4.0-i386.gz
/dev/pts/10
09:41:34
#ls /boot
config-2.6.32-5-xen-686          System.map-2.6.32-5-xen-686
config-2.6.39-bpo.2-686-pae      System.map-2.6.39-bpo.2-686-pae
config-3.2.7                     System.map-3.2.7
grub                             vmlinuz-2.6.32-5-xen-686
initrd.img-2.6.32-5-xen-686      vmlinuz-2.6.39-bpo.2-686-pae
initrd.img-2.6.39-bpo.2-686-pae  vmlinuz-3.2.7
initrd.img-3.2.7                 xen-4.0-i386.gz
/dev/pts/9
09:41:38
#ls -a /boot
.                                initrd.img-3.2.7
..                               System.map-2.6.32-5-xen-686
config-2.6.32-5-xen-686          System.map-2.6.39-bpo.2-686-pae
config-2.6.39-bpo.2-686-pae      System.map-3.2.7
config-3.2.7                     vmlinuz-2.6.32-5-xen-686
grub                             vmlinuz-2.6.39-bpo.2-686-pae
initrd.img-2.6.32-5-xen-686      vmlinuz-3.2.7
initrd.img-2.6.39-bpo.2-686-pae  xen-4.0-i386.gz
/dev/pts/10
09:41:38
#ls -a /boot
.                                initrd.img-3.2.7
..                               System.map-2.6.32-5-xen-686
config-2.6.32-5-xen-686          System.map-2.6.39-bpo.2-686-pae
config-2.6.39-bpo.2-686-pae      System.map-3.2.7
config-3.2.7                     vmlinuz-2.6.32-5-xen-686
grub                             vmlinuz-2.6.39-bpo.2-686-pae
initrd.img-2.6.32-5-xen-686      vmlinuz-3.2.7
initrd.img-2.6.39-bpo.2-686-pae  xen-4.0-i386.gz
/dev/pts/9
09:42:07
#ls -l /boot
total 44556
-rw-r--r-- 1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r-- 1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root   134737 Feb 24 10:31 config-3.2.7
drwxr-xr-x 3 root root     4096 Feb 24 10:38 grub
-rw-r--r-- 1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r-- 1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root 12911973 Feb 24 10:31 initrd.img-3.2.7
-rw-r--r-- 1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r-- 1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  1545412 Feb 24 10:31 System.map-3.2.7
-rw-r--r-- 1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r-- 1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  2587920 Feb 24 10:31 vmlinuz-3.2.7
-rw-r--r-- 1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
/dev/pts/10
09:42:07
#ls -l /boot
total 44556
-rw-r--r-- 1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r-- 1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root   134737 Feb 24 10:31 config-3.2.7
drwxr-xr-x 3 root root     4096 Feb 24 10:38 grub
-rw-r--r-- 1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r-- 1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root 12911973 Feb 24 10:31 initrd.img-3.2.7
-rw-r--r-- 1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r-- 1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  1545412 Feb 24 10:31 System.map-3.2.7
-rw-r--r-- 1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r-- 1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  2587920 Feb 24 10:31 vmlinuz-3.2.7
-rw-r--r-- 1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
09:42:13
#ls -l /boot
total 44556
-rw-r--r-- 1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r-- 1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root   134737 Feb 24 10:31 config-3.2.7
drwxr-xr-x 3 root root     4096 Feb 24 10:47 grub
-rw-r--r-- 1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r-- 1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root 12911973 Feb 24 10:31 initrd.img-3.2.7
-rw-r--r-- 1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r-- 1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  1545412 Feb 24 10:31 System.map-3.2.7
-rw-r--r-- 1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r-- 1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  2587920 Feb 24 10:31 vmlinuz-3.2.7
-rw-r--r-- 1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
/dev/pts/9
09:42:13
#ls -l /boot
total 44556
-rw-r--r-- 1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r-- 1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root   134737 Feb 24 10:31 config-3.2.7
drwxr-xr-x 3 root root     4096 Feb 24 10:47 grub
-rw-r--r-- 1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r-- 1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root 12911973 Feb 24 10:31 initrd.img-3.2.7
-rw-r--r-- 1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r-- 1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  1545412 Feb 24 10:31 System.map-3.2.7
-rw-r--r-- 1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r-- 1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  2587920 Feb 24 10:31 vmlinuz-3.2.7
-rw-r--r-- 1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
/dev/pts/6
09:47:28
#reboot

/dev/pts/5
09:47:28
#reboot

/dev/pts/9
09:47:35
#ls -l /boot
total 44556
-rw-r--r-- 1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r-- 1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root   134737 Feb 24 10:31 config-3.2.7
drwxr-xr-x 3 root root     4096 Feb 24 10:47 grub
-rw-r--r-- 1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r-- 1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root 12911973 Feb 24 10:31 initrd.img-3.2.7
-rw-r--r-- 1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r-- 1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  1545412 Feb 24 10:31 System.map-3.2.7
-rw-r--r-- 1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r-- 1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  2587920 Feb 24 10:31 vmlinuz-3.2.7
-rw-r--r-- 1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
/dev/pts/10
09:47:35
#ls -l /boot
total 44556
-rw-r--r-- 1 root root   112250 Jan 16 22:24 config-2.6.32-5-xen-686
-rw-r--r-- 1 root root   130046 Aug  4  2011 config-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root   134737 Feb 24 10:31 config-3.2.7
drwxr-xr-x 3 root root     4096 Feb 24 10:47 grub
-rw-r--r-- 1 root root  9493778 Feb 23 14:37 initrd.img-2.6.32-5-xen-686
-rw-r--r-- 1 root root 10122544 Feb 21 14:26 initrd.img-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root 12911973 Feb 24 10:31 initrd.img-3.2.7
-rw-r--r-- 1 root root  1355581 Jan 16 22:24 System.map-2.6.32-5-xen-686
-rw-r--r-- 1 root root  1507960 Aug  4  2011 System.map-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  1545412 Feb 24 10:31 System.map-3.2.7
-rw-r--r-- 1 root root  2428416 Jan 16 22:23 vmlinuz-2.6.32-5-xen-686
-rw-r--r-- 1 root root  2598672 Aug  4  2011 vmlinuz-2.6.39-bpo.2-686-pae
-rw-r--r-- 1 root root  2587920 Feb 24 10:31 vmlinuz-3.2.7
-rw-r--r-- 1 root root   573631 Nov  7 10:21 xen-4.0-i386.gz
/dev/pts/4
09:50:55
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7365     2     r-----     30.0
/dev/pts/3
09:50:55
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7365     2     r-----     30.0
/dev/pts/4
09:50:57
#brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0007e90c4511       no              peth0
/dev/pts/3
09:50:57
#brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0007e90c4511       no              peth0
/dev/pts/4
09:51:02
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo #eth0.30 eth0.40
iface lo inet loopback
# The primary network interface
allow-hotplug eth0 #eth0.30 eth0.40
iface eth0 inet static
        address 10.0.35.43
        netmask 255.255.255.0
...
        gateway 10.0.35.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 10.0.35.1
        dns-search unix.nt
#iface eth0.30 inet static
#       address 192.168.30.3
#       netmask 255.255.255.0
#iface eth0.40 inet static
#       address 192.168.40.3
#       netmask 255.255.255.0
/dev/pts/3
09:51:02
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo #eth0.30 eth0.40
iface lo inet loopback
# The primary network interface
allow-hotplug eth0 #eth0.30 eth0.40
iface eth0 inet static
        address 10.0.35.43
        netmask 255.255.255.0
...
        gateway 10.0.35.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 10.0.35.1
        dns-search unix.nt
#iface eth0.30 inet static
#       address 192.168.30.3
#       netmask 255.255.255.0
#iface eth0.40 inet static
#       address 192.168.40.3
#       netmask 255.255.255.0
/dev/pts/4
09:51:35
#cat /etc/xen/
dom1                     scripts/                 xend-pci-permissive.sxp
knoppix1                 xend-config.sxp          xend-pci-quirks.sxp
/dev/pts/3
09:51:35
#cat /etc/xen/
dom1                     scripts/                 xend-pci-permissive.sxp
knoppix1                 xend-config.sxp          xend-pci-quirks.sxp
/dev/pts/4
09:51:35
#cat /etc/xen/scripts/
blktap                   logging.sh               vif-common.sh            vtpm-hotplug-common.sh
block                    network-bridge           vif-nat                  vtpm-impl
block-common.sh          network-nat              vif-route                vtpm-migration.sh
block-enbd               network-route            vscsi                    xen-hotplug-cleanup
block-nbd                qemu-ifup                vtpm                     xen-hotplug-common.sh
external-device-migrate  vif2                     vtpm-common.sh           xen-network-common.sh
locking.sh               vif-bridge               vtpm-delete              xen-script-common.sh
09:51:35
#cat /etc/xen/scripts/
blktap                   logging.sh               vif-common.sh            vtpm-hotplug-common.sh
block                    network-bridge           vif-nat                  vtpm-impl
block-common.sh          network-nat              vif-route                vtpm-migration.sh
block-enbd               network-route            vscsi                    xen-hotplug-cleanup
block-nbd                qemu-ifup                vtpm                     xen-hotplug-common.sh
external-device-migrate  vif2                     vtpm-common.sh           xen-network-common.sh
locking.sh               vif-bridge               vtpm-delete              xen-script-common.sh
/dev/pts/3
09:51:35
#cat /etc/xen/scripts/
blktap                   logging.sh               vif-common.sh            vtpm-hotplug-common.sh
block                    network-bridge           vif-nat                  vtpm-impl
block-common.sh          network-nat              vif-route                vtpm-migration.sh
block-enbd               network-route            vscsi                    xen-hotplug-cleanup
block-nbd                qemu-ifup                vtpm                     xen-hotplug-common.sh
external-device-migrate  vif2                     vtpm-common.sh           xen-network-common.sh
locking.sh               vif-bridge               vtpm-delete              xen-script-common.sh
09:51:35
#cat /etc/xen/scripts/
blktap                   logging.sh               vif-common.sh            vtpm-hotplug-common.sh
block                    network-bridge           vif-nat                  vtpm-impl
block-common.sh          network-nat              vif-route                vtpm-migration.sh
block-enbd               network-route            vscsi                    xen-hotplug-cleanup
block-nbd                qemu-ifup                vtpm                     xen-hotplug-common.sh
external-device-migrate  vif2                     vtpm-common.sh           xen-network-common.sh
locking.sh               vif-bridge               vtpm-delete              xen-script-common.sh
/dev/pts/4
09:51:35
#cat /etc/xen/xend-config.sxp
# -*- sh -*-
#
# Xend configuration file.
#
# This example configuration is appropriate for an installation that
# utilizes a bridged network configuration. Access to xend via http
# is disabled.
# Commented out entries show the default for that entry, unless otherwise
# specified.
#(logfile /var/log/xen/xend.log)
...
# destruction
#(device-create-timeout 100)
#(device-destroy-timeout 100)
# When assigning device to HVM guest, we use the strict check for HVM guest by
# default. (For PV guest, we use loose check automatically if necessary.)
# When we assign device to HVM guest, if we meet with the co-assignment
# issues or the ACS issue, we could try changing the option to 'no' -- however,
# we have to realize this may incur security issue and we can't make sure the
# device assignment could really work properly even after we do this.
#(pci-passthrough-strict-check yes)
/dev/pts/3
09:51:35
#cat /etc/xen/xend-config.sxp
# -*- sh -*-
#
# Xend configuration file.
#
# This example configuration is appropriate for an installation that
# utilizes a bridged network configuration. Access to xend via http
# is disabled.
# Commented out entries show the default for that entry, unless otherwise
# specified.
#(logfile /var/log/xen/xend.log)
...
# destruction
#(device-create-timeout 100)
#(device-destroy-timeout 100)
# When assigning device to HVM guest, we use the strict check for HVM guest by
# default. (For PV guest, we use loose check automatically if necessary.)
# When we assign device to HVM guest, if we meet with the co-assignment
# issues or the ACS issue, we could try changing the option to 'no' -- however,
# we have to realize this may incur security issue and we can't make sure the
# device assignment could really work properly even after we do this.
#(pci-passthrough-strict-check yes)
/dev/pts/4
09:53:56
#vim /etc/xen/xend-config.sxp
/dev/pts/3
09:53:56
#vim /etc/xen/xend-config.sxp
/dev/pts/4
09:59:47
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7365     2     r-----     43.4
/dev/pts/3
09:59:47
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7365     2     r-----     43.4
/dev/pts/4
09:59:59
#ls /etc/xen/
dom1  knoppix1  scripts  xend-config.sxp  xend-pci-permissive.sxp  xend-pci-quirks.sxp
/dev/pts/3
09:59:59
#ls /etc/xen/
dom1  knoppix1  scripts  xend-config.sxp  xend-pci-permissive.sxp  xend-pci-quirks.sxp
/dev/pts/4
10:02:58
#vim /etc/xen/dom1
/dev/pts/3
10:02:58
#vim /etc/xen/dom1
/dev/pts/4
10:07:58
#vgdisplay
  --- Volume group ---
  VG Name               VG0
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               4.66 GiB
  PE Size               4.00 MiB
  Total PE              1192
  Alloc PE / Size       512 / 2.00 GiB
  Free  PE / Size       680 / 2.66 GiB
  VG UUID               8gj0hL-4Z0D-N5vx-fSRj-b7f0-kqCW-ynaax4
/dev/pts/3
10:07:58
#vgdisplay
  --- Volume group ---
  VG Name               VG0
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               4.66 GiB
  PE Size               4.00 MiB
  Total PE              1192
  Alloc PE / Size       512 / 2.00 GiB
  Free  PE / Size       680 / 2.66 GiB
  VG UUID               8gj0hL-4Z0D-N5vx-fSRj-b7f0-kqCW-ynaax4
/dev/pts/4
10:08:02
#pvdisplay
  --- Physical volume ---
  PV Name               /dev/md0
  VG Name               VG0
  PV Size               4.66 GiB / not usable 260.00 KiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              1192
  Free PE               680
  Allocated PE          512
  PV UUID               s6FIs9-d29s-Csk7-bFtV-U1UP-rIO9-nN2ud9
  "/dev/sda6" is a new physical volume of "4.66 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sda6
  VG Name
  PV Size               4.66 GiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               he43Jp-5QUa-uS2V-2clZ-Lhuy-MzdV-0PcTAy
/dev/pts/3
10:08:02
#pvdisplay
  --- Physical volume ---
  PV Name               /dev/md0
  VG Name               VG0
  PV Size               4.66 GiB / not usable 260.00 KiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              1192
  Free PE               680
  Allocated PE          512
  PV UUID               s6FIs9-d29s-Csk7-bFtV-U1UP-rIO9-nN2ud9
  "/dev/sda6" is a new physical volume of "4.66 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sda6
  VG Name
  PV Size               4.66 GiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               he43Jp-5QUa-uS2V-2clZ-Lhuy-MzdV-0PcTAy
/dev/pts/4
10:08:15
#cfdisk
/dev/pts/3
10:08:15
#cfdisk
/dev/pts/4
10:10:26
#pvcreate
  Please enter a physical volume path
  Run `pvcreate --help' for more information.
/dev/pts/3
10:10:26
#pvcreate
  Please enter a physical volume path
  Run `pvcreate --help' for more information.
/dev/pts/4
10:10:35
#fdisk
Usage:
 fdisk [options] <disk>    change partition table
 fdisk [options] -l <disk> list partition table(s)
 fdisk -s <partition>      give partition size(s) in blocks
Options:
 -b <size>                 sector size (512, 1024, 2048 or 4096)
 -c                        switch off DOS-compatible mode
 -h                        print help
 -u <size>                 give sizes in sectors instead of cylinders
 -v                        print version
 -C <number>               specify the number of cylinders
 -H <number>               specify the number of heads
 -S <number>               specify the number of sectors per track
/dev/pts/3
10:10:35
#fdisk
Usage:
 fdisk [options] <disk>    change partition table
 fdisk [options] -l <disk> list partition table(s)
 fdisk -s <partition>      give partition size(s) in blocks
Options:
 -b <size>                 sector size (512, 1024, 2048 or 4096)
 -c                        switch off DOS-compatible mode
 -h                        print help
 -u <size>                 give sizes in sectors instead of cylinders
 -v                        print version
 -C <number>               specify the number of cylinders
 -H <number>               specify the number of heads
 -S <number>               specify the number of sectors per track

Файлы

  • /etc/network/interfaces
  • /etc/xen/
  • /etc/xen/scripts/
  • /etc/xen/xend-config.sxp
  • /etc/network/interfaces
    >
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo #eth0.30 eth0.40
    iface lo inet loopback
    # The primary network interface
    allow-hotplug eth0 #eth0.30 eth0.40
    iface eth0 inet static
            address 10.0.35.43
            netmask 255.255.255.0
            network 10.0.35.0
            broadcast 10.0.35.255
            gateway 10.0.35.1
            # dns-* options are implemented by the resolvconf package, if installed
            dns-nameservers 10.0.35.1
            dns-search unix.nt
    #iface eth0.30 inet static
    #       address 192.168.30.3
    #       netmask 255.255.255.0
    #iface eth0.40 inet static
    #       address 192.168.40.3
    #       netmask 255.255.255.0
    
    /etc/xen/
    >
    dom1                     scripts/                 xend-pci-permissive.sxp
    knoppix1                 xend-config.sxp          xend-pci-quirks.sxp
    
    /etc/xen/scripts/
    >
    blktap                   logging.sh               vif-common.sh            vtpm-hotplug-common.sh
    block                    network-bridge           vif-nat                  vtpm-impl
    block-common.sh          network-nat              vif-route                vtpm-migration.sh
    block-enbd               network-route            vscsi                    xen-hotplug-cleanup
    block-nbd                qemu-ifup                vtpm                     xen-hotplug-common.sh
    external-device-migrate  vif2                     vtpm-common.sh           xen-network-common.sh
    locking.sh               vif-bridge               vtpm-delete              xen-script-common.sh
    
    /etc/xen/xend-config.sxp
    >
    # -*- sh -*-
    #
    # Xend configuration file.
    #
    # This example configuration is appropriate for an installation that
    # utilizes a bridged network configuration. Access to xend via http
    # is disabled.
    # Commented out entries show the default for that entry, unless otherwise
    # specified.
    #(logfile /var/log/xen/xend.log)
    #(loglevel DEBUG)
    # Uncomment the line below.  Set the value to flask, acm, or dummy to
    # select a security module.
    #(xsm_module_name dummy)
    # The Xen-API server configuration.
    #
    # This value configures the ports, interfaces, and access controls for the
    # Xen-API server.  Each entry in the list starts with either unix, a port
    # number, or an address:port pair.  If this is "unix", then a UDP socket is
    # opened, and this entry applies to that.  If it is a port, then Xend will
    # listen on all interfaces on that TCP port, and if it is an address:port
    # pair, then Xend will listen on the specified port, using the interface with
    # the specified address.
    #
    # The subsequent string configures the user-based access control for the
    # listener in question.  This can be one of "none" or "pam", indicating either
    # that users should be allowed access unconditionally, or that the local
    # Pluggable Authentication Modules configuration should be used.  If this
    # string is missing or empty, then "pam" is used.
    #
    # The final string gives the host-based access control for that listener. If
    # this is missing or empty, then all connections are accepted.  Otherwise,
    # this should be a space-separated sequence of regular expressions; any host
    # with a fully-qualified domain name or an IP address that matches one of
    # these regular expressions will be accepted.
    #
    # Example: listen on TCP port 9363 on all interfaces, accepting connections
    # only from machines in example.com or localhost, and allow access through
    # the unix domain socket unconditionally:
    #
    #   (xen-api-server ((9363 pam '^localhost$ example\\.com$')
    #                    (unix none)))
    #
    # Optionally, the TCP Xen-API server can use SSL by specifying the private
    # key and certificate location:
    #
    #                    (9367 pam '' xen-api.key xen-api.crt)
    #
    # Default:
    #   (xen-api-server ((unix)))
    #(xend-http-server no)
    #(xend-unix-server no)
    #(xend-tcp-xmlrpc-server no)
    #(xend-unix-xmlrpc-server yes)
    #(xend-relocation-server no)
    #(xend-relocation-ssl-server no)
    #(xend-udev-event-server no)
    #(xend-unix-path /var/lib/xend/xend-socket)
    # Address and port xend should use for the legacy TCP XMLRPC interface,
    # if xend-tcp-xmlrpc-server is set.
    #(xend-tcp-xmlrpc-server-address 'localhost')
    #(xend-tcp-xmlrpc-server-port 8006)
    # SSL key and certificate to use for the legacy TCP XMLRPC interface.
    # Setting these will mean that this port serves only SSL connections as
    # opposed to plaintext ones.
    #(xend-tcp-xmlrpc-server-ssl-key-file  xmlrpc.key)
    #(xend-tcp-xmlrpc-server-ssl-cert-file xmlrpc.crt)
    # Port xend should use for the HTTP interface, if xend-http-server is set.
    #(xend-port            8000)
    # Port xend should use for the relocation interface, if xend-relocation-server
    # is set.
    #(xend-relocation-port 8002)
    # Port xend should use for the ssl relocation interface, if
    # xend-relocation-ssl-server is set.
    #(xend-relocation-ssl-port 8003)
    # SSL key and certificate to use for the ssl relocation interface, if
    # xend-relocation-ssl-server is set.
    #(xend-relocation-server-ssl-key-file   xmlrpc.key)
    #(xend-relocation-server-ssl-cert-file  xmlrpc.crt)
    # Whether to use ssl as default when relocating.
    #(xend-relocation-ssl no)
    # Address xend should listen on for HTTP connections, if xend-http-server is
    # set.
    # Specifying 'localhost' prevents remote connections.
    # Specifying the empty string '' (the default) allows all connections.
    #(xend-address '')
    #(xend-address localhost)
    # Address xend should listen on for relocation-socket connections, if
    # xend-relocation-server is set.
    # Meaning and default as for xend-address above.
    #(xend-relocation-address '')
    # The hosts allowed to talk to the relocation port.  If this is empty (the
    # default), then all connections are allowed (assuming that the connection
    # arrives on a port and interface on which we are listening; see
    # xend-relocation-port and xend-relocation-address above).  Otherwise, this
    # should be a space-separated sequence of regular expressions.  Any host with
    # a fully-qualified domain name or an IP address that matches one of these
    # regular expressions will be accepted.
    #
    # For example:
    #  (xend-relocation-hosts-allow '^localhost$ ^.*\\.example\\.org$')
    #
    #(xend-relocation-hosts-allow '')
    # The limit (in kilobytes) on the size of the console buffer
    #(console-limit 1024)
    ##
    # NOTE:
    # Please read /usr/share/doc/xen-utils-common/README.Debian for Debian specific
    # informations about the network setup.
    ##
    # To bridge network traffic, like this:
    #
    # dom0: ----------------- bridge -> real eth0 -> the network
    #                            |
    # domU: fake eth0 -> vifN.0 -+
    #
    # use
    #
    # (network-script network-bridge)
    #
    # Your default ethernet device is used as the outgoing interface, by default.
    # To use a different one (e.g. eth1) use
    #
     (network-script 'network-bridge netdev=eth0')
    #
    # The bridge is named xenbr0, by default.  To rename the bridge, use
    #
    # (network-script 'network-bridge bridge=<name>')
    #
    # It is possible to use the network-bridge script in more complicated
    # scenarios, such as having two outgoing interfaces, with two bridges, and
    # two fake interfaces per guest domain.  To do things like this, write
    # yourself a wrapper script, and call network-bridge from it, as appropriate.
    #
    # The script used to control virtual interfaces.  This can be overridden on a
    # per-vif basis when creating a domain or a configuring a new vif.  The
    # vif-bridge script is designed for use with the network-bridge script, or
    # similar configurations.
    #
    # If you have overridden the bridge name using
    # (network-script 'network-bridge bridge=<name>') then you may wish to do the
    # same here.  The bridge name can also be set when creating a domain or
    # configuring a new vif, but a value specified here would act as a default.
    #
    # If you are using only one bridge, the vif-bridge script will discover that,
    # so there is no need to specify it explicitly.
    #
    (vif-script vif-bridge)
    ## Use the following if network traffic is routed, as an alternative to the
    # settings for bridged networking given above.
    #(network-script network-route)
    #(vif-script     vif-route)
    ## Use the following if network traffic is routed with NAT, as an alternative
    # to the settings for bridged networking given above.
    #(network-script network-nat)
    #(vif-script     vif-nat)
    # dom0-min-mem is the lowest permissible memory level (in MB) for dom0.
    # This is a minimum both for auto-ballooning (as enabled by
    # enable-dom0-ballooning below) and for xm mem-set when applied to dom0.
    (dom0-min-mem 196)
    # Whether to enable auto-ballooning of dom0 to allow domUs to be created.
    # If enable-dom0-ballooning = no, dom0 will never balloon out.
    (enable-dom0-ballooning yes)
    # 32-bit paravirtual domains can only consume physical
    # memory below 168GB. On systems with memory beyond that address,
    # they'll be confined to memory below 128GB.
    # Using total_available_memory (in GB) to specify the amount of memory reserved
    # in the memory pool exclusively for 32-bit paravirtual domains.
    # Additionally you should use dom0_mem = <-Value> as a parameter in
    # xen kernel to reserve the memory for 32-bit paravirtual domains, default
    # is "0" (0GB).
    (total_available_memory 0)
    # In SMP system, dom0 will use dom0-cpus # of CPUS
    # If dom0-cpus = 0, dom0 will take all cpus available
    (dom0-cpus 0)
    # Whether to enable core-dumps when domains crash.
    #(enable-dump no)
    # The tool used for initiating virtual TPM migration
    #(external-migration-tool '')
    # The interface for VNC servers to listen on. Defaults
    # to 127.0.0.1  To restore old 'listen everywhere' behaviour
    # set this to 0.0.0.0
    #(vnc-listen '127.0.0.1')
    # The default password for VNC console on HVM domain.
    # Empty string is no authentication.
    (vncpasswd '')
    # The VNC server can be told to negotiate a TLS session
    # to encryption all traffic, and provide x509 cert to
    # clients enabling them to verify server identity. The
    # GTK-VNC widget, virt-viewer, virt-manager and VeNCrypt
    # all support the VNC extension for TLS used in QEMU. The
    # TightVNC/RealVNC/UltraVNC clients do not.
    #
    # To enable this create x509 certificates / keys in the
    # directory ${XEN_CONFIG_DIR} + vnc
    #
    #  ca-cert.pem       - The CA certificate
    #  server-cert.pem   - The Server certificate signed by the CA
    #  server-key.pem    - The server private key
    #
    # and then uncomment this next line
    # (vnc-tls 1)
    # The certificate dir can be pointed elsewhere..
    #
    # (vnc-x509-cert-dir vnc)
    # The server can be told to request & validate an x509
    # certificate from the client. Only clients with a cert
    # signed by the trusted CA will be able to connect. This
    # is more secure the password auth alone. Passwd auth can
    # used at the same time if desired. To enable client cert
    # checking uncomment this:
    #
    # (vnc-x509-verify 1)
    # The default keymap to use for the VM's virtual keyboard
    # when not specififed in VM's configuration
    #(keymap 'en-us')
    # Script to run when the label of a resource has changed.
    #(resource-label-change-script '')
    # Rotation count of qemu-dm log file.
    #(qemu-dm-logrotate-count 10)
    # Path where persistent domain configuration is stored.
    # Default is /var/lib/xend/domains/
    #(xend-domains-path /var/lib/xend/domains)
    # Number of seconds xend will wait for device creation and
    # destruction
    #(device-create-timeout 100)
    #(device-destroy-timeout 100)
    # When assigning device to HVM guest, we use the strict check for HVM guest by
    # default. (For PV guest, we use loose check automatically if necessary.)
    # When we assign device to HVM guest, if we meet with the co-assignment
    # issues or the ACS issue, we could try changing the option to 'no' -- however,
    # we have to realize this may incur security issue and we can't make sure the
    # device assignment could really work properly even after we do this.
    #(pci-passthrough-strict-check yes)
    

    Статистика

    Время первой команды журнала15:29:27 2012- 2-23
    Время последней команды журнала10:10:35 2012- 2-24
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %11.88
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.44
    Количество командных строк в единицу времени, команда/мин 1.17
    Частота использования команд
    vim23|======================| 22.33%
    ls20|===================| 19.42%
    xm14|=============| 13.59%
    cat10|=========| 9.71%
    apic=14|===| 3.88%
    ssh4|===| 3.88%
    apt-cache4|===| 3.88%
    brctl2|=| 1.94%
    screen2|=| 1.94%
    fdisk2|=| 1.94%
    cfdisk2|=| 1.94%
    pvdisplay2|=| 1.94%
    reboot2|=| 1.94%
    pvcreate2|=| 1.94%
    zcat2|=| 1.94%
    apt-get2|=| 1.94%
    /etc/xen/knoppix12|=| 1.94%
    ~2|=| 1.94%
    vgdisplay2|=| 1.94%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$