Hi. I am running Xen 3.0.3-1 on Debian Etch. Does anyone have a sample config file for creating a windows DomU? I have the ISO file from my windows CD. I''m not using LVM Thanks in Advance _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
(Copying to the list, for other''s benefit) On 25/10/2007, John Morris <frankenbean@gmail.com> wrote:> > Hi. I am running Xen 3.0.3-1 on Debian Etch. Does anyone have a sample > config file for creating a windows DomU? I have the ISO file from my > windows CD. I''m not using LVM >Here is what I use with Windows XP Pro and the CD I got with my Dell, under Debian Etch on an Intel Core 2 Duo with VT support: kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' builder = ''hvm'' memory = ''512'' name = ''winxp'' vif = [''type=ioemu, bridge=xenbr0''] # the following is the ''setup'' phase, with an ISO image I copied from the Windows CD. If you want to use the CD for installation then ignore it, #disk = [ ''file:/home/xen/domains/winxppro/disk.img,ioemu:hda,w'', ''file:/home/amos/Documents/WindowsXP-Pro-SP2.iso,ioemu:hdb:cdrom,r'' ] # the following is used after the setup, so windows can access the hardware cdrom disk = [ ''file:/home/xen/domains/winxppro/disk.img,ioemu:hda,w'', ''/dev/cdrom,ioemu:hdb:cdrom,r'' ] device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' ne2000="0" boot=''c'' # change to ''d'' to make it boot from the cd, then to ''c'' to boot from hard disk sdl=1 # this line allowed the console to open soundhw=''all'' # allows sounds in Windows, but when the VM runs you can''t have sound in Linux. Possibly something to do with device sharing through ALSA --Amos _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks, Amos. Do you happen to know how I might alter this to work with LVM? I have a PV of 500GB, with a VG called Xen. I have a 40GB Logical Volume set up for my windows virtual machine. On 10/25/07, Amos Shapira <amos.shapira@gmail.com> wrote:> > (Copying to the list, for other''s benefit) > > On 25/10/2007, John Morris < frankenbean@gmail.com> wrote: > > > Hi. I am running Xen 3.0.3-1 on Debian Etch. Does anyone have a sample > > config file for creating a windows DomU? I have the ISO file from my > > windows CD. I''m not using LVM > > > > Here is what I use with Windows XP Pro and the CD I got with my Dell, > under Debian Etch on an Intel Core 2 Duo with VT support: > > kernel = ''/usr/lib/xen-3.0.3-1/boot/hvmloader'' > builder = ''hvm'' > memory = ''512'' > name = ''winxp'' > vif = [''type=ioemu, bridge=xenbr0''] > # the following is the ''setup'' phase, with an ISO image I copied from the > Windows CD. If you want to use the CD for installation then ignore it, > #disk = [ ''file:/home/xen/domains/winxppro/disk.img,ioemu:hda,w'', > ''file:/home/amos/Documents/WindowsXP-Pro-SP2.iso,ioemu:hdb:cdrom,r'' ] > # the following is used after the setup, so windows can access the > hardware cdrom > disk = [ ''file:/home/xen/domains/winxppro/disk.img,ioemu:hda,w'', > ''/dev/cdrom,ioemu:hdb:cdrom,r'' ] > device_model=''/usr/lib/xen-3.0.3-1/bin/qemu-dm'' > ne2000="0" > boot=''c'' # change to ''d'' to make it boot from the cd, then to ''c'' to boot > from hard disk > sdl=1 # this line allowed the console to open > soundhw=''all'' # allows sounds in Windows, but when the VM runs you can''t > have sound in Linux. Possibly something to do with device sharing through > ALSA > > --Amos > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Morris schrieb:> Thanks, Amos. Do you happen to know how I might alter this to work with > LVM? I have a PV of 500GB, with a VG called Xen. I have a 40GB Logical > Volume set up for my windows virtual machine.Hi, first create the lv. # lvcreate -L <image size>G -n <image name> <vg name> e.g. # lvcreate -L 80G -n mywindows-disk Xen using this scheme, the disk entry in your hvm config file would read something like: disk = [ ''phy:/dev/Xen/mywindows-disk,ioemu:hda,w'' ] btw. i would always add a mac address to the vif line. there''s no assigned ''free'' address space to use, just use one which isn''t already in use at your network segment. e.g. : vif = [ ''type=ioemu,mac=02:16:3e:48:04:38,bridge=xenbr0'' ] greetings Stephan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It seems that I''m almost there. My VM fails to boot from CD. My disk options are disk = [ ''phy:/dev/Xen/WinXP,ioemu:hda,w'', ''file:/xens/test/winxp.iso,ioemu:hdc:cdrom,r'' ] and my boot options are: boot="d" Any thoughts? On 10/26/07, Stephan Seitz <s.seitz@netz-haut.de> wrote:> > John Morris schrieb: > > Thanks, Amos. Do you happen to know how I might alter this to work with > > LVM? I have a PV of 500GB, with a VG called Xen. I have a 40GB Logical > > Volume set up for my windows virtual machine. > > Hi, > > first create the lv. > > # lvcreate -L <image size>G -n <image name> <vg name> > e.g. > # lvcreate -L 80G -n mywindows-disk Xen > > using this scheme, the disk entry in your hvm config file would > read something like: > > disk = [ ''phy:/dev/Xen/mywindows-disk,ioemu:hda,w'' ] > > btw. i would always add a mac address to the vif line. there''s no > assigned ''free'' address space to use, just use one which isn''t > already in use at your network segment. e.g. : > > vif = [ ''type=ioemu,mac=02:16:3e:48:04:38,bridge=xenbr0'' ] > > greetings > > Stephan > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Morris schrieb:> It seems that I''m almost there. My VM fails to boot from CD. My disk > options areThere _are_ issues running XP on Xen 3.0.3. Assuming you''ve installed the ioemu (debian might pack this as xen-ioemu-3.0.3 or similar), you might try to fiddle around with acpi=0 and/or apic=0 and/or lapic=0 at the hvm config file. I would suggest you install 3.1 which should be available for etch. Stephan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 27/10/2007, Stephan Seitz <s.seitz@netz-haut.de> wrote:> > config file. I would suggest you install 3.1 which should be available for > etch.Speaking of which - I see xen-ioemu-3.0.3 but nothing that looks like being the equivalent for xen 3.1 (on Debian Etch). Is this an ommission or is the separate ioemu package not relevant for 3.1 any more? --Amos _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 27/10/2007, John Morris <frankenbean@gmail.com> wrote:> > It seems that I''m almost there. My VM fails to boot from CD. My disk > options are > > disk = [ ''phy:/dev/Xen/WinXP,ioemu:hda,w'', > ''file:/xens/test/winxp.iso,ioemu:hdc:cdrom,r'' ] > > and my boot options are: > > boot="d" > > Any thoughts?What do you get when you try to boot it? Have you looked at "xm dmesg" and the xend log file? --Amos _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users