James Adams
2009-Oct-09 15:54 UTC
Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
I am attempting to start a new domU using this command as root: virsh create <xml_file> I am seeing the following error: libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating domain: Disk isn''t accessible") error: Failed to create domain from /root/xvmfiles/abc-1.0.xml The XML file looks like this: <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> <name>abc-1.0</name> <uuid>46606550-882c-42ff-9911-15c9a89185db</uuid> <bootloader>/usr/lib/xen/bin/pygrub</bootloader> <os> <type>linux</type> </os> <memory>12582912</memory> <vcpu>1</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <distro name="solaris"/> <clock offset="localtime"/> <devices> <interface type="bridge"> <source bridge="e1000g0"/> <target dev="vif-1.0"/> <mac address="00:16:3e:00:01:44"/> </interface> <disk device="disk" type="file"> <driver name="tap" type="vdisk"/> <source file="/root/xvmfiles/abc-1.0"/> <target dev="xvda"/> </disk> </devices> </domain> I have vdisk files for the domU (vdisk.vmdk and vdisk.xml) in the directory /root/xvmfiles/abc-1.0, and these files have 755 permissions. I am doing this on a Solaris system, here''s the output from uname -a: SunOS lm1-dom0 5.11 snv_111a i86pc i386 i86xpv Can anyone comment as to what my error may be? Thanks in advance for your help. --James
Mark Johnson
2009-Oct-09 15:58 UTC
Re: Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
James Adams wrote:> I am attempting to start a new domU using this command as root: virsh > create <xml_file> > > I am seeing the following error: > > libvir: Xen Daemon error : POST operation failed: (xend.err "Error > creating domain: Disk isn''t accessible") > error: Failed to create domain from /root/xvmfiles/abc-1.0.xml > > The XML file looks like this: > > <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> > <name>abc-1.0</name> > <uuid>46606550-882c-42ff-9911-15c9a89185db</uuid> > <bootloader>/usr/lib/xen/bin/pygrub</bootloader> > <os> > <type>linux</type> > </os> > <memory>12582912</memory> > <vcpu>1</vcpu> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>restart</on_crash> > <distro name="solaris"/> > <clock offset="localtime"/> > <devices> > <interface type="bridge"> > <source bridge="e1000g0"/> > <target dev="vif-1.0"/> > <mac address="00:16:3e:00:01:44"/> > </interface> > <disk device="disk" type="file"> > <driver name="tap" type="vdisk"/> > <source file="/root/xvmfiles/abc-1.0"/> > <target dev="xvda"/> > </disk> > </devices> > </domain> > > I have vdisk files for the domU (vdisk.vmdk and vdisk.xml) in the > directory /root/xvmfiles/abc-1.0, and these files have 755 permissions. > I am doing this on a Solaris system, here''s the output from uname -a: > > SunOS lm1-dom0 5.11 snv_111a i86pc i386 i86xpv > > > Can anyone comment as to what my error may be? Thanks in advance for > your help./root/xmvfiles should have r/w privs for user xvm... Do you have that? MRJ
John Levon
2009-Oct-09 16:07 UTC
Re: Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
On Fri, Oct 09, 2009 at 09:54:40AM -0600, James Adams wrote:> I am seeing the following error: > > libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating > domain: Disk isn''t accessible") > error: Failed to create domain from /root/xvmfiles/abc-1.0.xmlLook at /var/log/xen/xpvd-event.log regards john
James Adams
2009-Oct-09 16:22 UTC
Re: Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
Mark Johnson wrote:> > > James Adams wrote: >> I am attempting to start a new domU using this command as root: virsh >> create <xml_file> >> >> I am seeing the following error: >> >> libvir: Xen Daemon error : POST operation failed: (xend.err "Error >> creating domain: Disk isn''t accessible") >> error: Failed to create domain from /root/xvmfiles/abc-1.0.xml >> >> The XML file looks like this: >> >> <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> >> <name>abc-1.0</name> >> <uuid>46606550-882c-42ff-9911-15c9a89185db</uuid> >> <bootloader>/usr/lib/xen/bin/pygrub</bootloader> >> <os> >> <type>linux</type> >> </os> >> <memory>12582912</memory> >> <vcpu>1</vcpu> >> <on_poweroff>destroy</on_poweroff> >> <on_reboot>restart</on_reboot> >> <on_crash>restart</on_crash> >> <distro name="solaris"/> >> <clock offset="localtime"/> >> <devices> >> <interface type="bridge"> >> <source bridge="e1000g0"/> >> <target dev="vif-1.0"/> >> <mac address="00:16:3e:00:01:44"/> >> </interface> >> <disk device="disk" type="file"> >> <driver name="tap" type="vdisk"/> >> <source file="/root/xvmfiles/abc-1.0"/> >> <target dev="xvda"/> >> </disk> >> </devices> >> </domain> >> >> I have vdisk files for the domU (vdisk.vmdk and vdisk.xml) in the >> directory /root/xvmfiles/abc-1.0, and these files have 755 >> permissions. I am doing this on a Solaris system, here''s the output >> from uname -a: >> >> SunOS lm1-dom0 5.11 snv_111a i86pc i386 i86xpv >> >> >> Can anyone comment as to what my error may be? Thanks in advance for >> your help. > > > /root/xmvfiles should have r/w privs for user xvm... Do you > have that? > >Thanks, Mark. I changed the permissions on that directory to 777 and reran the command, same error. --James
James Adams
2009-Oct-09 16:26 UTC
Re: Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
John Levon wrote:> On Fri, Oct 09, 2009 at 09:54:40AM -0600, James Adams wrote: > >> I am seeing the following error: >> >> libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating >> domain: Disk isn''t accessible") >> error: Failed to create domain from /root/xvmfiles/abc-1.0.xml > > Look at /var/log/xen/xpvd-event.log >Thanks, John. Interestingly enough there are no entries in that log file whatsoever. Is this normal, or indicative of another problem? --James
John Levon
2009-Oct-09 17:06 UTC
Re: Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
On Fri, Oct 09, 2009 at 10:26:18AM -0600, James Adams wrote:> >>libvir: Xen Daemon error : POST operation failed: (xend.err "Error > >>creating domain: Disk isn''t accessible") > >>error: Failed to create domain from /root/xvmfiles/abc-1.0.xml > > > >Look at /var/log/xen/xpvd-event.log > > Thanks, John. Interestingly enough there are no entries in that log file > whatsoever. Is this normal, or indicative of another problem?Yes, this is a serious problem. What''s the output of syseventadm list? regards john
James Adams
2009-Oct-09 19:34 UTC
Re: Why this error? ( xend.err "Error creating domain: Disk isn''t accessible")
I have worked out a solution to this problem, although it''s not clear why the solution works. I moved the vdisk files and domU XML file to another directory and now the domU comes up with no error. I imagine that the problem is with the permissions on the original directory, or more likely one of its parent directories since the original directory had its permissions set to 777 and still the error persisted. Can anyone point me to documentation which explains the directory permissions requirements, so I can learn enough about this to avoid this error in the future? --James James Adams wrote:> I am attempting to start a new domU using this command as root: virsh > create <xml_file> > > I am seeing the following error: > > libvir: Xen Daemon error : POST operation failed: (xend.err "Error > creating domain: Disk isn''t accessible") > error: Failed to create domain from /root/xvmfiles/abc-1.0.xml > > The XML file looks like this: > > <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> > <name>abc-1.0</name> > <uuid>46606550-882c-42ff-9911-15c9a89185db</uuid> > <bootloader>/usr/lib/xen/bin/pygrub</bootloader> > <os> > <type>linux</type> > </os> > <memory>12582912</memory> > <vcpu>1</vcpu> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>restart</on_crash> > <distro name="solaris"/> > <clock offset="localtime"/> > <devices> > <interface type="bridge"> > <source bridge="e1000g0"/> > <target dev="vif-1.0"/> > <mac address="00:16:3e:00:01:44"/> > </interface> > <disk device="disk" type="file"> > <driver name="tap" type="vdisk"/> > <source file="/root/xvmfiles/abc-1.0"/> > <target dev="xvda"/> > </disk> > </devices> > </domain> > > I have vdisk files for the domU (vdisk.vmdk and vdisk.xml) in the > directory /root/xvmfiles/abc-1.0, and these files have 755 permissions. > I am doing this on a Solaris system, here''s the output from uname -a: > > SunOS lm1-dom0 5.11 snv_111a i86pc i386 i86xpv > > > Can anyone comment as to what my error may be? Thanks in advance for > your help. > > --James >