mbrito84
(usa Outra)
Enviado em 02/03/2009 - 15:17h
Para instalar o windows em uma vm no xen criei o arquivo de configuração xinxp1.xm:
kernel = "/usr/lib/xen/boot/hvmloader"
device_model = '/usr/lib/xen/bin/qemu-dm'
builder='hvm'
memory = 1024
name = "funciona"
vif = [ 'type=ioemu, mac=00:16:3E:78:CD:EC, bridge=xenbr0']
disk = [ 'file:/root/winxp.iso,hdd:cdrom,r', 'phy:/dev/servers/winxptemplate,sda,w']
boot="dc"
sdl=1
vnc=1
vnclisten="0.0.0.0"
vncdisplay=5
vncconsole=0
vncpasswd='123'
stdvga=0
serial='pty'
#The number of cpus guest platform has, default=1
vcpus=4
#Enable/disable HVM guest PAE, default=1 (enabled)
#pae=1
#Enable/disable HVM guest ACPI, default=1 (enabled)
#acpi=1
#Enable/disable HVM APIC mode, default=1 (enabled)
#Note that this option is ignored if vcpus > 1 apic=1
#List of which CPUS this domain is allowed to use, default #Xen picks
# cpus = "" # leave to Xen to pick
#cpus = "0" # all vcpus run on CPU0
# cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
# cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on #CPU3
____________________________________________________________
Depois de instalado o windows alterei para bootar agora pelo hd e não mais pelo cd como abaixo:
kernel = "/usr/lib/xen/boot/hvmloader"
device_model = '/usr/lib/xen/bin/qemu-dm'
builder='hvm'
memory = 1024
name = "funciona"
vif = [ 'type=ioemu, mac=00:16:3E:78:CD:EC, bridge=xenbr0']
disk = [ 'phy:/dev/servers/winxptemplate,sda,w']
boot="c"
sdl=1
vnc=1
vnclisten="0.0.0.0"
vncdisplay=5
vncconsole=0
vncpasswd='123'
stdvga=0
serial='pty'
# The number of cpus guest platform has, default=1
vcpus=4
# Enable/disable HVM guest PAE, default=1 (enabled)
# pae=1
# Enable/disable HVM guest ACPI, default=1 (enabled)
# acpi=1
# Enable/disable HVM APIC mode, default=1 (enabled)
# Note that this option is ignored if vcpus > 1
# apic=1
# List of which CPUS this domain is allowed to use, default Xen picks
# cpus = "" # leave to Xen to pick
# cpus = "0" # all vcpus run on CPU0
# cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
# cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3
____________________________________________________________
Apos executo o comando xm create -c xinxp1.xm e
Acontece o seguinte erro abaixo:
bldserver2:/etc/xen# xm create -c winxp1.xm Using config file "./winxp1.xm". Started domain funciona Unexpected error: <type 'exceptions.OSError'>
Please report to xen-devel@lists.xensource.com Traceback (most recent call last):
File "/usr/sbin/xm", line 10, in <module>
main.main(sys.argv)
File "//usr/lib/python/xen/xm/main.py", line 2883, in main
_, rc = _run_cmd(cmd, cmd_name, args)
File "//usr/lib/python/xen/xm/main.py", line 2907, in _run_cmd
return True, cmd(args)
File "<string>", line 1, in <lambda>
File "//usr/lib/python/xen/xm/main.py", line 1375, in xm_importcommand
cmd.main([command] + args)
File "//usr/lib/python/xen/xm/create.py", line 1321, in main
do_console(sxp.child_value(config, 'name', -1))
File "//usr/lib/python/xen/xm/create.py", line 1348, in do_console
(p, rv) = os.waitpid(cpid, os.WNOHANG)
OSError: [Errno 10] No child processes bldserver2:/etc/xen#
Alguém pode me ajudar com este erro?