Thanks for the nice article. However, I had a problem on the portion of xm create area.
I downloaded a Fedora image at http://www.jailtime.org/ and mount it using your article. However, at the final stage I encountered this error, as follows:
[root@vmsrv xen-images]# xm create fedora.fc6.xen3.cfg
Using config file "./fedora.fc6.xen3.cfg".
Error: Device 2049 (vbd) could not be connected.
File /home/xen-images/fedora.fc6.img is loopback-mounted through /dev/loop0,
which is mounted in the privileged domain,
and so cannot be mounted by a guest.
I placed the image:
And my config:
kernel = "/boot/vmlinuz-2.6.20-2925.13.fc7xen"
memory = 512
name = "fedora.fc6"
vif = [ '' ]
dhcp = "dhcp"
disk = ['file:/home/xen-images/fedora.fc6.img,sda1,w', 'file:/home/xen-images/fedora.swap,sda2,w']
root = "/dev/sda1 ro"
How can I resolve the problem? Please help me. I'm stuck for almost 2 weeks already. Can't seem to find definite solutions everywhere.
Thank you so much.
Based on the message it looks like you have the fedora.fc6.img file mounted on a loopback device. Unmount that, as you want it to be treated like a file by Xen, not a filesystem.