* Newbie question: Error creating domain
@ 2004-07-18 15:12 Fredrik Dahlberg
2004-07-18 17:38 ` Ian Pratt
0 siblings, 1 reply; 9+ messages in thread
From: Fredrik Dahlberg @ 2004-07-18 15:12 UTC (permalink / raw)
To: xen-devel
When trying to create a new domain I get the following error:
root@chekov:~# xm create vmid=1
Using config file /etc/xen/xmdefaults
Error: Error creating domain: [Failure instance:
Traceback:xen.xend.XendDomainInfo.VmError, vbd: Segments not
foundXXXXXX:uname=phy:hda3
If I do a dry-run:
root@chekov:~# xm create -n vmid=1
Using config file xmdefaults
(vm
(name 'This is VM 1')
(memory '64')
(cpu '1')
(image
(linux
(kernel /boot/vmlinuz-2.4.26-xenU)
(ip :1.2.3.4::::eth0:dhcp)
(root '/dev/sda1 ro')
)
)
(device (vbd (uname phy:hda3) (dev sda1) (mode w)))
(device (vbd (uname phy:hda4) (dev sda2) (mode w)))
(device (vif (mac aa:0:0:2e:29:6c)))
)
I have created a Slackware filesystem pretty much the same way I used to do
under UML, the most important steps are shown below:
# I have created 2 partitions for my guest os, hda3 and hda4
root@chekov:~# fdisk -l /dev/hda
Disk /dev/hda: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 697 5598621 83 Linux
/dev/hda2 698 742 361462+ 82 Linux swap
/dev/hda3 743 865 987997+ 83 Linux
/dev/hda4 866 882 136552+ 82 Linux swap
# I created filesystems on both of them:
root@chekov:~# mkfs -t ext3 /dev/hda3
root@chekov:~# mkswap /dev/hda4
# I mounted my new guest root filesystem:
root@chekov:~# mount /dev/hda3 /build/root
# I edited all the tagfiles so they only had ADD or SKP selections and
installed my choice of packages:
root@chekov:/build/slackware# /sbin/installpkg -root /build/root a/*.tgz
ap/*.tgz d/*.tgz l/*.tgz n/*.tgz
# I created a new fstab:
/dev/sda1 / ext3 defaults 1 1
/dev/sda2 swap swap defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
# And finally, I unmounted /dev/hda3 before trying to create the new domain
Any help is appreciated,
Fredrik Dahlberg
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-18 15:12 Newbie question: Error creating domain Fredrik Dahlberg
@ 2004-07-18 17:38 ` Ian Pratt
2004-07-18 22:47 ` Fredrik Dahlberg
0 siblings, 1 reply; 9+ messages in thread
From: Ian Pratt @ 2004-07-18 17:38 UTC (permalink / raw)
To: Fredrik Dahlberg; +Cc: xen-devel, Ian.Pratt
> When trying to create a new domain I get the following error:
>
> root@chekov:~# xm create vmid=1
> Using config file /etc/xen/xmdefaults
> Error: Error creating domain: [Failure instance:
> Traceback:xen.xend.XendDomainInfo.VmError, vbd: Segments not
> foundXXXXXX:uname=phy:hda3
What you've configured should work just fine. Please can you try
upgrading to the latest repo as I changed some of this code
yesterday (though I don't believe there was ever a bug that would
cause this).
A couple of other things to try:
* try configuring just one vbd i.e. no swap on hda4
* what's the output of 'sfdisk -s /dev/hda3'
* instead of hda3 use 0x0303
Thanks for the clear failure report; I'm sure we can get to the
bottom of this one.
Thanks,
Ian
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-18 17:38 ` Ian Pratt
@ 2004-07-18 22:47 ` Fredrik Dahlberg
2004-07-19 9:45 ` Ian Pratt
0 siblings, 1 reply; 9+ messages in thread
From: Fredrik Dahlberg @ 2004-07-18 22:47 UTC (permalink / raw)
To: Ian Pratt; +Cc: xen-devel
Ian Pratt wrote:
> What you've configured should work just fine. Please can you try
> upgrading to the latest repo as I changed some of this code
> yesterday (though I don't believe there was ever a bug that would
> cause this).
>
> A couple of other things to try:
> * try configuring just one vbd i.e. no swap on hda4
> * what's the output of 'sfdisk -s /dev/hda3'
> * instead of hda3 use 0x0303
>
> Thanks for the clear failure report; I'm sure we can get to the
> bottom of this one.
>
> Thanks,
> Ian
>
# I upgraded to the latest xeno-unstable via BitKeeper wich didn't solve
the problem.
# Configuring just one vbd didn't help
# Changing physdev:hda3 to physdev:0x0303 solved the problem, any idea why?
# Output from sfdisk -s /dev/hda3
987997
I don't know if this is related, but I have had some problems with
Linux/Slackware not detecting the correct BIOS geometry for my old disk.
I had to add hda=16383,16,63 as a kernel parameter in my grub
configuration. I tried adding the same parameter to my Xen boot entry,
but without any success.
# cat /boot/grub/menu.lst
default 0
timeout 10
title=Xen 1.3
root (hd0,0)
kernel /boot/xen.gz dom0_mem=131072 com1=115200,8n1
module /boot/vmlinuz-2.4.26-xen0 root=/dev/hda1 ro hda=16383,16,63
title=Slackware 10.0
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 ro hda=16383,16,63
Thanks,
Fredrik
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-18 22:47 ` Fredrik Dahlberg
@ 2004-07-19 9:45 ` Ian Pratt
2004-07-19 15:08 ` Fredrik Dahlberg
0 siblings, 1 reply; 9+ messages in thread
From: Ian Pratt @ 2004-07-19 9:45 UTC (permalink / raw)
To: Fredrik Dahlberg; +Cc: Ian Pratt, xen-devel
> # I upgraded to the latest xeno-unstable via BitKeeper wich didn't solve
> the problem.
> # Output from sfdisk -s /dev/hda3
> 987997
>
> I don't know if this is related, but I have had some problems with
> Linux/Slackware not detecting the correct BIOS geometry for my old disk.
> I had to add hda=16383,16,63 as a kernel parameter in my grub
> configuration. I tried adding the same parameter to my Xen boot entry,
> but without any success.
My suspicion is that "sfdisk -s /dev/hda3" is returning a bogus
size for the partition. Please can you post the output of
/proc/partitions, and "dumpe2fs /dev/hda3".
Thanks,
Ian
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-19 9:45 ` Ian Pratt
@ 2004-07-19 15:08 ` Fredrik Dahlberg
2004-07-19 15:32 ` Ian Pratt
0 siblings, 1 reply; 9+ messages in thread
From: Fredrik Dahlberg @ 2004-07-19 15:08 UTC (permalink / raw)
To: Ian Pratt; +Cc: xen-devel
Ian Pratt wrote:
> My suspicion is that "sfdisk -s /dev/hda3" is returning a bogus
> size for the partition. Please can you post the output of
> /proc/partitions, and "dumpe2fs /dev/hda3".
>
> Thanks,
> Ian
# cat /proc/partitions
major minor #blocks name
3 0 8257032 hda
3 1 5598621 hda1
3 2 361462 hda2
3 3 987997 hda3
3 4 136552 hda4
# dumpe2fs /dev/hda3
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: e847d3ae-4e5f-4074-bdd4-94ef95273ba2
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal filetype sparse_super
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 123648
Block count: 246999
Reserved block count: 12349
Free blocks: 2386
Free inodes: 57950
First block: 0
Block size: 4096
Fragment size: 4096
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 15456
Inode blocks per group: 483
Filesystem created: Sun Jul 18 12:34:28 2004
Last mount time: Mon Jul 19 01:10:10 2004
Last write time: Mon Jul 19 01:17:46 2004
Mount count: 5
Maximum mount count: 38
Last checked: Sun Jul 18 12:34:28 2004
Check interval: 15552000 (6 months)
Next check after: Fri Jan 14 11:34:28 2005
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: f7574f14-fcf4-43ad-9052-ea7e31051819
Journal backup: inode blocks
Group 0: (Blocks 0-32767)
Primary superblock at 0, Group descriptors at 1-1
Block bitmap at 2 (+2), Inode bitmap at 3 (+3)
Inode table at 4-486 (+4)
0 free blocks, 7241 free inodes, 570 directories
Free blocks:
Free inodes: 8216-15456
Group 1: (Blocks 32768-65535)
Backup superblock at 32768, Group descriptors at 32769-32769
Block bitmap at 32770 (+2), Inode bitmap at 32771 (+3)
Inode table at 32772-33254 (+4)
0 free blocks, 7240 free inodes, 479 directories
Free blocks:
Free inodes: 23673-30912
Group 2: (Blocks 65536-98303)
Block bitmap at 65536 (+0), Inode bitmap at 65537 (+1)
Inode table at 65538-66020 (+2)
1 free blocks, 7215 free inodes, 566 directories
Free blocks: 94718
Free inodes: 39135, 39155-46368
Group 3: (Blocks 98304-131071)
Backup superblock at 98304, Group descriptors at 98305-98305
Block bitmap at 98306 (+2), Inode bitmap at 98307 (+3)
Inode table at 98308-98790 (+4)
2 free blocks, 6593 free inodes, 235 directories
Free blocks: 101185-101186
Free inodes: 55232-61824
Group 4: (Blocks 131072-163839)
Block bitmap at 131072 (+0), Inode bitmap at 131073 (+1)
Inode table at 131074-131556 (+2)
2383 free blocks, 7243 free inodes, 285 directories
Free blocks: 161216-161218, 161401-161403, 161405-161408, 161410,
161436-161441, 161443, 161445, 161457-161463, 161465, 161467,
161470-161471, 161480, 161484, 161489-163839
Free inodes: 70038-77280
Group 5: (Blocks 163840-196607)
Backup superblock at 163840, Group descriptors at 163841-163841
Block bitmap at 163842 (+2), Inode bitmap at 163843 (+3)
Inode table at 163844-164326 (+4)
0 free blocks, 7325 free inodes, 568 directories
Free blocks:
Free inodes: 77564, 85403-85404, 85413, 85416-92736
Group 6: (Blocks 196608-229375)
Block bitmap at 196608 (+0), Inode bitmap at 196609 (+1)
Inode table at 196610-197092 (+2)
0 free blocks, 7317 free inodes, 225 directories
Free blocks:
Free inodes: 100876-108192
Group 7: (Blocks 229376-246998)
Backup superblock at 229376, Group descriptors at 229377-229377
Block bitmap at 229378 (+2), Inode bitmap at 229379 (+3)
Inode table at 229380-229862 (+4)
0 free blocks, 7776 free inodes, 688 directories
Free blocks:
Free inodes: 115873-123648
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-19 15:08 ` Fredrik Dahlberg
@ 2004-07-19 15:32 ` Ian Pratt
2004-07-19 18:10 ` Fredrik Dahlberg
0 siblings, 1 reply; 9+ messages in thread
From: Ian Pratt @ 2004-07-19 15:32 UTC (permalink / raw)
To: Fredrik Dahlberg; +Cc: Ian Pratt, xen-devel
> Ian Pratt wrote:
> > My suspicion is that "sfdisk -s /dev/hda3" is returning a bogus
> > size for the partition. Please can you post the output of
> > /proc/partitions, and "dumpe2fs /dev/hda3".
> # cat /proc/partitions
> major minor #blocks name
> 3 3 987997 hda3
>
> # dumpe2fs /dev/hda3
> Block count: 246999
> Block size: 4096
I still don't quite understand why it's failing, but I think I
know enough to fix it: It's a 1kb block vs 512 byte sector
rounding issue.
I've checked in what I believe will be a fix.
Thanks,
Ian
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-19 15:32 ` Ian Pratt
@ 2004-07-19 18:10 ` Fredrik Dahlberg
2004-07-19 18:23 ` Ian Pratt
0 siblings, 1 reply; 9+ messages in thread
From: Fredrik Dahlberg @ 2004-07-19 18:10 UTC (permalink / raw)
To: Ian Pratt; +Cc: xen-devel
Ian Pratt wrote:
> I still don't quite understand why it's failing, but I think I
> know enough to fix it: It's a 1kb block vs 512 byte sector
> rounding issue.
>
> I've checked in what I believe will be a fix.
>
> Thanks,
> Ian
I'm sorry to say that it didn't help. I just did:
# bk clone bk://xen.bkbits.net/xeno-unstable.bk
# make world && make install
When I try to create a new domain a get a slightly different error than
last time:
# xm create vmid=1
Using config file /etc/xen/xmdefaults
config: (vm (name 'This is VM 1') (memory '64') (cpu '1') (image (linux
(kernel /boot/vmlinuz-2.4.26-xenU) (ip :1.2.3.4::::eth0:dhcp) (root
'/dev/sda1 ro'))) (device (vbd (uname phy:hda3) (dev sda1) (mode w)))
(device (vif (mac aa:00:00:2d:9e:09))))
VIRTUAL MEMORY ARRANGEMENT:
Loaded kernel: c0100000->c02cd2a8
Init. ramdisk: c02ce000->c02ce000
Phys-Mach map: c02ce000->c02de000
Page tables: c02de000->c02e0000
Start info: c02e0000->c02e1000
Boot stack: c02e1000->c02e2000
TOTAL: c0000000->c0400000
ENTRY ADDRESS: c0100000
EVENT> xend.console.create [11, 1, 9601]
respond_be_create>
>BlkifController>send_be_disconnect> dom= 1
op_create> Deferred Exception creating domain: [Failure instance:
Traceback: xen.xend.XendError.VmError, vbd: Segments not found:
uname=phy:hda3
/usr/lib/python2.3/site-packages/twisted/internet/defer.py:338:_runCallbacks
/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py:306:_vm_configure1
/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py:665:create_devices
/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py:893:vm_dev_vbd
/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py:140:make_disk
]
>BlkifController>send_be_destroy> dom= 1
Error: Error creating domain: [Failure instance: Traceback:
xen.xend.XendError.VmError, vbd: Segments not found: uname=phy:hda3
/Fredrik
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-19 18:10 ` Fredrik Dahlberg
@ 2004-07-19 18:23 ` Ian Pratt
2004-07-19 18:55 ` Fredrik Dahlberg
0 siblings, 1 reply; 9+ messages in thread
From: Ian Pratt @ 2004-07-19 18:23 UTC (permalink / raw)
To: Fredrik Dahlberg; +Cc: Ian Pratt, xen-devel
> Ian Pratt wrote:
> > I still don't quite understand why it's failing, but I think I
> > know enough to fix it: It's a 1kb block vs 512 byte sector
> > rounding issue.
>
> I'm sorry to say that it didn't help. I just did:
> # bk clone bk://xen.bkbits.net/xeno-unstable.bk
> # make world && make install
OK, it's not something dumb like sfdisk just isn't in /sbin/ on
your system? Does using the 0x0303 syntax still work?
Ian
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Newbie question: Error creating domain
2004-07-19 18:23 ` Ian Pratt
@ 2004-07-19 18:55 ` Fredrik Dahlberg
0 siblings, 0 replies; 9+ messages in thread
From: Fredrik Dahlberg @ 2004-07-19 18:55 UTC (permalink / raw)
To: Ian Pratt; +Cc: xen-devel
Ian Pratt wrote:
> OK, it's not something dumb like sfdisk just isn't in /sbin/ on
> your system? Does using the 0x0303 syntax still work?
>
> Ian
>
It looks like you nailed it, sfdisk is located in /usr/sbin in Slackware
10.0. :)
0x0303 is still working.
/Fredrik
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-07-19 18:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-18 15:12 Newbie question: Error creating domain Fredrik Dahlberg
2004-07-18 17:38 ` Ian Pratt
2004-07-18 22:47 ` Fredrik Dahlberg
2004-07-19 9:45 ` Ian Pratt
2004-07-19 15:08 ` Fredrik Dahlberg
2004-07-19 15:32 ` Ian Pratt
2004-07-19 18:10 ` Fredrik Dahlberg
2004-07-19 18:23 ` Ian Pratt
2004-07-19 18:55 ` Fredrik Dahlberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.