[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Convert CentOS system to Xen image?
Hello again guys, This thread was very interesting for me, so, I've decided do some tests, and I would like to share with the list (and hope to kill some doubts...) So, I have running on my desktop (Dell Optiplex 745) one Ubuntu Hardy, on my sda2, so: - dd+netcat to copy my device into my XenServer running RHEL5; - create one new LVM file, and particione it (/ and swap); - mount the image and copy the files to LVM device; - adjust files like fstab and mtab (/ its now sda1, not more sda2) and after, I've used the Igor's idea: On Thu, 2008-04-03 at 02:00 +0300, Igor Chubin wrote: > just try to run > > qemu -hda centos.img > > and say (or better show) I never was think on this before, great idea! Before kill myself using Xen, I've used the old and good qemu to fix my image (reinstall grub and etc) :-D After this, I've just put my working qemu's image inside Xen, like this: name = "teste" uuid = "da7371c1deaf8280213a0534b43da4ca" maxmem = 500 memory = 300 vcpus = 1 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" boot = "c" pae = 1 acpi = 1 apic = 1 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" device_model = "/usr/lib64/xen/bin/qemu-dm" sdl = 0 vnc = 1 vncunused = 1 keymap = "en-us" disk = [ "phy:/dev/Vol_LVM/teste,hda,w", "file:/iso/ubuntu-7.10-desktop-i386.iso,hdc:cdrom,r" ] vif = [ "mac=00:16:3e:1f:86:70,bridge=virbr0,type=ioemu" ] serial = "pty" And it's working like a charm, but: 1-) Should I use hda or sda on xen config file? And on domU (grub, fstab)... must be hda or sda? 2-) I'm getting a lot of errors like this on my dmesg/messages... what can I do to fix this? Apr 11 17:04:46 tuxkiller kernel: [ 6847.639957] ata2: DRQ=1 with device error, dev_stat 0x49 Apr 11 17:04:46 tuxkiller kernel: [ 6847.640405] res 41/50:03:00:00:20/00:00:00:00:00/a0 Emask 0x3 (HSM violation) Apr 11 17:04:46 tuxkiller kernel: [ 6847.641026] ata2: soft resetting port Apr 11 17:04:46 tuxkiller kernel: [ 6848.106528] ata2.00: configured for MWDMA2 Apr 11 17:04:46 tuxkiller kernel: [ 6848.106540] ata2: EH complete My boot dmesg show me this: [ 9.399068] eth0: RealTek RTL8139 at 0xd380e000, 00:16:3e:1f:86:70, IRQ 16 [ 9.399542] eth0: Identified 8139 chip type 'RTL-8139' [ 9.403628] 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) [ 9.427008] sd 0:0:0:0: [sda] 229015552 512-byte hardware sectors (117256 MB) [ 9.427604] sd 0:0:0:0: [sda] Write Protect is off [ 9.428137] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 9.428159] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 9.430447] sd 0:0:0:0: [sda] 229015552 512-byte hardware sectors (117256 MB) [ 9.431032] sd 0:0:0:0: [sda] Write Protect is off [ 9.431445] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 9.431457] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 9.434390] sda: sda1 [ 9.436832] sd 0:0:0:0: [sda] Attached SCSI disk [ 9.439554] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen [ 9.440016] ata2.00: (BMDMA stat 0x5) [ 9.440392] ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 128 in [ 9.440394] res 48/00:02:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) [ 9.442395] ata2: soft resetting port [ 9.448559] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 9.449085] sr 1:0:0:0: Attached scsi generic sg1 type 5 [ 9.913637] ata2.00: configured for MWDMA2 [ 9.914076] ata2: EH complete [ 9.914748] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen [ 9.917331] ata2.00: (BMDMA stat 0x5) [ 9.917777] ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 128 in [ 9.917778] res 48/01:02:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) [ 9.919393] ata2: soft resetting port [ 10.388618] ata2.00: configured for MWDMA2 [ 10.389032] ata2: EH complete [ 10.389605] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen [ 10.390070] ata2.00: (BMDMA stat 0x5) [ 10.392294] ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 128 in [ 10.392296] res 48/01:02:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) [ 10.393724] ata2: soft resetting port [ 10.859690] ata2.00: configured for MWDMA2 [ 10.860317] ata2: EH complete [ 10.861011] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen [ 10.863270] ata2.00: (BMDMA stat 0x5) [ 10.863658] ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 128 in [ 10.863660] res 48/01:02:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) [ 10.866820] ata2: soft resetting port [ 11.334555] ata2.00: configured for MWDMA2 [ 11.335059] ata2: EH complete [ 11.335515] sr0: scsi-1 drive [ 11.335969] Uniform CD-ROM driver Revision: 3.20 [ 11.338453] sr 1:0:0:0: Attached scsi CD-ROM sr0 [ 14.786436] kjournald starting. Commit interval 5 seconds [ 14.787029] EXT3-fs: mounted filesystem with ordered data mode. [ 19.115422] udev: renamed network interface eth0 to eth1 [ 21.326355] input: PC Speaker as /class/input/input2 [ 21.420419] input: ImExPS/2 Generic Explorer Mouse as /class/input/input3 [ 21.829974] lp: driver loaded but no devices found [ 22.256104] EXT3 FS on sda1, internal journal [ 23.581239] Adding 1023992k swap on /swap. Priority:-1 extents:259 across:1053904k [ 23.754162] AppArmor: Unable to register AppArmor [ 25.654011] No dock devices found. [ 27.890021] ata2: DRQ=1 with device error, dev_stat 0x49 [ 27.891842] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen [ 27.892709] ata2.00: (BMDMA stat 0x5) [ 27.893998] ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x46 data 32 in [ 27.894000] res 41/50:03:00:00:00/00:00:00:00:00/a0 Emask 0x3 (HSM violation) [ 27.894906] ata2: soft resetting port [ 28.361448] ata2.00: configured for MWDMA2 [ 28.361471] ata2: EH complete # lspci 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:01.2 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01) 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 00:03.0 Class ff80: XenSource, Inc. Xen Platform Device (rev 01) 00:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20) Many thanks! -- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |