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

Содержание

Журнал

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

/dev/pts/2
15:34:09
#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.32-5-xen-686 (Debian 2.6.32-41) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Jan 16 19:46:09 UTC 2012
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   NSC Geode by NSC
[    0.000000]   Cyrix CyrixInstead
[    0.000000]   Centaur CentaurHauls
...
[    0.166885] registered taskstats version 1
[    0.166902] XENBUS: Device with no driver: device/vbd/51713
[    0.166910] XENBUS: Device with no driver: device/console/0
[    0.166934] /build/buildd-linux-2.6_2.6.32-41-i386-0vD9OO/linux-2.6-2.6.32/debian/build/source_i386_xen/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.166979] Initalizing network drop monitor service
[    0.167021] Freeing unused kernel memory: 404k freed
[    0.168048] Write protecting the kernel text: 2640k
[    0.168375] Write protecting the kernel read-only data: 968k
Loading, please wait...
[    0.196201] udev[48]: starting version 164
15:34:37
#mdadm
Usage: mdadm --help
  for help
/dev/pts/3
15:34:37
#mdadm
Usage: mdadm --help
  for help
/dev/pts/2
15:40:08
#mdadm --help
mdadm is used for building, managing, and monitoring
Linux md devices (aka RAID arrays)
Usage: mdadm --create device options...
            Create a new array from unused devices.
       mdadm --assemble device options...
            Assemble a previously created array.
       mdadm --build device options...
            Create or assemble an array without metadata.
       mdadm --manage device options...
            make changes to an existing array.
...
            Shorthand for --manage.
Any parameter that does not start with '-' is treated as a device name
or, for --examine-bitmap, a file name.
The first such name is often the name of an md device.  Subsequent
names are often names of component devices.
 For detailed help on the above major modes use --help after the mode
 e.g.
         mdadm --assemble --help
 For general help on options use
         mdadm --help-options
/dev/pts/3
15:40:08
#mdadm --help
mdadm is used for building, managing, and monitoring
Linux md devices (aka RAID arrays)
Usage: mdadm --create device options...
            Create a new array from unused devices.
       mdadm --assemble device options...
            Assemble a previously created array.
       mdadm --build device options...
            Create or assemble an array without metadata.
       mdadm --manage device options...
            make changes to an existing array.
...
            Shorthand for --manage.
Any parameter that does not start with '-' is treated as a device name
or, for --examine-bitmap, a file name.
The first such name is often the name of an md device.  Subsequent
names are often names of component devices.
 For detailed help on the above major modes use --help after the mode
 e.g.
         mdadm --assemble --help
 For general help on options use
         mdadm --help-options
/dev/pts/2
15:40:15
#mdadm --list
mdadm: unrecognized option '--list'
Usage: mdadm --help
  for help
/dev/pts/3
15:40:15
#mdadm --list
mdadm: unrecognized option '--list'
Usage: mdadm --help
  for help
/dev/pts/2
15:40:26
#mdadm --show
mdadm: unrecognized option '--show'
Usage: mdadm --help
  for help
/dev/pts/3
15:40:26
#mdadm --show
mdadm: unrecognized option '--show'
Usage: mdadm --help
  for help
/dev/pts/2
15:40:32
#cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Tue, 21 Feb 2012 10:30:38 +0200
# by mkconf 3.1.4-1+8efb9d1+squeeze1
#ARRAY /dev/md0 metadata=1.2 name=debian4:0 UUID=0134c9b8:518b1731:dafc54a0:17bf076c
#ARRAY /dev/md0 metadata=1.2 spares=1 name=debian4:0 UUID=9664f36d:76c83492:e6100878:098835fb
#ARRAY /dev/md1 metadata=1.2 name=debian4:1 UUID=b4532fd4:20202c66:296fee88:bbe5f8b0
/dev/pts/3
15:40:32
#cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Tue, 21 Feb 2012 10:30:38 +0200
# by mkconf 3.1.4-1+8efb9d1+squeeze1
#ARRAY /dev/md0 metadata=1.2 name=debian4:0 UUID=0134c9b8:518b1731:dafc54a0:17bf076c
#ARRAY /dev/md0 metadata=1.2 spares=1 name=debian4:0 UUID=9664f36d:76c83492:e6100878:098835fb
#ARRAY /dev/md1 metadata=1.2 name=debian4:1 UUID=b4532fd4:20202c66:296fee88:bbe5f8b0
/dev/pts/2
15:40:48
#ls
disk1.img  disk2.img  disk3.img  disk4.img  disk5.img  install-authorized  knoppix.iso  loosetup.txt  start-kvm
/dev/pts/3
15:40:48
#ls
disk1.img  disk2.img  disk3.img  disk4.img  disk5.img  install-authorized  knoppix.iso  loosetup.txt  start-kvm
/dev/pts/2
15:41:28
#zcat /usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz > /etc/xen/knoppix1

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

/dev/pts/2
15:42:23
#vim /etc/xen/knoppix1
/dev/pts/3
15:42:23
#vim /etc/xen/knoppix1
--- /tmp/l3-saved-2966.11383.30462	2012-02-23 16:42:36.000000000 +0200
+++ /etc/xen/knoppix1	2012-02-23 16:45:06.000000000 +0200
@@ -18,7 +18,7 @@
 # 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
+memory = 512
 
 # Shadow pagetable memory for the domain, in MB.
 # If not explicictly set, xend will pick an appropriate value.  
@@ -30,7 +30,7 @@
 # memory_sharing = 0
 
 # A name for your domain. All domains must have different names.
-name = "ExampleHVMDomain"
+name = "knoppix1"
 
 # 128-bit UUID for the domain.  The default behavior is to generate a new UUID
 # on each call to 'xm create'.
@@ -68,7 +68,8 @@
 # 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=xenbr0' ]
+vif = [ 'type=ioemu, bridge=eth0' ]
 
 #----------------------------------------------------------------------------
 # Define the disk devices you want the domain to have access to, and
@@ -78,7 +79,9 @@
 # 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 = [ 'file:/var/images/min-el3-i386.img,hda,w', ',hdc:cdrom,r' ]
+disk = [ 'phy:/dev/VG0/vol1,hda,w', 'file:/root/knoppix.iso,hdc:cdrom,r' ]
+
 
 #----------------------------------------------------------------------------
 # Configure the behaviour when a domain exits.  There are three 'reasons'
15:45:06
#xm info
host                   : debian4
release                : 2.6.39-bpo.2-686-pae
version                : #1 SMP Thu Aug 4 11:02:22 UTC 2011
machine                : i686
nr_cpus                : 2
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2327
hw_caps                : bfebfbff:20100000:00000000:00000940:0000e3fd:00000000:00000001:00000000
...
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xf5800000
xen_changeset          : unavailable
xen_commandline        : placeholder
cc_compiler            : gcc version 4.4.5 (Debian 4.4.5-8)
cc_compile_by          : waldi
cc_compile_domain      : debian.org
cc_compile_date        : Mon Nov  7 09:18:26 CET 2011
xend_config_format     : 4
/dev/pts/2
15:45:06
#xm info
host                   : debian4
release                : 2.6.39-bpo.2-686-pae
version                : #1 SMP Thu Aug 4 11:02:22 UTC 2011
machine                : i686
nr_cpus                : 2
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2327
hw_caps                : bfebfbff:20100000:00000000:00000940:0000e3fd:00000000:00000001:00000000
...
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xf5800000
xen_changeset          : unavailable
xen_commandline        : placeholder
cc_compiler            : gcc version 4.4.5 (Debian 4.4.5-8)
cc_compile_by          : waldi
cc_compile_domain      : debian.org
cc_compile_date        : Mon Nov  7 09:18:26 CET 2011
xend_config_format     : 4
15:45:18
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7466     2     r-----     63.1
dom1                                         2   128     1     -b----      1.5
/dev/pts/3
15:45:18
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7466     2     r-----     63.1
dom1                                         2   128     1     -b----      1.5
/dev/pts/2
15:45:24
#xm destroy dom1

/dev/pts/3
15:45:24
#xm destroy dom1

/dev/pts/2
15:45:36
#xm create knoppix1
Using config file "/etc/xen/knoppix1".
Error: 'NoneType' object has no attribute 'rfind'
/dev/pts/3
15:45:36
#xm create knoppix1
Using config file "/etc/xen/knoppix1".
Error: 'NoneType' object has no attribute 'rfind'
/dev/pts/2
15:45:48
#vim /etc/xen/knoppix1