Newbie question: "error creating domain: vbd: segment not found"
Hi
I'm following the ttylinux example in section 3.3 of the xen user manual, and getting the following error:
[root@localhost quintonh]# /usr/sbin/xm create -c /etc/xen/ttylinux.domain-config-file
Using config file "/etc/xen/ttylinux.domain-config-file".
Error: Error creating domain: vbd: Segment not found:
uname=file:/home/quintonh/Downloads/xen/ttylinux-xen
My domain config file is attached, but essentially looks like this:
kernel = "/boot/vmlinuz-2.6.10-xenU"
memory = 64
name = "ttylinux"
nics=1
ip = "1.2.3.4"
disk = [ 'file:/home/quintonh/Downloads/xen/ttylinux-xen,hdb2,w' ] root = "/dev/hdb2 ro"
And the file is there:
[root@localhost xen]# pwd/home/quintonh/Downloads/xen
[root@localhost xen]# ls -als
total 26196
4 drwx------ 3 quintonh quintonh 4096 Jan 25 15:47 .
4 drwx------ 8 quintonh quintonh 4096 Jan 17 16:29 ..
16020 -rw-rw-r-- 1 quintonh quintonh 16384000 Jan 25 14:39 ttylinux-xenAny ideas?
Q
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 2 lines · Quinton Hoole
I'm following the ttylinux example in section 3.3 of the xen user manual, and getting the following error:
[...]
Quoted 1 line
disk = [ 'file:/home/quintonh/Downloads/xen/ttylinux-xen,hdb2,w' ]
[...]
Quoted 1 line
Any ideas?
It takes a while for a mail to pass thru the sf.net mailing list system :-).
You're using file-backed storage, but it seems that you don't have loop device support compiled into your dom0 kernel. You'll have to enable CONFIG_BLK_DEV_LOOP in your dom0 kernel configuration and rebuild.
-jkt
Signature · 9 lines
cd /local/pub && more beer > /dev/mouth ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 9 lines
Quoted 2 lines · Quinton Hoole
I'm following the ttylinux example in section 3.3 of the xen user manual, and getting the following error:
[...]
Quoted 1 line
disk = [ 'file:/home/quintonh/Downloads/xen/ttylinux-xen,hdb2,w' ]
[...]
Quoted 1 line
Any ideas?
You're using file-backed storage, but it seems that you don't have
loop
Quoted 2 lines
device support compiled into your dom0 kernel. You'll have to enable
CONFIG_BLK_DEV_LOOPin your dom0 kernel configuration and rebuild.
Thanks, but I'm using the standard XenLinux distribution (vmlinuz-2.6.10-xen0) which I downloaded from the Xen downloads page a few weeks back. Surely this has the required loop device support?
Q
Signature · 12 lines
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 8 lines · Quinton Hoole
Quoted 8 lines
Quoted 2 lines · Quinton Hoole
I'm following the ttylinux example in section 3.3 of the xen user manual, and getting the following error:
[...]
Quoted 1 line
disk = [ 'file:/home/quintonh/Downloads/xen/ttylinux-xen,hdb2,w' ]
[...]
Quoted 1 line
Any ideas?
Quoted 8 lines
Quoted 1 line
You're using file-backed storage, but it seems that you don't have
loop
Quoted 2 lines
device support compiled into your dom0 kernel. You'll have to enable
CONFIG_BLK_DEV_LOOPin your dom0 kernel configuration and rebuild.Thanks, but I'm using the standard XenLinux distribution (vmlinuz-2.6.10-xen0) which I downloaded from the Xen downloads page a few weeks back. Surely this has the required loop device support?
I don't know. Are you able to mount some disk image from inside of dom0? Something like mount /path/to/image.iso /mnt/iso -t iso9660 -o loop,ro, where /path/to/image.iso is ISO image of CD-ROM?
Does losetup work?
-jkt
Signature · 9 lines
cd /local/pub && more beer > /dev/mouth ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 3 lines
Thanks, but I'm using the standard XenLinux distribution (vmlinuz-2.6.10-xen0) which I downloaded from the Xen downloads page a few weeks back. Surely this has the required loop device support?
Can you check that you have the losetup command available on your system and that it works OK?
Try:
losetup /dev/loop0 /home/quintonh/Downloads/xen/ttylinux-xen
And then change the VBD to refer to 'phy:/dev/loop0' instead of 'file:...'.
(assuming that works, you can remove the loop mapping after stopping the domain using 'losetup -d /dev/loop0)
Cheers,
Mark
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Marvellous! Fixed.
Thanks
Q
Quoted 2 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Mark Williamson
Quoted 4 lines
Sent: 28 January 2005 18:12
To: [email protected]
Cc: Quinton Hoole; 'Jan Kundrát'
Subject: Re: [Xen-devel] Newbie question: "error creating domain: vbd:
segment not found"
Quoted 3 lines
Quoted 3 lines
Thanks, but I'm using the standard XenLinux distribution (vmlinuz-2.6.10-xen0) which I downloaded from the Xen downloads page
a
Quoted 3 lines
Quoted 1 line
few weeks back. Surely this has the required loop device support?
Can you check that you have the losetup command available on your
system and
Quoted 6 lines
that it works OK?
Try:
losetup/dev/loop0/home/quintonh/Downloads/xen/ttylinux-xenAnd then change the VBD to refer to 'phy:/dev/loop0' instead of
'file:...'.
Quoted 2 lines
(assuming that works, you can remove the loop mapping after stopping
the
Quoted 11 lines
domain using 'losetup -d
/dev/loop0)Cheers,
Mark--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26
Signature · 12 lines
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 1 line
Marvellous! Fixed.
So the commands I showed just worked but the file: uname didn't? You didn't have to install any packages to make it work?
Cheers,
Mark
Quoted 32 lines
Thanks
Q
Quoted 2 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf Mark Williamson
Quoted 4 lines
Sent: 28 January 2005 18:12
To: [email protected]
Cc: Quinton Hoole; 'Jan Kundrát'
Subject: Re: [Xen-devel] Newbie question: "error creating domain: vbd:segment not found"
Quoted 2 lines
Quoted 2 lines
Thanks, but I'm using the standard XenLinux distribution (vmlinuz-2.6.10-xen0) which I downloaded from the Xen downloads page
a
Quoted 3 lines
Quoted 1 line
few weeks back. Surely this has the required loop device support?
Can you check that you have the losetup command available on your
system and
Quoted 5 lines
that it works OK?
Try:
losetup/dev/loop0/home/quintonh/Downloads/xen/ttylinux-xen
Quoted 18 lines
Quoted 1 line
And then change the VBD to refer to 'phy:/dev/loop0' instead of
'file:...'.
Quoted 1 line
(assuming that works, you can remove the loop mapping after stopping
the
Quoted 10 lines
domain using 'losetup -d
/dev/loop0)Cheers,
Mark--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
I've seen this problem occur before when I destroy a domain through a non-xm tool (sending control messages myself). I think it's some sort of dead-lock but I cannot reproduce it reliably.
Rebooting always fixes the problem for me.
Regards,
Quoted 69 lines · Mark Williamson
Quoted 1 line
Marvellous! Fixed.
So the commands I showed just worked but the file: uname didn't? You didn't have to install any packages to make it work?
Cheers,
MarkQuoted 32 lines
Thanks
Q
Quoted 2 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf Mark Williamson
Quoted 4 lines
Sent: 28 January 2005 18:12
To: [email protected]
Cc: Quinton Hoole; 'Jan Kundrát'
Subject: Re: [Xen-devel] Newbie question: "error creating domain: vbd:segment not found"
Quoted 2 lines
Quoted 2 lines
Thanks, but I'm using the standard XenLinux distribution (vmlinuz-2.6.10-xen0) which I downloaded from the Xen downloads page
a
Quoted 3 lines
Quoted 1 line
few weeks back. Surely this has the required loop device support?
Can you check that you have the losetup command available on your
system and
Quoted 5 lines
that it works OK?
Try:
losetup/dev/loop0/home/quintonh/Downloads/xen/ttylinux-xenQuoted 18 lines
Quoted 1 line
And then change the VBD to refer to 'phy:/dev/loop0' instead of
'file:...'.
Quoted 1 line
(assuming that works, you can remove the loop mapping after stopping
the
Quoted 10 lines
domain using 'losetup -d
/dev/loop0)Cheers,
Mark--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
Signature · 13 lines
Anthony Liguori Linux Technology Center (LTC) - IBM Austin E-mail: [email protected] Phone: (512) 838-1208 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
RE: Newbie question: "error creating domain: vbd:segment not found"
Quoted 6 lines
From: Anthony Liguori [mailto:[email protected]]
I've seen this problem occur before when I destroy a domain through a non-xm tool (sending control messages myself). I think it's some sort of dead-lock but I cannot reproduce it reliably.Rebooting always fixes the problem for me.
Not in my case. I tried that. Just shout if there's any other info I can send you to make sense of it. Note that I'm a relative newbie to Linux devices, so it might be something pretty trivial. See in particular my comments yesterday re: my root device:
"my root partition is on /dev/hdb2, and not /dev/sda1, so my domain config file has been edited appropriately (/dev/sda1 does not even exist on my system). Am I perhaps confused here? Should I be using a device other than my dom0 root device?"
Q
Signature · 12 lines
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Re: Newbie question: "error creating domain: vbd:segment not found"
Quoted 5 lines
"my root partition is on
/dev/hdb2, and not/dev/sda1, so my domain config file has been edited appropriately (/dev/sda1does not even exist on my system). Am I perhaps confused here? Should I be using a device other than my dom0 root device?"
Yes!
Each domain needs its own root file system.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
RE: Newbie question: "error creating domain: vbd:segment not found"
Yep - that's what I guessed. But using
disk = ['file:/path/to/ttylinux/rootfs,sda1,w']
as in the tutorial failed ("device not found" from what I recall). But changing sda1 to hdb2 got around that problem, albeit the wrong approach, I assume.
Q
Quoted 2 lines
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On
Quoted 4 lines
Behalf Of Ian Pratt
Sent: 29 January 2005 11:42
To: Quinton Hoole
Cc: 'Anthony Liguori'; 'Mark Williamson';
[email protected]; 'Jan Kundrat';
Quoted 2 lines
[email protected]
Subject: Re: [Xen-devel] Newbie question: "error creating domain:
vbd:segment not found"
Quoted 4 lines
Quoted 4 lines
"my root partition is on
/dev/hdb2, and not/dev/sda1, so my domain config file has been edited appropriately (/dev/sda1does not even
exist
Quoted 1 line
Quoted 1 line
on my system). Am I perhaps confused here? Should I be using a
device
Quoted 11 lines
Quoted 1 line
other than my dom0 root device?"
Yes!
Each domain needs its own root file system.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive
Reporting
Quoted 14 lines
Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26
Signature · 12 lines
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Re: Newbie question: "error creating domain: vbd:segment not found"
Quoted 5 lines
disk = ['file:/path/to/ttylinux/rootfs,sda1,w']
as in the tutorial failed ("device not found" from what I recall). But changing sda1 to hdb2 got around that problem, albeit the wrong approach, I assume.
Ah, that'll break if you don't have a /dev/sda1 to lookup in dom1. Changing "sda1" to "0801" should work (I think this issue is fixed in the testing tree)
Cheers,
Mark
Quoted 35 lines
Q
Quoted 2 lines
-----Original Message-----
From: [email protected][mailto:[email protected]] On
Quoted 4 lines
Behalf Of Ian Pratt
Sent: 29 January 2005 11:42
To: Quinton Hoole
Cc: 'Anthony Liguori'; 'Mark Williamson';[email protected]; 'Jan Kundrat';
Quoted 2 lines
[email protected]
Subject: Re: [Xen-devel] Newbie question: "error creating domain:vbd:segment not found"
Quoted 2 lines
Quoted 2 lines
"my root partition is on
/dev/hdb2, and not/dev/sda1, so my domain config file has been edited appropriately (/dev/sda1does not evenexist
Quoted 1 line
Quoted 1 line
on my system). Am I perhaps confused here? Should I be using a
device
Quoted 6 lines
Quoted 1 line
other than my dom0 root device?"
Yes!
Each domain needs its own root file system.
Quoted 21 lines
Quoted 5 lines
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- InteractiveReporting
Quoted 13 lines
Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
RE: Newbie question: "error creating domain: vbd:segment not found"
Quoted 4 lines
Quoted 4 lines
disk = ['file:/path/to/ttylinux/rootfs,sda1,w']
as in the tutorial failed ("device not found" from what I recall).
But
Quoted 4 lines
Quoted 2 lines
changing sda1 to hdb2 got around that problem, albeit the wrong approach, I assume.
Ah, that'll break if you don't have a
/dev/sda1to lookup in dom1.
Changing
Quoted 1 line
"sda1" to "0801" should work (I think this issue is fixed in the
testing
Quoted 1 line
tree)
Hmmm - sadly not. I've tried "0801", but I get the error:
"Error creating domain: vbd: Segment not found:
uname=file:/home/quintonh/Downloads/xen/ttylinux-xen"
Config file is now identical to that given in the manual, except with "sda1" replaced by "0801" in both places. As before, using off-the-shelf downloaded builds of xen and ttylinux-xen.
Q
Signature · 12 lines
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 2005/01/28 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Mark Williamson wrote>
Quoted 1 line
So the commands I showed just worked but the file: uname didn't? You
didn't
Quoted 2 lines
have to install any packages to make it work?
Yes, that's correct. Losetup worked, and the VM boots with phy:/dev/loop0. No additional packages required.
Signature · 12 lines
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 2005/01/26 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl