Jump to content

Xen and Fedora 7 'Disk image does not exist'


Recommended Posts

Hi there!

 

Hope you can help me solve this problem. I've been working on this of almost 1week now. I Googled alot but can't find any definite answer.

 

Whenever I created guest OS using virt-manager this error came out.

 

Here's the error:

 

libvir: Xen Daemon error : POST operation failed: (xend.err 'Disk image does not exist: /virt/vega.img')

Traceback (most recent call last):

File "/usr/share/virt-manager/virt-manager.py", line 246, in <module>

main()

File "/usr/share/virt-manager/virt-manager.py", line 242, in main

gtk.main()

KeyboardInterrupt

 

I followed this procedure to create image for the guest OS:

Create a mountpoint for the images.

 

mkdir -p /xen-images/mnt

 

Create a 1 GB image file and 500 MB swap file, for larger images increase count.

 

dd if=/dev/zero of=/xen-images/guest_base.img bs=1024k count=1000

dd if=/dev/zero of=/xen-images/guest_base-swap.img bs=1024k count=500

 

Change permissions for the image files. No one should have access to your Domain-0 computer since that would compromise security for all of the guest domains, but this is a good idea anyway and doesn't affect Xen.

 

chmod 640 /xen-images/guest_base*

 

Format guest_base.img as ext3 and then format guest_base-swap.img as swap. When it says "/xen-images/guest_base.img is not a block special device." answer yes to proceed anyway.

 

mkfs.ext3 /xen-images/guest_base.img

mkswap /xen-images/guest_base-swap.img

 

But still stuck whenever booting the OS.

 

Please help me solve the problem.

 

Thank you very much.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...