Mailing List Archive

Windows 7 as guest on a physikal disk
Hallo,

I have an installed Windows 7 on one partition
and running Debain Squeeze on the other. Both are 64 bit.
I want to use Xen to run Windows as virtual guest from
a physical disk. Once I get this working the Window will
never be booted directly.


When I try to create the virtual machine by
"xm create -c win.xen"
it hangs.


The versions I use
Xen 4.0.1-4
Kernel 2.6.32-5-xen-amd64


Below find the relevant Files.

Any help? Thanks in advance.

Regards

Jens


win7.xen
-----------------
kernel = "/usr/lib/xen-4.0/boot/hvmloader"
builder='hvm'
memory = 512
name = "Win7"
vif = [ 'type=ioemu, bridge=eth0' ]
disk = [ 'phy:sda1,hda,w' ]
device_model = 'qemu-dm'
boot="c"
sdl=0
opengl=1
vnc=1
vncpasswd='abcd'
stdvga=0
serial='pty'
tsc_mode=0
full_screen=1
-----------

xend-config.sxp
-----------
(network-script network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
(vncpasswd '')
-----------

qemu-dm-Win7.log
-----------
domid: 5
-c config qemu network with xen bridge for
tap5.0 eth0
Using file /dev/sda1 in read-write mode
Watching /local/domain/0/device-model/5/logdirty/cmd
Watching /local/domain/0/device-model/5/command
char device redirected to /dev/pts/3
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 9b327c62-5171-cc24-3695-63438d9dad27
Time offset set 0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw
state.
xs_read(/local/domain/0/device-model/5/xen_extended_power_mgmt): read
error
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
xs_read(/local/domain/5/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/5/log-throttling'
medium change watch on `/local/domain/5/log-throttling' - unknown
device, ignored
cirrus vga map change while on lfb mode
mapping vram to f0000000 - f0400000
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw
state.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro
state
-----------


/var/log/xen/xend.log
-----------
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:101)
XendDomainInfo.create(['vm', ['name', 'Win7'], ['memory', 512],
['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1],
['oos', 1], ['image', ['hvm', ['kernel',
'/usr/lib/xen-4.0/boot/hvmloader'], ['videoram', 4], ['serial', 'pty'],
['acpi', 1], ['apic', 1], ['boot', 'c'], ['cpuid', []], ['cpuid_check',
[]], ['display', ':0.0'], ['fda', ''], ['fdb', ''], ['guest_os_type',
'default'], ['hap', 1], ['hpet', 0], ['isa', 0], ['keymap', ''],
['localtime', 0], ['nographic', 0], ['opengl', 1], ['oos', 1], ['pae',
1], ['pci', []], ['pci_msitranslate', 1], ['pci_power_mgmt', 0],
['rtc_timeoffset', 0], ['sdl', 0], ['soundhw', ''], ['stdvga', 0],
['timer_mode', 1], ['usb', 0], ['usbdevice', ''], ['vcpus', 1], ['vnc',
1], ['vncunused', 1], ['viridian', 0], ['vpt_align', 1], ['xauthority',
'/tmp/libgksu-wipl1u/.Xauthority'], ['xen_platform_pci', 1],
['memory_sharing', 0], ['device_model', '/usr/lib/xen-4.0/bin/qemu-dm'],
['vncpasswd', 'XXXXXXXX'], ['tsc_mode', 0], ['nomigrate', 0]]],
['s3_integrity', 1], ['device', ['vbd', ['uname', 'phy:sda1'], ['dev',
'hda'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'eth0'], ['type',
'ioemu']]]])
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:2508)
XendDomainInfo.constructDomain
[2012-03-20 14:14:31 2555] DEBUG (balloon:220) Balloon: 1043216 KiB
free; need 16384; done.
[2012-03-20 14:14:31 2555] DEBUG (XendDomain:464) Adding Domain: 5
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:2818)
XendDomainInfo.initDomain: 5 256
[2012-03-20 14:14:31 2555] DEBUG (image:337) Stored a VNC password for
vfb access
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: boot, val: c
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: fda, val: None
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: fdb, val: None
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: soundhw, val: None
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: localtime, val: 0
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: serial, val: ['pty']
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: std-vga, val: 0
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: isa, val: 0
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: acpi, val: 1
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: usb, val: 0
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: usbdevice, val: None
[2012-03-20 14:14:31 2555] DEBUG (image:891) args: gfx_passthru, val:
None
[2012-03-20 14:14:31 2555] INFO (image:822) Need to create platform
device.[domid:5]
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:2845)
_initDomain:shadow_memory=0x0, memory_static_max=0x20000000,
memory_static_min=0x0.
[2012-03-20 14:14:31 2555] INFO (image:182) buildDomain os=hvm dom=5
vcpus=1
[2012-03-20 14:14:31 2555] DEBUG (image:949) domid = 5
[2012-03-20 14:14:31 2555] DEBUG (image:950) image
= /usr/lib/xen-4.0/boot/hvmloader
[2012-03-20 14:14:31 2555] DEBUG (image:951) store_evtchn = 2
[2012-03-20 14:14:31 2555] DEBUG (image:952) memsize = 512
[2012-03-20 14:14:31 2555] DEBUG (image:953) target = 512
[2012-03-20 14:14:31 2555] DEBUG (image:954) vcpus = 1
[2012-03-20 14:14:31 2555] DEBUG (image:955) vcpu_avail = 1
[2012-03-20 14:14:31 2555] DEBUG (image:956) acpi = 1
[2012-03-20 14:14:31 2555] DEBUG (image:957) apic = 1
[2012-03-20 14:14:31 2555] INFO (XendDomainInfo:2367) createDevice:
vfb : {'vncpasswd': 'XXXXXXXX', 'vncunused': 1, 'other_config':
{'vncunused': 1, 'vncpasswd': 'XXXXXXXX', 'vnc': '1'}, 'vnc': '1',
'uuid': '061d5418-b780-fb59-b075-a3cd71b47bf7'}
[2012-03-20 14:14:31 2555] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/5/0'} to /local/domain/5/device/vfb/0.
[2012-03-20 14:14:31 2555] DEBUG (DevController:97) DevController:
writing {'vncunused': '1', 'domain': 'Win7', 'frontend':
'/local/domain/5/device/vfb/0', 'uuid':
'061d5418-b780-fb59-b075-a3cd71b47bf7', 'frontend-id': '5', 'vncpasswd':
'XXXXXXXX', 'state': '1', 'online': '1', 'vnc': '1'}
to /local/domain/0/backend/vfb/5/0.
[2012-03-20 14:14:31 2555] INFO (XendDomainInfo:2367) createDevice:
vbd : {'uuid': '901bded9-cea5-8efd-30fc-5158558c695a', 'bootable': 1,
'driver': 'paravirtualised', 'dev': 'hda', 'uname': 'phy:sda1', 'mode':
'w'}
[2012-03-20 14:14:31 2555] DEBUG (DevController:95) DevController:
writing {'backend-id': '0', 'virtual-device': '768', 'device-type':
'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/5/768'}
to /local/domain/5/device/vbd/768.
[2012-03-20 14:14:31 2555] DEBUG (DevController:97) DevController:
writing {'domain': 'Win7', 'frontend': '/local/domain/5/device/vbd/768',
'uuid': '901bded9-cea5-8efd-30fc-5158558c695a', 'bootable': '1', 'dev':
'hda', 'state': '1', 'params': 'sda1', 'mode': 'w', 'online': '1',
'frontend-id': '5', 'type': 'phy'} to /local/domain/0/backend/vbd/5/768.
[2012-03-20 14:14:31 2555] INFO (XendDomainInfo:2367) createDevice:
vif : {'bridge': 'eth0', 'mac': '00:16:3e:7b:41:cd', 'type': 'ioemu',
'uuid': '7abbb1b4-c265-9651-2286-4ac865e81ecf'}
[2012-03-20 14:14:31 2555] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vif/5/0'} to /local/domain/5/device/vif/0.
[2012-03-20 14:14:31 2555] DEBUG (DevController:97) DevController:
writing {'bridge': 'eth0', 'domain': 'Win7', 'handle': '0', 'uuid':
'7abbb1b4-c265-9651-2286-4ac865e81ecf', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:7b:41:cd',
'frontend-id': '5', 'state': '1', 'online': '1', 'frontend':
'/local/domain/5/device/vif/0', 'type': 'ioemu'}
to /local/domain/0/backend/vif/5/0.
[2012-03-20 14:14:31 2555] INFO (image:418) spawning device
models: /usr/lib/xen-4.0/bin/qemu-dm [.'/usr/lib/xen-4.0/bin/qemu-dm',
'-d', '5', '-domain-name', 'Win7', '-videoram', '4', '-vnc',
'127.0.0.1:0,password', '-vncunused', '-vcpus', '1', '-vcpu_avail',
'0x1', '-boot', 'c', '-serial', 'pty', '-acpi', '-net',
'nic,vlan=1,macaddr=00:16:3e:7b:41:cd,model=rtl8139', '-net',
'tap,vlan=1,ifname=tap5.0,bridge=eth0', '-M', 'xenfv']
[2012-03-20 14:14:31 2555] INFO (image:467) device model pid: 4700
[2012-03-20 14:14:31 2555] INFO (image:590) waiting for sentinel_fifo
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:3400) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '5', 'uuid':
'9b327c62-5171-cc24-3695-63438d9dad27', 'on_reboot': 'restart',
'start_time': '1332249271.32', 'on_poweroff': 'destroy',
'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart',
'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1',
'bootloader': '', 'image': '(hvm (kernel ) (superpages 0) (tsc_mode 0)
(videoram 4) (hpet 0) (boot c) (loader /usr/lib/xen-4.0/boot/hvmloader)
(serial pty) (vpt_align 1) (xen_platform_pci 1) (opengl 1) (vncunused 1)
(rtc_timeoffset 0) (vncpasswd XXXXXX) (pci ()) (pae 1) (stdvga 0) (hap
1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic
0) (guest_os_type default) (pci_msitranslate 1) (oos 1) (apic 1) (sdl 0)
(nomigrate 0) (device_model /usr/lib/xen-4.0/bin/qemu-dm)
(pci_power_mgmt 0) (usb 0) (xauthority /tmp/libgksu-wipl1u/.Xauthority)
(isa 0) (display :0.0) (notes (SUSPEND_CANCEL 1)))', 'name': 'Win7'}
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:1804) Storing domain
details: {'console/port': '3', 'description': '', 'console/limit':
'1048576', 'store/port': '2', 'vm':
'/vm/9b327c62-5171-cc24-3695-63438d9dad27', 'domid': '5',
'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
'memory/target': '524288',
'control/platform-feature-multiprocessor-suspend': '1',
'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'Win7'}
[2012-03-20 14:14:31 2555] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/5/0'}
to /local/domain/5/device/console/0.
[2012-03-20 14:14:31 2555] DEBUG (DevController:97) DevController:
writing {'domain': 'Win7', 'frontend':
'/local/domain/5/device/console/0', 'uuid':
'f0acff9a-7c5c-4e73-c131-bf96b930393e', 'frontend-id': '5', 'state':
'1', 'location': '3', 'online': '1', 'protocol': 'vt100'}
to /local/domain/0/backend/console/5/0.
[2012-03-20 14:14:31 2555] DEBUG (XendDomainInfo:1891)
XendDomainInfo.handleShutdownWatch
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vif2.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vif.
[2012-03-20 14:14:31 2555] DEBUG (DevController:144) Waiting for 0.
[2012-03-20 14:14:31 2555] DEBUG (DevController:628)
hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2012-03-20 14:14:31 2555] DEBUG (DevController:628)
hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2012-03-20 14:14:31 2555] DEBUG (DevController:642)
hotplugStatusCallback 1.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vscsi.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vbd.
[2012-03-20 14:14:31 2555] DEBUG (DevController:144) Waiting for 768.
[2012-03-20 14:14:31 2555] DEBUG (DevController:628)
hotplugStatusCallback /local/domain/0/backend/vbd/5/768/hotplug-status.
[2012-03-20 14:14:31 2555] DEBUG (DevController:642)
hotplugStatusCallback 1.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
ioports.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
irq.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vkbd.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vfb.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
console.
[2012-03-20 14:14:31 2555] DEBUG (DevController:144) Waiting for 0.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
pci.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
tap2.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
tap.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vusb.
[2012-03-20 14:14:31 2555] DEBUG (DevController:139) Waiting for devices
vtpm.
[2012-03-20 14:14:31 2555] INFO (XendDomain:1206) Domain Win7 (5)
unpaused.
[2012-03-20 14:17:33 2555] DEBUG (XendDomainInfo:3053)
XendDomainInfo.destroy: domid=5
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2411) Destroying device
model
[2012-03-20 14:17:36 2555] INFO (image:615) Win7 device model terminated
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2418) Releasing devices
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2424) Removing vif/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:1286)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2424) Removing vbd/768
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:1286)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2424) Removing vfb/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:1286)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2424) Removing
console/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:1286)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2416) No device model
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2418) Releasing devices
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2424) Removing vif/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:1286)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:2424) Removing vbd/768
[2012-03-20 14:17:36 2555] DEBUG (XendDomainInfo:1286)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2012-03-21 16:29:53 2555] DEBUG (SrvServer:76) SrvServer.cleanup()
[2012-03-21 16:29:53 2555] DEBUG (XMLRPCServer:241)
XMLRPCServer.cleanup()
[2012-03-21 16:29:53 2555] DEBUG (XMLRPCServer:241)
XMLRPCServer.cleanup()
[2012-03-21 16:29:53 2555] DEBUG (XendDomain:632) cleanup_domains
[2012-03-21 16:29:53 2554] INFO (SrvDaemon:220) Xend exited with status
0.
-----------



_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
Quoting Jens Krause <jens.krause@eco-5.de>:

> Hallo,
>
> I have an installed Windows 7 on one partition
> and running Debain Squeeze on the other. Both are 64 bit.
> I want to use Xen to run Windows as virtual guest from
> a physical disk. Once I get this working the Window will
> never be booted directly.
>
>
> When I try to create the virtual machine by
> "xm create -c win.xen"
> it hangs.
>
>
> The versions I use
> Xen 4.0.1-4
> Kernel 2.6.32-5-xen-amd64
>

I believe with the version of Xen (or maybe the Linux OS), there was
an issue with physical device blocking.

I had a similar problem with Windows 2008.

I resolved the problem for my situation be simply creating the OS as a
file, mounting the device under Linux, then using the GPLPV drivers in
Windows to achieve decent disk throughput for the guest OS.

Ken Cobler




_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
Hi Ken,

thanks for the reply, I want to try that. How did you copy
the Windows from disk to file? Did you make a raw copy
using 'dd' or did you copy the files using 'cp' on the loop-mounted
file system?

Thanks

Jens


On 03/22/2012 03:05 PM, Ken Cobler wrote:
> Quoting Jens Krause <jens.krause@eco-5.de>:
>
>> Hallo,
>>
>> I have an installed Windows 7 on one partition
>> and running Debain Squeeze on the other. Both are 64 bit.
>> I want to use Xen to run Windows as virtual guest from
>> a physical disk. Once I get this working the Window will
>> never be booted directly.
>>
>>
>> When I try to create the virtual machine by
>> "xm create -c win.xen"
>> it hangs.
>>
>>
>> The versions I use
>> Xen 4.0.1-4
>> Kernel 2.6.32-5-xen-amd64
>>
>
> I believe with the version of Xen (or maybe the Linux OS), there was
> an issue with physical device blocking.
>
> I had a similar problem with Windows 2008.
>
> I resolved the problem for my situation be simply creating the OS as a
> file, mounting the device under Linux, then using the GPLPV drivers in
> Windows to achieve decent disk throughput for the guest OS.
>
> Ken Cobler
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xen.org
> http://lists.xen.org/xen-users


--
_________________________
ECO 5 GmbH
Jens Krause
Büroanschrift:
Bornheimerstraße 33a
53111 Bonn
Deutschland

Tel.: +49 228 6296 1770
Fax: +49 228 6296 1774
E-Mail: jens.krause@eco-5.de
www.eco-5.de

Rechtsform: GmbH
Sitz: Bonn, Neustraße 43
Registergericht: Bonn HRB 18975
Geschäftsführer : Dr. Jens Müller
_________________________
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
Jen,

I used dd to copy the physical device to a linux file.

Ken

> Hi Ken,
>
> thanks for the reply, I want to try that. How did you copy
> the Windows from disk to file? Did you make a raw copy
> using 'dd' or did you copy the files using 'cp' on the loop-mounted
> file system?
>
> Thanks
>
> Jens
>
>
> On 03/22/2012 03:05 PM, Ken Cobler wrote:
>> Quoting Jens Krause <jens.krause@eco-5.de>:
>>
>>> Hallo,
>>>
>>> I have an installed Windows 7 on one partition
>>> and running Debain Squeeze on the other. Both are 64 bit.
>>> I want to use Xen to run Windows as virtual guest from
>>> a physical disk. Once I get this working the Window will
>>> never be booted directly.
>>>
>>>
>>> When I try to create the virtual machine by
>>> "xm create -c win.xen"
>>> it hangs.
>>>
>>>
>>> The versions I use
>>> Xen 4.0.1-4
>>> Kernel 2.6.32-5-xen-amd64
>>>
>>
>> I believe with the version of Xen (or maybe the Linux OS), there
>> was an issue with physical device blocking.
>>
>> I had a similar problem with Windows 2008.
>>
>> I resolved the problem for my situation be simply creating the OS
>> as a file, mounting the device under Linux, then using the GPLPV
>> drivers in Windows to achieve decent disk throughput for the guest
>> OS.
>>
>> Ken Cobler
>>
>>
>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@lists.xen.org
>> http://lists.xen.org/xen-users
>
>
> --
> _________________________
> ECO 5 GmbH
> Jens Krause
> Büroanschrift:
> Bornheimerstraße 33a
> 53111 Bonn
> Deutschland
>
> Tel.: +49 228 6296 1770
> Fax: +49 228 6296 1774
> E-Mail: jens.krause@eco-5.de
> www.eco-5.de
>
> Rechtsform: GmbH
> Sitz: Bonn, Neustraße 43
> Registergericht: Bonn HRB 18975
> Geschäftsführer : Dr. Jens Müller
> _________________________
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail
> in error) please notify the sender immediately and destroy this
> e-mail. Any unauthorised copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xen.org
> http://lists.xen.org/xen-users
>



_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
On 2 April 2012 22:42, Ken Cobler <kcobler@coblercorp.com> wrote:
>
> Jen,
>
> I used dd to copy the physical device to a linux file.
>
> Ken
>
>
>> Hi Ken,
>>
>> thanks for the reply, I want to try that. How did you copy
>> the Windows from disk to file? Did you make a raw copy
>> using 'dd' or did you copy the files using 'cp' on the loop-mounted
>> file system?
>>
>> Thanks
>>
>> Jens
>>
>>
>> On 03/22/2012 03:05 PM, Ken Cobler wrote:
>>>
>>> Quoting Jens Krause <jens.krause@eco-5.de>:
>>>
>>>> Hallo,
>>>>
>>>> I have an installed Windows 7 on one partition
>>>> and running Debain Squeeze on the other. Both are 64 bit.
>>>> I want to use Xen to run Windows as virtual guest from
>>>> a physical disk. Once I get this working the Window will
>>>> never be booted directly.

Did you install the Windows guest via Xen or did you install it baremetal?

>>>>
>>>>
>>>> When I try to create the virtual machine by
>>>> "xm create -c win.xen"
>>>> it hangs.
>>>>
>>>>
>>>> The versions I use
>>>> Xen 4.0.1-4
>>>> Kernel 2.6.32-5-xen-amd64
>>>>
>>>
>>> I believe with the version of Xen (or maybe the Linux OS), there was an
>>> issue with physical device blocking.
>>>
>>> I had a similar problem with Windows 2008.
>>>
>>> I resolved the problem for my situation be simply creating the OS as a
>>> file, mounting the device under Linux, then using the GPLPV drivers in
>>> Windows to achieve decent disk throughput for the guest OS.
>>>
>>> Ken Cobler
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Xen-users mailing list
>>> Xen-users@lists.xen.org
>>> http://lists.xen.org/xen-users
>>
>>
>>
>> --
>> _________________________
>> ECO 5 GmbH
>> Jens Krause
>> Büroanschrift:
>> Bornheimerstraße 33a
>> 53111 Bonn
>> Deutschland
>>
>> Tel.:   +49 228 6296 1770
>> Fax:    +49 228 6296 1774
>> E-Mail: jens.krause@eco-5.de
>> www.eco-5.de
>>
>> Rechtsform: GmbH
>> Sitz: Bonn, Neustraße 43
>> Registergericht: Bonn HRB 18975
>> Geschäftsführer : Dr. Jens Müller
>> _________________________
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>> Weitergabe dieser Mail ist nicht gestattet.
>>
>> This e-mail may contain confidential and/or privileged information. If you
>> are not the intended recipient (or have received this e-mail in error)
>> please notify the sender immediately and destroy this e-mail. Any
>> unauthorised copying, disclosure or distribution of the material in this
>> e-mail is strictly forbidden.
>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@lists.xen.org
>> http://lists.xen.org/xen-users
>>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xen.org
> http://lists.xen.org/xen-users



--
Founder | Director | VP Research
Orion Virtualisation Solutions | www.orionvm.com.au | Phone: 1300 56
99 52 | Mobile: 0428 754 846

_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
Quoting Joseph Glanville <joseph.glanville@orionvm.com.au>:

> On 2 April 2012 22:42, Ken Cobler <kcobler@coblercorp.com> wrote:
>>
>> Jen,
>>
>> I used dd to copy the physical device to a linux file.
>>
>> Ken
>>
>>
>>> Hi Ken,
>>>
>>> thanks for the reply, I want to try that. How did you copy
>>> the Windows from disk to file? Did you make a raw copy
>>> using 'dd' or did you copy the files using 'cp' on the loop-mounted
>>> file system?
>>>
>>> Thanks
>>>
>>> Jens
>>>
>>>
>>> On 03/22/2012 03:05 PM, Ken Cobler wrote:
>>>>
>>>> Quoting Jens Krause <jens.krause@eco-5.de>:
>>>>
>>>>> Hallo,
>>>>>
>>>>> I have an installed Windows 7 on one partition
>>>>> and running Debain Squeeze on the other. Both are 64 bit.
>>>>> I want to use Xen to run Windows as virtual guest from
>>>>> a physical disk. Once I get this working the Window will
>>>>> never be booted directly.
>
> Did you install the Windows guest via Xen or did you install it baremetal?

I installed Windows guest via Xen.

Ken Cobler


_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
On 3 April 2012 05:06, Ken Cobler <kcobler@coblercorp.com> wrote:
> Quoting Joseph Glanville <joseph.glanville@orionvm.com.au>:
>
>> On 2 April 2012 22:42, Ken Cobler <kcobler@coblercorp.com> wrote:
>>>
>>>
>>> Jen,
>>>
>>> I used dd to copy the physical device to a linux file.
>>>
>>> Ken
>>>
>>>
>>>> Hi Ken,
>>>>
>>>> thanks for the reply, I want to try that. How did you copy
>>>> the Windows from disk to file? Did you make a raw copy
>>>> using 'dd' or did you copy the files using 'cp' on the loop-mounted
>>>> file system?
>>>>
>>>> Thanks
>>>>
>>>> Jens
>>>>
>>>>
>>>> On 03/22/2012 03:05 PM, Ken Cobler wrote:
>>>>>
>>>>>
>>>>> Quoting Jens Krause <jens.krause@eco-5.de>:
>>>>>
>>>>>> Hallo,
>>>>>>
>>>>>> I have an installed Windows 7 on one partition
>>>>>> and running Debain Squeeze on the other. Both are 64 bit.
>>>>>> I want to use Xen to run Windows as virtual guest from
>>>>>> a physical disk. Once I get this working the Window will
>>>>>> never be booted directly.
>>
>>
>> Did you install the Windows guest via Xen or did you install it baremetal?
>
>
> I installed Windows guest via Xen.
>
> Ken Cobler
>

First of all don't call xm create with -c, this will connect you to
the serial console which Windows is most definitely not listening on.

Second, can you connect to the guest via VNC as it's booting?
By the looks of it it is creating the guest successfully but then the
BIOS is timing out or something, probably no bootable device or
similar error.
You would have had to do this to get the guest installed so it should
still be working.

Lastly change your disk line to use a full path like thus:
disk = [ 'phy:/dev/sda1,hda,w' ]

I am not sure that it being a partition vs something else is going to
cause you issues or not. It really shouldn't though.

Joseph.


--
Founder | Director | VP Research
Orion Virtualisation Solutions | www.orionvm.com.au | Phone: 1300 56
99 52 | Mobile: 0428 754 846

_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
Re: Windows 7 as guest on a physikal disk [ In reply to ]
Thanks Joseph, I am one step further. The setting

disk = [ 'phy:/dev/sda,hda,w' ]

will boot from the disk. Since there is grub, I can see
the grub menu in my vncviewer and I can choose Windows
(which was installed without xen). That works and Windows
is there.

But I would prefer to use

disk = [ 'phy:/dev/sda1,hda,w' ]

as you suggested (using partition sda1 and not whole disk sda) but that
gives me a
bios screen (VGABios) in the vncviewer saying in its last line


Booting from Hard Disk....

but nothing happens.

Any ideas.

Thanks in advance

Jens




On 04/02/2012 09:33 PM, Joseph Glanville wrote:
> On 3 April 2012 05:06, Ken Cobler<kcobler@coblercorp.com> wrote:
>
>> Quoting Joseph Glanville<joseph.glanville@orionvm.com.au>:
>>
>>
>>> On 2 April 2012 22:42, Ken Cobler<kcobler@coblercorp.com> wrote:
>>>
>>>>
>>>> Jen,
>>>>
>>>> I used dd to copy the physical device to a linux file.
>>>>
>>>> Ken
>>>>
>>>>
>>>>
>>>>> Hi Ken,
>>>>>
>>>>> thanks for the reply, I want to try that. How did you copy
>>>>> the Windows from disk to file? Did you make a raw copy
>>>>> using 'dd' or did you copy the files using 'cp' on the loop-mounted
>>>>> file system?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Jens
>>>>>
>>>>>
>>>>> On 03/22/2012 03:05 PM, Ken Cobler wrote:
>>>>>
>>>>>>
>>>>>> Quoting Jens Krause<jens.krause@eco-5.de>:
>>>>>>
>>>>>>
>>>>>>> Hallo,
>>>>>>>
>>>>>>> I have an installed Windows 7 on one partition
>>>>>>> and running Debain Squeeze on the other. Both are 64 bit.
>>>>>>> I want to use Xen to run Windows as virtual guest from
>>>>>>> a physical disk. Once I get this working the Window will
>>>>>>> never be booted directly.
>>>>>>>
>>>
>>> Did you install the Windows guest via Xen or did you install it baremetal?
>>>
>>
>> I installed Windows guest via Xen.
>>
>> Ken Cobler
>>
>>
> First of all don't call xm create with -c, this will connect you to
> the serial console which Windows is most definitely not listening on.
>
> Second, can you connect to the guest via VNC as it's booting?
> By the looks of it it is creating the guest successfully but then the
> BIOS is timing out or something, probably no bootable device or
> similar error.
> You would have had to do this to get the guest installed so it should
> still be working.
>
> Lastly change your disk line to use a full path like thus:
> disk = [ 'phy:/dev/sda1,hda,w' ]
>
> I am not sure that it being a partition vs something else is going to
> cause you issues or not. It really shouldn't though.
>
> Joseph.
>
>
>
Re: Windows 7 as guest on a physikal disk [ In reply to ]
Hello.

El 10/04/12 08:52, Jens Krause escribió:
> Thanks Joseph, I am one step further. The setting
>
> disk = [ 'phy:/dev/sda,hda,w' ]
>
> will boot from the disk. Since there is grub, I can see
> the grub menu in my vncviewer and I can choose Windows
> (which was installed without xen). That works and Windows
> is there.
>
> But I would prefer to use
>
> disk = [ 'phy:/dev/sda1,hda,w' ]
>
> as you suggested (using partition sda1 and not whole disk sda)

Windows can't work with unpartitioned block devices. When you give it a
sda as hda, it will read the partition table, pick up it's system
partition and boot from it. When you give it sda1 as hda, it will expect
to read a partition table, fail, and give up.

The setup you are describing is possible, but it will render your
Windows installation unusable outside of hypervisor. All you have to do
is create a partition table within a partition. You can try to move your
existing Windows installation to a partition with something like
dd if=/dev/sda of=somefile
dd if=somefile of=/dev/sda1
...but that is tricky: the whole sda will not fit within sda1 by at lest
some hundreds of bytes, so you will have to shrink it somehow.

The whole thing is that:
- Windows unusable outside of hypervisor (but you probably could switch
hypervisors)
- it would be easer to make a clean install (Windows spirit is in that
phrase)

Oh, read your original message, you don't need to run windows outside of
Xen. My advice, reinstall. Why on a partition? LVM is much more flexible.

--
Alexandre Kouznetsov

_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users