Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Witam. Pod Xen3 (CentOS5 AMD PhenomII X2 64) zainstalowałem bez problemu Debiana6 w trybie pełnej sprzętowej wirtualizacji HVM (kernel 2.6.32-5-xen-amd64)
Na bazie tej instalacji chciałem tę instalkę uruchomić w PARA wirtualizacjil, zmieniając jedynie plik konfiguracyjny xena na PV:
name = "Debian-6.0-amd-64-fullvirt" uuid = "12e8fb62-23c0-5e84-2979-645e05b2df50" maxmem = 1212 memory = 512 vcpus = 2 #PV - para wirt bootloader = "/usr/bin/pygrub" #HVM - pełna wirt #builder = "hvm" #kernel = "/usr/lib/xen/boot/hvmloader" #boot = "c" #pae = 1 #acpi = 1 #apic = 1 #sdl = 0 vnc = 1 vncunused = 1 #keymap = "pl" localtime = 0 on_poweroff = "destroy" on_reboot = "destroy" on_crash = "destroy" device_model = "/usr/lib64/xen/bin/qemu-dm" disk = [ "file:/var/lib/xen/images/Debian-6.0-amd-64-fullvirt.img,hda,w", "file:/home/andy/Desktop/XEN/iso SO/debian-6.0.1a-amd64-DVD-1.iso,hdc:cdrom,r" ] vif = [ "mac=00:16:36:4a:e0:87,bridge=xenbr0,script=vif-bridge,vifname=vif15.0" ] parallel = "none" serial = "pty"
Jednak przy uruchomieniu tej maszyny przez virt-managera dostaję komunikat:
Error starting domain:... xend.err "Error creating domain: Boot loader didn't return any data!"
Grub jest zainstalowany tak, że z poniższego wynika (chyba), że siedzi tak jak trzeba w MBRarch.
XenPV@#head -c512 /dev/xvda |tr -cs '[:print:]' ' ' GRUB Geom Hard Disk Read Error
Czy można uruchamiać w ten sposób maszynę w trybie PARA wirtualizacji?
Ostatnio edytowany przez zacharyjos (2011-05-11 17:13:16)
Offline
ja bym tam polecal podac normalnie jadro i initrd w konfigu xen'a niz bawic sie w bootloader przy parawirtualizacji ...
Offline
Dzięki Bercik, zrobiłem tak jak mówisz i jest połowiczny postęp.
cat Debian-6.0-amd-64-paravirt name = "Debian-6.0-amd-64-paravirt" uuid = "61342581-fb09-7ca2-6c77-32bd735d2476" maxmem = 1001 memory = 750 vcpus = 1 #bootloader = "/usr/bin/pygrub" kernel = "/etc/xen/vmlinuz-2.6.32-5-amd64" ramdisk = "/etc/xen/initrd.img-2.6.32-5-amd64" on_poweroff = "destroy" on_reboot = "destroy" on_crash = "destroy" vfb = [ "type=vnc,vncunused=1,keymap=pl" ] vif = [ "mac=00:16:36:2c:6b:de,bridge=xenbr0,script=vif-bridge,vifname=vif7.0" ] # próbowałem dla file i tap:aio (xvda, sda, hda) disk = [ "tap:aio:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img,sda,w" ] #disk = [ "file:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img,sda,w" ]
Jądro rusza jednak chyba nie widzi dysku. Logi xend
tail /var/log/xen/xend.log -f -n0
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:231) XendDomainInfo.create(['vm', ['name', 'Debian-6.0-amd-64-paravirt'], ['memory', '750'], ['maxmem', '1001'], ['vcpus', '1'], ['uuid', '61342581-fb09-7ca2-6c77-32bd735d2476'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/etc/xen/vmlinuz-2.6.32-5-amd64'], ['ramdisk', '/etc/xen/initrd.img-2.6.32-5-amd64']]], ['device', ['tap', ['dev', 'xvda'], ['uname', 'tap:aio:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:36:2c:6b:de'], ['bridge', 'xenbr0'], ['script', 'vif-bridge']]], ['device', ['vkbd']], ['device', ['vfb', ['type', 'vnc'], ['vncunused', '1'], ['keymap', 'pl']]]])
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:353) parseConfig: config is ['vm', ['name', 'Debian-6.0-amd-64-paravirt'], ['memory', '750'], ['maxmem', '1001'], ['vcpus', '1'], ['uuid', '61342581-fb09-7ca2-6c77-32bd735d2476'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/etc/xen/vmlinuz-2.6.32-5-amd64'], ['ramdisk', '/etc/xen/initrd.img-2.6.32-5-amd64']]], ['device', ['tap', ['dev', 'xvda'], ['uname', 'tap:aio:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:36:2c:6b:de'], ['bridge', 'xenbr0'], ['script', 'vif-bridge']]], ['device', ['vkbd']], ['device', ['vfb', ['type', 'vnc'], ['vncunused', '1'], ['keymap', 'pl']]]]
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:477) parseConfig: result is {'features': None, 'image': ['linux', ['kernel', '/etc/xen/vmlinuz-2.6.32-5-amd64'], ['ramdisk', '/etc/xen/initrd.img-2.6.32-5-amd64']], 'cpus': None, 'vcpu_avail': None, 'backend': [], 'uuid': '61342581-fb09-7ca2-6c77-32bd735d2476', 'on_reboot': 'destroy', 'cpu_weight': None, 'memory': 750, 'cpu_cap': None, 'localtime': None, 'timer_mode': None, 'start_time': None, 'on_poweroff': 'destroy', 'on_crash': 'destroy', 'device': [('tap', ['tap', ['dev', 'xvda'], ['uname', 'tap:aio:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img'], ['mode', 'w']]), ('vif', ['vif', ['mac', '00:16:36:2c:6b:de'], ['bridge', 'xenbr0'], ['script', 'vif-bridge']]), ('vkbd', ['vkbd']), ('vfb', ['vfb', ['type', 'vnc'], ['vncunused', '1'], ['keymap', 'pl']])], 'bootloader': None, 'maxmem': 1001, 'shadow_memory': None, 'name': 'Debian-6.0-amd-64-paravirt', 'bootloader_args': None, 'vcpus': 1, 'cpu': None}
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:1930) XendDomainInfo.construct: None
[2011-05-14 10:35:05 xend 3234] DEBUG (balloon:146) Balloon: 227284 KiB free; need 4096; done.
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:2098) XendDomainInfo.initDomain: 4 256
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:2139) _initDomain:shadow_memory=0x0, maxmem=0x3e9, memory=0x2ee.
[2011-05-14 10:35:05 xend 3234] DEBUG (balloon:152) Balloon: 227276 KiB free; 0 to scrub; need 768000; retries: 20.
[2011-05-14 10:35:05 xend 3234] DEBUG (balloon:167) Balloon: setting dom0 target to 2579 MiB.
[2011-05-14 10:35:05 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:1418) Setting memory target of domain Domain-0 (0) to 2579 MiB.
[2011-05-14 10:35:06 xend 3234] DEBUG (balloon:146) Balloon: 768972 KiB free; need 768000; done.
[2011-05-14 10:35:06 xend 3234] INFO (image:139) buildDomain os=linux dom=4 vcpus=1
[2011-05-14 10:35:06 xend 3234] DEBUG (image:208) domid = 4
[2011-05-14 10:35:06 xend 3234] DEBUG (image:209) memsize = 750
[2011-05-14 10:35:06 xend 3234] DEBUG (image:210) image = /etc/xen/vmlinuz-2.6.32-5-amd64
[2011-05-14 10:35:06 xend 3234] DEBUG (image:211) store_evtchn = 1
[2011-05-14 10:35:06 xend 3234] DEBUG (image:212) console_evtchn = 2
[2011-05-14 10:35:06 xend 3234] DEBUG (image:213) cmdline =
[2011-05-14 10:35:06 xend 3234] DEBUG (image:214) ramdisk = /etc/xen/initrd.img-2.6.32-5-amd64
[2011-05-14 10:35:06 xend 3234] DEBUG (image:215) vcpus = 1
[2011-05-14 10:35:06 xend 3234] DEBUG (image:216) features =
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:116) DevController: writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vkbd/4/0'} to /local/domain/4/device/vkbd/0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:118) DevController: writing {'frontend-id': '4', 'domain': 'Debian-6.0-amd-64-paravirt', 'frontend': '/local/domain/4/device/vkbd/0', 'state': '1', 'online': '1'} to /local/domain/0/backend/vkbd/4/0.
[2011-05-14 10:35:06 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:647) Checking for duplicate for uname: /var/lib/xen/images/Debian-6.0-amd-64-paravirt.img [tap:aio:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img], dev: xvda, mode: w
[2011-05-14 10:35:06 xend 3234] DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
[2011-05-14 10:35:06 xend 3234] DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
[2011-05-14 10:35:06 xend 3234] DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:116) DevController: writing {'virtual-device': '51712', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/tap/4/51712'} to /local/domain/4/device/vbd/51712.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:118) DevController: writing {'domain': 'Debian-6.0-amd-64-paravirt', 'frontend': '/local/domain/4/device/vbd/51712', 'format': 'raw', 'dev': 'xvda', 'state': '1', 'params': 'aio:/var/lib/xen/images/Debian-6.0-amd-64-paravirt.img', 'mode': 'w', 'online': '1', 'frontend-id': '4', 'type': 'tap'} to /local/domain/0/backend/tap/4/51712.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:116) DevController: writing {'mac': '00:16:36:2c:6b:de', 'handle': '0', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/4/0'} to /local/domain/4/device/vif/0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:118) DevController: writing {'bridge': 'xenbr0', 'domain': 'Debian-6.0-amd-64-paravirt', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/4/device/vif/0', 'mac': '00:16:36:2c:6b:de', 'online': '1', 'frontend-id': '4'} to /local/domain/0/backend/vif/4/0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:116) DevController: writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/4/0'} to /local/domain/4/device/vfb/0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:118) DevController: writing {'vncunused': '1', 'domain': 'Debian-6.0-amd-64-paravirt', 'frontend': '/local/domain/4/device/vfb/0', 'state': '1', 'keymap': 'pl', 'online': '1', 'frontend-id': '4', 'type': 'vnc'} to /local/domain/0/backend/vfb/4/0.
[2011-05-14 10:35:06 xend 3234] DEBUG (vfbif:70) No VNC passwd configured for vfb access
[2011-05-14 10:35:06 xend 3234] DEBUG (vfbif:11) Spawn: ['/usr/lib64/xen/bin/qemu-dm', '-M', 'xenpv', '-d', '4', '-domain-name', 'Debian-6.0-amd-64-paravirt', '-vnc', '127.0.0.1:0', '-vncunused', '-k', 'pl']
[2011-05-14 10:35:06 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:1039) Storing VM details: {'shadow_memory': '0', 'uuid': '61342581-fb09-7ca2-6c77-32bd735d2476', 'on_reboot': 'destroy', 'start_time': '1305362106.57', 'on_poweroff': 'destroy', 'name': 'Debian-6.0-amd-64-paravirt', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '750', 'on_crash': 'destroy', 'image': '(linux (kernel /etc/xen/vmlinuz-2.6.32-5-amd64) (ramdisk /etc/xen/initrd.img-2.6.32-5-amd64))', 'maxmem': '1001'}
[2011-05-14 10:35:06 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:1074) Storing domain details: {'console/ring-ref': '679774', 'console/port': '2', 'name': 'Debian-6.0-amd-64-paravirt', 'console/limit': '1048576', 'vm': '/vm/61342581-fb09-7ca2-6c77-32bd735d2476', 'domid': '4', 'cpu/0/availability': 'online', 'memory/target': '768000', 'store/ring-ref': '679775', 'store/port': '1'}
[2011-05-14 10:35:06 xend.XendDomainInfo 3234] DEBUG (XendDomainInfo:1297) XendDomainInfo.handleShutdownWatch
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices vif.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:166) Waiting for 0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:544) hotplugStatusCallback /local/domain/0/backend/vif/4/0/hotplug-status.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:544) hotplugStatusCallback /local/domain/0/backend/vif/4/0/hotplug-status.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:558) hotplugStatusCallback 1.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices usb.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices vbd.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices irq.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices vkbd.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:166) Waiting for 0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:544) hotplugStatusCallback /local/domain/0/backend/vkbd/4/0/hotplug-status.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:558) hotplugStatusCallback 1.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices vfb.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:166) Waiting for 0.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:544) hotplugStatusCallback /local/domain/0/backend/vfb/4/0/hotplug-status.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:558) hotplugStatusCallback 1.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices pci.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices ioports.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices tap.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:166) Waiting for 51712.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:544) hotplugStatusCallback /local/domain/0/backend/tap/4/51712/hotplug-status.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:544) hotplugStatusCallback /local/domain/0/backend/tap/4/51712/hotplug-status.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:558) hotplugStatusCallback 1.
[2011-05-14 10:35:06 xend 3234] DEBUG (DevController:160) Waiting for devices vtpm.
[2011-05-14 10:35:06 xend 3234] INFO (XendDomain:388) Domain Debian-6.0-amd-64-paravirt (4) unpaused.
System DomU ładuje się tylko do płowy, nie może zamontować systemu plików. Scieżka do img jest poprawna i to działw w pełnej wirtualizacji. Próbowałem w konfigu zmieniać file i tap:aio (xvda, sda, hda) i nic.
Co z tym dyskiem, dlaczego xen nie może go podmontować?
Ostatnio edytowany przez zacharyjos (2011-05-14 10:52:49)
Offline
jak sie odpali ten busybox z initrd to popatrz w dmesg oraz na to co jest w /dev ...
Offline
dmsg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-amd64 (Debian 2.6.32-31) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 7 21:35:22 UTC 2011 [ 0.000000] Command line: [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved) [ 0.000000] Xen: 0000000000100000 - 000000002ee00000 (usable) [ 0.000000] DMI not present or invalid. [ 0.000000] last_pfn = 0x2ee00 max_arch_pfn = 0x400000000 [ 0.000000] init_memory_mapping: 0000000000000000-000000002ee00000 [ 0.000000] RAMDISK: 016ab000 - 03028000 [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at 0000000000000000-000000002ee00000 [ 0.000000] Bootmem setup node 0 0000000000000000-000000002ee00000 [ 0.000000] NODE_DATA [0000000000008000 - 000000000000ffff] [ 0.000000] bootmap [0000000000010000 - 0000000000015dbf] pages 6 [ 0.000000] (7 early reservations) ==> bootmem [0000000000 - 002ee00000] [ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000] [ 0.000000] #1 [00031a2000 - 00031bf000] XEN PAGETABLES ==> [00031a2000 - 00031bf000] [ 0.000000] #2 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000] [ 0.000000] #3 [0001000000 - 000168a454] TEXT DATA BSS ==> [0001000000 - 000168a454] [ 0.000000] #4 [00016ab000 - 0003028000] RAMDISK ==> [00016ab000 - 0003028000] [ 0.000000] #5 [0003028000 - 00031a2000] XEN START INFO ==> [0003028000 - 00031a2000] [ 0.000000] #6 [0000100000 - 0000259000] PGTABLE ==> [0000100000 - 0000259000] [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0x00000000 -> 0x00001000 [ 0.000000] DMA32 0x00001000 -> 0x00100000 [ 0.000000] Normal 0x00100000 -> 0x00100000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[2] active PFN ranges [ 0.000000] 0: 0x00000000 -> 0x000000a0 [ 0.000000] 0: 0x00000100 -> 0x0002ee00 [ 0.000000] SFI: Simple Firmware Interface v0.7 http://simplefirmware.org [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs [ 0.000000] No local APIC present [ 0.000000] APIC: disable apic facility [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 [ 0.000000] Allocating PCI resources starting at 2ee00000 (gap: 2ee00000:d1200000) [ 0.000000] Booting paravirtualized kernel on Xen [ 0.000000] Xen version: 3.1.2-194.el5 (preserve-AD) [ 0.000000] NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:1 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 30 pages/cpu @ffff8800031f5000 s90328 r8192 d24360 u122880 [ 0.000000] pcpu-alloc: s90328 r8192 d24360 u122880 alloc=30*4096 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Xen: using vcpu_info placement [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 188931 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] Checking aperture... [ 0.000000] No AGP bridge found [ 0.000000] Memory: 720584k/768000k available (3080k kernel code, 384k absent, 47032k reserved, 1891k data, 592k init) [ 0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:4352 nr_irqs:256 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] console [hvc0] enabled [ 0.000000] installing Xen timer for CPU 0 [ 0.000000] Detected 1502771.231 MHz processor. [ 0.004000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6629.32 BogoMIPS (lpj=13258640) [ 0.004026] Security Framework initialized [ 0.004079] SELinux: Disabled at boot. [ 0.004286] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.004590] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.004718] Mount-cache hash table entries: 256 [ 0.004826] Initializing cgroup subsys ns [ 0.004831] Initializing cgroup subsys cpuacct [ 0.004836] Initializing cgroup subsys devices [ 0.004840] Initializing cgroup subsys freezer [ 0.004844] Initializing cgroup subsys net_cls [ 0.004868] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) [ 0.004873] CPU: L2 Cache: 512K (64 bytes/line) [ 0.004877] CPU 0/0x0 -> Node 0 [ 0.004884] CPU: Physical Processor ID: 0 [ 0.004887] CPU: Processor Core ID: 0 [ 0.004891] Performance Events: AMD PMU driver. [ 0.004896] ... version: 0 [ 0.004899] ... bit width: 48 [ 0.004902] ... generic registers: 4 [ 0.004905] ... value mask: 0000ffffffffffff [ 0.004908] ... max period: 00007fffffffffff [ 0.004911] ... fixed-purpose events: 0 [ 0.004914] ... event mask: 000000000000000f [ 0.004929] SMP alternatives: switching to UP code [ 0.008000] Freeing SMP alternatives: 28k freed [ 0.008165] Brought up 1 CPUs [ 0.008270] devtmpfs: initialized [ 0.010324] Grant table initialized [ 0.010329] regulator: core version 0.5 [ 0.010370] NET: Registered protocol family 16 [ 0.016024] PCI: Fatal: No config space access function found [ 0.016343] bio: create slab <bio-0> at 0 [ 0.016395] ACPI: Interpreter disabled. [ 0.016412] xen_balloon: Initialising balloon driver. [ 0.016412] vgaarb: loaded [ 0.016412] PCI: System does not support PCI [ 0.016412] PCI: System does not support PCI [ 0.016412] Switching to clocksource xen [ 0.017244] pnp: PnP ACPI: disabled [ 0.017454] NET: Registered protocol family 2 [ 0.017568] IP route cache hash table entries: 32768 (order: 6, 262144 bytes) [ 0.018054] TCP established hash table entries: 131072 (order: 9, 2097152 bytes) [ 0.157096] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) [ 0.157347] TCP: Hash tables configured (established 131072 bind 65536) [ 0.157354] TCP reno registered [ 0.157454] NET: Registered protocol family 1 [ 0.157503] Unpacking initramfs... [ 0.177899] Freeing initrd memory: 26100k freed [ 0.185198] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.185373] audit: initializing netlink socket (disabled) [ 0.185387] type=2000 audit(1305402902.154:1): initialized [ 0.187250] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.188660] VFS: Disk quotas dquot_6.5.2 [ 0.188706] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.188770] msgmni has been set to 1458 [ 0.188909] alg: No test for stdrng (krng) [ 0.188948] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.188955] io scheduler noop registered [ 0.188958] io scheduler anticipatory registered [ 0.188962] io scheduler deadline registered [ 0.188987] io scheduler cfq registered (default) [ 0.193637] Console: switching to colour frame buffer device 100x37 [ 0.194880] console [tty0] enabled [ 0.196552] Linux agpgart interface v0.103 [ 0.196594] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.196742] input: Macintosh mouse button emulation as /devices/virtual/input/input0 [ 0.196805] PNP: No PS/2 controller found. Probing ports directly. [ 0.197640] i8042.c: No controller found. [ 0.197729] mice: PS/2 mouse device common for all mice [ 0.197982] input: Xen Virtual Keyboard as /devices/virtual/input/input1 [ 0.198043] input: Xen Virtual Pointer as /devices/virtual/input/input2 [ 0.199427] rtc_cmos: probe of rtc_cmos failed with error -16 [ 0.199497] cpuidle: using governor ladder [ 0.199516] cpuidle: using governor menu [ 0.199886] No iBFT detected. [ 0.200693] TCP cubic registered [ 0.201558] NET: Registered protocol family 10 [ 0.203033] Mobile IPv6 [ 0.203391] NET: Registered protocol family 17 [ 0.203828] registered taskstats version 1 [ 0.204192] XENBUS: Device with no driver: device/vbd/51712 [ 0.204482] XENBUS: Device with no driver: device/vif/0 [ 0.204482] /build/buildd-linux-2.6_2.6.32-31-amd64-vrfdM4/linux-2.6-2.6.32/debian/build/source_amd64_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 0.205827] Initalizing network drop monitor service [ 0.206327] Freeing unused kernel memory: 592k freed [ 0.206943] Write protecting the kernel read-only data: 4236k [ 0.246735] udev[46]: starting version 164 [ 0.293863] Initialising Xen virtual ethernet driver. [ 0.301063] xvda: xvda1 xvda2 < xvda5 > [ 0.448129] PM: Starting manual resume from disk
W katalogu /dev są prawdziwe dyski xvda1, xvda2, xvda5, natomiast /etc jest puste i brakuje min /etc/fstab
Dodam jeszcze ekran przy startowaniu systemu oraz plikii w katalogu dev.
Ostatnio edytowany przez zacharyjos (2011-05-14 22:32:26)
Offline
1. jakie "prawdziwe dyski", co przez to rozumiesz i czy jestes tego peiwn (podmontowales/sprawidziles)?
2. czy ten .img to obraz dysku z partycjami czy pojedynczej partycji?
3. dobrze zeby jeszcze plik konfiguracyjny zen'a zawieral parametr root="" wskazujacy na urzadzenie ktore zawiera partycje glowna ... xen przekazuje to do jadra ...
Offline
1. Przepraszam, chyba się pomyliłem bo nie da się ich podmontować.. Natomiast jak zacznę czytać ten plik: cat /dev/xvda1 to leci ekran za ekranem krzaczków; cat /dev/xvda2 wyświetla tylko kilkanaście znaków (bo to tylko extended), dla cat /dev/xvda5 znowu leci dużo znaków.
2. Plik img zawiera obraz całego dysku. Są tam trzypartycje: pierwsza LInux ext3, druga rozszerzona i trzecia swap.
[root@localhost xen]# /sbin/fdisk /var/lib/xen/images/Debian-6.0-amd-64-paravirt.img last_lba(): I don't know how to handle files with mode 81ed You must set cylinders. You can do this from the extra functions menu. Command (m for help): p Disk /var/lib/xen/images/Debian-6.0-amd-64-paravirt.img: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /var/lib/xen/images/Debian-6.0-amd-64-paravirt.img1 * 1 1461 11734016 83 Linux Partition 1 has different physical/logical endings: phys=(1023, 254, 63) logical=(1460, 240, 60) /var/lib/xen/images/Debian-6.0-amd-64-paravirt.img2 1462 1530 550913 5 Extended Partition 2 has different physical/logical beginnings (non-Linux?): phys=(1023, 254, 63) logical=(1461, 18, 28) Partition 2 has different physical/logical endings: phys=(1023, 254, 63) logical=(1529, 167, 46) /var/lib/xen/images/Debian-6.0-amd-64-paravirt.img5 1462 1530 550912 82 Linux swap / Solaris
3. Do pliku konfiguracyjnego xena doałem root tak:
kernel = "/etc/xen/vmlinuz-2.6.32-5-amd64 root=/dev/xvda1 ro" extra = "root=/dev/xvda1 ro" root = "/dev/xvda1 ro"
i nadal jest to samo - nie chce podmontować root FS.
Ostatnio edytowany przez zacharyjos (2011-05-15 13:35:01)
Offline
a musisz bawic sie na plikach .img? ... osobiscie nigdy tak nie uzywalem xen'a ... bo jezeli nie to zrob to moze z normalnej pratycji lub lvm-a ...
Offline
Strony: 1