PDA

View Full Version : XEN Howto/ Host FC7 Guest Windows Me or Xp


x345v20z
8th November 2007, 20:15
Here is yet another route using CLI..at least now I get better error messages tan with the GUI application "Virtual machine manager"

[root@bogus ~]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 16319 2 r----- 749.7

[root@bogus~]# virt-install
What is the name of your virtual machine? WinME-1
How much RAM should be allocated (in megabytes)? 1000
What would you like to use as the disk (path)? /home/xen/winme.img
How large would you like the disk (/home/xen/winme.img) to be (in gigabytes)? 3000
Would you like to enable graphics support? (yes or no) yes
What is the install location? /dev/scd0


Starting install...
libvir: Xen Daemon error : GET operation failed:
Invalid file location given: No such file or directory
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start WinME-1'; otherwise, please
restart your installation.
Thu, 08 Nov 2007 07:25:03 ERROR Invalid file location given: No such file or directory
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 474, in <module>
main()
File "/usr/sbin/virt-install", line 438, in main
dom = guest.start_install(conscb,progresscb)
File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 706, in start_install
self._prepare_install(meter)
File "/usr/lib/python2.5/site-packages/virtinst/ParaVirtGuest.py", line 45, in _prepare_install
self._installer.prepare(guest = self, meter = meter)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 678, in prepare
self._prepare_kernel_and_initrd(guest, distro, meter)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 648, in _prepare_kernel_and_initrd
distro = distro)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 578, in acquireKernel
progresscb=progresscb, distro=distro, scratchdir=scratchdir)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 561, in _storeForDistro
if store.isValidStore(fetcher, progresscb):
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 213, in isValidStore
if fetcher.hasFile("Fedora", progresscb):
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 160, in hasFile
tmpfile = self.acquireFile(filename, progresscb)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 150, in acquireFile
raise ValueError, _("Invalid file location given: ") + msg
ValueError: Invalid file location given: No such file or directory
You have mail in /var/spool/mail/root
[root@bogus ~]#

So again, obviously the problem is at "What would you like to use as the disk (path)? /home/xen/winme.img".
Someone can tell me what I need to do there? Create an image just supply a file name, what else?

falko
9th November 2007, 19:58
Does the /home/xen directory exist? If not, create it and try again.

x345v20z
9th November 2007, 20:09
yes /home/xen was presented and for good measure it was chmod 777.
I have no problem using Qemu, but XEN is really troublesome for some reason.

falko
10th November 2007, 22:06
How large would you like the disk (/home/xen/winme.img) to be (in gigabytes)? 3000

Did you really specify 3000 GB?

Sp4rt4n
17th January 2008, 00:40
Hey guys,
Did you ever solve this problem? Im trying the same thing with FC8 and encountering the same error message (i think).

[root@localhost xen]# pwd
/home/xen
[root@localhost xen]# uname -r
2.6.21-2952.fc8xen
[root@localhost xen]# /usr/sbin/xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1880 2 r----- 7073.5
[root@localhost xen]# virt-install
What is the name of your virtual machine? WinXP
How much RAM should be allocated (in megabytes)? 1200
What would you like to use as the disk (path)? /dev/sda4
Would you like to enable graphics support? (yes or no) yes
What is the install location? /dev/cdrom


Starting install...
libvir: Xen Daemon error : GET operation failed:
Invalid file location given: No such file or directory
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start WinXP'; otherwise, please
restart your installation.
Wed, 16 Jan 2008 16:44:34 ERROR Invalid file location given: No such file or directory
Traceback (most recent call last):
File "/usr/bin/virt-install", line 485, in <module>
main()
File "/usr/bin/virt-install", line 449, in main
dom = guest.start_install(conscb,progresscb)
File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 722, in start_install
self._prepare_install(meter)
File "/usr/lib/python2.5/site-packages/virtinst/ParaVirtGuest.py", line 48, in _prepare_install
self._installer.prepare(guest = self, meter = meter)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 681, in prepare
self._prepare_kernel_and_initrd(guest, distro, meter)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 651, in _prepare_kernel_and_initrd
distro = distro)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 581, in acquireKernel
progresscb=progresscb, distro=distro, scratchdir=scratchdir)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 564, in _storeForDistro
if store.isValidStore(fetcher, progresscb):
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 445, in isValidStore
ignore = fetcher.acquireFile("directory.yast", progresscb)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 150, in acquireFile
raise ValueError, _("Invalid file location given: ") + msg
ValueError: Invalid file location given: No such file or directory


I have tried using an iso i made of the WinXP disk i have, instead of /dev/cdrom (using the dd command). Also I have tried installing it to a .img file i made (with the dd command) instead of a partition (/dev/sda4 is an empty ntfs partition). Any help would be appreciated.

Thanks

x345v20z
18th January 2008, 03:34
No, I never got it to work, and just went ahead and used Qemu instead. Qemu works good enough.