[CentOS-virt] Add new drive to Windows domu

Stephen

sdw2 at shineonline.co.nz
Thu May 29 21:00:02 UTC 2008


TAIRA Hajime wrote:
> How did you reboot your windows server domain?
> If you rebooted by Windows operation, You had to be a restart by cold boot.
> 
> Please check "xm log" command after turn on the domain.
> You will be able to check failure log.
> 

Thanks TAIRA for responding..

I'm getting this in the xend log - starting from a cold boot...

[2008-05-30 08:44:46 xend 4950] DEBUG (blkif:24) exception looking up 
device number for hdc: [Errno 2] No such file or directory: '/dev/hdc'

I tried changing the device to /dev/hdb and still got the same thing. Do 
you know how to fix it?


xend.log showing the boot below:
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:200) XendDomainInfo.create(['vm', ['name', 
'win2k3docsvr'], ['memory', 500], ['maxmem', 500], ['on_poweroff', 
'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 
1], ['uuid', '70e520e8e3e5931b92ce46d83ba9557d'], ['image', ['hvm', 
['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model', 
'/usr/lib64/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'c'], 
['serial', 'pty'], ['vnc', 1], ['vncdisplay', '0'], ['xauthority', 
'/root/.Xauthority'], ['acpi', 1], ['apic', 1], ['keymap', 'en-us']]], 
['device', ['vbd', ['uname', 'phy:/dev/vgdata4vm/lvw2k3docsvr'], ['dev', 
'hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 
'phy:/dev/vgdata4vm/lvwin2k3homes'], ['dev', 'hdb'], ['mode', 'w']]], 
['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:18:c9:42'], 
['type', 'ioemu'], ['script', 'vif-bridge']]]])
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:306) parseConfig: config is ['vm', ['name', 
'win2k3docsvr'], ['memory', 500], ['maxmem', 500], ['on_poweroff', 
'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 
1], ['uuid', '70e520e8e3e5931b92ce46d83ba9557d'], ['image', ['hvm', 
['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model', 
'/usr/lib64/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'c'], 
['serial', 'pty'], ['vnc', 1], ['vncdisplay', '0'], ['xauthority', 
'/root/.Xauthority'], ['acpi', 1], ['apic', 1], ['keymap', 'en-us']]], 
['device', ['vbd', ['uname', 'phy:/dev/vgdata4vm/lvw2k3docsvr'], ['dev', 
'hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 
'phy:/dev/vgdata4vm/lvwin2k3homes'], ['dev', 'hdb'], ['mode', 'w']]], 
['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:18:c9:42'], 
['type', 'ioemu'], ['script', 'vif-bridge']]]]
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:411) parseConfig: result is {'shadow_memory': None, 
'start_time': None, 'uuid': '70e520e8-e3e5-931b-92ce-46d83ba9557d', 
'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None, 
'image': ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], 
['device_model', '/usr/lib64/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 
1], ['boot', 'c'], ['serial', 'pty'], ['vnc', 1], ['vncdisplay', '0'], 
['xauthority', '/root/.Xauthority'], ['acpi', 1], ['apic', 1], 
['keymap', 'en-us']], 'on_poweroff': 'destroy', 'bootloader_args': None, 
'cpus': None, 'name': 'win2k3docsvr', 'backend': [], 'vcpus': 1, 
'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 500, 
'device': [('vbd', ['vbd', ['uname', 'phy:/dev/vgdata4vm/lvw2k3docsvr'], 
['dev', 'hda'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 
'phy:/dev/vgdata4vm/lvwin2k3homes'], ['dev', 'hdb'], ['mode', 'w']]), 
('vif', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:18:c9:42'], 
['type', 'ioemu'], ['script', 'vif-bridge']])], 'bootloader': None, 
'cpu': None, 'maxmem': 500}
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:1349) XendDomainInfo.construct: None
[2008-05-30 08:55:14 xend 4950] DEBUG (balloon:127) Balloon: 526648 KiB 
free; need 2048; done.
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:1397) XendDomainInfo.initDomain: 23 1.0
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: boot, val: c
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: fda, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: fdb, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: soundhw, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: localtime, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: serial, val: pty
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: std-vga, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: isa, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: vcpus, val: 1
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: acpi, val: 1
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: usb, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: usbdevice, val: None
[2008-05-30 08:55:14 xend 4950] DEBUG (image:315) args: k, val: en-us
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:1436) _initDomain:shadow_memory=0x0, maxmem=0x1f4, 
memory=0x1f4.
[2008-05-30 08:55:14 xend 4950] DEBUG (balloon:127) Balloon: 525612 KiB 
free; need 525312; done.
[2008-05-30 08:55:14 xend 4950] INFO (image:136) buildDomain os=None 
dom=23 vcpus=1
[2008-05-30 08:55:14 xend 4950] DEBUG (image:268) domid          = 23
[2008-05-30 08:55:14 xend 4950] DEBUG (image:269) image          = 
/usr/lib/xen/boot/hvmloader
[2008-05-30 08:55:14 xend 4950] DEBUG (image:270) store_evtchn   = 2
[2008-05-30 08:55:14 xend 4950] DEBUG (image:271) memsize        = 500
[2008-05-30 08:55:14 xend 4950] DEBUG (image:272) vcpus          = 1
[2008-05-30 08:55:14 xend 4950] DEBUG (image:273) pae            = 1
[2008-05-30 08:55:14 xend 4950] DEBUG (image:274) acpi           = 1
[2008-05-30 08:55:14 xend 4950] DEBUG (image:275) apic           = 1
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 
'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/23/768'} 
to /local/domain/23/device/vbd/768.
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:112) DevController: 
writing {'domain': 'win2k3docsvr', 'frontend': 
'/local/domain/23/device/vbd/768', 'dev': 'hda', 'state': '1', 'params': 
'/dev/vgdata4vm/lvw2k3docsvr', 'mode': 'w', 'online': '1', 
'frontend-id': '23', 'type': 'phy'} to /local/domain/0/backend/vbd/23/768.
[2008-05-30 08:55:14 xend 4950] DEBUG (blkif:24) exception looking up 
device number for hdb: [Errno 2] No such file or directory: '/dev/hdb'
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'virtual-device': '832', 'device-type': 
'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/23/832'} 
to /local/domain/23/device/vbd/832.
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:112) DevController: 
writing {'domain': 'win2k3docsvr', 'frontend': 
'/local/domain/23/device/vbd/832', 'dev': 'hdb', 'state': '1', 'params': 
'/dev/vgdata4vm/lvwin2k3homes', 'mode': 'w', 'online': '1', 
'frontend-id': '23', 'type': 'phy'} to /local/domain/0/backend/vbd/23/832.
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:110) DevController: 
writing {'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vif/23/0'} to /local/domain/23/device/vif/0.
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:112) DevController: 
writing {'bridge': 'xenbr0', 'domain': 'win2k3docsvr', 'handle': '0', 
'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/23/device/vif/0', 'mac': '00:16:3e:18:c9:42', 'online': 
'1', 'frontend-id': '23', 'type': 'ioemu'} to 
/local/domain/0/backend/vif/23/0.
[2008-05-30 08:55:14 xend 4950] INFO (image:407) spawning device models: 
/usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '-d', '23', 
'-m', '500', '-boot', 'c', '-serial', 'pty', '-vcpus', '1', '-acpi', 
'-k', 'en-us', '-domain-name', 'win2k3docsvr', '-net', 
'nic,vlan=1,macaddr=00:16:3e:18:c9:42,model=rtl8139', '-net', 
'tap,vlan=1,bridge=xenbr0', '-vnc', '0', '-vnclisten', '127.0.0.1']
[2008-05-30 08:55:14 xend 4950] INFO (image:409) device model pid: 26643
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:756) Storing VM details: {'shadow_memory': '5', 'uuid': 
'70e520e8-e3e5-931b-92ce-46d83ba9557d', 'on_reboot': 'restart', 
'start_time': '1212094514.82', 'on_poweroff': 'destroy', 'name': 
'win2k3docsvr', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': 
'1', 'memory': '500', 'on_crash': 'restart', 'image': '(hvm (kernel 
/usr/lib/xen/boot/hvmloader) (device_model /usr/lib64/xen/bin/qemu-dm) 
(pae 1) (vcpus 1) (boot c) (serial pty) (vnc 1) (vncdisplay 0) 
(xauthority /root/.Xauthority) (acpi 1) (apic 1) (keymap en-us))', 
'maxmem': '500'}
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:791) Storing domain details: {'console/port': '3', 
'name': 'win2k3docsvr', 'console/limit': '1048576', 'vm': 
'/vm/70e520e8-e3e5-931b-92ce-46d83ba9557d', 'domid': '23', 
'cpu/0/availability': 'online', 'memory/target': '512000', 
'store/ring-ref': '127998', 'store/port': '2'}
[2008-05-30 08:55:14 xend.XendDomainInfo 4950] DEBUG 
(XendDomainInfo:988) XendDomainInfo.handleShutdownWatch
[2008-05-30 08:55:14 xend 4950] DEBUG (DevController:143) Waiting for 
devices vif.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:149) Waiting for 0.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:476) 
hotplugStatusCallback /local/domain/0/backend/vif/23/0/hotplug-status.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:476) 
hotplugStatusCallback /local/domain/0/backend/vif/23/0/hotplug-status.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:490) 
hotplugStatusCallback 1.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices usb.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices vbd.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:149) Waiting for 768.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:476) 
hotplugStatusCallback /local/domain/0/backend/vbd/23/768/hotplug-status.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:476) 
hotplugStatusCallback /local/domain/0/backend/vbd/23/768/hotplug-status.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:490) 
hotplugStatusCallback 1.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:149) Waiting for 832.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:476) 
hotplugStatusCallback /local/domain/0/backend/vbd/23/832/hotplug-status.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:476) 
hotplugStatusCallback /local/domain/0/backend/vbd/23/832/hotplug-status.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:490) 
hotplugStatusCallback 1.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices irq.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices vkbd.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices vfb.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices pci.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices ioports.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices tap.
[2008-05-30 08:55:15 xend 4950] DEBUG (DevController:143) Waiting for 
devices vtpm.
[2008-05-30 08:55:15 xend 4950] INFO (XendDomain:370) Domain 
win2k3docsvr (23) unpaused.



Xen config...
[root at vr1 xen]# cat win2k3docsvr
name = "win2k3docsvr"
uuid = "70e520e8e3e5931b92ce46d83ba9557d"
maxmem = 500
memory = 500
vcpus = 1
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
vncunused = 0
keymap = "en-us"
vncdisplay = "0"
disk = [ 'phy:/dev/vgdata4vm/lvw2k3docsvr,hda,w',
	 'phy:/dev/vgdata4vm/lvwin2k3homes,hdb,w' ]
vif = [ "mac=00:16:3e:18:c9:42,bridge=xenbr0,type=ioemu,script=vif-bridge" ]
serial = "pty"


Thank you
Stephen







More information about the CentOS-virt mailing list