/l3/users/vmk64646464/nt-scale/debian4.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 :26 |
|
#xm dmesg
![]() (XEN) Xen version 4.0.1 (Debian 4.0.1-4) (waldi@debian.org) (gcc version 4.4.5 (Debian 4.4.5-8) ) Mon Nov 7 09:18:26 CET 2011 (XEN) Bootloader: GRUB 1.98+20100804-14+squeeze1 (XEN) Command line: placeholder (XEN) Video information: (XEN) VGA is text mode 80x25, font 8x16 (XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds (XEN) Disc information: (XEN) Found 2 MBR signatures (XEN) Found 2 EDD information structures (XEN) Xen-e820 RAM map: ... (XEN) TOTAL: c0000000->c3800000 (XEN) ENTRY ADDRESS: c1420000 (XEN) Dom0 has maximum 2 VCPUs (XEN) Scrubbing Free RAM: .done. (XEN) Xen trace buffers: disabled (XEN) Std. Loglevel: Errors and warnings (XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings) (XEN) Xen is relinquishing VGA console. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen) (XEN) Freed 152kB init memory. |
#xm dmesg
(XEN) Xen version 4.0.1 (Debian 4.0.1-4) (waldi@debian.org) (gcc version 4.4.5 (Debian 4.4.5-8) ) Mon Nov 7 09:18:26 CET 2011 (XEN) Bootloader: GRUB 1.98+20100804-14+squeeze1 (XEN) Command line: placeholder (XEN) Video information: (XEN) VGA is text mode 80x25, font 8x16 (XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds (XEN) Disc information: (XEN) Found 2 MBR signatures (XEN) Found 2 EDD information structures (XEN) Xen-e820 RAM map: ... (XEN) TOTAL: c0000000->c3800000 (XEN) ENTRY ADDRESS: c1420000 (XEN) Dom0 has maximum 2 VCPUs (XEN) Scrubbing Free RAM: .done. (XEN) Xen trace buffers: disabled (XEN) Std. Loglevel: Errors and warnings (XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings) (XEN) Xen is relinquishing VGA console. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen) (XEN) Freed 152kB init memory. |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2662.26883.28547 2012-02-23 15:25:28.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 15:31:11.000000000 +0200 @@ -8,10 +8,10 @@ #---------------------------------------------------------------------------- # Kernel image file. -kernel = "/boot/vmlinuz-2.6.10-xenU" +kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" # Optional ramdisk. -#ramdisk = "/boot/initrd.gz" +ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" # The domain build function. Default is 'linux'. #builder='linux' @@ -21,10 +21,10 @@ # 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 = 64 +memory = 128 # A name for your domain. All domains must have different names. -name = "ExampleDomain" +name = "dom1" # 128-bit UUID for the domain. The default behavior is to generate a new UUID # on each call to 'xm create'. @@ -55,7 +55,7 @@ # # vif = [ '', 'bridge=xenbr1' ] -vif = [ '' ] +vif = [ 'bridge=eth0' ] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and @@ -64,7 +64,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:hda1,hda1,w' ] +disk = [ 'phy:VG0/vol1,sda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. @@ -131,7 +131,7 @@ #hostname= "vm%d" % vmid # Set root device. -root = "/dev/hda1 ro" +root = "/dev/sda1 ro" # Root device for nfs. #root = "/dev/nfs" |
#grep -v ^$ /etc/xen/dom1
![]() # -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" ... # - /dev/sgxx or sgx # - result of 'scsi_id -gu -s'. # ex. # scsi_id -gu -s /block/sdb # 36000b5d0006a0000006a0257004c0000 # # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as # which the specified guest domain recognize. # #vscsi = [ '/dev/sdx, 0:0:0:0' ] #============================================================================ |
#grep -v ^$ /etc/xen/dom1
# -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- # Kernel image file. kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" ... # - /dev/sgxx or sgx # - result of 'scsi_id -gu -s'. # ex. # scsi_id -gu -s /block/sdb # 36000b5d0006a0000006a0257004c0000 # # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as # which the specified guest domain recognize. # #vscsi = [ '/dev/sdx, 0:0:0:0' ] #============================================================================ |
#grep -v ^# /etc/xen/dom1
![]() kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" memory = 128 name = "dom1" vif = [ 'bridge=eth0' ] disk = [ 'phy:VG0/vol1,sda1,w' ] root = "/dev/sda1 ro" extra = "4" |
#grep -v ^# /etc/xen/dom1
kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" memory = 128 name = "dom1" vif = [ 'bridge=eth0' ] disk = [ 'phy:VG0/vol1,sda1,w' ] root = "/dev/sda1 ro" extra = "4" |
#grep -v ^# /etc/xen/dom1|strings
![]() kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" memory = 128 name = "dom1" vif = [ 'bridge=eth0' ] disk = [ 'phy:VG0/vol1,sda1,w' ] root = "/dev/sda1 ro" extra = "4" |
#grep -v ^# /etc/xen/dom1|strings
kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" memory = 128 name = "dom1" vif = [ 'bridge=eth0' ] disk = [ 'phy:VG0/vol1,sda1,w' ] root = "/dev/sda1 ro" extra = "4" |
#renamed and a new domain started in its place.
![]() Using config file "/etc/xen/dom1". ^C |
#renamed and a new domain started in its place.
Using config file "/etc/xen/dom1". ^C |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Domain 'dom1' already exists with ID '1' |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Domain 'dom1' already exists with ID '1' |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Domain 'dom1' already exists with ID '2' |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Domain 'dom1' already exists with ID '2' |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2662.16262.880 2012-02-23 15:36:57.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 15:37:22.000000000 +0200 @@ -55,7 +55,8 @@ # # vif = [ '', 'bridge=xenbr1' ] -vif = [ 'bridge=eth0' ] +#vif = [ 'bridge=eth0' ] +vif = [] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 152.4 dom1 3 128 1 -b---- 1.7 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 152.4 dom1 3 128 1 -b---- 1.7 |
#xm shutdown dom1
![]() |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 154.1 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 154.1 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 154.6 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 154.6 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 155.5 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 155.5 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 155.7 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 155.7 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 155.8 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 155.8 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.0 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.0 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.2 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.2 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.3 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.3 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.5 dom1 3 128 1 -b---- 1.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.5 dom1 3 128 1 -b---- 1.9 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.7 dom1 3 128 1 -b---- 2.0 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 156.7 dom1 3 128 1 -b---- 2.0 |
#xm console
![]() Error: 'xm console' requires between 1 and 3 arguments. 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
![]() Error: 'xm console' requires between 1 and 3 arguments. 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 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) ... Gave up waiting for root device. Common problems: - 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/sda1 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) |
#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) ... Gave up waiting for root device. Common problems: - 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/sda1 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) |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2662.16696.24718 2012-02-23 15:46:59.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 15:48:10.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,sda1,w' ] +disk = [ 'phy:/dev/VG0/vol1,xvda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. @@ -132,7 +132,7 @@ #hostname= "vm%d" % vmid # Set root device. -root = "/dev/sda1 ro" +root = "/dev/xvda1 ro" # Root device for nfs. #root = "/dev/nfs" |
#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/xvda1 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.772245] XENBUS: Timeout connecting to device: device/vbd/51713 (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/xvda1 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.772245] XENBUS: Timeout connecting to device: device/vbd/51713 (local state 3, remote state 1) |
#xm info
![]() WARNING! Can't find hypervisor information in sysfs! Error: Unable to connect to xend: No such file or directory. Is xend running? |
#xm info
![]() WARNING! Can't find hypervisor information in sysfs! Error: Unable to connect to xend: No such file or directory. Is xend running? |
#uname -a
![]() Linux debian4 2.6.32-5-xen-686 #1 SMP Mon Jan 16 19:46:09 UTC 2012 i686 GNU/Linux |
#uname -a
Linux debian4 2.6.32-5-xen-686 #1 SMP Mon Jan 16 19:46:09 UTC 2012 i686 GNU/Linux |
#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 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 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 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 xen-4.0-i386.gz |
#-*- mode: python; -*-
![]() # Optional ramdisk. "/etc/xen/dom1" 212L, 7567C ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" # The domain bu/vmlinuz-2.6.32-5-xen-686" #builder='linux' 32-5-xen-686" # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of "/etc/xen/dom1" 212L, 7559C записано |
#-*- mode: python; -*-
# Optional ramdisk. "/etc/xen/dom1" 212L, 7567C ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" # The domain bu/vmlinuz-2.6.32-5-xen-686" #builder='linux' 32-5-xen-686" # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of "/etc/xen/dom1" 212L, 7559C записано |
#reboot
![]() |
#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 |
#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 |