/l3/users/max-public/nt-scale/debian3.unix.nt/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 |
|
#xm create dom1
![]() Using config file "/etc/xen/dom1". Started domain dom1 (id=5) |
#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) |
#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) |
#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 |
#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 |
#ls /root/
![]() file.txt install-authorized KNOPPIX_V6.7.1CD-2011-09-14-EN.iso start-kvm |
#ls /root/
file.txt install-authorized KNOPPIX_V6.7.1CD-2011-09-14-EN.iso start-kvm |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz > /etc/xen/knoppix1
![]() |
#zcat /usr/share/doc/xen-utils-common/examples/xmexample.hvm.gz > /etc/xen/knoppix1
|
#apic=1
![]() |
#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 |
#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 |
#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. |
#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' |
#apt-cache search xen-qemu
![]() xen-qemu-dm-4.0 - Xen Qemu Device Model virtual machine hardware emulator |
#apt-cache search xen-qemu
xen-qemu-dm-4.0 - Xen Qemu Device Model virtual machine hardware emulator |
#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 |
#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 |
#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) ... |
#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) ... |
#vim /etc/xen/knoppix
![]() |
#~
![]() #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% |
#~
# 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% |
#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/ |
#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/ |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#brctl show
![]() bridge name bridge id STP enabled interfaces eth0 8000.0007e90c4511 no peth0 |
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.0007e90c4511 no peth0 |
#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 |
#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 |
#cat /etc/xen/
![]() dom1 scripts/ xend-pci-permissive.sxp knoppix1 xend-config.sxp xend-pci-quirks.sxp |
#cat /etc/xen/
![]() dom1 scripts/ xend-pci-permissive.sxp knoppix1 xend-config.sxp xend-pci-quirks.sxp |
#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 |
#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 |
#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 |
#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 |
#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) |
#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) |
#ls /etc/xen/
![]() dom1 knoppix1 scripts xend-config.sxp xend-pci-permissive.sxp xend-pci-quirks.sxp |
#ls /etc/xen/
dom1 knoppix1 scripts xend-config.sxp xend-pci-permissive.sxp xend-pci-quirks.sxp |
#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 |
#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 |
#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 |
#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 |
#pvcreate
![]() Please enter a physical volume path Run `pvcreate --help' for more information. |
#pvcreate
![]() Please enter a physical volume path Run `pvcreate --help' for more information. |
#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 |
#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 |
# 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
dom1 scripts/ xend-pci-permissive.sxp knoppix1 xend-config.sxp xend-pci-quirks.sxp
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
# -*- 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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