/l3/users/eb/2009/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 |
|
#debootstrap sid /mnt
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead. I: Retrieving Release I: Retrieving Packages E: Interrupt caught ... exiting |
#debootstrap sid /mnt
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead. I: Retrieving Release I: Retrieving Packages E: Interrupt caught ... exiting |
#debootstrap --help
Usage: debootstrap [OPTION]... <suite> <target> [<mirror> [<script>]] Bootstrap Debian base system. --help display this help and exit --version display version information and exit --verbose don't turn off the output of wget --download-only download packages, but don't perform installation --print-debs print the packages to be installed, and exit --arch=A set the target architecture (use if no dpkg) [ --arch=powerpc ] --include=A,B,C adds specified names to the list of base packages ... --keyring=K check Release files against keyring K --no-resolve-deps don't try to resolve dependencies automatically --unpack-tarball=T acquire .debs from a tarball instead of http --make-tarball=T download .debs and create a tarball (tgz format) --second-stage-target=DIR Run second stage in a subdirectory instead of root (can be used to create a foreign chroot) (requires --second-stage) --boot-floppies used for internal purposes by boot-floppies --debian-installer used for internal purposes by debian-installer |
#debootstrap --help
Usage: debootstrap [OPTION]... <suite> <target> [<mirror> [<script>]] Bootstrap Debian base system. --help display this help and exit --version display version information and exit --verbose don't turn off the output of wget --download-only download packages, but don't perform installation --print-debs print the packages to be installed, and exit --arch=A set the target architecture (use if no dpkg) [ --arch=powerpc ] --include=A,B,C adds specified names to the list of base packages ... --keyring=K check Release files against keyring K --no-resolve-deps don't try to resolve dependencies automatically --unpack-tarball=T acquire .debs from a tarball instead of http --make-tarball=T download .debs and create a tarball (tgz format) --second-stage-target=DIR Run second stage in a subdirectory instead of root (can be used to create a foreign chroot) (requires --second-stage) --boot-floppies used for internal purposes by boot-floppies --debian-installer used for internal purposes by debian-installer |
#debootstrap sid /mnt
I: Configuring ncurses-bin... I: Configuring base-files... I: Configuring mount... I: Configuring libdevmapper1.02.1... I: Configuring dpkg... I: Configuring sysvinit-utils... I: Configuring bash... I: Configuring mktemp... I: Configuring lsb-base... I: Configuring procps... ... I: Configuring gpgv... I: Configuring gnupg... I: Configuring debian-archive-keyring... I: Configuring apt... I: Configuring libept0... I: Configuring apt-utils... I: Configuring aptitude... I: Configuring tasksel-data... I: Configuring tasksel... I: Base system installed successfully. |
#debootstrap sid /mnt
I: Configuring ncurses-bin... I: Configuring base-files... I: Configuring mount... I: Configuring libdevmapper1.02.1... I: Configuring dpkg... I: Configuring sysvinit-utils... I: Configuring bash... I: Configuring mktemp... I: Configuring lsb-base... I: Configuring procps... ... I: Configuring gpgv... I: Configuring gnupg... I: Configuring debian-archive-keyring... I: Configuring apt... I: Configuring libept0... I: Configuring apt-utils... I: Configuring aptitude... I: Configuring tasksel-data... I: Configuring tasksel... I: Base system installed successfully. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:48526 errors:0 dropped:0 overruns:0 frame:0 TX packets:28030 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:69070441 (65.8 MiB) TX bytes:2242946 (2.1 MiB) Base address:0xbc00 Memory:ff8e0000-ff900000 eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba ... RX packets:6971 errors:0 dropped:0 overruns:0 frame:0 TX packets:6971 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:27282315 (26.0 MiB) TX bytes:27282315 (26.0 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:48526 errors:0 dropped:0 overruns:0 frame:0 TX packets:28030 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:69070441 (65.8 MiB) TX bytes:2242946 (2.1 MiB) Base address:0xbc00 Memory:ff8e0000-ff900000 eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba ... RX packets:6971 errors:0 dropped:0 overruns:0 frame:0 TX packets:6971 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:27282315 (26.0 MiB) TX bytes:27282315 (26.0 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=6.41 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.863 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.699 ms --- 192.168.15.254 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.699/2.659/6.416/2.657 ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=6.41 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.863 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.699 ms --- 192.168.15.254 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.699/2.659/6.416/2.657 ms |
#ethtool -h
ethtool version 6git Usage: ethtool DEVNAME Display standard information about device ethtool -s|--change DEVNAME Change generic options [ speed %%d ] [ duplex half|full ] [ port tp|aui|bnc|mii|fibre ] [ autoneg on|off ] [ advertise %%x ] [ phyad %%d ] ... ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking) [ TIME-IN-SECONDS ] ethtool -t|--test DEVNAME Execute adapter self test [ online | offline ] ethtool -S|--statistics DEVNAME Show adapter statistics ethtool -n|--show-nfc DEVNAME Show Rx network flow classificationoptions [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 ] ethtool -N|--config-nfc DEVNAME Configure Rx network flow classification options [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 p|m|v|t|s|d|f|n|r... ] ethtool -h|--help DEVNAME Show this help |
#ethtool -h
ethtool version 6git Usage: ethtool DEVNAME Display standard information about device ethtool -s|--change DEVNAME Change generic options [ speed %%d ] [ duplex half|full ] [ port tp|aui|bnc|mii|fibre ] [ autoneg on|off ] [ advertise %%x ] [ phyad %%d ] ... ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking) [ TIME-IN-SECONDS ] ethtool -t|--test DEVNAME Execute adapter self test [ online | offline ] ethtool -S|--statistics DEVNAME Show adapter statistics ethtool -n|--show-nfc DEVNAME Show Rx network flow classificationoptions [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 ] ethtool -N|--config-nfc DEVNAME Configure Rx network flow classification options [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 p|m|v|t|s|d|f|n|r... ] ethtool -h|--help DEVNAME Show this help |
#ethtool eth0
Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: umbg Wake-on: g Current message level: 0x00000007 (7) Link detected: yes |
#ethtool eth0
Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: umbg Wake-on: g Current message level: 0x00000007 (7) Link detected: yes |
#cat /boot/grub/menu.lst
default 1 timeout 10 title GNU/Linux kernel /vmlinuz root=LABEL=ROOT initrd /initrd.img title Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686 root (hd0,0) kernel /boot/xen-3.2-1-i386.gz dom0_mem=1G module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 module /boot/initrd.img-2.6.18-6-xen-686 #title Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686 #root (hd0,0) #kernel /boot/xen-3.0.3-1-i386-pae.gz #module /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0 #module /boot/initrd.img-2.6.18-6-xen-686 |
#cat /boot/grub/menu.lst
default 1 timeout 10 title GNU/Linux kernel /vmlinuz root=LABEL=ROOT initrd /initrd.img title Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686 root (hd0,0) kernel /boot/xen-3.2-1-i386.gz dom0_mem=1G module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 module /boot/initrd.img-2.6.18-6-xen-686 #title Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686 #root (hd0,0) #kernel /boot/xen-3.0.3-1-i386-pae.gz #module /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0 #module /boot/initrd.img-2.6.18-6-xen-686 |
#cp /usr/lib/grub/i386-pc/
e2fs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2 xfs_stage1_5 fat_stage1_5 minix_stage1_5 stage1 stage2_eltorito |
#cp /usr/lib/grub/i386-pc/
e2fs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2 xfs_stage1_5 fat_stage1_5 minix_stage1_5 stage1 stage2_eltorito |
#cp /boot/
config-2.6.18-6-xen-686 initrd.img-2.6.18-6-xen-686 System.map-2.6.18-6-xen-686 vmlinuz-2.6.29-2-686 config-2.6.29-2-686 initrd.img-2.6.29-2-686 System.map-2.6.29-2-686 xen-3.0.3-1-i386-pae.gz grub/ initrd.img-2.6.29-2-686.bak vmlinuz-2.6.18-6-xen-686 xen-3.2-1-i386.gz |
#cp /boot/
config-2.6.18-6-xen-686 initrd.img-2.6.18-6-xen-686 System.map-2.6.18-6-xen-686 vmlinuz-2.6.29-2-686 config-2.6.29-2-686 initrd.img-2.6.29-2-686 System.map-2.6.29-2-686 xen-3.0.3-1-i386-pae.gz grub/ initrd.img-2.6.29-2-686.bak vmlinuz-2.6.18-6-xen-686 xen-3.2-1-i386.gz |
#grub-install --no-floppy --root-directory=/mnt
install_device not specified. Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. |
#grub-install --no-floppy --root-directory=/mnt
install_device not specified. Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. |
#grub-install --no-floppy --root-directory=/mnt /dev/sda2
Installation finished. No error reported. This is the contents of the device map /mnt/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/sda (hd1) /dev/sdb |
#grub-install --no-floppy --root-directory=/mnt /dev/sda2
Installation finished. No error reported. This is the contents of the device map /mnt/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/sda (hd1) /dev/sdb |
#vi /mnt/boot/grub/menu.lst
|
#vi /mnt/boot/grub/menu.lst
--- /tmp/l3-saved-3215.20565.27914 2009-06-05 18:46:16.000000000 +0300 +++ /mnt/boot/grub/menu.lst 2009-06-05 18:49:17.000000000 +0300 @@ -1,19 +1,7 @@ -default 1 -timeout 10 - -title GNU/Linux -kernel /vmlinuz root=LABEL=ROOT -initrd /initrd.img - -title Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686 -root (hd0,0) -kernel /boot/xen-3.2-1-i386.gz dom0_mem=1G -module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 -module /boot/initrd.img-2.6.18-6-xen-686 - -#title Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686 -#root (hd0,0) -#kernel /boot/xen-3.0.3-1-i386-pae.gz -#module /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0 -#module /boot/initrd.img-2.6.18-6-xen-686 +default 0 +timeout 3 +title Debian GNU/Linux. kernel 2.6.18-6-xen-686 +root (hd0,1) +kernel /boot/vmlinuz-2.6.18-6-xen-686 root-LABEL=ROOT2 +initrd /boot/initrd.img-2.6.18-6-xen-686 |
#cat /mnt/boot/grub/menu.lst
default 0 timeout 3 title Debian GNU/Linux. kernel 2.6.18-6-xen-686 root (hd0,1) kernel /boot/vmlinuz-2.6.18-6-xen-686 root-LABEL=ROOT2 initrd /boot/initrd.img-2.6.18-6-xen-686 |
#cat /mnt/boot/grub/menu.lst
default 0 timeout 3 title Debian GNU/Linux. kernel 2.6.18-6-xen-686 root (hd0,1) kernel /boot/vmlinuz-2.6.18-6-xen-686 root-LABEL=ROOT2 initrd /boot/initrd.img-2.6.18-6-xen-686 |
#/usr/share/doc/xen
xen-hypervisor-3.0.3-1-i386-pae/ xen-linux-system-2.6.18-6-xen-686/ xen-utils-3.0.3-1/ xen-utils-common/ xen-hypervisor-3.2-1-i386/ xenstore-utils/ xen-utils-3.2-1/ |
#/usr/share/doc/xen
xen-hypervisor-3.0.3-1-i386-pae/ xen-linux-system-2.6.18-6-xen-686/ xen-utils-3.0.3-1/ xen-utils-common/ xen-hypervisor-3.2-1-i386/ xenstore-utils/ xen-utils-3.2-1/ |
#/usr/share/doc/xen
xen-hypervisor-3.0.3-1-i386-pae/ xen-linux-system-2.6.18-6-xen-686/ xen-utils-3.0.3-1/ xen-utils-common/ xen-hypervisor-3.2-1-i386/ xenstore-utils/ xen-utils-3.2-1/ |
#/usr/share/doc/xen
xen-hypervisor-3.0.3-1-i386-pae/ xen-linux-system-2.6.18-6-xen-686/ xen-utils-3.0.3-1/ xen-utils-common/ xen-hypervisor-3.2-1-i386/ xenstore-utils/ xen-utils-3.2-1/ |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# -grep -vx ''
grep: invalid option -- 'g' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# -grep -vx ''
grep: invalid option -- 'g' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# | grep -vx ''
kernel = "/boot/vmlinuz-2.6.10-xenU" memory = 64 name = "ExampleDomain" vif = [ '' ] disk = [ 'phy:hda1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# | grep -vx ''
kernel = "/boot/vmlinuz-2.6.10-xenU" memory = 64 name = "ExampleDomain" vif = [ '' ] disk = [ 'phy:hda1,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# | grep -vx '' > /etc/xen/dom1
|
#zcat /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# | grep -vx '' > /etc/xen/dom1
|
#vi /etc/xen/dom1
--- /tmp/l3-saved-3215.2473.3503 2009-06-05 18:51:07.000000000 +0300 +++ /etc/xen/dom1 2009-06-05 18:54:35.000000000 +0300 @@ -1,7 +1,8 @@ -kernel = "/boot/vmlinuz-2.6.10-xenU" -memory = 64 -name = "ExampleDomain" +kernel = "/boot/vmlinuz-2.6.18-6-xen-686" +ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" +memory = 256 +name = "Test Domain" vif = [ '' ] -disk = [ 'phy:hda1,hda1,w' ] -root = "/dev/hda1 ro" +disk = [ 'phy:sda2,sda2,w' ] +root = "/dev/sda2 ro" extra = "4" |
#cat /etc/xen/dom1
kernel = "/boot/vmlinuz-2.6.18-6-xen-686" ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" memory = 256 name = "Test Domain" vif = [ '' ] disk = [ 'phy:sda2,sda2,w' ] root = "/dev/sda2 ro" extra = "4" |
#cat /etc/xen/dom1
kernel = "/boot/vmlinuz-2.6.18-6-xen-686" ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" memory = 256 name = "Test Domain" vif = [ '' ] disk = [ 'phy:sda2,sda2,w' ] root = "/dev/sda2 ro" extra = "4" |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm create dom1
Using config file "/etc/xen/dom1". Error: Device 0 (vif) could not be connected. Could not find bridge, and none was specified |
#xm create dom1
Using config file "/etc/xen/dom1". Error: Device 0 (vif) could not be connected. Could not find bridge, and none was specified |
#vi /etc/xen/dom1
--- /tmp/l3-saved-5376.26877.15345 2009-06-05 19:00:15.000000000 +0300 +++ /etc/xen/dom1 2009-06-05 19:00:22.000000000 +0300 @@ -2,7 +2,7 @@ ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" memory = 256 name = "Test_Domain" -vif = [ '' ] +#vif = [ '' ] disk = [ 'phy:sda2,sda2,w' ] root = "/dev/sda2 ro" extra = "4" |
#xm create dom1
Using config file "/etc/xen/dom1". Error: Device 2050 (vbd) could not be connected. Device /dev/sda2 is mounted in the privileged domain, and so cannot be mounted by a guest. |
#xm create dom1
Using config file "/etc/xen/dom1". Error: Device 2050 (vbd) could not be connected. Device /dev/sda2 is mounted in the privileged domain, and so cannot be mounted by a guest. |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 774.1 Test_Domain 3 256 1 -b---- 5.2 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 774.1 Test_Domain 3 256 1 -b---- 5.2 |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm console --help
Usage: xm console [-q|--quiet] <Domain> Attach to <Domain>'s console. -q, --quiet Do not print an error message if the domain does not exist |
#xm console --help
Usage: xm console [-q|--quiet] <Domain> Attach to <Domain>'s console. -q, --quiet Do not print an error message if the domain does not exist |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 791.9 Test_Domain 3 256 1 -b---- 5.2 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 791.9 Test_Domain 3 256 1 -b---- 5.2 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 800.2 Test_Domain 3 256 1 -b---- 5.2 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 800.2 Test_Domain 3 256 1 -b---- 5.2 |
#xm console 3
netfront: Initialising virtual ethernet driver. PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI No-Shortcut mode ... Password: Login incorrect linux3 login: user Login incorrect linux3 login: root Password: Login incorrect linux3 login: root Password: Login incorrect |
#xm console 3
netfront: Initialising virtual ethernet driver. PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI No-Shortcut mode ... Password: Login incorrect linux3 login: user Login incorrect linux3 login: root Password: Login incorrect linux3 login: root Password: Login incorrect |
#xm console Test_Domain
netfront: Initialising virtual ethernet driver. Registering block device major 8 PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 ... linux3:~# linux3:~# linux3:~# linux3:~# linux3:~# linux3:~# uname -a Linux linux3 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 GNU/Linux linux3:~# exit logout Debian GNU/Linux squeeze/sid linux3 tty1 |
#xm console Test_Domain
netfront: Initialising virtual ethernet driver. Registering block device major 8 PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 ... linux3:~# linux3:~# linux3:~# linux3:~# linux3:~# linux3:~# uname -a Linux linux3 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 GNU/Linux linux3:~# exit logout Debian GNU/Linux squeeze/sid linux3 tty1 |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
default 1 timeout 10 title GNU/Linux kernel /vmlinuz root=LABEL=ROOT initrd /initrd.img title Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686 root (hd0,0) kernel /boot/xen-3.2-1-i386.gz dom0_mem=1G module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 module /boot/initrd.img-2.6.18-6-xen-686 #title Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686 #root (hd0,0) #kernel /boot/xen-3.0.3-1-i386-pae.gz #module /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0 #module /boot/initrd.img-2.6.18-6-xen-686
kernel = "/boot/vmlinuz-2.6.18-6-xen-686" ramdisk = "/boot/initrd.img-2.6.18-6-xen-686" memory = 256 name = "Test Domain" vif = [ '' ] disk = [ 'phy:sda2,sda2,w' ] root = "/dev/sda2 ro" extra = "4"
default 0 timeout 3 title Debian GNU/Linux. kernel 2.6.18-6-xen-686 root (hd0,1) kernel /boot/vmlinuz-2.6.18-6-xen-686 root-LABEL=ROOT2 initrd /boot/initrd.img-2.6.18-6-xen-686
Время первой команды журнала | 18:21:32 2009- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 19:06:00 2009- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.74 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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